#introHistory:has(.bell-lab)[open]{height:calc(100dvh - 28px);display:flex;flex-direction:column;overflow:hidden}
#introHistory:has(.bell-lab) #introHistoryContent{display:flex;flex-direction:column;flex:1;min-height:0}
#introHistory:has(.bell-lab) h2{display:flex;align-items:center;gap:16px;margin:10px 0 16px;font-size:25px}
.bell-source-button{margin-left:auto;flex-shrink:0;font-size:14px;padding:8px 12px}
#introHistory:has(.bell-lab) .history-wide-work{display:flex;flex:1;min-height:0;margin:0}
#introHistory:has(.bell-lab) .history-visual{flex:1;min-width:0;min-height:0;padding:0;background:none;border:0;overflow:hidden}
.bell-lab{display:flex;flex-direction:column;gap:18px;height:100%;min-height:0;font-size:18px;line-height:1.45}
.bell-tabs{display:flex;gap:10px;flex-shrink:0}.bell-tabs button{flex:1;text-align:left;min-height:60px;padding:9px 14px;display:flex;flex-direction:column;gap:2px}.bell-tabs small{font-size:14px}.bell-tabs b{font-size:18px}.bell-tabs .selected,.bell-controls button.selected{background:var(--mint);border-color:var(--mint);color:#102d27}
.bell-work{display:grid;grid-template-columns:minmax(230px,.7fr) minmax(0,2fr);gap:24px;flex:1;min-height:0}.bell-context{display:flex;flex-direction:column;gap:10px;border-right:1px solid var(--line);padding-right:22px;min-height:0}.bell-context>strong{font-size:25px}.bell-context>span{font-size:16px;color:var(--muted)}.bell-context h3{font-size:19px;margin:12px 0 0}.bell-context p{font-size:17px;line-height:1.5;margin:0}.bell-audio-context{border-top:2px solid var(--mint);padding-top:12px;margin-top:auto;font-weight:650}.bell-audio-context p{font-weight:400;margin-top:7px}
.bell-stage{display:flex;flex-direction:column;gap:15px;min-height:0;min-width:0}.bell-stage strong{font-size:18px}.bell-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:44px;flex-shrink:0}.bell-controls button{font-size:16px;padding:9px 12px;min-height:42px}.bell-controls label{display:flex;align-items:center;gap:12px;font-size:18px}.bell-controls select{min-width:110px;font-size:17px;padding:8px}.bell-controls input[type=range]{width:180px}.bell-controls output{min-width:40px;font-variant-numeric:tabular-nums}
.bell-graphic{width:100%;flex:1;min-height:120px}.bell-graphic text{fill:var(--text);font:22px 'Segoe UI',sans-serif}.bell-graphic text.bell-formula{font-size:30px;font-weight:650}.bell-wire{fill:none;stroke:var(--muted);stroke-width:4;stroke-linecap:round}.bell-graphic circle{fill:var(--panel);stroke:var(--muted);stroke-width:3}.bell-on.bell-wire,.bell-on .bell-wire{stroke:var(--mint)}.bell-lamp.bell-on{fill:var(--mint);stroke:var(--mint)}.bell-caption{font-size:18px;line-height:1.5;flex-shrink:0}.bell-footnote{font-size:15px;line-height:1.5;color:var(--muted);flex-shrink:0;border-top:1px solid var(--line);padding-top:10px}.bell-axis{stroke:var(--line);stroke-width:2;fill:none}.bell-wave{stroke:var(--mint);stroke-width:4;fill:none}.bell-output-wave{stroke:var(--purple);stroke-width:4;fill:none}.bell-stem{stroke:var(--purple);stroke-width:2;opacity:.7}.bell-graphic circle.bell-sample{fill:var(--purple);stroke:var(--panel)}
.bell-route{display:flex;align-items:center;gap:8px;flex-shrink:0}.bell-route b{padding:12px 10px;background:var(--panel);border:1px solid var(--line);border-radius:8px;font-size:17px;flex:1;text-align:center}.bell-route i{font-style:normal;color:var(--muted)}.bell-route .bell-channel-label{border-color:var(--amber)}.bell-error{color:#ed745c!important}.bell-channel-grid{display:grid;grid-template-columns:90px repeat(8,minmax(0,1fr));gap:4px;align-items:stretch;flex:1;min-height:0}.bell-channel-head{display:flex;align-items:center;font-size:15px}.bell-sent,.bell-decoded{display:flex;align-items:center;justify-content:center;min-height:27px;font:650 23px Consolas,monospace}.bell-pulse{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3px;min-height:48px;background:var(--panel);border:1px solid var(--line);border-radius:6px}.bell-pulse svg{width:100%;height:100%;min-height:25px;max-height:100px}.bell-pulse path{stroke:var(--purple);stroke-width:3;fill:none}.bell-pulse b{font:650 17px Consolas,monospace}.bell-pulse.damaged{background:color-mix(in srgb,#f07855 15%,var(--panel));border-color:#f07855}.bell-pulse.damaged path{stroke:#f07855}.bell-pulse:hover{outline:2px solid var(--amber);outline-offset:-2px}
.bell-photo{margin:0;min-height:0;display:flex;flex-direction:column;gap:7px}.bell-photo img{width:100%;object-fit:contain;min-height:0;max-height:230px;border-radius:7px}.bell-photo figcaption{font-size:14px;line-height:1.4}.bell-photo a{display:block;font-size:12px;margin-top:3px}.bell-research{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;height:100%;min-height:0}.bell-research .bell-photo img{max-height:none;flex:1;object-fit:contain}.bell-research>div{display:flex;flex-direction:column;justify-content:space-around;gap:15px}.bell-research article{border-left:3px solid var(--mint);padding-left:14px}.bell-research article b{font-size:20px}.bell-research article p{font-size:17px;margin:8px 0 0;line-height:1.5}
.bell-amplifier-route{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.bell-amplifier-route>b{flex:1;padding:12px;background:var(--panel);border:1px solid var(--line);text-align:center;border-radius:8px;font-size:17px}.bell-amplifier-route>span{flex-basis:100%;text-align:center;font-size:15px;color:var(--muted)}.bell-cmos-diagram{flex:1;min-height:0;display:flex;justify-content:center}.bell-cmos-diagram .cmos-svg{height:100%;width:100%;max-height:none;min-height:140px}
.bell-integration{display:grid;grid-template-columns:1.3fr 1fr;gap:35px;flex:1;min-height:0;padding:12px 20px}.bell-silicon{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;padding:20px;border:9px double var(--muted);background:var(--panel);border-radius:12px;min-height:0}.bell-silicon span{display:grid;place-items:center;border:1px solid var(--line);border-radius:4px;color:var(--mint);font:600 24px Consolas,monospace}.bell-circuit-chain{display:flex;flex-direction:column;justify-content:center;text-align:center;gap:10px}.bell-circuit-chain article{padding:12px;border:1px solid var(--line);border-radius:8px}.bell-circuit-chain b{font-size:25px;display:block}.bell-circuit-chain span{font-size:17px}.bell-circuit-chain i{font-size:24px;line-height:1;font-style:normal;color:var(--mint)}.bell-mini-link{align-self:flex-start;font-size:18px;padding:12px 18px;background:var(--purple);color:white;border:0}
:root[data-theme=light] .bell-wave{stroke:#087660}:root[data-theme=light] .bell-output-wave,:root[data-theme=light] .bell-pulse path{stroke:#7043be}:root[data-theme=light] .bell-error{color:#b52f22!important}
@media(max-height:800px){.bell-lab{gap:12px}.bell-work{gap:18px}.bell-stage{gap:10px}.bell-context{gap:8px;padding-right:16px}.bell-context p{font-size:16px;line-height:1.4}.bell-context h3{margin:5px 0 0}.bell-caption{font-size:17px;line-height:1.4}.bell-footnote{font-size:14px;padding-top:7px}.bell-photo img{max-height:180px}.bell-research article p{font-size:16px;line-height:1.4}.bell-tabs button{min-height:54px}.bell-route b{font-size:15px;padding:8px}.bell-amplifier-route>b{padding:8px}.bell-integration{padding:0 10px}.bell-circuit-chain{gap:5px}.bell-circuit-chain article{padding:8px}}
@media(max-width:1100px){.bell-work{grid-template-columns:280px minmax(0,1fr);gap:16px}.bell-tabs b{font-size:16px}.bell-tabs button{padding:8px 10px}.bell-stage{gap:9px}.bell-controls{gap:8px}.bell-controls button{font-size:14px;padding:7px 9px}.bell-controls strong{font-size:15px}.bell-controls label{font-size:16px}.bell-caption{font-size:16px}.bell-footnote{font-size:13px}.bell-route{gap:5px}.bell-route b{font-size:14px;padding:7px 5px}.bell-channel-grid{grid-template-columns:76px repeat(8,minmax(0,1fr))}.bell-research{gap:14px}.bell-research article b{font-size:18px}.bell-research article p{font-size:15px}.bell-integration{gap:15px}.bell-silicon{padding:10px;gap:4px}}

@media(max-width:1100px) and (max-height:800px){.bell-context .bell-photo img{max-height:135px}.bell-context .bell-photo figcaption{font-size:13px}.bell-context>strong{font-size:23px}.bell-context h3{font-size:18px}}

@media(max-height:800px){.bell-audio-context{padding-top:8px}.bell-audio-context p{margin-top:4px}.bell-context{gap:6px}}

#introHistory .bell-context p{font-size:17px;line-height:1.45;margin:0}#introHistory .bell-audio-context p{margin-top:6px}@media(max-height:800px){#introHistory .bell-context p{font-size:16px;line-height:1.4}#introHistory .bell-audio-context p{margin-top:4px}}

.bell-source-list{display:flex;flex-direction:column;gap:12px;font-size:17px;margin:20px 0}
.bell-cmos-diagram .cmos-svg text{fill:var(--text);font-family:'Segoe UI',sans-serif}
.bell-cmos-diagram .cmos-svg circle{fill:var(--panel);stroke:var(--muted);stroke-width:2}
