.tech3d{--bg:#0d1114; --panel:#141a1f; --line:#243038; --text:#e6edf0; --mute:#8a9aa3;
    --accent:#3ddc84; --power:#ff8a4c; --control:#5ab0ff; --aux:#ffd24c; --conn:#c79bff; --prot:#ff6b81;position:relative;color:var(--text);font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans Thai",sans-serif;font-size:14px;line-height:1.45;box-sizing:border-box}
.tech3d *,.tech3d *::before,.tech3d *::after{box-sizing:border-box}
.tech3d .t3-app{display:grid;grid-template-columns:1fr 340px;height:min(72vh,640px);background:var(--bg);border-radius:12px;overflow:hidden}
.tech3d button{font-family:inherit}
.tech3d .t3-warnbar{display:none;position:absolute;right:12px;top:56px;max-width:min(320px,calc(100% - 24px));background:#7f1d1d;border:1px solid #f87171;color:#fff;padding:6px 10px;border-radius:8px;font-size:12.5px;font-weight:600;z-index:3}
.tech3d .t3-warnbar.t3-on{display:block}
.tech3d .t3-warninfo{margin:8px 0 0;padding:6px 9px;background:#7f1d1d;border:1px solid #f87171;border-radius:6px;color:#fff;font-weight:600;font-size:12.5px}
.tech3d .t3-link{color:var(--accent);font-size:12.5px}
.tech3d .t3-app{display:grid;grid-template-columns:1fr 340px;height:100vh}
.tech3d .t3-stage{position:relative;min-width:0;min-height:0;overflow:hidden;
    background:radial-gradient(ellipse at 50% 35%,#1b252c 0%,#0d1114 70%)}
.tech3d .t3-stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}
.tech3d .t3-stage canvas.t3-hot{cursor:pointer}
.tech3d .t3-tag{position:absolute;left:0;top:0;transform:translate(-50%,-140%);pointer-events:none;
    background:rgba(13,17,20,.92);border:1px solid var(--accent);color:var(--text);
    padding:3px 9px;border-radius:999px;font-size:12px;white-space:nowrap;display:none}
.tech3d .t3-labels{display:none}
.tech3d .t3-lbl{position:absolute;left:0;top:0;transform:translate(-50%,-130%);pointer-events:none;background:rgba(13,17,20,.82);
    border:1px solid var(--line);color:var(--text);padding:2px 7px;border-radius:999px;font-size:11px;white-space:nowrap}
.tech3d .t3-lbl.t3-on{border-color:var(--accent);color:var(--accent)}
.tech3d .t3-tip{position:absolute;left:0;top:0;pointer-events:none;background:rgba(13,17,20,.92);border:1px solid var(--line);
    padding:3px 8px;border-radius:6px;font-size:12px;white-space:nowrap;display:none}
.tech3d .t3-btn.t3-pow{border-color:#3a5a46}
.tech3d .t3-btn.t3-pow[aria-pressed="true"]{background:#14301f}
.tech3d .t3-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;color:var(--mute);font-size:12px}
.tech3d .t3-nav .t3-btn{padding:5px 10px;font-size:12px}
.tech3d .t3-sim{display:none;position:absolute;left:12px;bottom:12px;width:min(440px,calc(100% - 24px));background:rgba(20,26,31,.94);
    border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.tech3d .t3-simtop{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.tech3d .t3-simtop .t3-btn{padding:3px 9px;font-size:12px}
.tech3d .t3-simSteps{display:flex;flex-wrap:wrap;gap:5px}
.tech3d .t3-simSteps button{background:none;border:1px solid var(--line);color:var(--mute);border-radius:999px;padding:2px 9px;font:inherit;font-size:11.5px;cursor:pointer}
.tech3d .t3-simSteps button.t3-done{color:var(--text)}
.tech3d .t3-simSteps button.t3-on{border-color:var(--accent);color:var(--accent)}
.tech3d .t3-simTxt{margin:8px 0 6px;min-height:2.9em}
.tech3d .t3-pbar{height:5px;background:#243038;border-radius:3px;overflow:hidden}
.tech3d .t3-pbar i{display:block;height:100%;width:0;background:#5ab0ff}
.tech3d .t3-simV{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;margin:6px 0 4px}
.tech3d .t3-sim .t3-note{color:var(--mute);font-size:11.5px;margin:0}
.tech3d .t3-hint{position:absolute;left:14px;bottom:12px;color:var(--mute);font-size:12px;pointer-events:none}
.tech3d .t3-bar{position:absolute;left:12px;top:12px;right:12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tech3d .t3-btn{background:rgba(20,26,31,.9);border:1px solid var(--line);color:var(--text);padding:7px 11px;
    border-radius:8px;font:inherit;font-size:13px;cursor:pointer}
.tech3d .t3-btn:hover{border-color:#3a4a55}
.tech3d .t3-btn[aria-pressed="true"]{border-color:var(--accent);color:var(--accent)}
.tech3d .t3-slide{display:flex;align-items:center;gap:8px;background:rgba(20,26,31,.9);border:1px solid var(--line);
    padding:5px 11px;border-radius:8px;font-size:13px}
.tech3d .t3-slide input{width:120px;accent-color:var(--accent)}
.tech3d .t3-slide select{background:#0d1114;color:var(--text);border:1px solid var(--line);border-radius:6px;font:inherit;font-size:13px;padding:2px 4px}
.tech3d aside{background:var(--panel);border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:0}
.tech3d header{padding:16px 18px 12px;border-bottom:1px solid var(--line)}
.tech3d header h1{margin:0;font-size:16px;font-weight:650;letter-spacing:.2px}
.tech3d header p{margin:4px 0 0;color:var(--mute);font-size:12.5px}
.tech3d .t3-info{padding:14px 18px;border-bottom:1px solid var(--line);min-height:150px}
.tech3d .t3-info .t3-cat{display:inline-block;font-size:11px;text-transform:uppercase;letter-spacing:.8px;
    padding:2px 8px;border-radius:999px;border:1px solid currentColor;margin-bottom:8px}
.tech3d .t3-info h2{margin:0 0 2px;font-size:17px}
.tech3d .t3-info .t3-ref{color:var(--mute);font-size:12.5px;margin-bottom:8px;font-family:ui-monospace,Menlo,Consolas,monospace}
.tech3d .t3-info p{margin:0 0 8px}
.tech3d .t3-info .t3-note{color:var(--mute);font-size:12.5px}
.tech3d .t3-list{overflow:auto;padding:8px 10px 16px;flex:1;min-height:0}
.tech3d .t3-grp{font-size:11px;text-transform:uppercase;letter-spacing:.9px;color:var(--mute);margin:12px 8px 4px;
    display:flex;align-items:center;gap:7px}
.tech3d .t3-dot{width:8px;height:8px;border-radius:50%;flex:none}
.tech3d .t3-item{display:flex;justify-content:space-between;gap:10px;width:100%;text-align:left;background:none;
    border:1px solid transparent;color:var(--text);padding:7px 9px;border-radius:7px;font:inherit;cursor:pointer}
.tech3d .t3-item:hover{background:#1a2228}
.tech3d .t3-item.t3-on{border-color:var(--accent);background:#17231d}
.tech3d .t3-item span:last-child{color:var(--mute);font-size:12px;white-space:nowrap}
.tech3d .t3-err{position:absolute;inset:0;display:none;align-items:center;justify-content:center;padding:30px;text-align:center;color:var(--mute)}
.tech3d .t3-sim.t3-min .t3-simSteps, .tech3d .t3-sim.t3-min .t3-simTxt, .tech3d .t3-sim.t3-min .t3-note{display:none}
.tech3d .t3-simStep{color:var(--accent);font-weight:500}

  @media (max-width:820px){.tech3d /* phone: toolbar, .tech3d 3D view and start-up panel stack, .tech3d nothing covers the board */
    .t3-app{grid-template-columns:1fr;grid-template-rows:auto auto;height:auto;min-height:100vh}
.tech3d .t3-stage{height:min(72vh,560px);display:flex;flex-direction:column}
.tech3d .t3-stage canvas{order:1;flex:1 1 0;min-height:0;width:100%;height:auto}
.tech3d .t3-bar{order:0;position:static;flex:none;flex-wrap:nowrap;overflow-x:auto;padding:8px 10px;gap:6px;
      border-bottom:1px solid var(--line);scrollbar-width:none;-webkit-overflow-scrolling:touch}
.tech3d .t3-bar::-webkit-scrollbar{display:none}
.tech3d .t3-bar>*{flex:none}
.tech3d .t3-bPow{order:-1}
.tech3d .t3-sim{order:2;position:static;flex:none;width:auto;border-radius:0;border-width:1px 0 0;padding:8px 12px;background:var(--panel)}
.tech3d .t3-sim .t3-note{display:none}
.tech3d .t3-simTxt{min-height:0;font-size:12.5px;margin:6px 0}
.tech3d .t3-simtop{margin-bottom:6px}
.tech3d aside{border-left:none;border-top:1px solid var(--line)}
.tech3d .t3-slide input{width:84px}
.tech3d .t3-btn{padding:5px 9px;font-size:12px}
.tech3d .t3-hint{display:none}

  }

