:root {
  color-scheme: dark;
  --bg: #101716;
  --header: #111817;
  --panel: #1a211f;
  --panel-raised: #222a27;
  --surface: #2b322f;
  --border: #39413d;
  --border-soft: #303834;
  --text: #e9e2d5;
  --text-muted: #aaa99f;
  --text-dim: #818780;
  --technical: #c4c0b6;
  --signal: #e47e51;
  --signal-dark: #b9684c;
  --geo: #738b72;
  --ok: #59ac68;
  --warn: #d7a45c;
  --danger: #cb7568;
  --sans: "IBM Plex Sans", Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Source Serif 4", "DM Serif Display", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45; }
button, input, select { font: inherit; }
button, select, input { color: inherit; }
a { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
button:disabled, select:disabled, input:disabled { cursor: not-allowed; opacity: .48; }
[hidden] { display: none !important; }

.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 5000; top: 10px; left: 10px; padding: 10px 14px; background: var(--text); color: var(--bg); font-weight: 700; }

.site-header {
  position: relative;
  z-index: 1200;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) minmax(220px, 320px);
  align-items: stretch;
  min-height: 100px;
  border-bottom: 1px solid var(--border);
  background: var(--header);
}
.brand-lockup { display: flex; align-items: center; padding: 0 22px; border-right: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 18px; color: var(--text); text-decoration: none; }
.brand-mark { display: inline-flex; flex: 0 0 auto; width: 66px; height: 66px; }
.brand-mark svg { width: 100%; height: 100%; overflow: visible; }
.brand-planet { fill: none; stroke: #d7d2c9; stroke-width: 1.6; opacity: .88; }
.brand-orbit { fill: none; stroke: var(--signal); stroke-width: 1.4; }
.brand-core { fill: #eee8db; stroke: var(--header); stroke-width: 1; }
.brand-copy { display: grid; align-content: center; line-height: 1; }
.brand-copy strong { font: 600 35px/.95 var(--serif); letter-spacing: -.025em; }
.brand-copy small { margin-top: 9px; color: #a7aaa4; font: 9px/1.15 var(--mono); letter-spacing: .12em; white-space: nowrap; }
.main-nav { display: flex; align-items: stretch; justify-content: space-evenly; min-width: 0; padding: 0 10px; }
.nav-tab { position: relative; display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 11px; min-width: 90px; border: 0; border-radius: 0; background: transparent; color: var(--text-muted); padding: 0 12px; cursor: pointer; transition: color .16s ease, background .16s ease; }
.nav-tab svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nav-tab span { font: 14px/1 var(--serif); white-space: nowrap; }
.nav-tab:hover { background: rgba(255,255,255,.035); color: var(--text); }
.nav-tab.is-active { background: var(--panel); color: var(--text); }
.nav-tab.is-active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: var(--signal); content: ""; }
.header-status { display: flex; align-items: center; justify-content: flex-end; gap: 15px; min-width: 0; padding: 0 22px 0 12px; color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.source-state { display: inline-flex; align-items: center; gap: 9px; color: var(--text); }
.status-dot { display: inline-block; width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--ok); }
.status-dot.is-stale { background: var(--warn); }
.status-dot.is-pending { background: var(--text-dim); }
.status-dot.is-offline { background: var(--danger); }
.header-divider { width: 1px; height: 28px; background: var(--border); }
.updated-state { color: var(--text-muted); font: 10px/1.3 var(--mono); }
.settings-mark { display: inline-flex; width: 25px; height: 25px; margin-left: 2px; color: var(--text-muted); }
.settings-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }

.search-dock { position: relative; z-index: 1100; display: flex; align-items: center; gap: 12px; height: 74px; margin: 0 20px; }
.search-main { position: relative; z-index: 2; display: flex; flex: 1 1 auto; align-items: center; min-width: 0; height: 56px; border: 1px solid #d7d1c5; border-radius: 9px; background: #e9e3d7; color: #202725; }
.city-search { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 14px 0 23px; }
.city-search > svg { width: 23px; height: 23px; flex: 0 0 auto; fill: none; stroke: #333d39; stroke-width: 1.7; stroke-linecap: round; }
.city-search input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #26312d; padding: 0 17px; font-size: 15px; }
.city-search input::placeholder { color: #81837d; opacity: 1; }
.city-search input:focus-visible { outline: 0; }
.search-submit { min-width: 86px; height: 38px; border: 1px solid #a65c40; border-radius: 4px; background: var(--signal); color: #171a18; padding: 0 14px; font-size: 12px; font-weight: 650; cursor: pointer; transition: background .14s ease; }
.search-submit:hover:not(:disabled) { background: #f09569; }
.search-status { position: absolute; top: calc(100% + 2px); left: 54px; max-width: min(680px, calc(100vw - 110px)); overflow: hidden; color: #d4d0c5; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.search-status:empty { display: none; }
.search-results-panel { position: absolute; z-index: 1300; top: calc(100% + 22px); left: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; width: min(560px, calc(100vw - 40px)); border: 1px solid var(--border); border-radius: 5px; background: var(--panel); box-shadow: 0 14px 34px rgba(0,0,0,.4); color: var(--text); padding: 14px; }
.search-results-panel[hidden] { display: none !important; }
.search-results-panel label { grid-column: 1 / -1; color: var(--text-muted); font: 9px var(--mono); text-transform: uppercase; }
.search-results-panel select { width: 100%; }
.timezone-control { position: relative; display: flex; flex: 0 0 224px; align-items: center; gap: 11px; height: 56px; border: 1px solid #d7d1c5; border-radius: 9px; background: #e9e3d7; color: #29332f; padding: 0 15px; }
.timezone-control svg { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.45; }
.timezone-control select { min-width: 0; width: 100%; height: 100%; appearance: none; border: 0; background: transparent; color: #29332f; padding: 0 20px 0 0; font-size: 13px; }
.timezone-control select:focus-visible { outline: 0; }
.select-caret { position: absolute; right: 12px; top: 50%; transform: translateY(-56%); color: #3c4641; pointer-events: none; font-size: 18px; }

.workspace-shell { max-width: 1920px; margin: 0 auto; padding: 2px 20px 26px; }
.app-view { min-width: 0; animation: view-in .18s ease-out both; }
@keyframes view-in { from { opacity: .72; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.map-view { display: grid; grid-template-columns: minmax(260px, 297px) minmax(0, 1fr); align-items: start; gap: 10px; }
.panel-surface { min-width: 0; border: 1px solid var(--border); border-radius: 4px; background: var(--panel); }
.map-sidebar { overflow: hidden; padding: 17px 15px 14px; }
.map-sidebar > summary { list-style: none; cursor: pointer; }
.map-sidebar > summary::-webkit-details-marker, .pass-panel > summary::-webkit-details-marker { display: none; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); padding: 0 2px 13px; }
.sidebar-heading h1 { margin: 0; font: 400 21px/1.1 var(--serif); }
.collapse-mark { color: var(--text-muted); font-size: 19px; }
.map-sidebar:not([open]) .collapse-mark { transform: rotate(180deg); }
.layer-list { display: grid; gap: 1px; padding: 5px 0 11px; border-bottom: 1px solid var(--border); }
.layer-toggle { display: grid; grid-template-columns: 25px 33px minmax(0,1fr); align-items: center; gap: 8px; min-height: 42px; color: var(--text); font-size: 11px; cursor: pointer; }
.layer-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--signal); }
.layer-swatch { display: block; width: 29px; height: 0; border-top: 3px solid var(--signal); }
.swatch-other { border-top: 2px dashed #a3a8a3; }
.observer-swatch { display: grid; place-items: center; width: 22px; height: 22px; }
.observer-swatch i { width: 11px; height: 11px; border: 2px solid #f0eadf; border-radius: 50% 50% 50% 0; background: var(--signal); transform: rotate(-45deg); }
.base-layer-row { position: relative; display: grid; grid-template-columns: 38px minmax(0,1fr) 15px; align-items: center; gap: 9px; min-height: 50px; padding: 6px 20px 6px 0; color: var(--text); font-size: 11px; }
.base-thumb { display: grid; place-items: center; width: 36px; height: 29px; overflow: hidden; border: 1px solid var(--border); background: #324139; }
.base-thumb svg { width: 35px; height: 24px; fill: #739079; stroke: #bdc6b6; stroke-width: .7; }
.base-layer-row label { grid-column: 2; grid-row: 1; }
.base-layer-row select { position: absolute; inset: 0 12px 0 0; width: calc(100% - 12px); opacity: 0; cursor: pointer; }
.base-layer-row .select-caret { right: 1px; color: var(--text-muted); }
.sidebar-section { padding: 14px 1px 3px; border-bottom: 1px solid var(--border); }
.sidebar-section h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font: 400 18px/1.2 var(--serif); }
.sidebar-section h2 svg { width: 18px; height: 18px; fill: none; stroke: var(--text-muted); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tracked-satellite-control select, .map-sidebar select, .tracker-toolbar select { min-height: 38px; border: 1px solid var(--border); border-radius: 4px; background-color: var(--surface); color: var(--text); padding: 7px 10px; font-size: 12px; }
.tracked-satellite-control select { font-family: var(--serif); font-size: 14px; }
.satellite-id-readout { display: flex; align-items: center; gap: 8px; min-height: 35px; color: var(--text-muted); font: 10px var(--mono); }
.satellite-id-readout .status-dot { width: 8px; height: 8px; }
.satellite-id-readout strong { color: var(--text); font-weight: 500; }
.satellite-id-readout small { margin-left: auto; overflow: hidden; color: var(--text-dim); font: 9px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.satellite-filter-details { border-top: 1px solid var(--border-soft); padding-top: 9px; }
.satellite-filter-details summary { display: flex; justify-content: space-between; gap: 8px; color: var(--text-muted); font-size: 10px; cursor: pointer; list-style: none; }
.satellite-filter-details summary::-webkit-details-marker { display: none; }
.satellite-filter-details summary::after { content: "+"; color: var(--signal); font: 14px var(--mono); }
.satellite-filter-details[open] summary::after { content: "−"; }
.small-count { color: var(--text-dim); font: 8px var(--mono); }
.field-heading { margin-top: 8px; }
.limit-tag { color: var(--text-dim); font: 8px var(--mono); letter-spacing: .06em; }
#satelliteFilters { max-height: 178px; overflow: auto; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); margin-top: 7px; padding: 5px 3px; scrollbar-color: #57605a transparent; scrollbar-width: thin; }
.sat-option { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 5px 1px; color: var(--text-muted); font-size: 9px; line-height: 1.35; }
.sat-option input { width: 13px; height: 13px; flex: 0 0 auto; margin: 0; accent-color: var(--signal); }
.sat-option .fine { color: var(--text-dim); font: 8px var(--mono); }
.text-action { border: 0; background: transparent; color: var(--signal); padding: 7px 0 1px; font-size: 10px; text-align: left; cursor: pointer; }
.text-action:hover { color: #f4a17a; text-decoration: underline; text-underline-offset: 3px; }
.warning-box { display: none; margin-top: 7px; border-left: 2px solid var(--warn); background: rgba(215,164,92,.08); color: #e2c28e; padding: 7px 8px; font-size: 9px; }
.location-section { padding-bottom: 10px; border-bottom: 0; }
.location-section > select { width: 100%; }
.observer-summary { display: grid; gap: 4px; margin-top: 9px; }
.observer-summary strong { color: var(--text); font: 11px/1.35 var(--serif); }
.observer-summary small { color: var(--text-dim); font: 9px var(--mono); }
.observer-summary small span { color: var(--technical); }
.metadata-line { margin: 9px 0 0; border-top: 1px solid var(--border-soft); padding-top: 8px; color: var(--text-dim); font: 8px/1.5 var(--mono); overflow-wrap: anywhere; }

.map-slot { position: relative; min-width: 0; }
.map-panel { min-width: 0; padding: 0; }
.map-view .map-panel-heading, .map-view .map-caption { display: none; }
.map-panel-heading { display: flex; align-items: center; gap: 18px; min-height: 48px; padding: 6px 11px; border-bottom: 1px solid var(--border); background: #171e1c; }
.map-panel-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.micro-label { display: block; color: var(--text-dim); font: 8px/1.35 var(--mono); letter-spacing: .085em; text-transform: uppercase; }
.map-panel-title h2 { margin: 0; color: var(--text); font: 400 19px/1.1 var(--serif); }
.map-location-readout { display: grid; gap: 2px; min-width: 0; margin-left: auto; text-align: right; }
.map-location-readout span { color: var(--text-dim); font: 7px var(--mono); letter-spacing: .08em; }
.map-location-readout strong { max-width: 250px; overflow: hidden; color: var(--technical); font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.map-mode-readout { display: inline-flex; align-items: center; gap: 7px; border-left: 1px solid var(--border); padding-left: 13px; color: var(--text-muted); font: 8px var(--mono); white-space: nowrap; }
.map-mode-readout .status-dot { width: 7px; height: 7px; background: var(--geo); }
.map-frame { position: relative; min-width: 0; height: clamp(490px, calc(100dvh - 288px), 860px); overflow: hidden; border-radius: 0 0 3px 3px; background: #14201f; }
#map { z-index: 0; width: 100%; height: 100%; background: #152120; }
.leaflet-tile { filter: brightness(.79) saturate(.87) contrast(1.07); }
#map .leaflet-pane path.leaflet-interactive { stroke-linecap: round; stroke-linejoin: round; }
.map-focus-tag { position: absolute; z-index: 550; top: 11px; right: 10px; display: inline-flex; align-items: center; gap: 8px; max-width: 42%; overflow: hidden; border: 1px solid rgba(233,226,213,.25); border-radius: 3px; background: rgba(20,27,25,.9); color: var(--text-muted); padding: 7px 9px; font: 8px var(--mono); letter-spacing: .06em; pointer-events: none; }
.map-view .map-focus-tag { display: none; }
.map-focus-tag strong { overflow: hidden; color: var(--signal); font: 10px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.map-bottom-tools { position: absolute; z-index: 550; right: 10px; bottom: 10px; display: flex; align-items: flex-end; gap: 7px; pointer-events: none; }
.map-legend { display: grid; gap: 8px; min-width: 144px; border: 1px solid rgba(233,226,213,.18); border-radius: 3px; background: rgba(20,27,25,.92); color: var(--text-muted); padding: 11px 12px; font-size: 10px; }
.map-legend span { display: flex; align-items: center; gap: 9px; }
.map-legend b { max-width: 115px; overflow: hidden; color: var(--text); font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.map-window-note { padding-top: 6px; border-top: 1px solid rgba(233,226,213,.14); color: var(--text-dim); font: 7px var(--mono); letter-spacing: .05em; }
.legend-track { width: 21px; height: 0; flex: 0 0 auto; border-top: 3px solid var(--signal); }
.legend-track-future { width: 21px; height: 0; flex: 0 0 auto; border-top: 2px dashed var(--signal); }
.legend-other { width: 21px; height: 0; flex: 0 0 auto; border-top: 2px dashed #a9ada7; }
.legend-sample { width: 9px; height: 9px; flex: 0 0 auto; border: 2px solid var(--technical); border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px rgba(233,226,213,.12); }
.legend-observer { position: relative; width: 11px; height: 11px; flex: 0 0 auto; border: 2px solid #eee8db; border-radius: 50% 50% 50% 0; background: var(--signal); transform: rotate(-45deg); }
.regional-locator { display: grid; justify-items: center; gap: 5px; border: 1px solid rgba(233,226,213,.22); border-radius: 3px; background: rgba(20,27,25,.94); padding: 7px; }
.locator-label { color: var(--text-muted); font: 7px var(--mono); letter-spacing: .06em; }
#overviewMap { width: 92px; height: 92px; overflow: hidden; border: 1px solid rgba(233,226,213,.35); border-radius: 50%; background: #21302e; pointer-events: auto; }
#overviewMap .leaflet-control-container { display: none; }
#overviewMap .leaflet-tile { filter: brightness(.83) saturate(.78); }
.map-coordinate-readout { position: absolute; z-index: 620; bottom: 31px; left: 112px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(233,226,213,.2); border-radius: 3px; background: rgba(20,27,25,.9); color: var(--text-muted); padding: 7px 9px; font: 8px var(--mono); pointer-events: none; }
.map-coordinate-readout span { white-space: nowrap; }
.map-coordinate-readout b { color: var(--text); font-weight: 500; }
.map-coordinate-readout i { width: 1px; height: 12px; background: var(--border); }
.map-caption { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 29px; padding: 5px 10px; border-top: 1px solid var(--border); background: #171e1c; }
.map-caption > span { flex: 0 0 auto; color: var(--text-dim); font: 7px var(--mono); letter-spacing: .06em; }
.map-caption p { margin: 0; color: var(--text-muted); font-size: 8px; text-align: right; }
.leaflet-container { color: var(--text); font-family: var(--sans); }
.leaflet-control-zoom { margin: 10px !important; }
.leaflet-control-zoom.leaflet-bar { border: 1px solid rgba(233,226,213,.28) !important; border-radius: 3px !important; background: rgba(20,27,25,.93); box-shadow: none !important; }
.leaflet-control-zoom a, .leaflet-control-zoom a:hover { border-color: rgba(233,226,213,.15) !important; background: rgba(20,27,25,.93) !important; color: var(--text) !important; }
.leaflet-control-zoom a { font: 22px/26px var(--sans) !important; }
.leaflet-control-scale { margin-bottom: 58px !important; margin-left: 10px !important; color: var(--text) !important; }
.leaflet-control-scale-line { border: 1px solid var(--text) !important; border-top: 0 !important; background: rgba(20,27,25,.7) !important; color: var(--text) !important; text-shadow: none !important; font: 8px var(--mono) !important; }
.leaflet-control-attribution { max-width: 72%; border-radius: 2px 2px 0 0; background: rgba(20,27,25,.94) !important; color: #ded9cf !important; font-size: 8px !important; line-height: 1.25 !important; white-space: normal !important; }
.leaflet-control-attribution a { color: #f0a37e !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #1b2320; color: var(--text); }
.leaflet-popup-content-wrapper { border: 1px solid var(--border); border-radius: 3px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.leaflet-popup-content { font-size: 11px; line-height: 1.5; }
.leaflet-popup-content strong { color: var(--text); font-family: var(--serif); font-size: 14px; font-weight: 500; }
.leaflet-tooltip { border: 1px solid var(--border); border-radius: 2px; background: rgba(24,31,29,.94); color: var(--text); box-shadow: none; font: 9px var(--mono); }
.observer-marker { display: grid; place-items: center; width: 26px; height: 32px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.observer-marker svg { width: 26px; height: 32px; overflow: visible; }
.satellite-marker { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(228,126,81,.8); border-radius: 50%; background: rgba(16,23,22,.9); box-shadow: 0 0 0 4px rgba(228,126,81,.15); }
.satellite-marker svg { width: 22px; height: 22px; fill: none; stroke: var(--signal); stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.sample-satellite-marker { position: relative; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid rgba(233,226,213,.82); border-radius: 50%; background: rgba(16,23,22,.94); box-shadow: 0 1px 4px rgba(0,0,0,.55); }
.sample-satellite-marker svg { width: 15px; height: 15px; fill: none; stroke: var(--technical); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sample-satellite-marker > b { position: absolute; right: -5px; bottom: -4px; display: grid; place-items: center; min-width: 13px; height: 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-raised); color: var(--signal); padding: 0 2px; font: 8px var(--mono); }
.sample-marker-popup-list { display: grid; gap: 4px; margin: 7px 0; padding-left: 17px; }
.sample-marker-popup-list li { color: var(--text-muted); font-size: 10px; }
.sample-marker-popup-list b { color: var(--text); font-weight: 500; }

.pass-panel { position: absolute; z-index: 700; top: 7px; right: 7px; display: flex; flex-direction: column; width: min(297px, 31%); max-height: min(405px, calc(100% - 14px)); overflow: hidden; background: rgba(26,33,31,.97); box-shadow: 0 6px 20px rgba(0,0,0,.22); }
.pass-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 13px 10px; }
.pass-panel-heading h2 { margin: 4px 0 0; color: var(--text); font: 400 19px/1.1 var(--serif); }
.pass-count { display: flex; align-items: baseline; gap: 5px; color: var(--text-muted); }
.pass-count strong { color: var(--signal); font: 21px var(--serif); }
.pass-count small { font: 8px var(--mono); }
.pass-list { min-height: 42px; overflow: auto; scrollbar-color: #57605a transparent; scrollbar-width: thin; }
.map-pass-card { position: relative; border-top: 1px solid var(--border); background: transparent; }
.map-pass-card:hover, .map-pass-card.is-selected { background: rgba(255,255,255,.035); }
.map-pass-card.is-selected::before { position: absolute; top: 0; bottom: 0; left: 0; width: 8px; background: var(--signal); content: ""; }
.pass-card-select { display: block; width: 100%; border: 0; border-radius: 0; background: transparent; color: var(--text); padding: 9px 11px 6px 15px; text-align: left; cursor: pointer; }
.pass-card-select:hover { background: transparent; }
.pass-card-identity { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.pass-card-identity strong { overflow: hidden; color: var(--text); font: 500 14px/1.15 var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.pass-card-identity small { flex: 0 0 auto; color: var(--text-dim); font: 7px var(--mono); }
.pass-card-times { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; margin-top: 8px; }
.pass-card-times span { display: grid; gap: 3px; min-width: 0; }
.pass-card-times i { color: var(--text-dim); font: normal 6px var(--mono); letter-spacing: .04em; }
.pass-card-times b { overflow: hidden; color: var(--text); font: 8px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.map-pass-card:not(.is-selected) .pass-card-times { grid-template-columns: 1fr; margin-top: 4px; }
.map-pass-card:not(.is-selected) .pass-card-times > span:first-child { display: flex; align-items: baseline; gap: 7px; }
.map-pass-card:not(.is-selected) .pass-card-times > span:not(:first-child) { display: none; }
.pass-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 7px; border-top: 1px solid var(--border-soft); margin: 0 11px 0 15px; padding: 5px 0 7px; color: var(--text-muted); font: 8px var(--mono); }
.pass-card-meta .send-pass-button { width: auto; min-height: 25px; margin: 0; border-color: var(--border); padding: 3px 7px; font-size: 8px; }
.map-pass-card:not(.is-selected) .pass-card-meta { border-top: 0; margin-top: -2px; padding-top: 0; }
.map-pass-card:not(.is-selected) .pass-card-meta .send-pass-button { width: 26px; min-width: 26px; min-height: 23px; overflow: hidden; padding: 0; font-size: 0; }
.map-pass-card:not(.is-selected) .pass-card-meta .send-pass-button::after { color: var(--signal); content: "↗"; font: 13px var(--sans); }
.pass-panel-footer { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); padding: 8px 12px; color: var(--text-dim); font: 8px var(--mono); }
.pass-panel-footer strong { color: var(--technical); font-weight: 500; }
.view-all-button { display: flex; align-items: center; justify-content: space-between; min-height: 37px; border: 0; border-top: 1px solid var(--border); background: var(--panel-raised); color: var(--text); padding: 0 12px; font: 11px var(--sans); cursor: pointer; }
.view-all-button span { color: var(--signal); font-size: 16px; }
.view-all-button:hover { background: var(--surface); }
.empty { border-top: 1px dashed var(--border); color: var(--text-muted); padding: 13px 12px; font-size: 10px; }

.content-view { padding: 21px 0 8px; }
.view-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 18px; border-bottom: 1px solid var(--border); padding: 0 0 15px; }
.view-heading h1 { margin: 5px 0 4px; color: var(--text); font: 400 clamp(29px, 3vw, 39px)/1 var(--serif); letter-spacing: -.015em; }
.view-heading p { margin: 0; color: var(--text-muted); font-size: 11px; }
.view-stat { display: grid; justify-items: end; gap: 1px; color: var(--text-dim); font: 8px var(--mono); letter-spacing: .06em; }
.view-stat strong { color: var(--signal); font: 29px var(--serif); }

.passes-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(270px,320px); align-items: start; gap: 14px; }
.table-panel { overflow: hidden; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; border-bottom: 1px solid var(--border); color: var(--text-dim); padding: 0 13px; font: 8px var(--mono); letter-spacing: .07em; }
.table-scroll { width: 100%; overflow: auto; }
.pass-table { width: 100%; border-collapse: collapse; text-align: left; }
.pass-table th { height: 39px; border-bottom: 1px solid var(--border); color: var(--text-dim); padding: 0 12px; font: 8px var(--mono); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.pass-table td { height: 54px; border-bottom: 1px solid var(--border-soft); color: var(--text-muted); padding: 7px 12px; font-size: 10px; white-space: nowrap; }
.pass-table tbody tr { cursor: pointer; transition: background .12s ease; }
.pass-table tbody tr:hover { background: rgba(255,255,255,.035); }
.pass-table tbody tr.is-selected { background: rgba(228,126,81,.085); box-shadow: inset 3px 0 var(--signal); }
.pass-table td:first-child { min-width: 170px; white-space: normal; }
.table-pass-select { display: grid; gap: 3px; width: 100%; border: 0; background: transparent; color: var(--text); padding: 0; text-align: left; cursor: pointer; font: 500 14px/1.2 var(--serif); }
.table-pass-select small { color: var(--text-dim); font: 8px var(--mono); }
.pass-table td:nth-child(2), .pass-table td:nth-child(4), .pass-table td:nth-child(5) { color: var(--technical); font: 9px var(--mono); }
.pass-table td:nth-child(3) { color: var(--signal); font: 11px var(--mono); }
.pass-table .number-cell { color: var(--text); font: 10px var(--mono); }
.pass-table .peak-cell { color: var(--signal); font: 12px var(--mono); }
.empty-cell { color: var(--text-muted) !important; padding: 23px !important; text-align: center; white-space: normal !important; }
.pass-detail-panel { padding: 16px; }
.pass-detail-panel h2 { margin: 6px 0 4px; color: var(--text); font: 500 20px/1.12 var(--serif); }
.detail-id { margin: 0; color: var(--text-dim); font: 9px var(--mono); }
.detail-timeline { position: relative; display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin: 23px 0 17px; border-top: 1px solid var(--border); padding-top: 10px; }
.detail-timeline > div { display: grid; justify-items: start; gap: 5px; }
.detail-timeline i { width: 8px; height: 8px; border: 1px solid var(--signal); border-radius: 50%; background: var(--panel-raised); }
.detail-timeline > div:nth-child(2) i { background: var(--signal); box-shadow: 0 0 0 3px rgba(228,126,81,.13); }
.detail-timeline span { color: var(--text-dim); font: 7px var(--mono); }
.detail-timeline strong { color: var(--text); font: 9px var(--mono); }
.detail-metrics { display: grid; gap: 0; margin: 0 0 13px; }
.detail-metrics div { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border-soft); padding: 8px 0; }
.detail-metrics dt { color: var(--text-muted); font-size: 9px; }
.detail-metrics dd { margin: 0; color: var(--technical); font: 9px var(--mono); text-align: right; }
.scientific-note { margin: 14px 0 0; border-left: 2px solid var(--warn); color: var(--text-muted); padding: 6px 10px; font-size: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; border: 1px solid var(--border); border-radius: 3px; background: transparent; color: var(--text); padding: 7px 12px; font-size: 10px; font-weight: 550; cursor: pointer; transition: background .14s ease, border-color .14s ease, color .14s ease; }
.button:hover:not(:disabled) { border-color: var(--text-muted); background: rgba(255,255,255,.045); }
.button-primary { border-color: var(--signal); background: var(--signal); color: #171a18; }
.button-primary:hover:not(:disabled) { border-color: #f09a71; background: #f09a71; color: #171a18; }
.button-secondary { border-color: #58615b; background: var(--surface); color: var(--text); }
.button-secondary:hover:not(:disabled) { border-color: var(--signal); background: #303936; }
.send-pass-button { width: 100%; margin-top: 5px; }

.tracker-map-slot { min-width: 0; }
.tracker-view .map-panel { margin-bottom: 13px; }
.tracker-view .map-frame { height: clamp(400px, calc(100dvh - 440px), 650px); }
.tracker-controls-panel { padding: 15px 17px 14px; }
.tracker-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); padding-bottom: 13px; }
.tracker-toolbar h2 { margin: 4px 0 0; color: var(--text); font: 400 20px var(--serif); }
#trackerSatelliteSlot { min-width: 230px; }
#trackerSatelliteControl select { width: 100%; }
.tracker-slider-row { display: grid; grid-template-columns: auto minmax(120px,1fr) auto; align-items: center; gap: 15px; padding: 16px 0 10px; }
.time-edge { color: var(--text-dim); font: 7px var(--mono); letter-spacing: .04em; white-space: nowrap; }
.tracker-slider-row input[type="range"] { width: 100%; margin: 0; accent-color: var(--signal); cursor: pointer; }
.track-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.track-position { margin: 13px 0 0; border-top: 1px solid var(--border-soft); padding-top: 10px; color: var(--technical); font: 10px/1.55 var(--mono); overflow-wrap: anywhere; }
.track-note { margin: 6px 0 0; color: var(--text-muted); font-size: 9px; line-height: 1.5; }
.simulation-badge, .hardware-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(215,164,92,.32); color: var(--warn); padding: 7px 9px; font: 8px var(--mono); letter-spacing: .06em; white-space: nowrap; }
.hardware-badge .status-dot { width: 7px; height: 7px; background: var(--geo); }

.hardware-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(280px,.75fr); align-items: start; gap: 14px; }
.hardware-console, .transmission-panel { padding: 21px; }
.hardware-console-heading { display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.hardware-console-heading svg { width: 30px; height: 30px; flex: 0 0 auto; fill: none; stroke: var(--signal); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.hardware-console-heading h2, .transmission-panel h2 { margin: 4px 0 0; color: var(--text); font: 400 23px/1.1 var(--serif); }
.panel-copy { max-width: 550px; margin: 15px 0 18px; color: var(--text-muted); font-size: 11px; }
.connect-button { min-width: 180px; }
.serial-state-block { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 12px; }
.serial-status { min-height: 34px; margin: 6px 0 0; color: var(--technical); font-size: 11px; line-height: 1.55; }
.hardware-footnote { margin: 16px 0 0; border-left: 2px solid var(--warn); color: var(--text-muted); padding: 7px 10px; font-size: 9px; line-height: 1.5; }
.transmission-panel h2 { margin: 6px 0 13px; }
.esp32-pass-summary { min-height: 110px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 11px 0; }
.esp32-pass-summary p { margin: 4px 0; color: var(--text-muted); font-size: 10px; }
.esp32-pass-summary strong { color: var(--text); font: 500 16px var(--serif); }
.esp32-pass-summary .serial-metric { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; color: var(--text-muted); font-size: 9px; }
.esp32-pass-summary .serial-metric b { color: var(--technical); font: 9px var(--mono); }
.protocol-note { display: grid; gap: 6px; margin-top: 18px; color: var(--text-dim); }
.protocol-note > span { font: 8px var(--mono); letter-spacing: .08em; }
.protocol-note code { color: var(--signal); font: 10px var(--mono); }
.protocol-note small { color: var(--text-muted); font-size: 9px; line-height: 1.45; }

.coordinate-system { display: inline-flex; align-items: center; gap: 10px; color: var(--text-muted); font: 9px var(--mono); }
.coordinate-system i, .footer-reference i { width: 1px; height: 14px; background: var(--border); }
.methodology-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.method-entry { position: relative; display: grid; grid-template-columns: 35px minmax(0,1fr); gap: 12px; min-height: 150px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 17px 16px; }
.method-number { color: var(--signal); font: 13px var(--mono); }
.method-entry h2 { margin: 0 0 8px; color: var(--text); font: 500 18px/1.1 var(--serif); }
.method-entry p { margin: 0; color: var(--text-muted); font-size: 10px; line-height: 1.55; }
.method-tag { position: absolute; right: 13px; bottom: 12px; color: var(--text-dim); font: 7px var(--mono); letter-spacing: .07em; }
.method-source-note { margin: 13px 0 0; color: var(--text-dim); font-size: 9px; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; border-top: 1px solid var(--border); background: var(--header); padding: 0 20px; color: var(--text-muted); }
.footer-brand, .footer-system, .footer-reference { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand strong { color: var(--text); font: 500 17px var(--serif); }
.footer-brand span:last-child { font-size: 10px; }
.footer-mark { color: var(--signal); font-size: 22px; }
.footer-brand > i { width: 1px; height: 29px; margin: 0 5px; background: var(--border); }
.footer-system { color: var(--text); font-size: 10px; }
.footer-system .status-dot { width: 9px; height: 9px; }
.footer-reference { color: var(--text-muted); font: 9px var(--mono); }

@media (max-width: 1320px) {
  .site-header { grid-template-columns: minmax(205px,250px) minmax(0,1fr) minmax(190px,260px); }
  .brand-lockup { padding: 0 14px; }
  .brand { gap: 12px; }
  .brand-mark { width: 56px; height: 56px; }
  .brand-copy strong { font-size: 30px; }
  .nav-tab { gap: 7px; min-width: 74px; padding: 0 7px; }
  .nav-tab svg { width: 19px; height: 19px; }
  .nav-tab span { font-size: 12px; }
  .header-status { gap: 10px; padding-right: 14px; font-size: 10px; }
  .map-view { grid-template-columns: minmax(245px,275px) minmax(0,1fr); }
  .pass-panel { width: min(286px,33%); }
}

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; grid-template-rows: 69px 53px; min-height: 122px; }
  .brand-lockup { border-right: 0; }
  .brand-mark { width: 48px; height: 48px; }
  .brand-copy strong { font-size: 28px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; border-top: 1px solid var(--border); padding: 0 8px; }
  .nav-tab { min-width: 110px; }
  .header-status { grid-column: 2; grid-row: 1; }
  .search-dock { height: 70px; margin: 0 14px; }
  .workspace-shell { padding-right: 14px; padding-left: 14px; }
  .map-view { grid-template-columns: minmax(0,1fr); }
  .map-sidebar { order: 2; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 17px; }
  .sidebar-heading { grid-column: 1 / -1; }
  .layer-list { grid-column: 1; }
  .sidebar-section { grid-column: 2; }
  .sidebar-section.location-section { grid-row: 2; }
  .satellite-filter-details { max-height: none; }
  .map-slot { order: 1; }
  .map-frame { height: clamp(470px, 62vh, 690px); }
  .pass-panel { position: static; width: 100%; max-height: none; margin-top: 10px; }
  .pass-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .map-pass-card.is-selected::before { width: 5px; }
  .map-bottom-tools { right: 8px; bottom: 44px; }
  .map-legend { padding: 9px; }
  .regional-locator { padding: 6px; }
  #overviewMap { width: 76px; height: 76px; }
  .passes-layout { grid-template-columns: minmax(0,1fr) 270px; }
  .pass-table th, .pass-table td { padding-right: 8px; padding-left: 8px; }
  .methodology-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .site-header { grid-template-rows: 66px 47px; min-height: 113px; }
  .brand-lockup { padding-left: 12px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 26px; }
  .brand-copy small { margin-top: 6px; font-size: 7px; }
  .header-status { gap: 7px; padding-right: 11px; }
  .header-divider { height: 22px; }
  .updated-state { font-size: 8px; }
  .settings-mark { width: 20px; height: 20px; }
  .source-state { gap: 5px; font-size: 9px; }
  .status-dot { width: 7px; height: 7px; }
  .main-nav { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-tab { flex: 0 0 auto; min-width: 93px; gap: 6px; }
  .nav-tab svg { width: 17px; height: 17px; }
  .nav-tab span { font-size: 11px; }
  .search-dock { display: grid; grid-template-columns: minmax(0,1fr) 158px; gap: 7px; height: 66px; margin: 0 10px; }
  .search-main, .timezone-control { height: 48px; border-radius: 6px; }
  .city-search { padding: 0 9px 0 12px; }
  .city-search > svg { width: 18px; height: 18px; }
  .city-search input { padding: 0 8px; font-size: 11px; }
  .city-search input::placeholder { font-size: 10px; }
  .search-submit { min-width: 53px; height: 32px; padding: 0 8px; font-size: 9px; }
  .search-status { top: calc(100% + 1px); left: 15px; max-width: calc(100vw - 35px); font-size: 7px; }
  .timezone-control { flex-basis: 158px; gap: 6px; padding: 0 8px; }
  .timezone-control svg { width: 18px; height: 18px; }
  .timezone-control select { font-size: 9px; }
  .timezone-control .select-caret { right: 7px; font-size: 14px; }
  .search-results-panel { top: calc(100% + 14px); left: -2px; grid-template-columns: 1fr; width: min(420px, calc(100vw - 20px)); padding: 11px; }
  .search-results-panel label { grid-column: auto; }
  .workspace-shell { padding: 0 10px 18px; }
  .map-sidebar { display: block; padding: 12px; }
  .sidebar-heading { padding-bottom: 9px; }
  .sidebar-heading h1 { font-size: 18px; }
  .layer-toggle { min-height: 37px; font-size: 10px; }
  .map-panel-heading { min-height: 43px; gap: 8px; padding: 5px 8px; }
  .map-panel-title { gap: 7px; }
  .micro-label { font-size: 7px; }
  .map-panel-title h2 { font-size: 16px; }
  .map-location-readout { display: none; }
  .map-mode-readout { gap: 5px; margin-left: auto; padding-left: 8px; font-size: 7px; }
  .map-frame { height: 430px; min-height: 360px; }
  .map-focus-tag { top: 8px; right: 8px; max-width: 55%; padding: 5px 6px; font-size: 6px; }
  .map-focus-tag strong { font-size: 8px; }
  .map-bottom-tools { right: 6px; bottom: 44px; gap: 5px; }
  .map-legend { min-width: 115px; gap: 6px; padding: 7px; font-size: 7px; }
  .map-legend span { gap: 6px; }
  .map-legend b { max-width: 75px; font-size: 7px; }
  .legend-track, .legend-other { width: 16px; }
  .regional-locator { gap: 3px; padding: 4px; }
  .locator-label { font-size: 6px; }
  #overviewMap { width: 62px; height: 62px; }
  .map-coordinate-readout { top: 7px; right: 7px; bottom: auto; left: auto; gap: 5px; padding: 5px 6px; font-size: 6.5px; }
  .map-coordinate-readout i { height: 9px; }
  .map-caption { align-items: flex-start; flex-direction: column; gap: 2px; padding: 6px 8px; }
  .map-caption p { font-size: 7px; text-align: left; }
  .leaflet-control-zoom { margin: 7px !important; }
  .leaflet-control-zoom a { width: 25px !important; height: 25px !important; line-height: 24px !important; }
  .leaflet-control-scale { margin-bottom: 36px !important; margin-left: 7px !important; }
  .leaflet-control-scale-line { font-size: 7px !important; }
  .leaflet-control-attribution { max-width: calc(100% - 8px); padding: 1px 4px; font-size: 7px !important; line-height: 1.25 !important; }
  .pass-panel { margin-top: 7px; }
  .pass-panel-heading { padding: 10px; }
  .pass-panel-heading h2 { font-size: 17px; }
  .pass-list { grid-template-columns: 1fr; max-height: 370px; }
  .pass-card-select { padding: 9px 9px 6px 13px; }
  .map-pass-card.is-selected::before { width: 5px; }
  .pass-card-identity strong { font-size: 13px; }
  .pass-card-times b { font-size: 7px; }
  .pass-panel-footer { padding: 7px 9px; font-size: 7px; }
  .view-all-button { min-height: 35px; padding: 0 10px; font-size: 10px; }
  .content-view { padding-top: 15px; }
  .view-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 12px; padding-bottom: 11px; }
  .view-heading h1 { font-size: 30px; }
  .view-heading p { font-size: 10px; }
  .view-stat { justify-items: start; display: flex; align-items: baseline; gap: 8px; }
  .view-stat strong { font-size: 20px; }
  .passes-layout, .hardware-layout { grid-template-columns: 1fr; gap: 9px; }
  .pass-detail-panel { padding: 13px; }
  .table-toolbar { min-height: 36px; padding: 0 9px; font-size: 7px; }
  .pass-table { min-width: 650px; }
  .pass-table th { height: 34px; font-size: 7px; }
  .pass-table td { height: 48px; font-size: 8px; }
  .pass-table .satellite-cell strong { font-size: 12px; }
  .pass-table .satellite-cell small { font-size: 7px; }
  .tracker-view .map-frame { height: 390px; min-height: 330px; }
  .tracker-controls-panel { padding: 12px; }
  .tracker-toolbar { align-items: flex-start; flex-direction: column; gap: 9px; padding-bottom: 10px; }
  .tracker-toolbar h2 { font-size: 18px; }
  #trackerSatelliteSlot { width: 100%; min-width: 0; }
  .tracker-slider-row { grid-template-columns: 1fr 1fr; gap: 8px; padding: 13px 0 9px; }
  .tracker-slider-row input { grid-column: 1 / -1; grid-row: 1; }
  .time-edge { font-size: 6px; }
  .time-edge:last-child { text-align: right; }
  .track-actions .button { flex: 1 1 30%; padding: 7px 6px; font-size: 9px; }
  .track-position { font-size: 8px; }
  .track-note { font-size: 8px; }
  .hardware-console, .transmission-panel { padding: 14px; }
  .hardware-console-heading h2, .transmission-panel h2 { font-size: 20px; }
  .methodology-grid { grid-template-columns: 1fr; }
  .method-entry { min-height: 112px; grid-template-columns: 29px minmax(0,1fr); gap: 7px; padding: 13px 11px 23px; }
  .method-number { font-size: 11px; }
  .method-entry h2 { font-size: 16px; }
  .method-entry p { font-size: 9px; }
  .method-tag { right: 11px; bottom: 7px; font-size: 6px; }
  .coordinate-system { font-size: 8px; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; gap: 9px 16px; min-height: 64px; padding: 10px; }
  .footer-brand { gap: 6px; }
  .footer-brand strong { font-size: 15px; }
  .footer-brand span:last-child { font-size: 8px; }
  .footer-brand > i { height: 20px; margin: 0 2px; }
  .footer-system, .footer-reference { font-size: 8px; }
}

@media (max-width: 390px) {
  .brand-lockup { padding-left: 9px; }
  .brand { gap: 8px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-copy strong { font-size: 23px; }
  .brand-copy small { font-size: 6px; }
  .header-status { gap: 5px; padding-right: 7px; }
  .source-state { font-size: 8px; }
  .updated-state { font-size: 7px; }
  .settings-mark { display: none; }
  .nav-tab { min-width: 72px; gap: 4px; padding: 0 4px; }
  .nav-tab svg { width: 14px; height: 14px; }
  .nav-tab span { font-size: 9px; }
  .search-dock { grid-template-columns: minmax(0,1fr) 137px; gap: 5px; margin: 0 7px; }
  .timezone-control { flex-basis: 137px; gap: 4px; padding: 0 6px; }
  .timezone-control select { font-size: 8px; }
  .timezone-control svg { width: 16px; height: 16px; }
  .map-frame { height: 390px; }
  .map-bottom-tools { right: 4px; bottom: 44px; gap: 4px; }
  .map-legend { min-width: 102px; padding: 6px; }
  .map-legend span { gap: 5px; }
  .map-legend b { max-width: 67px; }
  #overviewMap { width: 55px; height: 55px; }
  .regional-locator { padding: 3px; }
  .locator-label { max-width: 70px; overflow: hidden; font-size: 5px; white-space: nowrap; }
  .map-coordinate-readout { top: 7px; right: 7px; bottom: auto; left: auto; gap: 4px; padding: 4px 5px; font-size: 6px; }
  .map-coordinate-readout b { font-size: 6px; }
}

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


.mobile-controls-toggle { display: none; }
@media (max-width: 1050px) {
  .mobile-controls-toggle {
    order: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 48px;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--panel);
    color: var(--text);
    padding: 7px 13px;
    text-align: left;
    cursor: pointer;
  }
  .mobile-controls-toggle > svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--signal); stroke-width: 1.5; }
  .mobile-controls-copy { display: grid; gap: 3px; flex: 1; }
  .mobile-controls-copy strong { font: 14px var(--serif); }
  .mobile-controls-copy small { color: var(--text-muted); font: 8px var(--mono); letter-spacing: .05em; text-transform: uppercase; }
  .mobile-controls-action { color: var(--signal); font: 9px var(--mono); text-transform: uppercase; }
  .map-sidebar { order: 1 !important; }
  .map-sidebar:not([open]) > summary { display: none; }
  .map-slot { order: 2 !important; }
}
@media (max-width: 760px) {
  .mobile-controls-toggle { min-height: 44px; }
  .mobile-controls-copy strong { font-size: 13px; }
  .mobile-controls-action { font-size: 8px; }
}

@media (max-width: 1050px) {
  .map-sidebar:not([open]) { display: none !important; }
}

/* Fase 6 — Ao Vivo */
.live-status-badge{display:inline-flex;align-items:center;border:1px solid var(--line,#39413d);padding:8px 10px;font:11px/1.1 var(--mono,monospace);letter-spacing:.08em;color:var(--muted,#aaa99f)}
.live-status-badge.is-warning{color:#e4b36d;border-color:#87683f}.live-status-badge.is-error{color:#df8c76;border-color:#8b4d40}.live-status-badge.is-pending{color:#aaa99f}
.live-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:14px;min-height:620px}.live-map-panel{padding:0;overflow:hidden}.live-map{height:100%;min-height:620px;background:#18201e}.live-map-note{position:absolute;z-index:500;margin:14px;padding:8px 10px;background:rgba(16,23,22,.9);color:#d5d0c4;font:10px var(--mono,monospace);letter-spacing:.06em}.live-details{padding:18px}.live-controls{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line,#39413d);padding-bottom:14px}.live-controls select{background:#222a27;color:#e9e2d5;border:1px solid #39413d;padding:7px}.live-identification{padding:22px 0 14px;border-bottom:1px solid var(--line,#39413d)}.live-identification h2{margin:5px 0;font:28px Georgia,serif;color:#e9e2d5}.live-identification p{margin:0;color:#aaa99f;font:12px var(--mono,monospace)}.live-metrics{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;margin:0;padding:14px 0;border-bottom:1px solid var(--line,#39413d)}.live-metrics div{padding:8px 0}.live-metrics dt{font-size:10px;color:#aaa99f;text-transform:uppercase;letter-spacing:.08em}.live-metrics dd{margin:4px 0 0;color:#e9e2d5;font:13px var(--mono,monospace)}.live-source{padding:14px 0;border-bottom:1px solid var(--line,#39413d);color:#aaa99f;font-size:12px}.live-source p{margin:7px 0}.live-source strong{color:#e47e51;font:12px var(--mono,monospace)}.live-actions{display:flex;flex-wrap:wrap;gap:8px;padding:14px 0}.live-actions .button{flex:1 1 120px}.live-error{margin:0;padding:10px;border-left:3px solid #e47e51;background:#25211e;color:#e9e2d5;font-size:12px}.live-div-icon{background:none;border:0}.live-current-marker{width:14px;height:14px;border-radius:50%;background:#e47e51;border:3px solid #f2eadc;box-shadow:0 0 0 5px rgba(228,126,81,.25)}
@media(max-width:900px){.live-layout{grid-template-columns:1fr}.live-map{min-height:430px}.live-map-panel{min-height:430px}}

/* Composição cartográfica: o mapa é a superfície primária. */
.map-view { grid-template-columns: minmax(235px, 255px) minmax(0, 1fr); gap: 8px; }
.workspace-shell { max-width: 2200px; padding-right: 12px; padding-left: 12px; }
.map-frame { height: clamp(560px, calc(100dvh - 252px), 980px); }
.map-sidebar { padding: 13px 12px 11px; }
.map-sidebar .sidebar-section { padding-top: 11px; }
.map-sidebar .sidebar-section h2 { margin-bottom: 9px; font-size: 16px; }
.pass-panel { top: 10px; right: 10px; width: min(260px, 25%); max-height: min(330px, calc(100% - 20px)); }
.pass-panel:not([open]) { max-height: none; }
.pass-panel-heading { padding: 10px 11px 8px; }
.pass-panel-heading h2 { font-size: 17px; }
.pass-list { max-height: 238px; }
.map-bottom-tools { right: 10px; bottom: 10px; gap: 8px; }
.map-legend { min-width: 188px; padding: 9px 10px; gap: 6px; background: rgba(16,23,22,.94); }
.regional-locator { padding: 5px; background: rgba(16,23,22,.94); }
.map-window-note { font-size: 7px; }
.live-layout { grid-template-columns: minmax(0, 1fr) 315px; gap: 10px; min-height: 680px; }
.live-map { min-height: 680px; }
.live-details { padding: 15px; }
.live-metrics dd { font-size: 12px; }
@media (min-width: 1600px) {
  .map-view { grid-template-columns: 270px minmax(0, 1fr); }
  .pass-panel { width: 275px; }
  .live-layout { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 1050px) {
  .map-view { grid-template-columns: minmax(0,1fr); }
  .map-frame { height: clamp(500px, 70vh, 820px); }
  .pass-panel { position: static; width: 100%; max-height: none; margin-top: 8px; }
  .pass-panel[open] { max-height: none; }
  .pass-list { max-height: none; }
}
@media (max-width: 760px) {
  .map-frame { height: min(690px, calc(100dvh - 300px)); min-height: 470px; }
  .map-bottom-tools { right: 6px; bottom: 7px; }
  .map-legend { min-width: 160px; max-width: 58vw; }
  .live-layout { min-height: 0; }
  .live-map { min-height: 480px; }
}
