/* CRP Dispatch v0.5.0 — legacy boxed console, inspired by the supplied
   photographed dispatch workstation. Functional styles stay in earlier sheets. */
:root { --ink:#e4e7ec; --muted:#a7b4bf; --cyan:#3481a5; --cyan2:#34708f; --edge:#647886; --deep:#171e23; --panel:#253139; --header:#233847; }
html, body { background:#18232b; }
body { font:11px Tahoma, Verdana, Arial, sans-serif; color:#d9e1e8; letter-spacing:0; }
button, input, select { font-family:Tahoma,Verdana,Arial,sans-serif; border-radius:0!important; text-shadow:none; }
button:hover:not(:disabled) { filter:brightness(1.09); }
.dispatch { min-height:690px; }
/* Older workstation-style tool chrome, rather than a modern card dashboard. */
.top-header { background:#1c303e; height:43px; min-height:43px; border-bottom:2px solid #6b8797; }
.wordmark { font-size:12px; }
.logo { background:#19648c; box-shadow:none; border:1px solid #8ac1da; }
.system-strip { box-shadow:none; background:#172832; border:1px solid #607785; }
.header-actions .micro-btn,.micro-btn { background:#374d5b; border:1px solid #708899; box-shadow:none; }
.module-header { height:26px; min-height:26px; background:#293840; border-bottom:1px solid #687987; color:#c7d6df; }
.body-layout { grid-template-columns:53px minmax(0,1fr) 294px; min-height:0; }
.side-rail { background:#21313d; border-right:1px solid #718696; padding:7px 4px; gap:5px; }
.rail-button { border:1px solid #748999; background:#394b58; height:43px; box-shadow:none; }
.rail-button.active { background:#276183; border-color:#a4c5d5; box-shadow:inset 0 0 0 1px #4e8baa; }
.rail-button>span { background:#243d50; border-color:#748998; height:19px; min-width:19px; font-size:12px; }
.rail-button small { font-size:7px; }
/* Main legacy workspace and uncolored watermark. */
.main-stage { padding:9px 11px 14px; background:#293238; overflow:auto; isolation:isolate; }
.main-stage:before { background:#293238; }
.console-watermark { width:min(44%,480px); top:21%; right:6%; opacity:.07; filter:grayscale(1) brightness(1.3) contrast(1); mix-blend-mode:screen; }
.selected-resource { width:min(100%,830px); height:48px; padding:6px 10px; border:1px solid #718391; background:#263d4b; box-shadow:none; margin-bottom:11px; }
.selected-symbol { background:#1d5c7e; border-color:#7dacbf; }
.selection-info b { color:#f1f5f7; font-size:11px; }
.selection-info>span { color:#aabfcf; }
/* Three invisible groups: SW, PD, SO. Grouping uses whitespace only. */
.zone-stack { display:flex; flex-direction:column; gap:25px; width:min(100%,830px); padding:0 0 16px; margin:0; background:transparent; }
.zone-section { border:0; background:transparent; padding:0; margin:0; box-shadow:none; }
.zone-title { display:none!important; }
.zone-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; padding:0; margin:0; border:0; overflow:visible; background:transparent; }
/* Flat, thick-lined, boxed channel resources like older dispatch software. */
.zone-row .resource-tile { min-width:0; height:179px; border:2px solid #718c9c; border-radius:0; background:#293942; box-shadow:inset 0 0 0 1px #182c38; overflow:hidden; }
.zone-row .resource-tile.subscribed { border:2px solid #8cae61; box-shadow:inset 0 0 0 1px #b4d282; }
.zone-row .resource-tile.subscribed.selected { border-color:#b2cd78; box-shadow:inset 0 0 0 1px #d0e8a2; }
.zone-row .resource-tile.transmitting { border:2px solid #e4be49; box-shadow:inset 0 0 0 1px #fae18d; }
.zone-row .tile-top { padding:5px 8px; height:33px; min-height:33px; background:#2d5971; border-bottom:1px solid #8da8b6; align-items:center; }
.tile-name { font-size:11px; font-weight:bold; color:#f6f9fa; letter-spacing:0; }
.tile-caption { display:none; }
.tile-badge { border:1px solid #a1afba; background:#3f5a69; font-size:8px; font-weight:bold; padding:3px 5px; color:#fff; }
.zone-row .resource-tile .tile-info { height:24px; min-height:24px; background:#324550; border-bottom:1px solid #637683; padding:3px 7px; }
.tile-info span { font-size:8px; padding:2px 6px; background:#24343f; border:1px solid #647783; color:#f5f5f4; }
.zone-row .tile-roster { height:30px; min-height:30px; flex:0 0 30px; margin:5px 7px 0; padding:7px 6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; background:#182932; border:1px solid #59717e; color:#d9e1e8; font-size:9px; }
.zone-row .tile-last { height:16px; flex:0 0 16px; padding:4px 8px 0; font-size:8px; color:#a7c2d1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.zone-row .tile-foot { margin-top:auto; padding:5px 7px 7px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:26px 25px; align-items:center; gap:4px 6px; }
.zone-row .tile-foot>.monitor-btn,.zone-row .tile-foot>.ptt { height:26px; width:100%; min-width:0; border:1px solid #a0b4bf; border-radius:0; box-shadow:none; font-size:9px; font-weight:bold; }
.zone-row .tile-foot>.monitor-btn { background:#3b627b; }
.zone-row .tile-foot>.monitor-btn.on { background:#537b51; border-color:#adc28c; }
.zone-row .tile-foot>.ptt { background:#dbc33f; border-color:#f3da76; color:#172128; }
.zone-row .tile-foot>.ptt.tx { background:#b88739; border-color:#efca66; }
.zone-row .tile-foot>.tile-vol { grid-column:1/-1; min-width:0; height:25px; width:100%; margin:0; padding:2px 6px; border:1px solid #526a78; display:grid; grid-template-columns:56px minmax(0,1fr); align-items:center; gap:7px; background:#24343f; overflow:hidden; }
.tile-vol-header { color:#bdced8; font-size:8px; white-space:nowrap; }
.tile-vol-value { color:#fff; font-size:8px; }
/* Slider: mechanical/flat track with a vertical LINE handle, never a dot. */
.tile-vol .channel-volume, .settings-card input[type=range], #volume { display:block; min-width:0; width:100%; height:20px; padding:0 3px; margin:0; appearance:none; -webkit-appearance:none; background:transparent; border:0; cursor:ew-resize; accent-color:unset; }
.tile-vol .channel-volume::-webkit-slider-runnable-track, #volume::-webkit-slider-runnable-track { height:3px; background:#81949f; border:0; border-radius:0; }
.tile-vol .channel-volume::-moz-range-track, #volume::-moz-range-track { height:3px; background:#81949f; border:0; border-radius:0; }
.tile-vol .channel-volume::-webkit-slider-thumb, #volume::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:4px; height:16px; margin-top:-7px; border-radius:0; border:1px solid #e7f0f3; background:#d0dfe5; box-shadow:none; }
.tile-vol .channel-volume::-moz-range-thumb, #volume::-moz-range-thumb { width:3px; height:15px; border:1px solid #e7f0f3; border-radius:0; background:#d0dfe5; box-shadow:none; }
/* Traditional operator sidebar. */
.right-panel { background:#273138; border-left:2px solid #637988; }
.aside-heading { background:#344959; border-bottom:1px solid #7a8993; }
.activity-log,.unit-list { background:#202a31; }
.activity-entry { background:#29353d; border-left:2px solid #789eb3; }
.action-stack { background:#27343d; }
.stack-button { background:#365b74; border:1px solid #7697a8; box-shadow:none; }
/* Compact desk bar without gradients or oversized modern action cards. */
.console-desk { height:72px; min-height:72px; grid-template-columns:155px minmax(205px,1.2fr) 190px minmax(165px,1fr) 78px; gap:6px; padding:7px 9px; background:#253643; border-top:2px solid #7791a3; }
.desk-section,.desk-clock { background:#1e303d; border:1px solid #6d8290; padding:6px 9px; gap:3px; }
.desk-secondary { background:#3a6078; border:1px solid #829bab; }
.console-action { background:#355e7c; border:1px solid #8baabd; border-radius:0; box-shadow:none; }
.console-action b { font-size:12px; }
.console-action small { font-size:8px; }
.console-action.transmitting { background:#9b7334; border-color:#c8a953; }
.desk-clock strong { font-size:22px; white-space:nowrap; letter-spacing:.035em; }
.settings-stage .selected-resource { width:100%; }
.settings-card { border-radius:0; }
/* Preserve the full console structure at moderate sizes. */
@media(max-width:1140px){
 .body-layout { grid-template-columns:52px minmax(0,1fr) 265px; }
 .zone-stack { width:100%; }
 .zone-row { gap:9px; }
 .console-desk { grid-template-columns:115px minmax(180px,1.1fr) 155px minmax(145px,1fr); }
 .setup-button { display:none; }
}
@media(max-width:890px){
 .body-layout { grid-template-columns:50px minmax(0,1fr); }
 .right-panel { grid-column:2; grid-row:2; border-top:2px solid #637988; border-left:0; max-height:none; }
 .zone-row { grid-template-columns:repeat(3,minmax(150px,1fr)); }
 .main-stage { min-height:660px; }
 .zone-stack { min-width:490px; }
 .console-desk { grid-template-columns:110px minmax(190px,1fr) 150px; }
 .desk-status { display:none; }
}
@media(max-width:620px){
 .dispatch { height:auto; overflow:visible; }
 .top-header { height:auto; min-height:48px; }
 .main-stage { height:auto; min-height:625px; overflow:auto; }
 .zone-stack { min-width:0; }
 .zone-row { grid-template-columns:minmax(0,1fr); gap:8px; }
 .zone-row .resource-tile { height:179px; }
 .console-desk { grid-template-columns:1fr 1fr; height:auto; gap:6px; }
 .desk-clock { grid-column:2; grid-row:1; }
 .transmit-action { grid-column:1/-1; grid-row:2; min-height:64px; }
 .desk-status { display:none; }
 .selected-meta>div { display:none; }
}

/* v0.5.1 — remove redundant side toolbars and use the provided seal as branding. */
.body-layout { grid-template-columns: minmax(0, 1fr) 294px; }
.wordmark { gap: 9px; }
.wordmark .logo.seal-logo { display:flex; flex:0 0 35px; width:35px; height:35px; padding:2px; border:1px solid #69869a; background:#203947; box-shadow:none; overflow:hidden; }
.seal-logo img { display:block; width:100%; height:100%; object-fit:contain; }
.top-header { padding-left: 11px; padding-right: 11px; }
.brand-symbol { width:94px; height:94px; margin:0 auto 18px; display:grid; place-items:center; background:#1a313f; border:1px solid #69889a; }
.brand-symbol img { width:88px; height:88px; display:block; object-fit:contain; }
/* Empty work area is widened by removing the rail. Do not remove radio functions. */
.main-stage { grid-column:1; }
.right-panel { grid-column:2; }
/* No duplicate Action Stack. Only Radio Activity and Connected Units remain. */
.unit-heading { margin-top:0; }
/* Settings is a fixed console footer control, including on narrow screens. */
.console-desk .setup-button { display:block; white-space:nowrap; }
@media(max-width:1350px) { .body-layout { grid-template-columns:minmax(0,1fr) 255px; } }
@media(max-width:1050px) {
  .body-layout { grid-template-columns:minmax(0,1fr); }
  .right-panel { grid-column:1; grid-row:2; height:auto; max-height:300px; border-left:0; border-top:1px solid #71828c; }
  .console-desk { grid-template-columns: 110px minmax(180px,1fr) 145px 150px 86px; }
  .console-desk .setup-button { display:block; }
}
@media(max-width:680px) {
  .body-layout { grid-template-columns:minmax(0,1fr); }
  .main-stage { grid-column:1; }
  .right-panel { grid-column:1; grid-row:2; }
  .console-desk { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .console-desk .setup-button { grid-column:2; grid-row:3; min-height:42px; }
  .console-desk .desk-status { grid-row:4; }
  .system-strip { display:none; }
}

/* v0.5.2: A larger RADIO SETTINGS gear, without changing the working header. */
.settings-stage .selected-symbol.settings-gear {
  font-family: "Segoe UI Symbol", "DejaVu Sans", Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
  font-weight: 400;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
/* Digital / Analog choices are intentionally label-only. */
.settings-stage .mode-row label { align-items: center; min-height: 49px; }
.settings-stage .mode-row b { margin: 0; }
