.hero { padding-block: clamp(36px, 5.5vw, 88px); grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); }
h1 span { font-size: clamp(58px, 6.55vw, 102px); white-space: nowrap; }
.display { padding: 18px; border-radius: 4px; border: 1px solid #080b0c; box-shadow: inset 0 2px 10px #0008; background: #101619; }
.connection { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; color: #91a0a8; font: 10px/1.5 var(--mono); letter-spacing: .16em; }
.connection::before, .connection::after { content: ""; height: 1px; flex: 1; background: #3a464c; }
.connection span:first-child { order: -1; }
.connection span:last-child { order: 1; }
.connection b { color: var(--gold); font: 500 11px/1.6 var(--mono); }
.stations { display: grid; grid-template-columns: 1fr minmax(30px, .26fr) 1fr; align-items: start; }
.station { min-width: 0; background: #191f23; border: 1px solid #39444b; border-radius: 4px; padding: 14px 13px 8px; box-shadow: inset 0 1px #ffffff08, 0 3px 5px #0003; }
.station h3 { font-size: 15px; font-weight: 550; margin: 0 0 13px; }
.station small { color: #a6b1b9; font-size: 12px; font-weight: 400; }
.station small::before { content: " · "; }
.station p { margin-top: 8px; border-top: 1px solid #333d42; padding-top: 6px; color: #c1cbd0; font-size: 12px; }
.scope, .strip { position: relative; height: 81px; border-radius: 2px; overflow: hidden; background: #0d1215; box-shadow: inset 0 1px 3px #0008; }
.scope { background-color: #11191c; background-image: linear-gradient(#6c889215 1px, transparent 1px), linear-gradient(90deg, #6c889215 1px, transparent 1px); background-size: 17px 17px; }
#wave { display: block; width: 100%; height: 100%; }
.scale, .gain span { font: 9px/1.4 var(--mono); letter-spacing: .13em; color: #9eafb7; }
.scale { position: absolute; left: 7px; bottom: 4px; }
.scale b { color: #bacad1; }
.strip { display: flex; align-items: center; justify-content: center; gap: 12%; }
.gain strong { display: block; font: 500 clamp(15px, 1.8vw, 26px)/1.3 var(--mono); white-space: nowrap; letter-spacing: -.06em; }
.fader { width: 30px; height: 80%; position: relative; background: repeating-linear-gradient(0deg, #58636b 0 1px, transparent 1px 8px) left center / 6px 100% no-repeat; }
.fader::before { content: ""; position: absolute; left: 60%; top: 1px; bottom: 1px; width: 4px; border: 1px solid #374047; background: #050707; }
.fader i { position: absolute; left: 6px; top: 49%; width: 28px; height: 16px; border: 1px solid #060809; border-radius: 2px; background: linear-gradient(#758088, #42494e 22%, #30363a 40%, #d6dacf 45% 54%, #373c40 58%, #22272b); box-shadow: 0 2px 3px #000; }
[data-applied] .fader i { top: 28%; }
.bridge { display: flex; align-items: center; position: relative; margin-top: 78px; color: var(--gold); }
.packet { position: absolute; top: calc(50% - 2px); left: 0; width: 4px; height: 4px; border-radius: 50%; background: #ffdfb5; box-shadow: 0 0 6px var(--gold); opacity: 0; }
.bridge i { flex: 1; height: 2px; background: currentColor; box-shadow: 0 0 8px #e5b98560; }
.bridge b { font: 19px/1 var(--mono); }
[data-revoked] .connection b, [data-revoked] .bridge { color: #889399; }
[data-revoked] .bridge i { height: 1px; background: transparent; border-bottom: 1px dashed currentColor; box-shadow: none; }
[data-revoked] .bridge b { visibility: hidden; }
.approval, .config-head, .audit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.approval { flex-wrap: wrap; margin-top: 8px; background: #2d261e; border-left: 2px solid var(--gold); padding: 8px; color: #f0c894; font-size: 12px; }
.approval strong { display: block; margin-top: 2px; font-weight: 600; }
.approval .key, #copy { min-height: 35px; padding: 4px 12px 7px; font-size: 12px; }
.readout pre, .config pre { margin: 0; font: 12px/1.65 var(--mono); overflow-wrap: anywhere; white-space: pre-wrap; }
.readout pre { color: #c7d5dc; margin-top: 10px; }
.scenario-keys { display: grid; gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scenario-keys .key { padding-inline: 4px; gap: 5px; line-height: 1.4; }
.scenario-keys .key span { color: var(--gold); }
.audit-head { margin-top: 12px; border-top: 1px solid #394249; padding-top: 8px; min-height: 29px; }
.audit-head h3 { margin: 0; font-size: 12px; font-weight: 500; }
#reset { background: none; border: 0; color: var(--gold); font-size: 12px; }
#audit { margin: 5px 0 0; height: 44px; padding: 0 6px; overflow-y: auto; list-style: none; background: #111619; border: 1px solid #2b3338; }
#audit li { font: 11px/20px var(--mono); color: #acbac1; }
#audit li::before { content: "›"; margin-right: 6px; color: var(--gold); }
.gallery { border-top: 1px solid var(--line); padding-block: clamp(40px, 5vw, 80px); }
.gallery-copy code { color: #c9d5da; }
.config { min-width: 0; color: #d1d9dc; border: 1px solid #39444a; border-radius: 5px; background: #13181b; overflow: hidden; }
.host-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.host-tabs button { background: #1c2226; border: 0; border-bottom: 2px solid transparent; font-size: 13px; min-height: 45px; }
.host-tabs [aria-selected="true"] { color: #f3d3ad; background: #24282a; border-bottom-color: var(--gold); }
.host-tabs button:focus-visible, #host-panel:focus-visible { outline-offset: -3px; }
#host-panel { padding: 13px 18px 18px; }
.config-head { align-items: center; }
#config-file { font: 12px/1.5 var(--mono); color: #bcc7cc; overflow-wrap: anywhere; }
#copy { flex: none; }
.config pre { padding-top: 12px; margin-top: 10px; border-top: 1px solid #303a40; }
@media (max-width: 950px) { .hero { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .hero { padding-block: 22px; gap: 19px; }
  h1 span { font-size: clamp(52px, 14vw, 68px); }
  .display { padding: 10px 8px; }
  .connection { margin-bottom: 9px; }
  .station { padding: 8px 6px 5px; }
  .station h3 { font-size: 13px; margin-bottom: 7px; }
  .station small { display: block; font-size: 11px; }
  .station small::before { content: none; }
  .scope, .strip { height: 58px; }
  .bridge { margin-top: 63px; }
  .approval .key { width: 100%; min-height: 44px; }
  .strip { gap: 8px; }
  .scenario-keys { gap: 4px; }
  .scenario-keys .key { flex-direction: column; gap: 2px; min-height: 54px; font-size: 11px; }
  .host-tabs button { font-size: 11px; padding-inline: 2px; }
  #host-panel { padding: 10px; }
}
