@font-face {
  font-family: Golos;
  src: url("./assets/fonts/golos-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Golos;
  src: url("./assets/fonts/golos-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: dark;
  --base: #0a111e;
  --surface: #101b2b;
  --raised: #152338;
  --line: #24364b;
  --text: #edf3fa;
  --muted: #a4b4c7;
  --dim: #8197af;
  --amber: #ffc476;
  --mint: #5de3bb;
  --blue: #84bfff;
  --coral: #ff9e8e;
  --radius: 16px;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: Golos, Arial, sans-serif;
  font-size: 100%;
  color: var(--text);
  background: var(--base);
}

* { box-sizing: border-box; }
body {
  min-width: 285px;
  margin: 0;
  background: radial-gradient(ellipse at 79% 0%, #16263d 0%, transparent 48%), var(--base);
}
button { font: inherit; color: inherit; }
button:not(:disabled) { cursor: pointer; }
button:focus-visible, audio:focus-visible { outline: 2px solid #9dcfff; outline-offset: 3px; }
svg { vertical-align: middle; }
[hidden] { display: none !important; }

#definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.shell { width: min(100%, 1460px); margin-inline: auto; padding: 0 clamp(14px, 3vw, 44px); }
.masthead { display: flex; min-height: 60px; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .625rem; color: #e9f1fc; font-size: .78rem; font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
.brand-secondary { color: var(--muted); padding-left: .34rem; }
.brand-mark { width: 27px; height: 25px; display: grid; grid-template-columns: repeat(2, 8px); grid-auto-rows: 8px; gap: 2px; place-content: center; transform: skew(-11deg); }
.brand-mark i { background: var(--amber); border-radius: 1px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { background: #453a39; }
.head-actions { display: flex; align-items: center; gap: .5rem; }
.utility {
  display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: .45rem;
  padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: #112034;
  color: #d2dfef; font-size: .875rem; font-weight: 650;
}
.utility svg { width: 18px; height: 18px; }
.utility:hover { background: #1d3048; border-color: #4d6480; }
.sound-control { width: 39px; padding-inline: 0; }

.hero {
  position: relative; isolation: isolate; display: grid; min-height: 246px; overflow: hidden; align-items: center;
  border: 1px solid #32465c; border-radius: 19px;
  background: radial-gradient(ellipse at 75% 80%, #233851, transparent 56%), #101c2e;
  box-shadow: 0 23px 55px #05091250;
}
.hero-art {
  position: absolute; inset: 0 0 0 auto; width: min(72%, 730px); z-index: -2;
  background: url("./assets/dima-radio.jpg") center 12% / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 22%);
}
.hero::before {
  content: ""; z-index: -1; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0e192a 7%, #0e192a 31%, #0e192af0 38%, #0e192a55 53%, transparent 68%),
    linear-gradient(0deg, #08121f99, transparent 37%);
}
.hero::after {
  position: absolute; content: ""; height: 2px; inset: 0 22% auto 0; opacity: .75;
  background: linear-gradient(90deg, #ffc47666, #ffc47633 33%, transparent 78%);
}
.hero-content { padding: 1.45rem clamp(1.2rem, 3.1vw, 2.75rem) 1.55rem; }
.hero-kicker { display: flex; align-items: center; gap: .52rem; color: #ffd79f; font-size: .84rem; font-weight: 650; letter-spacing: .035em; }
.hero-kicker svg { width: 22px; height: 22px; color: var(--amber); }
.hero h1 { margin: .31rem 0 .3rem; font-weight: 770; font-size: clamp(2.8rem, 4.8vw, 4.9rem); letter-spacing: -.044em; line-height: 1.045; text-shadow: 0 4px 26px #07122095; }
.hero h1 span { color: var(--amber); }
.hero p { margin: .65rem 0 1.25rem; color: #c6d4e5; font-size: clamp(.97rem, 1.45vw, 1.15rem); line-height: 1.5; }
.hero-caption {
  display: flex; align-items: center; gap: .5rem; position: absolute; right: 1rem; bottom: 1rem;
  border: 1px solid #54637a92; border-radius: 5px; background: #0f1b2bdb;
  padding: .45rem .65rem; color: #dce8f4; font: 700 .72rem/1.25 var(--mono); letter-spacing: .055em;
}
.hero-caption span { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px #5de3bb90; }

.button {
  display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: .55rem;
  padding: .66rem 1.05rem; border: 1px solid transparent; border-radius: 8px;
  font-size: .925rem; font-weight: 750; line-height: 1.2; transition: background-color .16s, border-color .16s, transform .16s;
}
.button svg { width: 19px; height: 19px; flex: 0 0 19px; }
.button-primary { color: #24180a; background: var(--amber); border-color: #ffdbac; box-shadow: inset 0 -2px #ae672655, 0 3px 13px #d48b2618; }
.button-primary:not(:disabled):hover { background: #ffd89f; }
.button-secondary { border-color: #3c526a; background: #20334b; color: #e0ebf7; }
.button-secondary:not(:disabled):hover { border-color: #8db7dd; background: #2c445c; }
.button:disabled { background: #223145; color: #a5b5c8; border-color: #33475d; opacity: .66; box-shadow: none; }
.button:not(:disabled):active { transform: translateY(1px); }
.shift-button { min-width: 165px; justify-content: flex-start; }
.shift-button.is-running { background: #142b3a; color: #e4edf7; border-color: #52718a; box-shadow: none; }
.shift-button.is-running:not(:disabled):hover { background: #254459; }

.shift-bar {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  margin-block: 12px; padding: .57rem .95rem; min-height: 48px;
  border: 1px solid var(--line); border-radius: 11px; background: #0f1a2b;
}
.shift-label { display: flex; flex: 0 0 auto; align-items: center; gap: .55rem; font-size: .875rem; font-weight: 700; }
.shift-lamp { width: 7px; height: 7px; border-radius: 50%; background: #92a8c1; }
.shift-lamp[data-status="running"] { background: var(--mint); box-shadow: 0 0 10px #5de3bb75; }
.shift-lamp[data-status="paused"] { background: var(--amber); }
.shift-lamp[data-status="complete"] { background: var(--blue); }
.shift-picker {
  appearance: none; min-height: 32px; max-width: 100%; padding: .32rem 1.53rem .32rem .55rem;
  border: 1px solid #3b526b; border-radius: 6px; color: #e5eef8; font: 650 .78rem/1.25 Golos, sans-serif;
  background: #182a40 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23b4c8dd' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") right .32rem center / 14px no-repeat;
}
.shift-picker:disabled { opacity: 1; background-image: none; padding-right: .55rem; }
.shift-picker:focus-visible { outline: 2px solid #9dcfff; outline-offset: 2px; }
.shift-metrics { display: flex; align-items: center; }
.metric {
  display: flex; align-items: center; gap: .4rem; padding-inline: .82rem;
  color: #edf4fb; font-size: .94rem; font-weight: 720; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.metric + .metric { border-left: 1px solid #2b3d53; }
.metric:last-child { padding-right: .1rem; }
.metric svg { width: 16px; height: 16px; color: var(--dim); }
.metric:last-child svg { color: var(--amber); }
.metric-label { color: var(--muted); margin-left: .1rem; font-size: .8rem; font-weight: 500; }

.desk {
  display: grid; grid-template-columns: minmax(196px, .83fr) minmax(350px, 2.36fr) minmax(290px, 1.17fr);
  grid-template-areas: "queue map radio" "crews crews crews"; gap: 14px; align-items: stretch;
}
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, #152237, var(--surface) 68%); }
.queue-panel { grid-area: queue; }
.map-panel { grid-area: map; overflow: hidden; align-self: stretch; display: flex; flex-direction: column; }
.radio-panel { grid-area: radio; display: flex; flex-direction: column; }
.crews-panel { grid-area: crews; }
.panel-head {
  min-height: 51px; padding: .66rem .88rem; display: flex; align-items: center; justify-content: space-between; gap: .45rem;
  border-bottom: 1px solid var(--line);
}
.panel h2, .dialog-head h2 { display: flex; align-items: center; gap: .54rem; margin: 0; font-size: 1.015rem; font-weight: 750; letter-spacing: -.025em; }
.panel h2 svg { width: 19px; height: 19px; color: #8babcb; flex: 0 0 19px; }
.queue-count { border: 1px solid #354a61; background: #203147; color: #c6daef; padding: .22rem .43rem; border-radius: 5px; font: 650 .76rem/1.2 var(--mono); }
.queue { display: grid; gap: .48rem; padding: .63rem; max-height: 447px; overflow: auto; scrollbar-width: thin; align-content: start; }
.call-card {
  --pin-color: var(--blue);
  width: 100%; position: relative; display: grid; gap: .29rem; text-align: left;
  padding: .64rem .67rem .63rem .78rem; border: 1px solid #2c4057; border-radius: 9px;
  background: #142135; line-height: 1.23;
}
.call-card.urgent, .map-pin.urgent { --pin-color: var(--amber); }
.call-card:hover { background: #1a2c43; border-color: #536a82; }
.call-card[aria-pressed="true"] { background: #262a32; border-color: var(--pin-color); box-shadow: inset 3px 0 var(--pin-color); }
.call-card.normal[aria-pressed="true"] { background: #1b304a; }
.call-top { display: flex; align-items: center; justify-content: space-between; gap: .3rem; margin-bottom: .1rem; }
.call-tag { display: flex; align-items: center; gap: .28rem; color: var(--pin-color); font-size: .74rem; font-weight: 700; }
.call-tag i { width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg); }
.call-card.urgent .call-tag i { background: currentColor; }
.call-time, .call-timer { color: #aabdd4; font: 500 .72rem/1.2 var(--mono); white-space: nowrap; }
.call-name { font-size: .875rem; font-weight: 750; padding-right: .08rem; }
.call-address { color: var(--muted); font-size: .8rem; }
.call-card:has(.call-timer) .call-address { padding-right: 2.4rem; }
.call-timer { position: absolute; right: .68rem; bottom: .63rem; font-size: .72rem; }
.call-timer.timer-low { color: var(--coral); }
.panel-empty { display: grid; justify-items: center; text-align: center; padding: 1.35rem .45rem; color: var(--muted); }
.panel-empty svg { width: 27px; height: 27px; margin-bottom: .45rem; color: var(--blue); }
.panel-empty p { margin: 0 0 .35rem; color: var(--text); font-size: .93rem; font-weight: 700; }
.panel-empty span { font-size: .84rem; line-height: 1.45; }

.map-channel { display: flex; align-items: center; gap: .39rem; color: #abcccf; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.map-channel i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.map-stage { position: relative; align-self: center; width: 100%; aspect-ratio: 720 / 409; }
.map-panel { background: #142632; }
.map-panel .panel-head { background: #142135; }
#city-map { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.map-overlay { position: absolute; inset: 0; pointer-events: none; }
.block { fill: #203643; stroke: #324956; stroke-width: 1; }
.park { fill: #1e3940; }
.trail { fill: none; stroke: #416058; stroke-width: 2; stroke-dasharray: 3 4; }
.map-tree { fill: #2f5351; stroke: #365e56; stroke-width: 1; }
.building { fill: #2b4554; stroke: #344e5c; stroke-width: .6; }
.tone-1 { fill: #2d4655; }
.tone-2 { fill: #344c58; }
.tone-3 { fill: #283d4c; }
.river { fill: url(#river-shade); }
.shore { fill: #405c62; opacity: .64; }
.river-current { fill: none; stroke: #56939d; stroke-dasharray: 2 9; stroke-width: 1; opacity: .65; }
.street, .avenue, .bridge, .outer-street, .street-edge, .avenue-edge, .bridge-edge, .route {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.street { stroke: #476073; stroke-width: 3; }
.street-edge { stroke: #172735; stroke-width: 6; }
.avenue { stroke: #557184; stroke-width: 4.5; }
.avenue-edge { stroke: #132331; stroke-width: 8; }
.bridge { stroke: #69909f; stroke-width: 4.5; }
.bridge-edge { stroke: #152d3a; stroke-width: 10; }
.outer-street { stroke: #385266; stroke-width: 3; opacity: .65; }
.districts { fill: #90a7b2; stroke: #1a303d; stroke-width: 4; paint-order: stroke fill; font: 750 11px Golos, sans-serif; letter-spacing: .115em; text-anchor: middle; }
.base-mark rect { fill: #142638; stroke: currentColor; stroke-width: 1.1; }
.base-mark { opacity: .9; }
.route { stroke: currentColor; stroke-width: 3.1; stroke-dasharray: 5 5; filter: drop-shadow(0 0 3px currentColor); opacity: .86; }
.route.returning { opacity: .48; stroke-width: 2.5; }
.moving-mark rect { fill: #102033; stroke: currentColor; stroke-width: 1.6; filter: drop-shadow(0 0 3px currentColor); }
.map-pin {
  --pin-color: var(--blue);
  position: absolute; pointer-events: auto; display: grid; place-items: center;
  width: 39px; height: 39px; padding: 0; transform: translate(-50%,-50%);
  border: 0; background: transparent; border-radius: 50%;
}
.map-pin span {
  width: 27px; height: 27px; display: grid; place-items: center;
  border: 1px solid var(--pin-color); border-radius: 50%; color: var(--pin-color);
  background: #142333; box-shadow: 0 0 0 4px #14233390; transition: background-color .16s, color .16s;
}
.map-pin svg { width: 16px; height: 16px; }
.map-pin:hover span, .map-pin[aria-pressed="true"] span { background: var(--pin-color); color: #1c2533; }
.map-pin[aria-pressed="true"] { z-index: 1; }
.map-pin[aria-pressed="true"]::after { content: ""; position: absolute; inset: -2px; pointer-events: none; border: 1px dashed var(--pin-color); border-radius: 50%; animation: map-pulse 2.9s ease-in-out infinite; }
.map-pin.sent { --pin-color: var(--mint); }
@keyframes map-pulse { 50% { opacity: .48; transform: scale(1.14); } }
.map-key {
  pointer-events: none; position: absolute; left: .67rem; bottom: .59rem; display: flex; align-items: center; gap: .69rem;
  padding: .33rem .53rem; border: 1px solid #5171826e; border-radius: 5px; background: #132636de; color: #cad9e7; font-size: .72rem;
}
.map-key span { display: flex; align-items: center; gap: .26rem; }
.map-key i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.map-key span + span i { border: 1px solid var(--mint); border-radius: 2px; background: transparent; }
.north { position: absolute; z-index: 0; pointer-events: none; top: .53rem; right: .65rem; display: grid; justify-items: center; color: #b3ccdc; font: 700 .68rem/1 var(--mono); }
.north svg { width: 19px; height: 19px; }

.frequency {
  display: flex; gap: 2px; align-items: flex-end; border: 1px solid #36534e; border-radius: 5px;
  padding: .28rem .38rem; background: #19313a; color: var(--mint); font: 700 .73rem/1 var(--mono);
}
.frequency i { width: 2px; height: 4px; background: currentColor; }
.frequency i:nth-child(2) { height: 6px; }
.frequency i:nth-child(3) { height: 8px; }
.frequency i:nth-child(4) { height: 10px; margin-right: .21rem; }
.call-detail { padding: .88rem .9rem .5rem; }
.detail-id { display: flex; align-items: center; justify-content: space-between; gap: .3rem; color: #a1b4ce; font: 650 .72rem/1.45 var(--mono); }
.detail-id span { color: var(--amber); font: 650 .75rem/1.3 Golos, sans-serif; text-align: right; }
.call-detail h3 { margin: .46rem 0 .56rem; font-size: clamp(1.26rem, 1.8vw, 1.58rem); line-height: 1.15; font-weight: 800; letter-spacing: -.045em; }
.detail-location, .detail-time { display: flex; align-items: center; gap: .35rem; color: #d1dfed; font-size: .875rem; line-height: 1.32; }
.detail-time { margin-top: .32rem; color: var(--muted); font-size: .81rem; }
.detail-location svg, .detail-time svg { color: #89afd4; width: 16px; height: 16px; flex: 0 0 auto; }
.report { margin: .69rem 0 0; color: #b8c8da; font-size: .875rem; line-height: 1.5; }
.radio-controls { margin-top: auto; padding: .35rem .89rem .83rem; }
.radio-text { padding: .52rem .62rem; border: 1px solid #2b4458; border-radius: 7px; background: #0c1827; }
.radio-label { color: #a4bed4; font-size: .73rem; font-weight: 700; }
.radio-text p { margin: .21rem 0 0; color: #d3e0ed; font-size: .82rem; line-height: 1.36; }
.radio-notice { margin-top: .45rem; font-size: .81rem; line-height: 1.35; color: var(--blue); }
.radio-notice[data-kind="success"] { color: var(--mint); }
.radio-notice[data-kind="error"] { color: var(--coral); }
#mic-settings { margin-top: .5rem; }
.radio-actions { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: .43rem; margin-top: .55rem; }
.radio-actions .button { padding-inline: .37rem; font-size: .8rem; gap: .3rem; }
.radio-actions .button svg { flex-basis: 16px; width: 16px; height: 16px; }
.microphone[aria-pressed="true"], .microphone[aria-pressed="true"]:not(:disabled):hover { border-color: #ff9e8e; color: #ffbaa9; background: #482e38; }

.crews-panel .panel-head { min-height: 45px; }
.available-count { color: #a5c9cd; font-size: .82rem; font-weight: 650; }
.crews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; padding: .55rem .65rem .63rem; }
.crew {
  display: grid; grid-template-columns: 37px minmax(0, 1fr) auto; align-items: center; gap: .58rem; width: 100%;
  padding: .45rem .57rem; border: 1px solid #2e4259; border-radius: 9px; background: #152339; text-align: left;
}
.crew:disabled { cursor: default; }
.crew:disabled kbd, .crew:not(.ready) .crew-icon { opacity: .57; }
.crew:not(:disabled):hover { border-color: #657b94; background: #1c2f46; }
.crew[aria-pressed="true"] { border-color: var(--crew-color); background: #213144; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--crew-color) 22%, transparent); }
.crew-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 7px; background: color-mix(in srgb, var(--crew-color) 15%, #102035); color: var(--crew-color); }
.crew-icon svg { width: 22px; height: 22px; }
.crew-info { display: grid; gap: .2rem; overflow-wrap: anywhere; }
.crew-info strong { font-size: .92rem; font-weight: 750; }
.crew-info > span { display: flex; align-items: center; gap: .32rem; color: #aec5d9; font-size: .76rem; line-height: 1.2; }
.crew-info i { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #b19c73; }
.crew.ready .crew-info i { background: var(--mint); }
.crew.driving .crew-info i { background: var(--amber); }
.crew.working .crew-info i { background: var(--blue); }
.crew kbd { min-width: 20px; padding: .15rem .25rem; border: 1px solid #3f536b; border-radius: 4px; color: #acbfd7; font: 600 .75rem/1.1 var(--mono); text-align: center; }

.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem; padding: 1rem .15rem 1.3rem; color: var(--dim); font-size: .74rem; }
.site-footer span:first-child { color: #9eb0c7; font-weight: 750; letter-spacing: .09em; }
.game-dialog {
  width: min(500px, calc(100% - 28px)); max-height: min(85vh, 680px); padding: 0; border: 1px solid #4c6380;
  border-radius: 14px; color: var(--text); background: var(--surface); box-shadow: 0 15px 65px #0008;
}
.game-dialog::backdrop { background: #050b13b8; backdrop-filter: blur(3px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .87rem 1rem; border-bottom: 1px solid var(--line); background: var(--raised); }
.dialog-head h2 { font-size: 1.2rem; }
.dialog-head button { min-width: 38px; padding-inline: .3rem; }
.journal-list { list-style: none; padding: .45rem 1rem .9rem; margin: 0; }
.journal-list li { display: flex; gap: .8rem; padding: .7rem .15rem; }
.journal-list li + li { border-top: 1px solid var(--line); }
.journal-list time { color: var(--amber); font: 600 .84rem/1.5 var(--mono); }
.journal-list strong { font-size: .925rem; }
.journal-list p { color: var(--muted); font-size: .82rem; margin: .27rem 0 0; line-height: 1.4; }
.journal-list audio { margin-top: .5rem; height: 34px; width: min(270px, 100%); }
.journal-empty { color: var(--muted); }
.summary-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; padding: 1rem; }
.summary-stats div { display: grid; gap: .35rem; padding: .9rem; background: #182a40; border: 1px solid #35506b; border-radius: 8px; }
.summary-stats strong { color: var(--amber); font-size: 1.72rem; }
.summary-stats span { color: var(--muted); font-size: .85rem; }
.summary-actions { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0 1rem 1rem; }
.noscript { margin: 1rem; color: var(--amber); }

@media (min-width: 1180px) {
  .call-card { padding-block: .73rem; }
  .call-card .call-name { font-size: .94rem; }
  .call-detail { padding: 1.02rem 1.03rem .68rem; }
  .radio-controls { padding: .45rem 1.03rem .94rem; }
}

@media (min-width: 1051px) and (max-height: 930px) {
  .masthead { min-height: 57px; }
  .hero { min-height: 217px; }
  .hero-content { padding-block: .87rem; }
  .hero h1 { font-size: clamp(2.8rem, 4.6vw, 4.55rem); }
  .hero p { margin-bottom: 1rem; }
  .desk { gap: 12px; }
  .map-stage { aspect-ratio: 720 / 361; }
}

@media (max-width: 1050px) {
  .desk { grid-template-columns: minmax(172px, .83fr) minmax(300px, 1.8fr) minmax(246px, 1.1fr); gap: 10px; }
  .panel-head { padding-inline: .64rem; }
  .radio-controls { padding-inline: .68rem; }
  .call-detail { padding-inline: .68rem; }
  .hero { min-height: 242px; }
}

@media (max-width: 790px) {
  .desk {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
    grid-template-areas: "queue radio" "crews crews" "map map";
  }
  .hero-art { width: 78%; }
  .hero::before { background: linear-gradient(90deg, #0e192a 5%, #0e192af7 24%, #0e192a8f 50%, transparent 78%), linear-gradient(0deg, #08121f99, transparent 36%); }
  .queue { max-height: 374px; }
  .map-stage { aspect-ratio: 720 / 456; }
  .crews-panel .radio-controls { border-top: 1px solid var(--line); padding-top: .68rem; }
}

@media (max-width: 540px) {
  .masthead { min-height: 54px; }
  .head-actions { gap: .32rem; }
  .utility { min-height: 37px; }
  .sound-control { width: 37px; }
  .brand { gap: .25rem; font-size: .69rem; }
  .brand-secondary { padding-left: .19rem; }
  .hero { min-height: 335px; display: flex; align-items: flex-end; border-radius: 15px; }
  .hero-art { width: 100%; background-position: center 0; background-size: auto 253px; background-color: #101c2e; mask-image: none; }
  .hero::before { background: linear-gradient(0deg, #101c2e 13%, #101c2e 28%, #101c2eec 40%, #101c2e2b 62%, transparent 86%); }
  .hero-content { padding: .73rem .95rem .95rem; position: relative; width: 100%; }
  .hero-kicker { font-size: .74rem; gap: .38rem; }
  .hero-kicker svg { width: 18px; height: 18px; }
  .hero h1 { font-size: clamp(2.28rem, 9vw, 3.15rem); margin: .24rem 0 .24rem; }
  .hero p { margin: .34rem 0 .7rem; font-size: .86rem; }
  .hero-caption { bottom: auto; top: .64rem; right: .65rem; font-size: .63rem; }
  .shift-bar { margin-block: 10px; padding: .55rem .54rem; gap: .45rem; min-height: 44px; }
  .shift-label { font-size: .75rem; gap: .31rem; }
  .shift-picker { max-width: clamp(104px, 36vw, 158px); text-overflow: ellipsis; font-size: .74rem; }
  #shift-label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .metric { padding-inline: .39rem; font-size: .79rem; gap: .24rem; }
  .metric-label { display: none; }
  .metric svg { width: 14px; height: 14px; }
  .desk { grid-template-columns: minmax(0, 1fr); grid-template-areas: "queue" "radio" "crews" "map"; }
  .panel-head { min-height: 45px; }
  .queue { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(144px, 47%); grid-template-columns: none; overflow-x: auto; padding: .49rem; scroll-padding-inline: .49rem; }
  .queue:has(.panel-empty) { grid-auto-columns: 1fr; }
  .call-card { min-height: 76px; padding: .47rem .48rem .48rem .61rem; }
  .call-card:has(.call-timer) { padding-bottom: 1.34rem; }
  .call-card:has(.call-timer) .call-address { padding-right: .08rem; }
  .call-time, .call-timer { font-size: .68rem; }
  .call-timer { bottom: .35rem; right: .47rem; }
  .call-tag { font-size: .68rem; }
  .call-name { font-size: .82rem; }
  .call-address { font-size: .75rem; }
  .crews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crew kbd { display: none; }
  .crew { grid-template-columns: 35px minmax(0, 1fr); }
  .crew-icon { width: 35px; height: 35px; }
  .map-key { bottom: .33rem; left: .34rem; font-size: .66rem; padding: .22rem .35rem; }
  .north { right: .35rem; top: .34rem; }
  .map-pin span { width: 23px; height: 23px; box-shadow: 0 0 0 2px #14233390; }
  .map-pin svg { width: 14px; height: 14px; }
  .map-pin[aria-pressed="true"]::after { inset: 2px; }
}

@media (max-width: 352px) {
  .journal-control span { display: none; }
  .journal-control { width: 36px; }
  .hero h1 { font-size: 2.05rem; }
  .hero p { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.android-shell .panel { contain: paint; }
.android-shell .game-dialog::backdrop { backdrop-filter: none; }
.android-shell .route, .android-shell .moving-mark rect { filter: none; }
.android-shell .map-pin[aria-pressed="true"]::after { animation: none; }
