.kelpweb #plot{width:100%;height:340px;display:block;font-family:system-ui;touch-action:pan-y pinch-zoom}.kelpweb .view{position:sticky;top:8px;align-self:start;z-index:5}.k-note{font-size:12px;margin:5px 12px}.kelpweb #status{font-size:13px;min-height:40px;margin:5px 12px 10px}.k-play{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.k-pair{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:7px 0}.k-play button,.k-pair button,.k-tracks button{font-size:12px;min-width:44px;padding:5px}.kelpweb .control label{display:flex;justify-content:space-between;gap:6px}.kelpweb output{color:var(--gold);min-width:55px;text-align:right}.kelpweb input[type=range]{height:44px}.kelpweb .unit{font-size:11px;text-align:left;margin:5px 0}.control-title{font-size:13px;margin:6px 0}.kelpweb #reset{width:100%}.kelpweb main>.card{max-width:1240px;margin:12px auto}.k-tracks{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.kelpweb #chart{display:block;width:100%;height:260px;touch-action:pan-y pinch-zoom}.k-legend{font-size:13px}.k-comparisons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.k-comparisons article{padding:10px;border:1px solid var(--line);border-radius:10px}.k-comparisons p{display:flex;justify-content:space-between}.k-comparisons b{color:var(--gold)}.k-ledger{display:grid;grid-template-columns:1fr 1fr;gap:8px}.k-ledger>div{background:#0b2031;padding:10px;border-radius:10px}.k-ledger span{display:block;font-size:12px;color:var(--muted)}.k-ledger p{font-size:12px!important}.k-ledger strong{color:var(--cyan);white-space:nowrap}.kelpweb footer a{display:inline-flex;align-items:center;min-height:44px}.kelpweb summary{min-height:44px;cursor:pointer}.kelpweb .source a{overflow-wrap:anywhere}.kelpweb .podcast img{object-fit:contain}
@media(max-width:760px){.kelpweb .heading{margin:6px auto}.kelpweb .heading h1{font-size:20px}.kelpweb .eyebrow,.kelpweb .question{display:none}.kelpweb #plot{height:190px}.kelpweb .scene-header{font-size:11px;padding:6px 8px}.k-note{font-size:10px;margin:4px 8px}.kelpweb #status{font-size:11px;min-height:32px;margin:4px 8px 8px}.kelpweb .controls{padding:10px}.kelpweb main>.card{margin:10px}.kelpweb #chart{height:170px}.k-comparisons article{padding:7px}.k-comparisons h3{font-size:14px}.k-comparisons p{font-size:12px}.k-ledger{grid-template-columns:1fr}}
@media(max-width:360px){.kelpweb .heading h1{font-size:17px}.kelpweb .logo{width:70px}.kelpweb .switch button{min-width:44px;font-size:11px;padding:3px 4px}.kelpweb #plot{height:150px}.kelpweb #status{font-size:10px}.k-play button,.k-pair button,.k-tracks button{font-size:11px}.kelpweb #chart{height:130px}}
@media(max-height:500px) and (min-width:600px){.kelpweb #plot{height:220px}.kelpweb .heading{margin:4px auto}.kelpweb .heading h1{font-size:20px}.kelpweb .eyebrow,.kelpweb .question{display:none}.kelpweb .scene-header{font-size:10px;padding:4px 8px}.k-note{font-size:10px;margin:3px 8px}.kelpweb #status{font-size:11px;min-height:30px;margin:3px 8px 6px}}

/* Keep the full desktop control set beside the model. */
@media(min-width:1000px) and (min-height:501px){
.kelpweb .heading{margin:12px auto}.kelpweb .heading h1{font-size:30px}
.kelpweb .controls{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px}
.kelpweb .controls>div:not(.control),.kelpweb .controls>p,.kelpweb #reset{grid-column:1/-1}
.kelpweb .control:last-of-type{grid-column:1/-1}
.kelpweb .controls .control{margin:0}
}
