@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --ink: #edf5f2;
  --muted: #8799a5;
  --faint: #657986;
  --line: rgba(149, 179, 185, .13);
  --panel: #0e1b23;
  --panel-raised: #13232c;
  --base: #09131b;
  --green: #00e5ff;
  --green-strong: #00bfd2;
  --blue: #6bbcff;
  --magenta: #ff43d2;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --display: 'Manrope', var(--sans);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--base); scroll-behavior: smooth; }
body { margin: 0; background: var(--base); color: var(--ink); font-family: var(--sans); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, audio { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; top: -100px; left: 16px; z-index: 1000; padding: 10px 14px; background: var(--green); color: #071510; border-radius: 7px; }
.skip-link:focus { top: 12px; }
.topbar { height: 70px; position: sticky; top: 0; z-index: 500; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(8, 18, 25, .94); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 215px; }
.brand-mark { display: inline-flex; align-items: center; gap: 3px; width: 28px; height: 25px; }
.brand-mark span { width: 5px; border-radius: 6px; background: var(--green); box-shadow: 0 0 10px rgba(113, 230, 180, .24); }
.brand-mark span:nth-child(1) { height: 12px; opacity: .65; }
.brand-mark span:nth-child(2) { height: 22px; }
.brand-mark span:nth-child(3) { height: 15px; opacity: .78; }
.brand-name { color: #f2f7f5; font: 800 14px var(--display); letter-spacing: .13em; }
.brand-name span { color: var(--green); }
.topbar-status { display: flex; align-items: center; gap: 9px; color: #9fb0b7; font-size: 12px; }
.status-light, .source-dot { width: 7px; height: 7px; border-radius: 50%; background: #72828a; }
.status-light.is-connected { background: var(--green-strong); box-shadow: 0 0 12px rgba(54, 201, 143, .7); }
.location-button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 13px; border: 1px solid rgba(121, 227, 183, .28); border-radius: 7px; background: rgba(41, 137, 102, .12); color: #baf5da; font-size: 12px; font-weight: 600; cursor: pointer; transition: .2s; }
.location-button:hover { border-color: var(--green); background: rgba(41, 137, 102, .22); }
.location-button > span:first-child { font-size: 20px; line-height: 1; }

.app-shell { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: sticky; top: 70px; height: calc(100vh - 70px); min-height: 620px; display: flex; flex-direction: column; padding: 28px 15px 18px; border-right: 1px solid var(--line); background: #0b171f; }
.sidebar-heading, .section-label, .eyebrow, .metric-label, .player-overline, .player-status, .system-type, .system-state, .system-status, .feed-tab .tab-count, .result-count { font-family: var(--mono); font-size: 9px; letter-spacing: .115em; }
.sidebar-heading { padding: 0 9px; color: #728791; font-weight: 500; }
.search-box { height: 39px; display: flex; align-items: center; gap: 8px; margin: 18px 0 30px; padding: 0 10px; border: 1px solid rgba(156, 186, 192, .16); border-radius: 6px; background: rgba(7, 16, 22, .66); color: #7f949d; }
.search-box > span { font-size: 20px; transform: translateY(-1px); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.search-box input::placeholder { color: #71838b; }
.search-box kbd { padding: 2px 5px; border: 1px solid rgba(155, 183, 188, .18); border-radius: 4px; color: #738790; font: 10px var(--mono); }
.section-label { display: flex; align-items: center; justify-content: space-between; padding: 0 9px; margin-bottom: 10px; color: #768b94; }
.feed-tabs { display: grid; gap: 4px; margin-bottom: 27px; }
.feed-tab { display: flex; align-items: center; gap: 10px; height: 39px; padding: 0 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #9bacb1; text-align: left; font-size: 12px; cursor: pointer; }
.feed-tab:hover { color: #e4efeb; background: rgba(255,255,255,.025); }
.feed-tab.is-active { border-color: rgba(91, 219, 161, .13); background: rgba(61, 177, 126, .095); color: #c7f6df; }
.tab-icon { width: 18px; color: #82969e; font-size: 17px; text-align: center; }
.feed-tab.is-active .tab-icon { color: var(--green); }
.live-icon { font-size: 15px; }
.feed-tab .tab-count { margin-left: auto; color: #71868d; font-size: 8px; letter-spacing: .02em; }
.feed-tab.is-active .tab-count { color: #9be4c2; }
.region-heading { margin-bottom: 8px; }
.region-list { min-height: 80px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2b4149 transparent; }
.region-button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 8px 10px; border: 0; border-radius: 5px; background: transparent; color: #8fa0a7; font-size: 11px; text-align: left; cursor: pointer; }
.region-button:hover, .region-button.is-selected { color: #ddede7; background: rgba(255,255,255,.045); }
.region-button.is-selected .region-name { color: var(--green); }
.region-name { display: inline-flex; align-items: center; gap: 9px; }
.state-abbr { display: inline-grid; width: 22px; height: 19px; place-items: center; border: 1px solid rgba(137, 165, 173, .16); border-radius: 4px; color: #91a6ad; font: 9px var(--mono); }
.region-total { color: #71858c; font: 10px var(--mono); }
.sidebar-footer { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid var(--line); color: #91a6ab; font-size: 10px; line-height: 1.8; }
.source-dot { display: inline-block; margin-right: 5px; background: var(--green-strong); vertical-align: middle; }
.sidebar-muted { color: #627780; font-size: 9px; }

.main-content { width: 100%; max-width: 1700px; margin: 0 auto; padding: 39px clamp(24px, 3.2vw, 54px) 25px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 26px; }
.eyebrow { margin: 0 0 11px; color: #7f9a9c; font-size: 9px; font-weight: 500; letter-spacing: .17em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; color: #f0f6f3; font: 700 clamp(30px, 3vw, 42px)/1.16 var(--display); letter-spacing: -.05em; }
h1 em { color: var(--green); font-style: normal; }
.intro-copy { max-width: 630px; margin: 0; color: #99a9ae; font-size: 12px; line-height: 1.75; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-top: 7px; padding: 8px 11px; border: 1px solid rgba(78, 194, 139, .22); border-radius: 20px; background: rgba(48, 140, 100, .09); color: #a6e4c5; font: 9px var(--mono); letter-spacing: .1em; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-strong); box-shadow: 0 0 0 0 rgba(54, 201, 143, .6); animation: pulse 2s infinite; }
@keyframes pulse { 60% { box-shadow: 0 0 0 6px rgba(54, 201, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(54, 201, 143, 0); } }
.metrics-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.metric-card { position: relative; min-height: 98px; padding: 15px 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(140deg, rgba(18, 36, 45, .9), rgba(13, 26, 34, .96)); }
.metric-card::after { position: absolute; right: -14px; bottom: -24px; width: 80px; height: 80px; border: 1px solid rgba(87, 211, 157, .08); border-radius: 50%; content: ''; }
.metric-label { display: block; margin-bottom: 9px; color: #82999f; font-size: 8px; }
.metric-card strong { display: block; overflow: hidden; color: #edf7f2; font: 700 21px var(--display); text-overflow: ellipsis; white-space: nowrap; }
.metric-caption { display: block; margin-top: 4px; color: #748990; font-size: 9px; }

.explorer-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); gap: 14px; align-items: stretch; }
.map-panel, .feed-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.panel-heading { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 17px; border-bottom: 1px solid var(--line); }
.panel-heading .eyebrow { margin-bottom: 4px; font-size: 8px; }
h2 { margin: 0; color: #e7f0ec; font: 600 17px var(--display); letter-spacing: -.025em; }
.map-key { display: inline-flex; align-items: center; gap: 7px; color: #8da1a6; font-size: 9px; white-space: nowrap; }
.key-bubble { width: 10px; height: 10px; border: 1px solid var(--green); border-radius: 50%; background: rgba(54, 201, 143, .35); }
#coverage-map { height: 353px; background: #0b1921; }
.leaflet-container { background: #0b1921; color: var(--ink); font-family: var(--sans); }
.leaflet-control-attribution { background: rgba(7, 17, 23, .78) !important; color: #75878d !important; font-size: 8px !important; }
.leaflet-control-attribution a { color: #88c8af !important; }
.leaflet-bar { border: 1px solid rgba(137, 165, 173, .25) !important; box-shadow: none !important; }
.leaflet-bar a { background: #10232d !important; color: #c7ded5 !important; border-color: rgba(137, 165, 173, .16) !important; }
.leaflet-tooltip.map-tooltip { border: 1px solid rgba(113, 230, 180, .35); border-radius: 4px; background: #101f27; box-shadow: 0 4px 15px rgba(0,0,0,.25); color: #e4f1eb; font-size: 10px; }
.map-note { display: flex; gap: 7px; min-height: 40px; align-items: center; padding: 9px 15px; border-top: 1px solid var(--line); color: #879ba1; font-size: 9px; line-height: 1.5; }
.map-note > span { color: var(--green); font-size: 12px; }
.feed-panel { display: flex; flex-direction: column; min-height: 465px; }
.feed-panel-heading { flex: 0 0 auto; }
.result-count { color: #789096; font-size: 8px; letter-spacing: .05em; white-space: nowrap; }
.feed-list { display: grid; align-content: start; gap: 8px; max-height: 426px; min-height: 260px; padding: 10px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2b4149 transparent; }
.system-card { position: relative; padding: 11px 12px 10px; border: 1px solid rgba(144, 174, 179, .13); border-radius: 6px; background: rgba(8, 18, 24, .5); cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.system-card:hover { transform: translateY(-1px); border-color: rgba(113, 230, 180, .36); background: rgba(22, 44, 51, .55); }
.system-card.is-current { border-color: rgba(113, 230, 180, .48); background: rgba(36, 116, 88, .12); }
.system-card-top { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.system-signal { width: 6px; height: 6px; border-radius: 50%; background: #687982; }
.system-signal.signal-active { background: var(--green-strong); box-shadow: 0 0 8px rgba(54, 201, 143, .55); }
.system-type { color: #8da4a8; font-size: 8px; letter-spacing: .06em; }
.system-state { margin-left: auto; color: #72888e; font-size: 8px; }
.system-card h3 { margin: 0 0 3px; overflow: hidden; color: #e2eee9; font: 600 12px var(--display); text-overflow: ellipsis; white-space: nowrap; }
.system-location { margin: 0 0 4px; color: #a1b4b5; font-size: 9px; }
.system-description { display: -webkit-box; margin: 0 0 9px; overflow: hidden; color: #71868c; font-size: 9px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.system-card-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 7px; border-top: 1px solid rgba(146, 175, 179, .09); }
.system-status { color: #7ba994; font-size: 7px; letter-spacing: .1em; }
.open-system { padding: 3px 0 3px 8px; border: 0; background: none; color: #b6ead0; font: 8px var(--mono); letter-spacing: .05em; cursor: pointer; }
.open-system:hover { color: #fff; }
.load-more { width: calc(100% - 20px); min-height: 34px; align-self: center; margin: 0 10px 10px; border: 1px solid rgba(119, 167, 163, .2); border-radius: 5px; background: rgba(255,255,255,.025); color: #a9c1bd; font-size: 10px; cursor: pointer; }
.load-more:hover { border-color: rgba(113, 230, 180, .42); color: var(--green); }
.loading-state, .empty-state, .error-state { display: flex; min-height: 220px; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: #84999e; text-align: center; font-size: 10px; }
.empty-state strong, .error-state strong { color: #cfdfd9; font: 600 13px var(--display); }
.empty-state span, .error-state span { max-width: 280px; color: #85999e; line-height: 1.6; }
.error-state button { margin-top: 4px; padding: 7px 13px; border: 1px solid rgba(113, 230, 180, .35); border-radius: 5px; background: rgba(50, 142, 104, .12); color: #bdf0d6; cursor: pointer; }
.empty-icon { color: var(--green); font-size: 24px; }
.loader { width: 17px; height: 17px; border: 2px solid rgba(115, 220, 177, .2); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.player-panel { display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(240px, 1fr) auto; gap: 16px; align-items: center; margin-top: 14px; padding: 15px 17px; border: 1px solid rgba(113, 230, 180, .17); border-radius: 8px; background: linear-gradient(100deg, rgba(17, 38, 42, .92), rgba(14, 29, 37, .97)); }
.player-system { display: flex; min-width: 0; align-items: center; gap: 12px; }
.player-art { display: flex; width: 43px; height: 43px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 1px; border: 1px solid rgba(113, 230, 180, .22); border-radius: 7px; background: rgba(58, 148, 109, .12); color: var(--green); font-size: 15px; }
.player-art span:first-child { transform: translateX(3px); }
.player-art span:last-child { transform: translateX(-3px); }
.player-meta { min-width: 0; }
.player-overline { display: block; margin-bottom: 4px; color: #8ab79f; font-size: 7px; }
.player-meta strong { display: block; overflow: hidden; color: #e2eee9; font: 600 12px var(--display); text-overflow: ellipsis; white-space: nowrap; }
.player-meta > span:last-child { display: block; margin-top: 3px; overflow: hidden; color: #84999d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.player-controls { display: flex; min-width: 0; align-items: center; gap: 11px; }
.play-button { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 50%; background: var(--green); color: #071810; font-size: 12px; cursor: pointer; box-shadow: 0 0 18px rgba(113,230,180,.12); }
.play-button:hover:not(:disabled) { background: #a2f3cd; transform: scale(1.04); }
.play-button:disabled { cursor: not-allowed; opacity: .42; }
.audio-wrap { min-width: 0; width: 100%; }
.audio-wrap audio { display: block; width: 100%; height: 29px; opacity: .87; }
.player-footnote { margin-top: 3px; overflow: hidden; color: #788e93; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.player-status { display: inline-flex; align-items: center; gap: 7px; color: #81969a; font-size: 7px; letter-spacing: .09em; white-space: nowrap; }
.player-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #71848a; }
.player-status.is-active .player-status-dot { background: var(--green-strong); box-shadow: 0 0 8px rgba(54,201,143,.65); }

.archive-panel, .recent-panel { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.archive-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.archive-header .eyebrow { margin-bottom: 4px; }
.date-filter { display: flex; align-items: center; gap: 9px; color: #91a7a8; font-size: 9px; }
.date-filter input { padding: 7px 9px; border: 1px solid rgba(139, 171, 173, .19); border-radius: 5px; background: #0a171e; color: #dae9e2; font: 10px var(--mono); color-scheme: dark; }
.archive-list { display: grid; gap: 0; max-height: 360px; overflow: auto; }
.call-row { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 11px 16px; border-bottom: 1px solid rgba(149,179,185,.09); }
.call-row:last-child { border-bottom: 0; }
.call-play-icon { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid rgba(113,230,180,.2); border-radius: 50%; color: var(--green); font-size: 8px; }
.call-info { display: grid; min-width: 0; gap: 3px; }
.call-info strong { color: #dcebe3; font-size: 10px; font-weight: 600; }
.call-info span { overflow: hidden; color: #80969b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.integrity-score { color: #8fdaba; font: 8px var(--mono); letter-spacing: .035em; }
.call-row time { color: #8fa2a4; font: 9px var(--mono); white-space: nowrap; }
.call-play-button { padding: 5px 8px; border: 1px solid rgba(113,230,180,.2); border-radius: 4px; background: rgba(39,131,94,.12); color: #a8e8c6; font: 8px var(--mono); cursor: pointer; }
.call-play-button:hover, .transcript-button:hover:not(:disabled) { border-color: var(--green); }
.transcript-button { padding: 5px 8px; border: 1px solid rgba(104,185,255,.18); border-radius: 4px; background: rgba(55,109,150,.1); color: #a6d6fa; font: 8px var(--mono); cursor: pointer; white-space: nowrap; }
.transcript-button:disabled { cursor: progress; opacity: .65; }
.transcript-result { grid-column: 2 / -1; margin: -3px 0 2px; padding: 9px 10px; border-left: 2px solid var(--blue); background: rgba(104,185,255,.06); color: #bdd4df; font-size: 9px; line-height: 1.65; white-space: pre-wrap; }
.empty-note, .loading-archive { margin: 0; padding: 22px 16px; color: #84989d; font-size: 10px; }
.loading-archive { display: flex; align-items: center; gap: 9px; }
.page-footer { display: flex; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 11px 1px 0; border-top: 1px solid rgba(149,179,185,.08); color: #70848b; font-size: 8px; line-height: 1.55; }

@media (min-width: 1500px) { .explorer-grid { grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr); } }
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 218px minmax(0, 1fr); }
  .main-content { padding: 32px 22px 24px; }
  .explorer-grid { grid-template-columns: minmax(0, 1fr); }
  .feed-panel { min-height: 0; }
  .feed-list { max-height: 390px; }
  .player-panel { grid-template-columns: minmax(180px, .9fr) minmax(220px, 1fr); }
  .player-status { grid-column: 1 / -1; justify-self: end; }
}
@media (max-width: 720px) {
  .topbar { height: 60px; padding: 0 16px; }
  .topbar-status { display: none; }
  .brand { min-width: unset; }
  .app-shell { display: block; min-height: calc(100vh - 60px); }
  .sidebar { position: relative; top: auto; height: auto; min-height: 0; padding: 11px 15px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-heading, .region-heading, .region-list, .sidebar-footer { display: none; }
  .search-box { margin: 0 0 9px; }
  .feed-tabs { display: flex; gap: 7px; margin: 0; }
  .feed-tab { flex: 1; justify-content: center; height: 36px; padding: 0 8px; font-size: 10px; }
  .feed-tab .tab-count { margin-left: 3px; }
  .main-content { padding: 25px 14px 20px; }
  .page-heading { gap: 9px; margin-bottom: 17px; }
  h1 { font-size: clamp(28px, 8vw, 36px); }
  .intro-copy { max-width: 470px; font-size: 10px; }
  .live-pill { margin-top: 1px; padding: 7px 8px; font-size: 7px; }
  .metrics-row { gap: 7px; margin-bottom: 12px; }
  .metric-card { min-height: 82px; padding: 11px 9px; }
  .metric-label { min-height: 19px; margin-bottom: 5px; font-size: 6px; letter-spacing: .08em; }
  .metric-card strong { font-size: 16px; }
  .metric-caption { font-size: 7px; line-height: 1.3; }
  .explorer-grid { gap: 10px; }
  .panel-heading { min-height: 61px; padding: 10px 12px; }
  h2 { font-size: 15px; }
  #coverage-map { height: 270px; }
  .feed-list { max-height: 340px; padding: 8px; }
  .player-panel { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 8px; margin-top: 10px; padding: 12px; }
  .player-system { grid-column: 1 / -1; }
  .player-controls { grid-column: 1 / -1; }
  .player-status { grid-column: 1 / -1; justify-self: start; }
  .player-meta strong { font-size: 11px; }
  .archive-header { align-items: flex-start; flex-direction: column; gap: 12px; padding: 13px; }
  .date-filter { width: 100%; justify-content: space-between; }
  .date-filter input { width: min(65%, 230px); }
  .call-row { grid-template-columns: 24px minmax(0,1fr) auto auto; gap: 6px; padding: 10px; }
  .call-row time { grid-column: 2; font-size: 8px; }
  .call-play-button { grid-column: 3; grid-row: 1 / span 2; }
  .transcript-button { grid-column: 4; grid-row: 1 / span 2; padding: 5px 6px; font-size: 7px; }
  .transcript-result { grid-column: 2 / -1; }
  .page-footer { flex-direction: column; gap: 5px; font-size: 7px; }
}
@media (max-width: 400px) {
  .location-button { padding: 0 9px; font-size: 10px; }
  .brand-name { font-size: 12px; }
  .page-heading { display: block; }
  .live-pill { margin-top: 12px; }
  .metric-card strong { font-size: 14px; }
  .metric-caption { font-size: 6px; }
  .map-key { font-size: 8px; }
}

/* Immersive scanner map shell: the map is the application, controls stay floating. */
body, html { width: 100%; height: 100%; overflow: hidden; }
body { background: #04090d; }
.topbar { position: absolute; inset: 0 0 auto; z-index: 800; height: 64px; padding: 0 20px; border-bottom-color: rgba(0, 229, 255, .2); background: linear-gradient(180deg, rgba(2, 7, 11, .92), rgba(2, 7, 11, .48)); backdrop-filter: blur(14px); }
.brand-mark span { background: var(--green); box-shadow: 0 0 12px rgba(0, 229, 255, .55); }
.brand-name span { color: var(--green); }
.topbar-status { color: #9eb3bb; font: 10px var(--mono); letter-spacing: .04em; }
.status-light.is-connected { background: var(--green); box-shadow: 0 0 12px rgba(0, 229, 255, .75); }
.map-toolbar { display: flex; align-items: center; gap: 7px; }
.map-action { min-height: 35px; padding: 0 12px; border: 1px solid rgba(0, 229, 255, .28); border-radius: 5px; background: rgba(4, 18, 25, .72); color: #b5f7ff; font: 10px var(--mono); letter-spacing: .06em; cursor: pointer; box-shadow: inset 0 0 14px rgba(0,229,255,.025); }
.map-action:hover, .map-action.is-active { border-color: var(--green); background: rgba(0, 190, 210, .14); color: #fff; box-shadow: 0 0 14px rgba(0,229,255,.12); }
.location-button { min-height: 35px; padding: 0 12px; border-color: rgba(255,67,210,.4); border-radius: 5px; background: rgba(255,67,210,.09); color: #ffc7f2; font: 10px var(--mono); }
.location-button:hover { border-color: var(--magenta); background: rgba(255,67,210,.18); }
.map-stage { position: fixed; inset: 64px 0 0; overflow: hidden; background: #050a0f; }
#coverage-map { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; background: #070d13; }
.leaflet-container { background: #070d13; }
.leaflet-top.leaflet-left { top: 132px; left: 16px; }
.leaflet-control-zoom { margin-top: 0 !important; }
.leaflet-bottom.leaflet-right { bottom: 102px; right: 15px; }
.leaflet-control-attribution { background: rgba(2, 7, 11, .72) !important; color: #71858e !important; font-size: 8px !important; }
.leaflet-tooltip.map-tooltip { border-color: rgba(0,229,255,.55); background: rgba(3,13,19,.94); color: #e3fbff; box-shadow: 0 0 16px rgba(0,229,255,.18); }
.map-title-card { position: absolute; z-index: 500; top: 20px; left: 20px; width: min(315px, calc(100vw - 40px)); padding: 16px 18px; border: 1px solid rgba(0,229,255,.22); border-radius: 7px; background: linear-gradient(135deg, rgba(3,13,19,.92), rgba(5,15,22,.78)); box-shadow: 0 12px 34px rgba(0,0,0,.28), inset 0 0 20px rgba(0,229,255,.025); backdrop-filter: blur(12px); pointer-events: none; }
.map-title-card .eyebrow { margin-bottom: 6px; color: #83dce5; font-size: 8px; }
.map-title-card h1 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.map-title-card > p:last-child { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; color: #9cafb5; font: 9px var(--mono); }
.map-title-card .pulse-dot { background: var(--green); }
.map-legend-card { position: absolute; z-index: 500; bottom: 108px; left: 20px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid rgba(0,229,255,.2); border-radius: 5px; background: rgba(3,12,17,.88); color: #a9bec4; font: 9px var(--mono); backdrop-filter: blur(10px); }
.map-legend-symbol { width: 11px; height: 11px; border: 1px solid #00e5ff; border-radius: 50%; background: rgba(0,229,255,.25); box-shadow: 0 0 10px rgba(0,229,255,.32); }
.legend-divider { width: 1px; height: 15px; background: rgba(154,190,197,.2); }
.map-data-note { position: absolute; z-index: 500; top: 20px; right: 20px; max-width: 330px; padding: 9px 11px; border: 1px solid rgba(155,183,188,.15); border-radius: 5px; background: rgba(3,12,17,.82); color: #82979e; font-size: 9px; line-height: 1.5; backdrop-filter: blur(8px); }
.floating-drawer { position: absolute; z-index: 700; top: 18px; bottom: 105px; width: min(390px, calc(100vw - 40px)); overflow: auto; border: 1px solid rgba(0,229,255,.25); border-radius: 7px; background: rgba(5,13,19,.96); box-shadow: 0 20px 60px rgba(0,0,0,.56), 0 0 25px rgba(0,229,255,.07); backdrop-filter: blur(16px); scrollbar-width: thin; scrollbar-color: #24515a transparent; }
.feed-drawer { left: 18px; display: flex; flex-direction: column; padding: 14px; }
.activity-drawer, .archive-panel { right: 18px; padding: 14px; }
.drawer-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(0,229,255,.16); }
.drawer-heading .eyebrow { margin-bottom: 5px; color: #7cdae4; font-size: 7px; }
.drawer-heading h2 { color: #f1fcfe; font: 600 16px var(--display); }
.drawer-close { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(0,229,255,.2); border-radius: 5px; background: rgba(0,229,255,.04); color: #bffaff; font-size: 19px; cursor: pointer; }
.drawer-close:hover { border-color: var(--magenta); color: #ffd4f5; }
.feed-drawer .search-box { flex: 0 0 auto; margin: 13px 0; }
.feed-drawer .section-label { margin-bottom: 7px; }
.feed-drawer .region-list { flex: 0 0 auto; max-height: 138px; min-height: 0; display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 12px; overflow: auto; }
.feed-drawer .region-button { width: auto; gap: 8px; padding: 5px 7px; border: 1px solid rgba(157,187,192,.12); background: rgba(255,255,255,.018); font-size: 9px; }
.feed-drawer .region-button.is-selected { border-color: rgba(0,229,255,.38); background: rgba(0,229,255,.09); }
.feed-drawer .state-abbr { width: 20px; height: 17px; font-size: 8px; }
.feed-drawer .region-total { font-size: 8px; }
.feed-drawer .feed-panel { min-height: 0; flex: 1 1 auto; border-color: rgba(0,229,255,.15); background: transparent; }
.feed-drawer .panel-heading { min-height: 54px; padding: 9px 11px; }
.feed-drawer .panel-heading .eyebrow { color: #75cdd8; }
.feed-drawer .feed-list { max-height: none; min-height: 150px; padding: 8px; }
.feed-drawer .system-card { background: rgba(1,8,12,.48); }
.feed-drawer .system-card.is-current { border-color: rgba(255,67,210,.52); background: rgba(255,67,210,.075); }
.feed-drawer .system-card.is-current .system-signal { background: var(--magenta); box-shadow: 0 0 8px rgba(255,67,210,.6); }
.drawer-feed-label { margin: 12px 0 7px; color: #e0f7f8; font: 600 12px var(--display); }
.activity-drawer > .result-count { display: block; margin: 6px 0 8px; }
.activity-drawer .archive-list, .archive-panel .archive-list { max-height: calc(100% - 110px); overflow: auto; }
.archive-panel .archive-header { padding: 0 0 12px; border-bottom: 1px solid rgba(0,229,255,.15); }
.archive-panel .date-filter { margin: 13px 0; }
.archive-panel .date-filter input { background: #08131a; }
.archive-panel .call-row, .activity-drawer .call-row { grid-template-columns: 25px minmax(0,1fr) auto auto auto; gap: 7px; padding: 10px 4px; border-color: rgba(129,174,180,.12); }
.archive-panel .call-info span, .activity-drawer .call-info span { max-width: 185px; }
.archive-panel .call-play-button, .activity-drawer .call-play-button { border-color: rgba(0,229,255,.3); background: rgba(0,229,255,.08); color: #aaf8ff; }
.transcript-button { border-color: rgba(255,67,210,.25); background: rgba(255,67,210,.07); color: #ffb9ec; }
.transcript-button:hover:not(:disabled) { border-color: var(--magenta); }
.player-panel.map-player { position: absolute; z-index: 600; right: 20px; bottom: 18px; width: min(480px, calc(100vw - 40px)); grid-template-columns: minmax(0,1fr); gap: 9px; margin: 0; padding: 12px 14px; border-color: rgba(0,229,255,.28); border-radius: 7px; background: rgba(3,12,18,.93); box-shadow: 0 12px 35px rgba(0,0,0,.42), 0 0 20px rgba(0,229,255,.06); backdrop-filter: blur(14px); }
.map-player .player-system { gap: 10px; }
.map-player .player-art { width: 37px; height: 37px; border-color: rgba(0,229,255,.28); background: rgba(0,229,255,.08); color: var(--green); }
.map-player .player-overline { color: #83dfe7; }
.map-player .player-controls { gap: 10px; }
.map-player .play-button { width: 31px; height: 31px; background: var(--green); box-shadow: 0 0 14px rgba(0,229,255,.28); }
.map-player .audio-wrap audio { height: 26px; }
.map-player .player-status { position: absolute; top: 15px; right: 14px; }
.leaflet-control-attribution a { color: #81dbe4 !important; }
@media (max-width: 720px) {
  html, body { overflow: hidden; }
  .topbar { position: absolute; height: 58px; padding: 0 10px; }
  .brand { gap: 7px; }
  .brand-mark { transform: scale(.85); transform-origin: left center; width: 24px; }
  .brand-name { font-size: 11px; letter-spacing: .09em; }
  .map-toolbar { gap: 4px; }
  .map-action { min-height: 32px; padding: 0 8px; font-size: 9px; }
  .location-button { min-height: 32px; padding: 0 7px; font-size: 9px; }
  .location-button > span:first-child { font-size: 16px; }
  .map-stage { inset: 58px 0 0; }
  .map-title-card { top: 12px; left: 10px; width: min(260px, calc(100vw - 20px)); padding: 11px 13px; }
  .map-title-card h1 { font-size: 18px; }
  .map-title-card > p:last-child { margin-top: 6px; font-size: 8px; }
  .map-data-note { top: auto; right: 10px; bottom: 154px; max-width: 46%; padding: 7px 8px; font-size: 7px; }
  .leaflet-top.leaflet-left { top: 105px; left: 10px; }
  .leaflet-bottom.leaflet-right { bottom: 145px; right: 7px; }
  .floating-drawer { top: 10px; bottom: 155px; width: auto; max-width: none; }
  .feed-drawer { left: 9px; right: 9px; padding: 10px; }
  .activity-drawer, .archive-panel { left: 9px; right: 9px; padding: 11px; }
  .map-legend-card { left: 10px; bottom: 147px; gap: 6px; padding: 8px; font-size: 7px; }
  .player-panel.map-player { right: 9px; bottom: 9px; width: calc(100vw - 18px); padding: 9px 11px; }
  .map-player .player-meta strong { max-width: 70vw; font-size: 10px; }
  .map-player .player-meta > span:last-child { max-width: 68vw; }
  .map-player .player-status { top: 11px; right: 11px; font-size: 6px; }
  .map-player .player-footnote { font-size: 7px; }
  .feed-drawer .region-list { max-height: 90px; }
  .feed-drawer .feed-list { max-height: 31vh; }
}
@media (max-width: 390px) {
  .map-action { padding: 0 6px; font-size: 8px; }
  .map-toolbar { gap: 3px; }
  .map-action span, .location-button span:last-child { display: none; }
  .map-action { min-width: 32px; padding: 0 7px; }
  .brand-mark { display: none; }
  .map-data-note { max-width: 43%; font-size: 6px; }
}
