:root{--bg:#121416;--panel:#1b1e21;--panel-2:#23272b;--border:#30363c;--grid:#2b3035;--axis:#3a4147;--text:#e4e7ea;--text-muted:#9aa3ab;--text-dim:#6f7880;--series:#4ea8de;--ok:#3fb27f;--warn:#e0a526;--alarm:#e5484d;--info:#8fa3b8;--sim:#b49cf0;--tbd:#e06c6c;--radius:6px;--mono:ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:Noto Sans TC,PingFang TC,Microsoft JhengHei,system-ui,-apple-system,Segoe UI,sans-serif;font-size:15px;line-height:1.55}*{box-sizing:border-box}body{min-width:320px;margin:0}h1,h2,h3{margin:0;font-weight:600}h2{letter-spacing:.02em;font-size:.95rem}h3{color:var(--text);margin-bottom:6px;font-size:.95rem}p{margin:0 0 8px}a{color:var(--series)}.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}.muted{color:var(--text-muted)}.small{font-size:.82rem}.block{display:block}.app{flex-direction:column;min-height:100vh;display:flex}.topbar{border-bottom:1px solid var(--border);background:#0d0f10;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding:10px 20px;display:flex}.brand{align-items:center;gap:12px;display:flex}.brand-mark{fill:none;width:30px;height:30px;stroke:var(--text-muted);stroke-width:2px}.brand-mark path{stroke:var(--series);stroke-linecap:round}.brand-title{font-size:1.05rem;font-weight:700}.brand-sub{color:var(--text-muted);font-size:.8rem}.tabs{flex-wrap:wrap;gap:4px;display:flex}.tab{color:var(--text-muted);border:1px solid #0000;border-radius:4px;padding:8px 14px;font-size:.9rem;text-decoration:none}.tab:hover{color:var(--text);background:var(--panel)}.tab.active{color:var(--text);background:var(--panel-2);border-color:var(--border)}.sim-banner{color:#d9d0f2;background:repeating-linear-gradient(135deg,#1f1a2b 0 10px,#1b1726 10px 20px);border-bottom:1px solid #3d3355;align-items:center;gap:12px;padding:8px 20px;font-size:.86rem;display:flex}.sim-badge{border:1px solid var(--sim);color:var(--sim);letter-spacing:.05em;border-radius:3px;flex:none;padding:2px 8px;font-size:.78rem;font-weight:700}.sim-tag{border:1px solid var(--sim);color:var(--sim);border-radius:3px;padding:0 6px;font-size:.74rem;line-height:1.6;display:inline-block}.tbd-tag{color:var(--tbd);font-size:.82rem;font-style:italic}.content{flex:1;width:100%;max-width:1600px;margin:0 auto;padding:16px 20px 24px}.footer{border-top:1px solid var(--border);color:var(--text-dim);flex-wrap:wrap;justify-content:space-between;gap:12px;padding:10px 20px;font-size:.78rem;display:flex}.panel{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);min-width:0;padding:14px 16px}.panel-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;display:flex}.panel-head h2{color:var(--text-muted);text-transform:none}.status-strip{background:var(--border);border:1px solid var(--border);border-radius:var(--radius);grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;margin-bottom:14px;display:grid;overflow:hidden}.status-cell{background:var(--panel);align-items:center;gap:10px;min-width:0;padding:10px 14px;display:flex}.cell-label{color:var(--text-muted);white-space:nowrap;font-size:.76rem}.cell-value{font-variant-numeric:tabular-nums;white-space:nowrap;text-overflow:ellipsis;font-size:.98rem;font-weight:600;overflow:hidden}.cell-value.small{font-size:.82rem;font-weight:500}.lamp{border:2px solid #0008;border-radius:50%;flex:none;width:14px;height:14px}.conn-ok .lamp{background:var(--ok);box-shadow:0 0 0 3px #3fb27f33}.conn-ok .cell-value{color:var(--ok)}.conn-pending .lamp{background:var(--warn);animation:1s steps(2,start) infinite blink}.conn-pending .cell-value{color:var(--warn)}.conn-stale .lamp{background:var(--warn)}.conn-stale .cell-value{color:var(--warn)}.conn-off .lamp{border-color:var(--text-dim);background:0 0}.conn-off .cell-value{color:var(--text-muted)}.conn-off{background:#241b1c}.fresh-stale{background:#2a2214}.fresh-stale .cell-value{color:var(--warn)}@keyframes blink{to{visibility:hidden}}@media (prefers-reduced-motion:reduce){.conn-pending .lamp{animation:none}}.bars{flex:none;width:28px;height:20px}.bar-off{fill:#3a4147}.bar-on{fill:var(--text)}.bar-on.q-poor{fill:var(--alarm)}.bar-on.q-fair{fill:var(--warn)}.q-text-poor{color:var(--alarm)}.q-text-fair{color:var(--warn)}.alarm-banner{border-radius:var(--radius);border:1px solid;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:14px;padding:10px 16px;font-size:.92rem;display:flex}.alarm-banner strong{font-size:1rem}.alarm-high{border-color:var(--alarm);color:#ffd7d8;background:#3a1517}.alarm-high strong{color:#ff8f92}.alarm-low{border-color:var(--warn);color:#fbe7bb;background:#33280f}.alarm-low strong{color:var(--warn)}.grid-main{grid-template-columns:minmax(320px,420px) minmax(0,1fr);gap:14px;margin-bottom:14px;display:grid}.grid-controls{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:14px;display:grid}.readout{align-items:baseline;gap:10px;padding:4px 0 2px;display:flex}.readout-value{font-family:var(--mono);font-variant-numeric:tabular-nums;letter-spacing:-.02em;font-size:4rem;font-weight:600;line-height:1}.readout-unit{color:var(--text-muted);font-size:1.4rem}.readout-high .readout-value{color:#ff8f92}.readout-low .readout-value{color:var(--warn)}.readout-inactive .readout-value{color:var(--text-dim)}.readout-sub{color:var(--text-muted);flex-wrap:wrap;align-items:center;gap:6px 14px;margin-bottom:8px;font-size:.8rem;display:flex}.seg{border:1px solid var(--border);border-radius:4px;display:inline-flex;overflow:hidden}.seg-btn{color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border:0;min-width:52px;padding:6px 14px;font-size:.86rem}.seg-btn+.seg-btn{border-left:1px solid var(--border)}.seg-btn.active{background:var(--text);color:#111;font-weight:700}.seg-btn:focus-visible,.btn:focus-visible,.scenario:focus-visible,.tab:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--series);outline-offset:2px}.gauge{width:100%;max-width:380px;margin:0 auto;display:block}.g-track{fill:none;stroke:#2b3035;stroke-width:18px}.g-zone-low{fill:none;stroke:var(--warn);stroke-opacity:.55;stroke-width:18px}.g-zone-high{fill:none;stroke:var(--alarm);stroke-opacity:.6;stroke-width:18px}.g-value{fill:none;stroke:var(--series);stroke-width:6px;stroke-linecap:round}.g-alarm .g-value{stroke:#ff8f92}.g-inactive .g-value{stroke:var(--text-dim);stroke-dasharray:4 6}.g-tick-major{stroke:var(--text);stroke-width:2px}.g-tick-minor{stroke:var(--text-dim);stroke-width:1px}.g-label{fill:var(--text-muted);font-size:13px;font-family:var(--mono)}.g-needle{stroke:var(--text);stroke-width:3px;stroke-linecap:round}.g-alarm .g-needle{stroke:#ff8f92}.g-inactive .g-needle{stroke:var(--text-dim)}.g-hub{fill:var(--panel-2);stroke:var(--text);stroke-width:2px}.g-unit{fill:var(--text-muted);font-size:16px}.g-state{fill:var(--text);font-size:15px;font-weight:600}.g-alarm .g-state{fill:#ff8f92}.g-inactive .g-state{fill:var(--warn)}.g-foot{fill:var(--text-dim);font-size:11px}.trend-panel{flex-direction:column;display:flex}.trend{flex:1;min-height:340px;position:relative}.trend-overlay{text-align:center;border:1px solid var(--warn);color:#fbe7bb;background:#2a2214ee;border-radius:4px;padding:10px 14px;font-size:.9rem;position:absolute;inset:40% 10% auto}.stats{background:var(--border);border:1px solid var(--border);border-radius:4px;grid-template-columns:repeat(4,minmax(0,1fr)) auto;align-items:stretch;gap:1px;margin-top:12px;display:grid;overflow:hidden}.stat{background:var(--panel-2);flex-direction:column;padding:8px 12px;display:flex}.stat-label{color:var(--text-muted);font-size:.76rem}.stat-value{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:1.3rem;font-weight:600}.stats .btn{border:0;border-radius:0}.btn{font:inherit;cursor:pointer;background:var(--panel-2);border:1px solid var(--border);color:var(--text);border-radius:4px;min-height:38px;padding:8px 12px;font-size:.88rem}.btn:hover:not(:disabled){border-color:var(--text-muted)}.btn:disabled{opacity:.4;cursor:not-allowed}.btn-primary{border-color:var(--series);background:#1f3b52}.btn-ghost{color:var(--text-muted);background:0 0}.btn-grid{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px;display:grid}.field{color:var(--text-muted);flex-direction:column;gap:4px;margin-bottom:10px;font-size:.82rem;display:flex}.field input,.field select{font:inherit;color:var(--text);border:1px solid var(--border);min-height:38px;font-size:.92rem;font-family:var(--mono);background:#111315;border-radius:4px;padding:7px 10px}.field select{font-family:inherit}.row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.check{cursor:pointer;align-items:center;gap:6px;font-size:.88rem;display:inline-flex}.check input{width:18px;height:18px;accent-color:var(--series)}.form-error{color:#ff8f92;margin:8px 0 0;font-size:.84rem}.hint{color:var(--text-muted);margin-top:8px;font-size:.8rem}.scenario-list{flex-direction:column;gap:6px;display:flex}.scenario{text-align:left;font:inherit;color:var(--text);background:var(--panel-2);border:1px solid var(--border);cursor:pointer;border-left:4px solid #0000;border-radius:4px;flex-direction:column;gap:2px;padding:8px 10px;display:flex}.scenario.active{border-left-color:var(--sim);background:#231f2e}.scenario-name{font-size:.9rem;font-weight:600}.scenario-desc{color:var(--text-muted);font-size:.76rem}.log{max-height:260px;margin:0;padding:0;font-size:.82rem;list-style:none;overflow:auto}.log li{border-bottom:1px solid var(--grid);grid-template-columns:70px 1fr;gap:8px;padding:4px 0;display:grid}.log time{color:var(--text-dim)}.log-warn span{color:var(--warn)}.log-alarm span{color:#ff8f92;font-weight:600}.param-grid{grid-template-columns:max-content 1fr max-content 1fr;gap:6px 18px;margin:10px 0 0;font-size:.85rem;display:grid}.param-grid dt{color:var(--text-muted)}.param-grid dd{font-family:var(--mono);margin:0}.doc-page{flex-direction:column;gap:14px;display:flex}.diagram-wrap{border:1px solid var(--grid);background:#15181a;border-radius:4px;padding:8px;overflow-x:auto}.diagram{width:100%;min-width:760px;display:block}.cols-3{color:var(--text-muted);grid-template-columns:repeat(3,1fr);gap:18px;margin-top:14px;font-size:.88rem;display:grid}.cols-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;font-size:.88rem;display:grid}.steps{color:var(--text-muted);margin:0;padding-left:20px;font-size:.88rem}.steps li{margin-bottom:4px}.code{border:1px solid var(--grid);font-family:var(--mono);color:#cfd6dc;background:#0f1112;border-radius:4px;padding:10px 12px;font-size:.8rem;overflow-x:auto}.table-wrap{overflow-x:auto}.spec-table{border-collapse:collapse;width:100%;min-width:640px;font-size:.86rem}.spec-table th,.spec-table td{text-align:left;border-bottom:1px solid var(--border);vertical-align:top;padding:8px 10px}.spec-table th{color:var(--text-muted);background:var(--panel-2);font-weight:600}.check-list{margin:0;padding:0;font-size:.9rem;list-style:none}.check-list li{border-bottom:1px solid var(--grid);gap:10px;padding:6px 0;display:flex}.ck{border-radius:2px;flex:none;width:14px;height:14px;margin-top:4px}.ck-done{background:var(--ok)}.ck-pending{border:2px solid var(--warn)}.d-enclosure{fill:#1a1d20;stroke:#8a949c;stroke-width:2px;stroke-dasharray:10 6}.d-enclosure-label{fill:var(--text-muted);font-size:14px}.d-box{fill:#23272b;stroke:#5b656e;stroke-width:1.5px}.d-external{fill:#1c2228;stroke:#4a5560}.d-mcu{stroke:var(--series)}.d-title{fill:var(--text);font-size:15px;font-weight:600}.d-sub{fill:var(--text-muted);font-size:12.5px}.d-opt{fill:#cfd6dc;font-size:12.5px;font-family:var(--mono)}.d-tbd{fill:var(--tbd);font-size:12.5px;font-style:italic}.d-foot{fill:var(--text-dim);font-size:12px}.d-wire{stroke:var(--series);stroke-width:2px;fill:none}.d-cable{stroke:#8a949c;stroke-width:4px;fill:none}.d-power{stroke:var(--warn);stroke-width:2px;fill:none;stroke-dasharray:6 4}.d-power-thin{stroke-width:1.5px}.d-arrowhead{fill:var(--text-muted)}.d-jack{fill:#111;stroke:#8a949c}.d-pin{stroke:#c9a24a;stroke-width:2px}.d-antenna{fill:var(--series)}.d-wave{fill:none;stroke:var(--series);stroke-width:2px;opacity:.7}.d-screen{fill:#0f1112;stroke:#3a4147}.d-trace{fill:none;stroke:var(--series);stroke-width:2px}.d-hatch{stroke:#3a4147;stroke-width:2px}.e-view-title{fill:var(--text);font-size:15px;font-weight:600}.e-body{fill:#4b535a;stroke:#8a949c;stroke-width:1.5px}.e-face{fill:#5a636b;stroke:#6f7980}.e-inside{fill:#1f2326;stroke:#6f7980}.e-led{stroke:#111;stroke-width:1.5px}.e-led-power{fill:var(--ok)}.e-led-wifi{fill:var(--series)}.e-label-area{fill:#6b747b;stroke:#8a949c;stroke-dasharray:4 3}.e-port{fill:#15181a;stroke:#c9ced3;stroke-width:1.5px}.e-port-tab{fill:#3a4147}.e-port-pin{fill:#c9a24a}.e-antenna{stroke:#15181a;stroke-width:8px;stroke-linecap:round}.e-antenna-cap{fill:#15181a}.e-rail{fill:#4b535a;stroke:#6f7980}.e-note{fill:#e4e7ea;font-size:12.5px}.e-inside~.e-note,.e-part~.e-note{fill:#e4e7ea}.e-tbd{fill:#ff9a9a;font-size:12px;font-style:italic}.e-foot{fill:var(--text-muted);font-size:12.5px}.e-part{fill:#2b3136;stroke:#8a949c}.e-part-mcu{stroke:var(--series);stroke-width:2px}.e-part-adc{stroke:#c9a24a}.e-keepout{fill:url(#keepout);stroke:var(--warn);stroke-dasharray:4 3}.e-keepout-line{stroke:var(--warn);stroke-width:1.5px;opacity:.6}.e-wire{stroke:#c9a24a;stroke-width:2px;fill:none}.e-rf{stroke:var(--series);stroke-dasharray:4 3}.e-panel-edge{stroke:#c9ced3;stroke-width:4px}.e-dim line,.e-dim-line{stroke:var(--text-muted);stroke-width:1px}.e-dim text{fill:var(--tbd);font-size:12px;font-style:italic}.e-dim-head{fill:var(--text-muted)}@media (width<=1280px){.grid-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.status-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=900px){.grid-main,.cols-3,.cols-2{grid-template-columns:1fr}.param-grid{grid-template-columns:max-content 1fr}}@media (width<=640px){:root{font-size:14px}.content{padding:10px}.topbar{padding:8px 10px}.tabs{width:100%}.tab{text-align:center;flex:1;padding:8px 6px}.sim-banner{align-items:flex-start;padding:8px 10px}.status-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.hide-sm{display:none}.grid-controls{grid-template-columns:1fr}.readout-value{font-size:3.2rem}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stats .btn{grid-column:span 2}.trend{min-height:260px}.status-cell{padding:8px 10px}}.span-2{grid-column:span 2}.live-tag{border:1px solid var(--ok);color:var(--ok);border-radius:3px;padding:0 6px;font-size:.74rem;line-height:1.6;display:inline-block}.conn-chip-wrap{align-items:center;gap:10px;margin-left:auto;display:flex}.conn-chip{white-space:nowrap;border:1px solid;border-radius:999px;padding:3px 10px;font-size:.8rem}.chip-sim{color:var(--sim);border-color:var(--sim)}.chip-live{color:var(--ok);border-color:var(--ok)}.modal-backdrop{z-index:50;background:#000a;justify-content:center;align-items:flex-start;padding:4vh 12px;display:flex;position:fixed;inset:0;overflow-y:auto}.modal{background:var(--panel);border:1px solid var(--border);border-radius:8px;width:min(880px,100%);box-shadow:0 20px 60px #000c}.modal-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:14px 18px;display:flex}.modal-head h2{color:var(--text);font-size:1.05rem}.modal-body{padding:16px 18px 20px}.mode-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;display:grid}.mode-card{text-align:left;font:inherit;color:var(--text);background:var(--panel-2);border:1px solid var(--border);cursor:pointer;border-radius:6px;flex-direction:column;gap:4px;min-height:44px;padding:14px;display:flex}.mode-card:hover{border-color:var(--series)}.mode-icon{fill:none;width:48px;height:32px;stroke:var(--series);stroke-width:2.5px;stroke-linecap:round;stroke-linejoin:round}.mode-icon circle{fill:var(--series)}.mode-title{font-weight:700}.mode-desc{color:var(--text-muted);font-size:.84rem}.mode-needs{color:var(--text-dim);font-size:.76rem}.mode-unsupported{color:var(--warn)}.back{margin-bottom:10px}.wiz-flow{flex-direction:column;gap:12px;display:flex}.wiz-steps{color:var(--text-dim);flex-wrap:wrap;gap:6px;margin:0 0 4px;padding:0;font-size:.84rem;list-style:none;display:flex}.wiz-steps li{border:1px solid var(--border);border-radius:999px;align-items:center;gap:6px;padding:4px 10px 4px 4px;display:flex}.wiz-steps li.active{color:var(--text);border-color:var(--series)}.wiz-steps li.done{color:var(--ok);border-color:#2e6b4f}.wiz-num{background:var(--panel-2);border-radius:50%;place-items:center;width:22px;height:22px;font-size:.78rem;font-weight:700;display:inline-grid}.wiz-steps li.active .wiz-num{background:var(--series);color:#08131c}.topo-grid{grid-template-columns:1fr 1fr;gap:10px;margin:8px 0 12px;display:grid}.topo{text-align:left;font:inherit;color:var(--text);background:var(--panel-2);border:1px solid var(--border);cursor:pointer;border-left:4px solid #0000;border-radius:6px;flex-direction:column;gap:6px;padding:12px;display:flex}.topo.active{border-left-color:var(--series);background:#1b2833}.illus{width:100%;max-width:260px;height:auto}.il-box{fill:#23272b;stroke:#8a949c;stroke-width:1.5px}.il-mcu{stroke:var(--series)}.il-text{fill:var(--text-muted);font-size:11px}.il-strong{fill:var(--text);font-weight:700}.il-wave{fill:none;stroke:var(--series);stroke-width:2.5px;stroke-linecap:round}.il-cable{fill:none;stroke:#8a949c;stroke-width:4px}.il-btn{fill:var(--series)}.il-btn-ghost{fill:none;stroke:#8a949c}.illus-row{grid-template-columns:260px 1fr;align-items:center;gap:16px;display:grid}.perm-box{background:var(--panel-2);border:1px solid var(--border);border-radius:6px;grid-template-columns:220px 1fr;align-items:center;gap:14px;margin-bottom:10px;padding:12px;display:grid}.env-checks{margin:8px 0 12px;display:block}.env-row{border-bottom:1px solid var(--grid);grid-template-columns:190px 1fr;gap:10px;padding:4px 0;font-size:.86rem;display:grid}.env-row dt{color:var(--text-muted)}.env-row dd{overflow-wrap:anywhere;margin:0}.env-row dd.good{color:var(--ok)}.env-row dd.bad{color:var(--warn)}.fallbacks{flex-wrap:wrap;gap:12px;margin-top:8px;display:flex}.ck-fail{background:var(--alarm)}.wiz-test .check-list{margin-bottom:12px}.ct-form{grid-template-columns:minmax(0,1fr) 100px 140px;gap:10px;display:grid}.ct-predict{border:1px solid var(--border);border-radius:4px;margin:6px 0 12px;padding:8px 12px;font-size:.86rem}.ct-predict[data-allowed=true]{background:#16241d;border-color:#2e6b4f}.ct-predict[data-allowed=false]{border-color:var(--alarm);background:#2a1416}.ct-hint{border-left:4px solid var(--warn);color:#fbe7bb;background:#2a2214;margin-top:12px;padding:10px 12px;font-size:.88rem}.ct-hint a{color:#fbe7bb}.ct-log{max-height:240px;margin:0;padding:0;font-size:.76rem;list-style:none;overflow:auto}.ct-log li{border-bottom:1px solid var(--grid);grid-template-columns:64px 34px 1fr;gap:8px;padding:3px 0;display:grid}.ct-log time{color:var(--text-dim)}.ct-log span{overflow-wrap:anywhere}.l-tx b{color:var(--series)}.l-rx b{color:var(--ok)}.dev-kv{margin:0 0 10px;display:block}.dev-kv .env-row{grid-template-columns:90px 1fr}.cal .row{align-items:flex-end;margin-top:8px}.cal .field{margin:0}.comm{margin-top:10px;font-size:.85rem}.comm summary{cursor:pointer;color:var(--text-muted)}@media (width<=760px){.topo-grid,.illus-row,.perm-box{grid-template-columns:1fr}.ct-form{grid-template-columns:1fr 1fr}.ct-form .grow{grid-column:span 2}.env-row{grid-template-columns:1fr;gap:2px}.conn-chip-wrap{justify-content:space-between;width:100%;margin-left:0}}
