:root{font-size:15px;line-height:1.5;--trace:#df455a;--r1:#3785ae;--r2:#835a9d}
button{touch-action:manipulation}button:focus-visible,input:focus-visible{outline:3px solid #dfa32e;outline-offset:3px}button:disabled{cursor:default;opacity:.5}
.stage-strip{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:7px}
.stage-tab{min-width:0;min-height:44px;height:44px;padding:6px 9px;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:5px;border-radius:11px;line-height:1.2}
.stage-tab strong{font-size:13px}.stage-tab small{font-size:10px;margin-top:2px;white-space:nowrap}
.model-stage{display:grid;grid-template-columns:minmax(0,1fr) clamp(310px,25vw,355px);min-height:0;overflow:hidden}
.scene-panel{display:flex;flex-direction:column;gap:6px;min-width:0;min-height:0;padding:12px 16px;background:#fbfefd;border-right:1px solid #d7e5e3}
.scene-title{display:flex;justify-content:space-between;gap:9px;color:#67828a;font-size:12px;min-height:24px;align-items:center}
.scene-title strong{font-size:14px;color:#345a63}.scene-title span{font-variant-numeric:tabular-nums}
.drawing-scroll{display:flex;align-items:center;justify-content:center;min-height:0;min-width:0;flex:1;overflow:hidden}
.scene-board{flex:0 0 auto;position:relative}.nerve-scene{width:100%;height:100%;display:block;overflow:visible;font-family:inherit}
.nerve-scene text{fill:#244c5b;font-size:16px;pointer-events:none}.nerve-scene .small{fill:#65818a;font-size:15px}.nerve-scene .tiny{font-size:13px;fill:#647d88}.nerve-scene .label{font-size:19px;font-weight:600}.nerve-scene .section-label{font-size:17px;font-weight:600;fill:#315a65}
.nerve-leader{stroke:#b6a051;stroke-width:1.1}.muscle-leader{stroke:#b97e83;stroke-width:1.1}.figure-divider{fill:none;stroke:#dce8e4;stroke-width:1}
.nerve-rope{stroke:#bdab75;stroke-width:8;stroke-linecap:round}.nerve-rope-light{stroke:#e8dec3;stroke-width:2.6;stroke-linecap:round}
.inactive-post{stroke:#b9c7c4;stroke-width:3}.electrode-post{stroke-width:3.8;fill:none}.electrode-post.anode,.electrode-post.cathode{stroke:#b88a3f}.electrode-post.ground{stroke:#7c9c8c}
.r1{stroke:var(--r1)}.r2{stroke:var(--r2)}.contact-dot.r1{fill:var(--r1)}.contact-dot.r2{fill:var(--r2)}
.chamber-lead{stroke-width:1.6}.soma-source{opacity:.60}.soma{fill:#c1dacb;stroke:#7aa497;stroke-width:1.1}.dendrite{stroke:#75a69a;stroke-width:1.4;stroke-linecap:round}.source-fiber{stroke:#89b3c3;stroke-width:2.8}
.break-mark{stroke:#9cb5b6;stroke-width:1.1}.axon-base{stroke:#86b4c7;stroke-width:7;stroke-linecap:round}.excitation-wave{stroke-width:6.3;stroke-linecap:round;opacity:var(--excitation-opacity,0)}.recovery-wave{stroke-width:6.3;stroke-linecap:round;opacity:var(--excitation-opacity,0)}
.terminal-source{opacity:.68}.terminal-branch{stroke:#6da8bd;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.sheath-leader,.terminal-leader{stroke:#8eb2a6;stroke-width:1.1}.direction-line{stroke:#719d9a;stroke-width:1.4}
.circuit-wire{fill:none;stroke:#56747d;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}.instrument-box,.amplifier{fill:#fbfefe;stroke:#587983;stroke-width:1.7}.circuit-terminal{fill:#fff;stroke:#698992;stroke-width:1.6}
.probe-body{fill:#d0dfe2;stroke:#63818d;stroke-width:1.4}.probe-contact{stroke:#b58d49;stroke-width:3;stroke-linecap:round;fill:none}.record-wire{stroke-width:1.65;stroke-linejoin:round}.record-contact{fill:#f4fbfc;stroke-width:1.4}.record-projection{stroke-dasharray:3 5;stroke-width:1;opacity:.26}.record-name{font-size:16px;font-weight:600}
.stim-wire-pulse{stroke:#d99424;stroke-width:3;stroke-dasharray:7 8;fill:none}.stim-zig{stroke:#d99424;stroke-width:2.8}.nerve-scene [data-pulse-callout] text{fill:#a67220}
.scene-legend{display:flex;flex-wrap:wrap;gap:6px 15px;font-size:12px;color:#667f88;min-height:20px;align-items:center}
.scene-legend i{display:inline-block;width:18px;height:5px;background:#df455a;border-radius:4px;margin-right:5px;vertical-align:middle}.scene-legend .recovery-key{background:#80a4bc}.scene-legend .sheath-key{background:#c9ddcd;border:1px solid #90b3a2;height:10px}
.scene-note{color:#7b9195;font-size:11px;line-height:1.5;margin:0}.scene-note .mobile-note{display:none}
.record-panel{min-height:0;min-width:0;overflow-y:auto;padding:14px;background:#f7fbfa;scrollbar-width:thin;scrollbar-color:#abc5bf transparent}
.conditions-title{font-size:14px;margin:12px 0 9px}.condition-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.condition-grid button{min-height:47px;font-size:12px;line-height:1.4;padding:7px;border:1px solid #d4e5e3;border-radius:10px;background:#fff;cursor:pointer}.condition-grid button[aria-pressed=true]{color:#236f60;border-color:#79b6a7;background:#e8f6f1}
.voltage-card{margin:12px 0 0;padding:12px;background:#fff;border:1px solid #d7e5e1;border-radius:16px}.record-head{display:flex;justify-content:space-between;align-items:center;gap:5px}.record-head h2{margin:0;font-size:15px}.record-head small{font-size:11px;color:#7b8f95}.reading{white-space:nowrap;font-variant-numeric:tabular-nums}.reading strong{font:500 27px/1.1 "Segoe UI",sans-serif;color:#2d7a69}.reading span{font-size:11px;color:#7b8f95}
.record-plot{display:block;width:100%;height:210px;overflow:visible;margin:4px 0 0}.record-plot text{fill:#627e88;font:11px "Segoe UI","Microsoft YaHei",sans-serif}.plot-axis{stroke:#a7bbc1;stroke-width:1.1;fill:none}.plot-grid{stroke:#edf2f2;stroke-width:1;fill:none}.plot-reference{stroke:#bed1d6;stroke-width:2;stroke-dasharray:5 4;fill:none;stroke-linejoin:round}.plot-current{stroke:var(--trace);stroke-width:2.7;fill:none;stroke-linejoin:round;stroke-linecap:round}.plot-cursor{stroke:#a7b7be;stroke-width:1;stroke-dasharray:3 4;fill:none}.plot-point{fill:var(--trace);stroke:white;stroke-width:1.2}
.plot-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;color:#70858d}.plot-legend i{display:inline-block;width:20px;border-top:2px dashed #bed1d6;margin-right:5px;vertical-align:middle}.plot-legend .current{border-top:3px solid var(--trace)}
.record-values{display:flex;justify-content:space-between;gap:9px;border-top:1px solid #e3ebea;padding-top:9px;margin-top:10px;color:#6f8690;font-size:11px}.record-values span{flex:1;min-width:0;border-left:3px solid var(--r1);padding-left:7px}.record-values span+span{border-color:var(--r2)}.record-values b{display:block;color:#31556a;font-size:15px;font-variant-numeric:tabular-nums;font-weight:600}
.stage-status{margin-top:0;padding:12px 13px;background:#fff;border:1px solid #d7e5e1;border-radius:15px}.status-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.status-kicker{font-size:11px;color:#6c8590;font-weight:700;letter-spacing:.05em}.status-time{font-size:11px;color:#718890;font-variant-numeric:tabular-nums}.stage-status h2{font-size:19px;margin:5px 0 1px;line-height:1.3}.stage-status small{font-size:11px;color:#7b8f95}.stage-status p{font-size:12px;color:#637e85;line-height:1.7;margin:8px 0 0}
.condition-detail{font-size:12px;color:#6b848b;line-height:1.65;margin:11px 1px 8px}.stimulate-row{display:flex;align-items:center;gap:10px}.stimulate-row button{font:inherit;font-size:12px;background:#318b78;color:#fff;border:0;border-radius:8px;min-height:37px;padding:7px 12px;cursor:pointer}.stimulate-row span{font-size:11px;color:#7e9196}.sample-note{font-size:11px;line-height:1.55;color:#82959a;margin:10px 0 0}
.control-dock{gap:9px;padding:9px 10px}.control-button{font-size:13px;padding:0 11px;white-space:nowrap;min-height:41px}.control-group{gap:6px}.timeline-wrap{flex:1;min-width:95px;font-size:11px}.timeline-wrap>span{white-space:nowrap;flex:none}.timeline-wrap input{flex:1;width:0;min-width:20px}.timeline-wrap output{min-width:30px;white-space:nowrap;font-variant-numeric:tabular-nums}
.control-button[aria-pressed=true]:not(.is-primary){background:#eff8f4}.hide-labels .optional-label{visibility:hidden}.no-highlight .record-projection{opacity:.14}.load-status:empty{display:none}.load-status{font-size:12px;color:#a75f29}
.model-area:fullscreen,.is-css-fullscreen{background:#fff}.is-css-fullscreen{position:fixed!important;inset:0;z-index:9999}
.magnifier-source{fill:#fff9db;fill-opacity:.12;stroke:#a5af85;stroke-width:1.2}.magnifier-link{stroke:#a5b8a9;stroke-width:1;stroke-dasharray:3 3}.magnifier-rim{fill:#dde9e6;stroke:#66878d;stroke-width:1.8}.magnifier-handle{stroke:#728f95;stroke-width:10;stroke-linecap:round}.magnifier-handle-highlight{stroke:#c4d6d8;stroke-width:2.2;stroke-linecap:round}.nerve-scene .detail-label{font-size:14px;fill:#506d77;font-weight:500}.nerve-leader,.muscle-leader{stroke-width:1.4}
.electrode-post{stroke-width:.8;stroke:#688995;fill:url(#metal-probe)}.electrode-post.anode,.electrode-post.cathode{fill:url(#gold-contact);stroke:#a1793f}.electrode-post.ground{fill:#87a49b;stroke:#658a7c}.electrode-post.r1{fill:#5287a4;stroke:#34657d}.electrode-post.r2{fill:#977da6;stroke:#735286}.post-highlight{fill:none;stroke:#fff;stroke-opacity:.68;stroke-width:1;stroke-linecap:round}
.soma-source,.terminal-source{opacity:1}.source-fiber{stroke:#80a8c0;stroke-width:2.4;stroke-linecap:round;fill:none}.fiber-highlight{stroke:#d7e6ee;stroke-width:.7;stroke-linecap:round;fill:none}.break-cut{stroke:#fbfefd;stroke-width:8;fill:none}.break-edge{stroke:#93a9ac;stroke-width:1.5;fill:none;stroke-linecap:round}.break-edge-second{stroke:#c2d3d2;stroke-width:1}
.circuit-wire{stroke:#4c6570;stroke-width:2.4}.wire-gloss{stroke:#e8f4f5;stroke-width:.6;fill:none;stroke-linejoin:round;stroke-linecap:round;pointer-events:none}.instrument-box,.stimulator .circuit-unit{fill:url(#instrument-shade);stroke:#526c77;stroke-width:2;filter:url(#instrument-shadow)}.circuit-terminal{fill:#fff;stroke:#526c77;stroke-width:1.5}.probe-body{fill:url(#metal-probe);stroke:#536c78;stroke-width:1.5}.probe-contact{stroke:url(#gold-contact);stroke-width:4;fill:none;stroke-linecap:round}.record-wire{stroke-width:2.4;stroke-linejoin:round;stroke-linecap:round}.record-collar.r1{fill:#568daf;stroke:#397190;stroke-width:.4}.record-collar.r2{fill:#9270a4;stroke:#78548b;stroke-width:.4}.record-label-back{fill:#fbfefd;stroke:#d4e3e3;stroke-width:.7}.nerve-scene .record-name{font-size:15px;fill:#294f61}
.plot-baseline{stroke:#df9b37;stroke-width:1.45;fill:none;stroke-linejoin:round;stroke-linecap:round;opacity:.9}.plot-legend{gap:7px}.plot-legend .baseline{border-top:1.5px solid #df9b37}
.probe-contact{stroke:#b38442}
@media(max-width:1200px) and (min-width:861px){.model-stage{grid-template-columns:minmax(0,1fr) 300px}.scene-panel{padding:10px}.record-panel{padding:10px}.control-dock{gap:6px}.control-button{font-size:11px;padding:0 8px}.control-group{gap:4px}.stage-tab strong{font-size:12px}.stage-tab small{font-size:9px}.independent-model-heading h1 small{font-size:13px}.timeline-wrap{min-width:70px}.timeline-wrap>span{display:none}}
@media(max-width:860px){.independent-model-header{gap:10px}.independent-model-back{min-width:77px;padding:8px;border-radius:14px;gap:5px}.independent-model-back-icon{width:30px;height:26px}.independent-model-back-label{font-size:12px}.independent-model-kicker{font-size:10px}.independent-model-heading h1{font-size:22px;margin:3px 0 0}.independent-model-heading h1 small{display:block;font-size:10px;margin:3px 0 0}.model-area{border-radius:18px}.stage-strip{display:flex;overflow-x:auto;gap:6px;padding:7px}.stage-tab{flex:0 0 143px;min-height:44px}.model-stage{display:block;overflow-y:auto!important}.scene-panel{padding:11px 9px;min-height:0;height:auto;border-right:0;border-bottom:1px solid #d7e5e3}.drawing-scroll{display:block;overflow-x:auto;overflow-y:hidden;flex:none;min-height:0;height:426px}.scene-board{width:760px;height:425.6px}.scene-title{font-size:11px}.scene-title strong{font-size:13px}.scene-title span{font-size:10px}.scene-legend{font-size:11px;gap:5px 11px}.scene-note{font-size:11px}.scene-note .mobile-note{display:block}.record-panel{overflow:visible;padding:12px}.voltage-card{max-width:570px}.condition-grid{max-width:570px}.control-dock{flex-wrap:wrap;padding:7px;gap:5px}.control-group-primary,.control-group-view{width:100%;justify-content:space-between;margin:0;gap:5px}.control-button{min-height:35px;padding:0 8px;font-size:11px;border-radius:9px}.timeline-wrap{order:3;flex-basis:100%;min-height:22px}.timeline-wrap>span{min-width:4em}.stage-status{max-width:570px}}
@media(max-width:860px) and (orientation:landscape){.control-dock{flex-wrap:nowrap}.control-group-primary,.control-group-view{width:auto}.control-group-view{margin-left:auto}.timeline-wrap{order:0;flex-basis:auto;min-width:50px}.timeline-wrap>span,.timeline-wrap output{display:none}.control-button{font-size:10px;padding:0 6px}.scene-panel{height:auto}}
@media(max-width:360px){.independent-model-kicker{display:none}.independent-model-heading h1{font-size:20px}.independent-model-heading h1 small{font-size:9px}}
@media(pointer:coarse){.control-button,.condition-grid button,.stimulate-row button{min-height:44px}}
