:root{font-family:Arial,Helvetica,sans-serif;color:#202728;background:#e9ecef;font-synthesis:none;--ink:#202728;--muted:#5b666a;--line:#bdc4cc;--panel:#f9fafb;--green:#267548;--control:#2e709c;--red:#c12e2c;--amber:#8e5a08}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select{min-height:44px}button{cursor:pointer;border:1px solid #9da9ad;border-radius:5px;background:#f7f8fa;color:var(--ink);font-weight:700;transition:background .15s,border-color .15s}button:hover{background:#e2eaf1;border-color:#6c8194}button:focus-visible,select:focus-visible,input:focus-visible,svg [role=button]:focus-visible{outline:3px solid #d28b15;outline-offset:3px}button.active,button[aria-selected=true],.segmented button[aria-pressed=true]{background:#2e506d;color:#fff;border-color:#2e506d}button:disabled{cursor:default;opacity:.5}header{max-width:1580px;margin:auto;padding:28px 30px 24px;display:flex;justify-content:space-between;gap:24px;align-items:center}.airframe,.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:#50697e}.airframe{border:1px solid #8e9dab;border-radius:3px;padding:6px 9px;display:inline-block}h1{font-size:34px;letter-spacing:-1px;margin:12px 0 7px}header p{color:var(--muted);margin:0;font-size:14px}.stamp{text-align:right;font-size:11px;line-height:1.7;letter-spacing:1.3px;color:#66717c}.stamp b{display:block;font-size:12px;color:#394a59;letter-spacing:0}.stamp small{letter-spacing:0}.topbar{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 30px;display:flex;gap:16px;align-items:center;justify-content:space-between;background:#f2f4f6}.preset-list{display:flex;gap:7px;flex-wrap:wrap}.preset-list button{padding:9px 14px;font-size:12px}.outline{background:transparent;padding:8px 14px}main{max-width:1580px;margin:20px auto;display:grid;grid-template-columns:minmax(0,1fr) 348px;gap:18px;padding:0 24px}.visual-column{min-width:0}.diagram-board{position:sticky;top:12px;background:var(--panel);border:1px solid #b0b9c2;border-radius:8px;overflow:hidden;box-shadow:0 3px 12px #18283809}.board-head{display:flex;justify-content:space-between;align-items:center;padding:17px 20px 13px;gap:10px}.board-head h2{margin:5px 0 0;font-size:19px}.status-pill{font-size:11px;font-weight:700;background:#e3ebe5;color:#245b36;border:1px solid #9fbaa8;border-radius:20px;padding:7px 10px;text-align:center;max-width:180px}.status-pill.caution{color:#8a5213;background:#fbebd0;border-color:#d7b077}.diagram-tabs{display:flex;border-bottom:1px solid var(--line);padding:0 15px;gap:8px}.diagram-tabs button{border:0;background:transparent;border-radius:0;font-size:12px;padding:9px 12px;min-height:40px;border-bottom:3px solid transparent}.diagram-tabs button[aria-selected=true]{color:#2e506d;border-bottom:3px solid #2e506d;background:transparent}#diagram-scroll{width:100%;overflow:auto;background:linear-gradient(#f5f6f8,#edf0f3)}#diagram{display:block;width:100%;min-height:280px;max-height:calc(100svh - 365px);height:auto;aspect-ratio:1200/660}#diagram-scroll.enlarged #diagram{min-width:1150px;max-height:none;min-height:632px}svg text{font-family:Arial,Helvetica,sans-serif}svg .wire{fill:none;stroke-linejoin:round;stroke-linecap:round;stroke-width:5;stroke:#aab2b2}svg .wire.live{stroke:#267548}svg .wire.ctrl{stroke-width:2.5;stroke-dasharray:6 5;stroke:#a5b2b6}svg .wire.ctrl.live{stroke:#2e709c}svg .flow.live{stroke-dasharray:10 7;animation:flow 1.8s linear infinite}svg .component{cursor:pointer}svg .component .hit{fill:transparent;stroke:transparent}svg .component:hover .body,svg .component:focus-visible .body{stroke:#bf8a22;stroke-width:3}svg .selected .body{stroke:#ba871c;stroke-width:3}svg .body{fill:#f7f8fa;stroke:#6e7c89;stroke-width:2}svg .bus.body{fill:#e7eaee;stroke:#8b97a2}svg .bus.live{fill:#dbeade;stroke:#267548}svg .small{font-size:12px;fill:#4f5d6a}svg .title{font-size:14px;font-weight:800;fill:#26323c}svg .value{font-size:13px;font-weight:700;fill:#2c6444}svg .note{font-size:12px;fill:#5d6873}svg .fault-mark{stroke:#c12e2c;stroke-width:5;stroke-linecap:round;fill:none}svg .fault-shade{fill:#c12e2c17;stroke:#c12e2c;stroke-width:2;stroke-dasharray:5 4}svg .relay-contact{stroke:#3e4954;stroke-width:4;fill:none;stroke-linecap:round}svg .coil{stroke:#778592;stroke-width:2.5;fill:none}svg .coil.live{stroke:#2e709c}svg .joint{fill:#267548;stroke:none}svg .field{fill:#dde2e7;stroke:#73818f;stroke-width:2}.legend{display:flex;align-items:center;flex-wrap:wrap;padding:10px 15px;gap:10px 15px;border-top:1px solid #cbd2da;font-size:10px;color:#52606d;background:#f6f7f9}.legend span{display:flex;align-items:center;gap:5px}.legend button{margin-left:auto;min-height:32px;font-size:11px;padding:5px 8px}.line{width:21px;height:0;border-top:3px solid #aab2b2}.line.live{border-color:#267548}.line.control{border-color:#2e709c;border-top-style:dashed}.failed-key{color:#c12e2c;font-weight:900;font-size:18px;line-height:10px}.diagram-note{font-size:11px;line-height:1.5;color:#53616e;padding:8px 16px;background:#ebeff3}.meter-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 1.05fr;align-items:center;gap:5px;padding:10px 13px;border-top:1px solid #bcc5ce;background:#d7dce1}.gauge{min-width:0}.gauge svg{width:100%;height:132px;display:block}.meter-controls{padding:5px 12px}.meter-controls label{font-size:10px;letter-spacing:1px;font-weight:800;display:block;margin-bottom:5px}.meter-controls select{width:100%;background:#f7f8fa;border:1px solid #8d99a5;border-radius:4px;font-size:12px;padding:8px}.meter-controls p{font-size:10px;color:#4e5c69;line-height:1.4;margin:6px 0}.annunciators{display:flex;flex-wrap:wrap;gap:6px;padding:8px 14px;background:#bec5cc;min-height:35px}.annun{font-size:10px;font-weight:800;letter-spacing:.6px;color:#626d78;background:#aeb8c2;border:1px solid #8f9aa6;border-radius:3px;padding:5px 7px}.annun.on{color:#4b2b00;background:#efc15d;border-color:#ac7f24;box-shadow:inset 0 0 8px #fff5}.annun.red{color:#fff;background:#ad2727;border-color:#7e1b1b}.annun.flash{animation:blink .333s steps(1) infinite}.control-column{display:flex;flex-direction:column;gap:14px;min-width:0}.panel{background:var(--panel);border:1px solid #bdc5ce;border-radius:7px;padding:18px}.section-head{margin-bottom:16px}.section-head h2{font-size:18px;margin:5px 0 0}.label{font-size:10px;font-weight:800;letter-spacing:1px;display:block;margin-bottom:8px}.segmented{display:flex;gap:3px}.segmented button{flex:1;padding:8px 4px;font-size:11px;min-height:44px}.control-hint{font-size:11px;line-height:1.5;color:#5c6976;margin:9px 0 14px;min-height:32px}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:8px}.toggle{display:flex;gap:8px;align-items:center;font-size:12px;line-height:1.4;min-height:44px}.toggle input{width:18px;height:18px;accent-color:#2e658f;margin:0}.engine-controls{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0 10px}.engine-controls h3{font-size:11px;letter-spacing:1.2px;margin:0 0 8px}.range-label{display:flex;justify-content:space-between;gap:7px;font-size:11px;line-height:1.3;margin-top:13px;margin-bottom:8px}.range-label output{font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}input[type=range]{width:100%;height:28px;accent-color:#2e658f;display:block}.start-button{width:100%;margin-top:9px;background:#344758;color:#fff;border-color:#253949;font-size:11px}.start-button.active{background:#96752c;border-color:#70500e}.wide{width:100%;font-size:11px}.fine{font-size:10px;color:#64717e;line-height:1.5;margin:12px 0 0}.inspector{border-left:4px solid #b28a3d}.inspector .section-head{margin-bottom:11px}.inspector p{font-size:12px;line-height:1.6;margin:10px 0}.component-status{font-size:11px;font-weight:800;letter-spacing:.5px;color:#2d6a41}.detail-note{font-size:11px;color:#64717e;line-height:1.55;background:#e9eef3;border-radius:4px;padding:10px;margin-top:11px}#inspect-actions{display:flex;flex-wrap:wrap;gap:7px}#inspect-actions button{min-height:44px;padding:8px 12px;font-size:11px}.danger{border-color:#ae5550;color:#9d302c;background:#fff5f2}.danger.active{background:#a3332c;color:white}.lesson-area,.reference-area{max-width:1532px;margin:22px auto;background:#f6f7f9;border:1px solid #bec7d0;border-radius:7px;padding:24px}.explanations{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.explanation{padding:13px;background:#e7edf3;border-radius:5px;font-size:12px;line-height:1.6;border-left:3px solid #7b94aa}.scenario-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin-top:20px}.scenario-grid button{text-align:left;padding:15px}.scenario-grid b{display:block;font-size:13px;margin-bottom:8px}.scenario-grid span{font-size:11px;font-weight:400;color:#586878;line-height:1.5;display:block}details summary{font-size:14px;font-weight:700;cursor:pointer;min-height:28px}details[open] summary{margin-bottom:16px}.scope-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}.scope-grid h3{font-size:13px}.scope-grid p{font-size:11px;line-height:1.7;color:#5e6c7a}footer{max-width:1580px;margin:auto;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 30px 32px;font-size:11px;color:#5d6b78}a{color:#2d6088;text-underline-offset:3px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#293f52;color:white;padding:12px 19px;border-radius:6px;font-size:12px;box-shadow:0 5px 20px #0002;max-width:90vw;z-index:15;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}@keyframes flow{to{stroke-dashoffset:-34}}@keyframes blink{50%{opacity:.4}}@media(min-width:1600px){#diagram{max-height:670px}.gauge svg{height:150px}}@media(max-width:1100px){main{grid-template-columns:minmax(0,1fr) 310px;padding:0 14px;gap:12px}.panel{padding:14px}.meter-controls{padding:4px}.gauge svg{height:105px}.legend{gap:8px;font-size:9px}.diagram-tabs{padding:0 8px;gap:2px}.diagram-tabs button{font-size:10px;padding:8px}.board-head{padding:13px}.board-head h2{font-size:16px}.status-pill{font-size:9px}#diagram{min-height:260px}.lesson-area,.reference-area{margin-left:14px;margin-right:14px}}@media(max-width:800px){header{padding:19px 17px 15px}h1{font-size:27px}.stamp{display:none}header p{font-size:12px}.topbar{padding:10px 14px;align-items:flex-start;gap:7px}.preset-list{gap:4px}.preset-list button{font-size:10px;padding:6px 8px;min-height:38px}#reset{font-size:10px;min-width:62px;padding:6px}main{display:flex;flex-direction:column;padding:0;margin-top:10px;gap:12px}.visual-column{position:sticky;top:0;z-index:5;width:100%;background:#e9ecef}.diagram-board{position:static;border-radius:0;box-shadow:0 5px 12px #1828381a}.board-head{padding:7px 11px}.board-head .eyebrow{font-size:8px}.board-head h2{font-size:14px;margin-top:3px}.status-pill{padding:5px 8px;font-size:8px}.diagram-tabs{padding:0 8px}.diagram-tabs button{min-height:34px;font-size:10px;padding:6px 9px}#diagram{min-height:0;height:auto;max-height:31svh;aspect-ratio:1200/660}.legend{padding:5px 9px;gap:6px;font-size:8px}.legend .line{width:13px}.legend button{font-size:9px;min-height:27px;padding:4px}.diagram-note{display:none}.meter-row{padding:3px 5px;gap:1px}.gauge svg{height:76px}.meter-controls{padding:3px}.meter-controls label{font-size:7px;letter-spacing:.3px}.meter-controls select{min-height:30px;font-size:10px;padding:4px}.meter-controls p{display:none}.annunciators{padding:4px 7px;min-height:24px;gap:4px}.annun{font-size:7px;padding:3px 5px}.control-column{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 12px}.panel{padding:15px;min-width:0}.panel h2{font-size:16px}.panel .eyebrow{font-size:9px}.inspector{order:0}.lesson-area,.reference-area{margin:12px;padding:17px}.explanations{grid-template-columns:1fr}.scenario-grid{grid-template-columns:1fr 1fr}.scope-grid{grid-template-columns:1fr;gap:6px}footer{padding:15px;font-size:10px}#diagram-scroll.enlarged{max-height:31svh}#diagram-scroll.enlarged #diagram{height:550px;min-height:550px;min-width:1000px;max-height:none}.lesson-area{scroll-margin-top:60svh}}
@media(max-width:520px){.control-column{grid-template-columns:1fr}.board-head .eyebrow{display:none}.board-head h2{font-size:13px}.status-pill{max-width:130px}.gauge svg{height:68px}.legend{font-size:7px}.legend button{font-size:8px}.legend span{gap:3px}.scenario-grid{grid-template-columns:1fr 1fr;gap:7px}.scenario-grid button{padding:12px}.scenario-grid b{font-size:12px}.visual-column{scroll-margin-top:0}header{padding-top:15px}.airframe{font-size:9px}h1{font-size:25px}.topbar{padding:8px}.preset-list button{font-size:9px}.legend .line{width:10px}}
@media(max-height:520px) and (orientation:landscape){header,.topbar{display:none}main{display:grid;grid-template-columns:minmax(0,1fr) 300px;margin-top:0;padding:0;gap:7px}.visual-column{position:sticky;top:0;align-self:start}.diagram-board{position:static}.control-column{display:flex;padding:7px}.board-head{padding:5px 8px}.board-head .eyebrow{display:none}.diagram-tabs button{min-height:28px;padding:3px 8px}#diagram{max-height:calc(100svh - 175px);min-height:150px}.meter-row{padding:0 5px}.gauge svg{height:55px}.annunciators{padding:3px;min-height:20px}.legend{padding:3px 7px}.legend button{min-height:23px}.diagram-note{display:none}.panel{padding:12px}.meter-controls select{min-height:28px}.meter-controls label{font-size:7px}.meter-controls p{display:none}.status-pill{font-size:8px}}
@media(prefers-reduced-motion:reduce){svg .flow.live{animation:none}.annun.flash{animation:none}*{scroll-behavior:auto!important}}

#component-picker{display:block;width:100%;min-height:44px;margin:0 0 12px;border:1px solid #aab6c2;border-radius:4px;padding:8px;background:#f5f7fa;font-size:12px;color:#30495e}
