/* Mature shell geometry is copied from resting-action-potential@2.4.0. */
.model-stage{grid-template-columns:minmax(0,1fr) 320px;min-height:0;overflow:hidden}
.stage-tab{height:44px;min-height:44px}.stage-tab strong{font-size:13px}.stage-tab small{font-size:10px}
.scene-panel{display:flex;flex-direction:column;gap:5px;padding:13px 16px 10px;min-width:0;min-height:0;height:auto;overflow:hidden}
.scene-title{display:flex;align-items:center;justify-content:space-between;font-size:13px;min-height:24px;color:#68838c;gap:8px}
.scene-title strong{font-size:14px;color:#335865}.scene-title span{font-size:12px}
.drawing-scroll{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;min-width:0;overflow:hidden}
.scene-board{position:relative;flex:0 0 auto;isolation:isolate}
.scene-board>svg,.scene-board>canvas{position:absolute;inset:0;display:block;width:100%;height:100%}
.scene-underlay{z-index:0}.protein-canvas{z-index:1;pointer-events:none}.scene-overlay{z-index:2}
.scene-board svg{overflow:visible;font-family:inherit;color:#244c5b}
.scene-board text{fill:#244c5b}.scene-board .label{font-size:19px;font-weight:700}.scene-board .small{font-size:15px;fill:#71888f}
.scene-board .site-name{font-size:15px;font-weight:700}.scene-board .site-status{font-size:12px;fill:#6b8090}
.scene-board .charge{font-size:28px;font-weight:800;text-anchor:middle;fill:#38649b}.scene-board .charge.is-positive{fill:#b66332}
.scene-board .ion text{font-size:9px;font-weight:700;fill:#fff;text-anchor:middle}.scene-board .background-ion{opacity:.40}
.scene-board .flow-arrow{fill:none;stroke-width:1.8;stroke-linecap:round}
.scene-board .current-arrow{fill:none;stroke:#bf7b20;stroke-width:2.8;stroke-linecap:round;stroke-dasharray:6 5}
.scene-board .current-glow{fill:none;stroke:#f4a64b;stroke-width:11;stroke-linecap:round;opacity:.55;pointer-events:none}
.scene-board .current-dot{fill:#bd8d24}
.scene-board .circuit-wire{fill:none;stroke:#526f7c;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.scene-board .circuit-unit,.scene-board .instrument-box{fill:#fbfefe;stroke:#526f7c;stroke-width:2}
.scene-board .probe-body{fill:#cad9df;stroke:#627f8b;stroke-width:1.4}.scene-board .probe-contact{stroke:#b68b46;stroke-width:3.2;stroke-linecap:round;fill:none}
.scene-board .circuit-terminal{fill:#fbfefe;stroke:#698590;stroke-width:1.6}
.scene-board .site-hit{fill:transparent;cursor:pointer;pointer-events:all}.scene-board .site-hit:focus{stroke:#288c78;stroke-width:2;outline:none}
.scene-board .selected-site{fill:#e2f4ee;stroke:#63a999;stroke-width:1.3}
.scene-legend{font-size:12px;gap:5px 13px;line-height:1.5;flex:0 0 auto;min-height:20px}
.scene-note{font-size:11px;line-height:1.5;min-height:17px;color:#78939a;margin:0;flex:0 0 auto}
.gold-line{width:19px;height:0;display:inline-block;border-top:2px dashed #bf7b20;box-shadow:0 2px 4px #efa23f55}.recovery-swatch{display:inline-block;width:14px;height:11px;background:repeating-linear-gradient(135deg,#eedff7,#eedff7 3px,#9a72b2 4px,#eedff7 5px)}
.record-panel{padding:13px;min-width:0;overflow-y:auto}.stage-status{padding:14px;margin-bottom:10px}.stage-status h2{font-size:20px;line-height:1.35}.stage-status p{font-size:12px;line-height:1.8}.stage-status small{font-size:12px}.status-time{font-variant-numeric:tabular-nums}
.voltage-card{padding:13px 10px 9px}.record-head h2{font-size:16px}.reading strong{font-size:27px}.record-plot{display:block;width:100%;height:auto;max-height:none;overflow:visible}.record-head small{font-size:11px}
.probe-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:9px 0 5px}.probe-choices button{padding:7px 3px;font-size:11px;min-height:35px;border:1px solid #d4e5e7;border-radius:8px;background:#fff;color:#526f7a;cursor:pointer}.probe-choices button[aria-pressed=true]{background:#e6f5ef;border-color:#6bb29e;color:#226d5c;font-weight:700}
.threshold-note,.sample-note{font-size:11px;line-height:1.65;color:#799198;margin:8px 2px}.gate-states{gap:9px;margin-top:12px}.gate-state{font-size:11px}.gate-state b{font-size:12px;min-height:18px}.gate-state small{font-size:10px}
.plot-legend{font-size:11px;gap:12px}.plot-legend i{border-top:2px dashed #bfcfd3}.plot-legend i.dark{border-top:3px solid #d94755}
.stimulus-controls{margin:10px 0 0;gap:5px}.stimulus-controls button{font-size:12px;padding:7px 5px;min-height:36px}.stimulus-controls .apply-stim{margin-left:auto}
.structure-detail{margin-top:10px;padding-top:10px;border-top:1px solid #dfebe9}.structure-detail strong{font-size:13px}.structure-detail span{font-size:11px;line-height:1.6}
.control-dock{gap:9px;padding:9px 10px}.control-button{font-size:13px;padding:0 11px;min-height:41px}.timeline-wrap{flex:1;min-width:120px}.timeline-wrap>span:first-child{white-space:nowrap;min-width:4em;flex:none}.timeline-wrap input{min-width:20px;width:0;flex:1}.timeline-wrap output{white-space:nowrap;min-width:30px}.load-status{font-size:11px}.control-group{gap:6px}
.hide-labels .optional-label{opacity:0;pointer-events:none}.protein-error{position:absolute;inset:35% 10%;z-index:4;background:#fff7eb;border:1px solid #e5ba81;padding:20px;color:#875717;text-align:center;border-radius:12px}
.charge-pulse{animation:conduction-charge 1s ease-in-out infinite;animation-play-state:paused;transform-box:fill-box}.model-area[data-playing=true] .charge-pulse{animation-play-state:running}@keyframes conduction-charge{0%,100%{opacity:.47}50%{opacity:.85}}
@media(prefers-reduced-motion:reduce){.charge-pulse{animation:none;opacity:.65}}
@media(max-width:1200px) and (min-width:861px){.model-stage{grid-template-columns:minmax(0,1fr) 285px}.record-panel{padding:10px}.control-button{padding:0 8px;font-size:11px}.control-dock{gap:6px}.control-group{gap:4px}.stage-tab strong{font-size:12px}.stage-tab small{font-size:9px}.scene-panel{padding:10px}.timeline-wrap{min-width:100px;font-size:11px}}
@media(max-width:860px){.model-stage{display:block;overflow:auto}.scene-panel{height:auto;min-height:0;padding:12px 8px;overflow:visible}.scene-title{font-size:12px}.scene-title strong{font-size:13px}.scene-title span{font-size:11px}.drawing-scroll{display:block;overflow-x:auto;overflow-y:hidden;flex:none;height:556.4px}.scene-board{width:900px;height:556.4px}.scene-legend{font-size:11px;gap:5px 10px}.scene-note{font-size:11px}.scene-note::before{content:'左右滑动查看整段轴突，向下查看记录曲线。';display:block}.record-panel{border-left:0;border-top:1px solid #d5e6e4;overflow:visible;padding:12px}.voltage-card{max-width:570px}.record-plot{max-height:none}.control-dock{flex-wrap:wrap;gap:5px;padding:7px}.control-group-primary{width:100%;justify-content:space-between}.control-group-view{width:100%;justify-content:space-between;margin:0}.control-button{font-size:11px;min-height:33px;padding:0 9px}.timeline-wrap{order:3;flex-basis:100%;min-height:22px}.stage-strip{overflow-x:auto}.stage-tab{min-width:137px;height:44px}.stage-tab small{font-size:10px}}
@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:45px}.timeline-wrap>span:first-child,.timeline-wrap output{display:none}.control-button{padding:0 6px;font-size:10px}.scene-panel{height:auto}.stage-tab{min-height:44px}.scene-note{font-size:11px}}

.scene-board .lipid-tail{fill:none;stroke-linecap:round}.scene-board .lipid-tail-shadow{stroke:rgba(14,165,233,.16);stroke-width:4.6}.scene-board .lipid-tail-core{stroke:url(#lipidTail2d);stroke-width:2.7}
.scene-board .stim-pulse{fill:none;stroke:#d8912c;stroke-width:2}.stage-tab.is-active{background:#e9f8f4;border-color:#55a998;box-shadow:inset 0 0 0 2px #55a99826}

.scene-board .current-tip{fill:none;stroke:#bf7b20;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.spatial-baseline,.spatial-tick{fill:none;stroke:#a7bfc7;stroke-width:1.2}.spatial-trace{fill:none;stroke:#d94755;stroke-width:3.1;stroke-linejoin:round;stroke-linecap:round}.spatial-fill{fill:#d94755;opacity:.075;stroke:none}.spatial-recovery{fill:#7faec8;opacity:.24;stroke:none}.spatial-dot{fill:#d94755;stroke:white;stroke-width:1.2}
