:root{color-scheme:dark;--ink:#d8e5f0;--muted:#82a4b5;--cyan:#1ca4d5;--cyan2:#0e6690;--edge:#40515c;--yellow:#f4dc28;--deep:#080f13;--panel:#1d2428;--header:#12232c}*{box-sizing:border-box}body{margin:0;background:var(--deep);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:11px;letter-spacing:.012em}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.38;cursor:not-allowed}.hidden{display:none!important}.dispatch{min-height:100vh;display:flex;flex-direction:column}.top-header{height:39px;min-height:39px;background:linear-gradient(90deg,#0e2430,#152b37 44%,#10212c);border-bottom:2px solid #188dbb;display:flex;align-items:center;justify-content:space-between;padding:0 6px;gap:10px}.wordmark{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:10px;letter-spacing:.02em}.logo{background:linear-gradient(#35ace0,#156488);border:1px solid #67bfdc;border-radius:2px;width:28px;height:25px;display:flex;align-items:center;justify-content:center;color:white;font-weight:900;font-size:9px}.system-strip{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;background:#09161d;border:1px solid #375264;height:29px;gap:10px;padding:2px 11px}.system-strip>span:not(.status-light){display:flex;flex-direction:column;gap:1px}.system-strip small{font-size:7px;color:#7b98a8}.system-strip b{font-size:8px;color:#f2f5f6}.status-light{width:7px;height:7px;border-radius:50%;background:#808f96;display:inline-block;box-shadow:0 0 5px #6c899077}.status-light.online{background:#4fe0a4;box-shadow:0 0 7px #4fe0a499}.header-actions{display:flex;gap:4px;align-items:center}.micro-btn,.filter-btn{border:1px solid #586873;background:linear-gradient(#46535c,#27313a);color:#f7fafc;padding:5px 9px;font-size:9px;font-weight:800;white-space:nowrap;text-transform:uppercase}.micro-btn:hover:not(:disabled),.filter-btn:hover:not(:disabled){background:#265777}.micro-btn.active,.filter-btn.active{background:linear-gradient(#24668a,#15455d);border-color:#2e9bcb}.red-btn{background:linear-gradient(#dd5754,#a72427);border-color:#d45f5c;padding:8px 12px}.filter-header{height:26px;min-height:26px;display:flex;align-items:center;gap:8px;padding:0 6px;background:#1c242a;border-bottom:1px solid #3c4b54;color:#cddde6;font-size:8px;font-weight:700}.zone-buttons{display:flex;gap:3px}.filter-btn{padding:3px 7px;font-size:8px}.filter-right{margin-left:auto;color:#8caab7}.module-header{height:27px;min-height:27px;display:flex;align-items:center;justify-content:space-between;background:#121c23;color:#7795a6;padding:0 7px;font-size:8px;font-weight:700;letter-spacing:.03em}.module-header b{color:#dce7ee}.body-layout{display:grid;grid-template-columns:48px minmax(0,1fr) 238px;flex:1;min-height:0}.side-rail{border-right:1px solid #283a44;background:#0c1820;padding:8px 2px;display:flex;align-items:stretch;gap:4px;flex-direction:column}.rail-button{background:linear-gradient(#4a5760,#26333d);border:1px solid #586873;color:white;padding:4px 1px 3px;height:35px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0}.rail-button.active{border-color:#24a5d6;background:#16384b;box-shadow:inset 0 0 0 1px #1887b4}.rail-button>span{background:#182c37;border:1px solid #728a96;min-width:17px;height:17px;display:grid;place-items:center;font-size:11px;font-weight:900}.rail-button small{font-size:6px;font-weight:900}.main-stage{background:#090f13;padding:0 5px;min-width:0;min-height:calc(100vh - 123px)}.selected-resource{height:46px;background:linear-gradient(90deg,#063347,#10232d 82%,#0d1a22);border:1px solid #6d848d;margin:0 0 4px;padding:4px 7px;display:flex;align-items:center;gap:8px}.selected-symbol{display:grid;place-items:center;background:#0b779e;border:1px solid #2cb4dc;width:29px;height:27px;flex:none;font-weight:900;font-size:8px}.selection-info{display:flex;flex-direction:column;gap:3px;min-width:0}.selection-info small{color:#81aec4;font-size:7px}.selection-info b{color:#2bd7ff;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selection-info>span{font-size:7px;color:#a8cedf}.selected-meta{margin-left:auto;display:flex;align-items:center;gap:9px;height:100%}.selected-meta>div{display:flex;flex-direction:column;gap:3px;border-left:1px solid #57707b;padding-left:7px;min-width:45px}.selected-meta small{font-size:7px;color:#9db4c1}.selected-meta b{font-size:8px;color:#f6fbff}.selected-meta .micro-btn{font-size:8px;padding:5px 8px}.group-bar{height:22px;background:linear-gradient(#4b555a,#2d353a);border:1px solid #63717a;display:flex;justify-content:space-between;align-items:center;padding:0 10px;color:white;font-size:9px;font-weight:900}.group-bar small{font-size:7px;color:#b6ced9}.channel-grid{display:grid;grid-template-columns:repeat(9,minmax(138px,1fr));gap:4px;background:#32393d;border-left:1px solid #68717a;border-right:1px solid #68717a;border-bottom:1px solid #68717a;padding:3px;overflow-x:auto}.channel-grid:not(:has(.resource-tile:nth-child(7))){grid-template-columns:repeat(3,minmax(170px,240px));justify-content:start}.resource-tile{min-width:132px;height:105px;display:flex;flex-direction:column;border:1px solid #516773;background:linear-gradient(#203844 0 30%,#242a2f 30% 100%);position:relative}.resource-tile.subscribed{border:2px solid #27a8d9;box-shadow:0 0 0 1px #79e0ff inset}.resource-tile.transmitting{border:2px solid #ffdc25;box-shadow:0 0 9px #ffe3405c}.tile-top{height:28px;background:linear-gradient(95deg,#06577d,#247c9b);display:flex;justify-content:space-between;align-items:start;gap:3px;padding:3px 4px;color:white}.tile-name{font-size:10px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tile-caption{font-size:7px;color:#c8f1ff;margin-top:2px;white-space:nowrap}.tile-badge{border:1px solid #79b1c5;background:#194d69;padding:2px 3px;font-size:7px;font-weight:800;white-space:nowrap}.tile-info{height:17px;display:flex;align-items:center;justify-content:flex-start;gap:3px;border-bottom:1px solid #464d50;padding:2px 4px}.tile-info span{border:1px solid #70808a;background:#2e363d;font-size:7px;padding:1px 3px;color:#e2ebf0}.tile-traffic{height:27px;text-align:center;display:grid;place-items:center;font-size:8px;color:#afc3cd}.tile-traffic.active{color:#9fefc6}.tile-foot{display:flex;gap:3px;padding:3px;justify-content:space-between;margin-top:auto}.tile-foot button{font-size:8px;font-weight:900;height:21px;min-width:0;color:white;border:1px solid #647785;background:linear-gradient(#4a5863,#27333d);flex:1}.tile-foot button:hover:not(:disabled){filter:brightness(1.23)}.tile-foot .monitor-btn.on{background:linear-gradient(#236d90,#0c4764);border-color:#31a5d5;color:#c9f3ff}.tile-foot .ptt{background:linear-gradient(#ffe443,#dcc518);border-color:#fff27d;color:#171d21;flex:1.1;touch-action:none;user-select:none}.tile-foot .ptt.tx{background:linear-gradient(#ffb14d,#ed772c);border-color:#ffd18e}.tile-foot .ptt:disabled{opacity:.48}.stage-empty{margin-top:18vh;text-align:center;color:#35444d;pointer-events:none}.stage-empty span{font-size:18px;font-weight:900;letter-spacing:.28em}.stage-empty p{color:#526876;font-size:11px}.right-panel{background:#252b2f;border-left:1px solid #5c6970;display:flex;flex-direction:column;min-width:0}.aside-heading{min-height:27px;padding:4px 5px;background:#273138;border-bottom:1px solid #5a666b;display:flex;justify-content:space-between;align-items:center}.aside-heading>div{display:flex;flex-direction:column;gap:2px}.aside-heading small{font-size:7px;color:#8ea8b6}.aside-heading b{font-size:10px;color:#e3ebf0}.aside-heading .micro-btn{font-size:7px;padding:3px 6px}.activity-filters{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding:3px;border-bottom:1px solid #637078}.activity-filters button{font-size:7px;padding:5px 0}.activity-log{max-height:175px;min-height:165px;overflow-y:auto;background:#22292e}.activity-entry{border-bottom:1px solid #40484d;min-height:32px;padding:5px 6px;color:#d7e4ee}.entry-top{display:flex;justify-content:space-between;color:#66cfff;font-size:8px;font-weight:700;gap:5px}.entry-top b{color:#e3f1f5}.entry-detail{padding-top:3px;font-size:8px;color:#a2b7c4}.action-heading{margin-top:0}.action-stack{padding:4px;display:grid;grid-template-columns:1fr 1fr;gap:4px}.stack-button{height:34px;background:linear-gradient(#174a63,#0d3244);color:#f5fafc;border:1px solid #3387ad;font-size:9px;font-weight:900}.stack-button:hover:not(:disabled){background:#176b91}.unit-heading{margin-top:3px}.unit-list{padding:6px;overflow:auto;flex:1;max-height:240px;min-height:40px;background:#22292e}.unit-row{padding:6px 2px;border-bottom:1px solid #3d4a52;font-size:9px}.unit-row small{color:#80a6bd;display:block;margin-top:2px}.unit-empty{font-size:9px;color:#8099aa}.status-footer{height:19px;min-height:19px;border-top:2px solid #0984bb;background:#061018;display:flex;align-items:center;justify-content:space-between;padding:0 5px;font-size:8px;color:#a8cbdc}.status-footer b{color:white}.settings-stage{background:#0d171d}.settings-form{padding:14px 8px;display:grid;grid-template-columns:repeat(2,minmax(250px,1fr));gap:12px;max-width:1000px}.settings-card{border:1px solid #51636f;background:#1b2c35;padding:14px}.settings-title{border-bottom:1px solid #435f6c;padding-bottom:9px;color:#43c1eb;font-size:9px;font-weight:900;margin-bottom:11px}.settings-card label{display:block;margin:10px 0 6px;font-weight:800;font-size:10px}.settings-card input:not([type=checkbox]):not([type=radio]):not([type=range]),.settings-card select{background:#0d1e27;border:1px solid #486578;color:white;width:100%;padding:9px;font-size:11px}.settings-card input[type=range]{width:100%;accent-color:#27b9de}.settings-card p{color:#87a7b8;font-size:10px;line-height:1.5}.mode-row{display:grid;grid-template-columns:1fr 1fr;gap:5px}.mode-row label{display:flex;align-items:center;border:1px solid #507383;background:#152a34;padding:8px;gap:7px}.mode-row label:has(input:checked){border-color:#20bae9;background:#133d52}.mode-row b,.mode-row small{display:block}.mode-row small{color:#9cb8c7;font-size:9px;margin-top:4px}.checkline{display:flex!important;align-items:center;gap:8px}.settings-bottom{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;gap:15px}.settings-bottom>span{color:#5ce5bf}.save-btn{background:#16749d;border:1px solid #2cbbf1;color:white;padding:10px 20px;font-size:10px;font-weight:900}.login-screen{min-height:100vh;background:radial-gradient(circle at 50% 30%,#173b4d,#0a151d 62%);display:grid;place-items:center;padding:18px}.login-box{text-align:center;background:#0f2531;border:1px solid #33728d;max-width:420px;padding:36px 32px;box-shadow:0 20px 70px #0009}.brand-symbol{font-size:25px;font-weight:900;color:#4dcef8}.eyebrow{font-size:9px;color:#63c8f0;letter-spacing:.17em}.login-box h1{font-size:26px}.login-box p{line-height:1.6;color:#a5c0d1}.discord-login{background:#356baf;color:white;display:inline-block;margin-top:12px;text-decoration:none;padding:12px 24px;font-weight:800}.error-text{color:#ff8389;margin-top:15px}
@media(max-width:1400px){.channel-grid{grid-template-columns:repeat(9,minmax(142px,1fr))}.body-layout{grid-template-columns:48px minmax(0,1fr) 218px}}@media(max-width:900px){.system-strip{position:static;transform:none}.top-header{gap:5px}.wordmark strong{font-size:9px}.red-btn{display:none}.body-layout{grid-template-columns:44px minmax(0,1fr)}.right-panel{grid-column:2;grid-row:2}.main-stage{min-height:460px}.channel-grid{grid-template-columns:repeat(3,minmax(150px,1fr));overflow-x:visible}.channel-grid:not(:has(.resource-tile:nth-child(7))){grid-template-columns:repeat(3,minmax(150px,1fr))}.right-panel{max-height:400px}.filter-right{display:none}}@media(max-width:610px){.top-header{height:auto;min-height:50px;flex-wrap:wrap;padding:5px}.system-strip{display:none}.filter-header{height:auto;padding:5px;flex-wrap:wrap}.filter-btn{padding:6px 4px}.module-header{font-size:7px}.selected-meta>div{display:none}.selected-meta .micro-btn{padding:4px;font-size:7px}.channel-grid,.channel-grid:not(:has(.resource-tile:nth-child(7))){grid-template-columns:repeat(2,minmax(135px,1fr))}.settings-form{grid-template-columns:1fr}.status-footer{font-size:7px}.status-footer>span:last-child{display:none}}

/* The reference console leaves the central workspace and lower right rail empty. */
.stage-empty{display:none!important}

/* v0.3: THREE PERMANENTLY STACKED ZONE BANKS -- never filtered out. */
.zone-stack{display:flex;flex-direction:column;gap:10px;padding:3px 0 22px;overflow-x:hidden}
.zone-section{border:1px solid #63717a;background:#303b42;scroll-margin-top:14px}
.zone-title{height:25px;background:linear-gradient(90deg,#43626d,#263941 70%,#1d2b33);border-bottom:2px solid #17a3d3;display:flex;align-items:center;justify-content:space-between;padding:0 10px;color:#e2f3fa;font-weight:900;font-size:10px;letter-spacing:.04em}
.zone-title small{font-size:8px;color:#b5d3e1}
.zone-row{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:4px;padding:4px;background:#252f35}
.zone-row .resource-tile{height:126px;min-width:0}
.zone-row .tile-top{height:30px}
.zone-row .tile-info{height:18px}
.zone-row .tile-roster{height:30px;padding:6px 6px 2px;color:#bde9ff;font-size:9px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zone-row .tile-last{height:16px;padding:2px 6px;color:#9bbdcf;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zone-row .tile-foot{padding:4px;gap:5px}
.zone-row .tile-foot button{height:23px}
.resource-tile.subscribed .tile-roster{color:#ebfcff}
.red-btn:not(:disabled){cursor:pointer;touch-action:none;user-select:none}
.red-btn.transmitting{background:linear-gradient(#ff9457,#be281b);box-shadow:0 0 10px #fb664c99}
.replay-btn{display:block;margin:6px 0 2px;background:#0b5877;color:#d7faff;border:1px solid #209cce;padding:4px 6px;font-weight:900;font-size:8px;cursor:pointer;text-align:center}
.clip-status{display:block;color:#6db5c9;font-size:8px;font-weight:700;padding:4px 0}
.replay-count{font-size:8px;color:#68cde9;margin-top:4px}
.replay-count b{color:white}
.rx-entry{border-left:3px solid #1ba5d1}
.unit-heading,.unit-list{display:block}
.unit-list{max-height:200px;min-height:70px}
@media(max-width:950px){.zone-row{grid-template-columns:repeat(3,minmax(145px,1fr));overflow-x:auto}}
@media(max-width:650px){.zone-row{grid-template-columns:repeat(2,minmax(140px,1fr))}.zone-row .resource-tile{height:132px}}


/* v0.3.1: MONITOR also selects; independent per-channel volume controls. */
.resource-tile.subscribed.selected{box-shadow:inset 0 0 0 1px #c1f4ff,0 0 0 1px #9ddcf4;border-color:#67d6ff}
.zone-row .resource-tile{height:135px}
.zone-row .tile-foot{display:flex;align-items:center;gap:5px;padding:5px 6px;min-height:34px;margin-top:auto}
.zone-row .tile-foot>.monitor-btn{flex:0 0 31%;min-width:0}
.zone-row .tile-foot>.ptt{flex:0 0 19%;min-width:0}
.zone-row .tile-foot>.tile-vol{flex:1 1 38%;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:1px;cursor:default;user-select:none}
.tile-vol-header{display:flex;justify-content:space-between;align-items:center;color:#b2ccd9;font-size:8px;font-weight:900;line-height:1.1}
.tile-vol-value{color:#e0f6fc;font-variant-numeric:tabular-nums;font-size:8px}
.tile-vol input[type=range]{width:100%;min-width:0;height:13px;margin:0;accent-color:#42bce7;cursor:pointer;touch-action:pan-x}
.tile-foot .tile-vol:hover input[type=range]{filter:brightness(1.1)}
@media(max-width:650px){
 .zone-row .resource-tile{height:154px}
 .zone-row .tile-foot{flex-wrap:wrap;gap:3px}
 .zone-row .tile-foot>.monitor-btn{flex:1 1 49%}
 .zone-row .tile-foot>.ptt{flex:1 1 36%}
 .zone-row .tile-foot>.tile-vol{flex:1 1 100%;min-width:100%}
 .tile-vol{padding:0 2px}
}

/* v0.3.2: same-width MONITOR and PTT, without crowding the individual volume control. */
.zone-row .tile-foot{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(78px,1fr);align-items:center;gap:5px}
.zone-row .tile-foot>.monitor-btn,.zone-row .tile-foot>.ptt{width:100%;height:25px;min-width:0;flex:none}
.zone-row .tile-foot>.tile-vol{width:100%;min-width:0;flex:none}
.activity-log{max-height:380px;min-height:190px}
@media(max-width:650px){
 .zone-row .tile-foot{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px}
 .zone-row .tile-foot>.tile-vol{grid-column:1 / -1;min-width:0;width:100%;padding:0 2px}
}

/* v0.3.3: keep the entire DIGITAL / UNITS status bar one solid color.
   The tile's former percentage gradient transitioned through this row. */
.zone-row .resource-tile{background:#242a2f}
.zone-row .resource-tile .tile-info{background:#203844}
