.optical-tabs{display:flex;gap:10px;margin:0 0 12px;flex-shrink:0}
.optical-tabs button{display:flex;gap:10px;align-items:center;justify-content:center;flex:1;font-size:16px;min-height:42px;padding:7px 12px}
.optical-tabs button.selected,.chappe-regulator-options button.selected{background:var(--mint);color:#102d27;border-color:var(--mint);font-weight:700}
.optical-flag{width:30px;height:20px;border-radius:2px;flex-shrink:0;box-shadow:0 0 0 1px #8886}
.chappe-lab{display:flex;flex-direction:column;gap:10px;height:100%;min-height:0}
.chappe-work{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(230px,1fr);gap:25px;flex:1;min-height:0;align-items:stretch}
.chappe-scene{background:linear-gradient(#c3dceb,#eef6fa);border-radius:9px;overflow:hidden;display:flex;align-items:center;justify-content:center;min-height:0}
.chappe-scene>svg{width:100%;height:100%;min-height:0}.chappe-hit{fill:transparent;cursor:pointer;stroke:transparent}
[data-chappe-part]:hover>.chappe-hit,[data-chappe-part]:focus>.chappe-hit{stroke:#ba791d;fill:#f0c56a22;stroke-width:2;outline:none}
.chappe-controls{display:flex;flex-direction:column;gap:12px;justify-content:center;min-height:0}
.chappe-controls section{display:flex;flex-direction:column;gap:7px}.chappe-controls h3{margin:0;font-size:19px;display:flex;align-items:center;gap:8px}
.chappe-controls h3 i{width:11px;height:11px;border-radius:50%;background:#bd8126}.chappe-controls h3 .chappe-i0{background:#35ab8c}.chappe-controls h3 .chappe-i1{background:#9b6bcc}
.chappe-regulator-options{display:flex;gap:8px}.chappe-regulator-options button{flex:1;font-size:15px;padding:6px}
.chappe-controls label{font-size:15px}.chappe-controls output{float:right;font:17px Consolas,monospace;color:var(--mint)}
.chappe-controls input[type=range]{display:block;width:100%;margin:9px 0 0}.chappe-detents{display:flex;justify-content:space-between;font-size:13px;color:var(--muted)}
#chappeMotionStatus{font-size:16px;min-height:44px;display:flex;align-items:center;color:var(--amber)}
.chappe-combinations{font-size:18px}.chappe-combinations b{color:var(--mint)}.chappe-controls>button{align-self:flex-start;font-size:15px}
.chappe-caption{font-size:14px;line-height:20px;min-height:40px;color:var(--muted);flex-shrink:0}
#introHistory:has(.chappe-lab)[open]{height:calc(100dvh - 28px);display:flex;flex-direction:column;overflow:hidden}
#introHistory:has(.chappe-lab) #introHistoryContent{flex:1;min-height:0;display:flex;flex-direction:column}
#introHistory:has(.chappe-lab) .history-wide-work{flex:1;min-height:0}#introHistory:has(.chappe-lab) .history-visual{min-height:0}
#introHistory:has(.chappe-lab) .history-tabs,#introHistory:has(.murray-lab) .history-tabs{flex-shrink:0}
@media(max-height:780px){.chappe-controls{gap:8px}.chappe-controls h3{font-size:17px}.chappe-controls section{gap:4px}.chappe-caption{font-size:13px;line-height:18px;min-height:36px}.optical-tabs{margin-bottom:8px}.optical-tabs button{min-height:36px;font-size:15px}.murray-frame{min-height:130px}.murray-mechanism>span{font-size:15px}}
