:root {
  color-scheme: dark;
  --ink: #eaf1f7;
  --muted: #91a4b7;
  --faint: #5d7185;
  --bg: #050b12;
  --panel: #0a1521;
  --panel-2: #0e1d2b;
  --line: #213447;
  --line-strong: #355069;
  --orange: #ff671d;
  --orange-2: #ff8a4d;
  --yellow: #ffca3a;
  --green: #4bd693;
  --cyan: #49c6e5;
  --red: #ff3b3b;
  --red-dark: #8c1717;
  --shadow: 0 18px 50px rgba(0, 0, 0, .34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 65% -20%, #193750 0, transparent 34rem), linear-gradient(180deg, #07111d, #04090e 68%); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(73, 198, 229, .48); outline-offset: 2px; }
[hidden] { display: none !important; }

.eyebrow, .section-kicker { margin: 0 0 .22rem; color: var(--orange-2); font-size: .72rem; font-weight: 900; letter-spacing: .17em; line-height: 1.2; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .2rem; font-size: clamp(1.25rem, 2.5vw, 1.75rem); line-height: 1.05; letter-spacing: -.025em; }
h2 { margin-bottom: 0; font-size: 1.05rem; letter-spacing: -.01em; }

.app-shell { min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 86px; padding: .75rem 1.25rem; border-bottom: 1px solid var(--line-strong); background: rgba(5, 11, 18, .95); box-shadow: 0 10px 30px rgba(0,0,0,.28); backdrop-filter: blur(14px); }
.brand-lockup, .top-status, .operator-block, .net-controls, .metric-row, .panel-head { display: flex; align-items: center; }
.brand-lockup { gap: .85rem; min-width: 0; }
.brand-logo { object-fit: contain; flex: 0 0 auto; }
.brand-logo.ara { width: 56px; height: 56px; filter: saturate(.92) contrast(1.08); }
.brand-logo.skywarn { width: 58px; height: 58px; }
.net-identity { margin: .32rem 0 0; color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 48vw; }
.top-status { gap: .65rem; justify-content: flex-end; }
.clock-pair { display: flex; align-items: center; gap: .65rem; }
.utc-clock { padding-left: .65rem; border-left: 1px solid var(--line); }
.clock-block { display: grid; justify-items: end; margin-right: .35rem; line-height: 1; }
.clock-block span { color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.clock-block strong { margin-top: .28rem; font-variant-numeric: tabular-nums; font-size: 1.1rem; }

.status-pill, .role-badge, .source-chip, .count-badge { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; border: 1px solid var(--line-strong); background: #101f2d; color: #c6d4df; font-size: .72rem; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.status-pill, .role-badge { padding: .43rem .65rem; border-radius: 999px; }
.status-pill i { width: .48rem; height: .48rem; border-radius: 50%; background: var(--faint); box-shadow: 0 0 0 3px rgba(93,113,133,.12); }
.status-pill.online i { background: var(--green); box-shadow: 0 0 0 3px rgba(75,214,147,.14), 0 0 11px rgba(75,214,147,.6); }
.status-pill.offline i { background: var(--red); }
.role-badge.primary, .role-badge.backup { border-color: rgba(255,103,29,.7); background: rgba(255,103,29,.14); color: #ffd1bc; }
.role-badge.administrator { border-color: rgba(73,198,229,.6); color: #bcecf7; }
.source-chip { padding: .3rem .48rem; border-radius: 4px; color: #bcecf7; }
.source-chip.muted { color: var(--muted); }
.count-badge { justify-content: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; border: 0; border-radius: 999px; background: var(--red); color: white; }

.icon-btn { display: inline-flex; align-items: center; gap: .35rem; min-height: 38px; padding: .45rem .66rem; border: 1px solid var(--line); border-radius: 5px; background: #0d1925; color: var(--muted); font-size: .78rem; font-weight: 750; }
.icon-btn:hover { border-color: var(--line-strong); color: white; background: #132334; }

.warning-banner { position: sticky; top: 86px; z-index: 19; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .75rem 1.3rem; border-bottom: 2px solid #ff7777; background: linear-gradient(90deg, #9e1717, #e72f2f 54%, #8d1515); color: white; box-shadow: 0 8px 30px rgba(255, 0, 0, .28); }
.warning-banner:not([hidden]) { display: grid; animation: warningPulse 1.15s steps(2, end) infinite; }
.warning-banner.acknowledged { animation: none; background: #5b2020; }
.warning-icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 2px solid white; border-radius: 50%; font-size: 1.35rem; font-weight: 950; }
.warning-banner span, .warning-banner strong, .warning-banner small { display: block; }
.warning-banner span { font-size: .72rem; font-weight: 950; letter-spacing: .16em; }
.warning-banner strong { margin-top: .15rem; line-height: 1.25; }
.warning-banner small { margin-top: .12rem; opacity: .82; }
@keyframes warningPulse { 0%, 49% { filter: brightness(.78); } 50%, 100% { filter: brightness(1.18); } }

.par-banner { position: sticky; top: 86px; z-index: 18; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .7rem 1.25rem; border-bottom: 2px solid #ffd65d; background: linear-gradient(90deg,#7b210e,#c53b15 52%,#71200d); color: white; box-shadow: 0 8px 26px rgba(255,103,29,.28); }
.par-banner:not([hidden]) { display: grid; animation: parPulse .8s steps(2,end) infinite; }
.warning-banner:not([hidden]) + .par-banner { top: 157px; }
.par-banner span,.par-banner strong,.par-banner small { display:block; }
.par-banner span { font-size:.7rem;font-weight:950;letter-spacing:.15em; }
.par-banner strong { margin-top:.12rem; }
.par-banner small { margin-top:.12rem;color:#ffe2c7; }
.par-icon { display:grid;place-items:center;min-width:3.1rem;height:2.25rem;border:2px solid white;border-radius:4px;font-size:.82rem;font-weight:950; }
.par-actions { display:flex;gap:.4rem;flex-wrap:wrap;justify-content:flex-end; }
@keyframes parPulse { 0%,49%{filter:brightness(.78)}50%,100%{filter:brightness(1.2)} }

.command-strip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 58px; padding: .65rem 1.25rem; border-bottom: 1px solid var(--line); background: #07111b; }
.quick-actions { display:flex;align-items:center;gap:.38rem;padding:.45rem 1.25rem;border-bottom:1px solid var(--line);background:#091522;overflow-x:auto; }
.quick-actions>span { flex:0 0 auto;margin-right:.25rem;color:var(--orange-2);font-size:.68rem;font-weight:950;letter-spacing:.12em; }
.quick-actions button { flex:0 0 auto;min-height:34px;padding:.35rem .6rem;border:1px solid var(--line-strong);border-radius:4px;background:#102131;color:#dce7ef;font-size:.74rem;font-weight:850; }
.quick-actions button:hover { border-color:var(--orange); }
.quick-actions .primary-quick { border-color:#ff8751;background:#ba430d;color:white; }
.operator-block { gap: .65rem; min-width: 0; }
.operator-block strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operation-stat { padding:.28rem .42rem;border:1px solid var(--line);border-radius:4px;color:var(--muted);font-size:.7rem;font-weight:850;white-space:nowrap; }
.operation-stat.attention { border-color:#5b4b22;color:#ffe28b; }
.training-banner { padding:.45rem 1rem;border-bottom:2px solid var(--yellow);background:#5b4300;color:#fff2ba;text-align:center;font-size:.76rem;font-weight:950;letter-spacing:.08em; }
.net-workspace { display:grid;grid-template-columns:220px minmax(0,1fr);gap:.75rem;padding:.7rem 1.25rem;border-bottom:1px solid var(--line-strong);background:linear-gradient(180deg,#0c1b29,#07121d); }
.net-workspace-label { display:grid;align-content:center;gap:.55rem; }
.net-workspace-label strong { display:block;margin-top:.18rem;font-size:.83rem; }
.net-workspace-label .btn { justify-self:start; }
.net-tabs { display:grid;grid-template-columns:repeat(2,minmax(260px,420px));align-items:stretch;justify-content:center;gap:.55rem;min-width:0;padding:.08rem .05rem .18rem; }
.net-tab { display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto auto;gap:.1rem .45rem;width:100%;min-width:0;padding:.62rem .72rem;border:1px solid var(--line);border-radius:6px;background:#081522;color:var(--ink);text-align:left; }
.net-tab:hover { border-color:#46647d;background:#0d1e2d; }
.net-tab.active { border-color:var(--orange);background:linear-gradient(135deg,rgba(255,103,29,.16),#102131);box-shadow:inset 4px 0 0 var(--orange); }
.net-tab .net-live { grid-row:1 / span 2;align-self:start;padding:.18rem .28rem;border-radius:3px;background:#164d39;color:#9dffd0;font-size:.58rem;font-weight:950;letter-spacing:.08em; }
.net-tab strong { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.85rem; }
.net-tab small { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:.68rem; }
.net-tab-stats { grid-column:1 / -1;display:flex;gap:.35rem;margin-top:.35rem; }
.net-tab-stats b { padding:.18rem .3rem;border:1px solid var(--line);border-radius:3px;color:var(--muted);font-size:.62rem;text-transform:uppercase; }
.net-tab-stats b.attention { border-color:#66531d;color:var(--yellow); }
.net-empty { display:grid;min-height:76px;width:100%;place-items:center;border:1px dashed var(--line);border-radius:5px;color:var(--muted);font-size:.8rem; }
.net-controls { gap: .45rem; justify-content: flex-end; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; padding: .52rem .8rem; border: 1px solid transparent; border-radius: 5px; color: white; font-size: .82rem; font-weight: 850; letter-spacing: .01em; }
.btn.primary { border-color: #ff8751; background: linear-gradient(180deg, #ff7b39, #d94b07); box-shadow: 0 4px 18px rgba(255,103,29,.18); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.subtle { border-color: var(--line-strong); background: #101f2d; color: #dce7ef; }
.btn.subtle:hover { border-color: #58728b; background: #172a3b; }
.btn.danger { border-color: #ff7070; background: #9e2020; }
.btn.danger:hover { background: #bd2929; }
.btn.wide { width: 100%; }
.btn:disabled { cursor: not-allowed; opacity: .48; }

.operations-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(340px, .9fr); grid-template-areas:"checkins weather" "station reports" "activity people" "allstar chat" "scripts health" "resources resources"; align-items:start; gap: .8rem; max-width: 1800px; margin: 0 auto; padding: .8rem; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(180deg, rgba(14,29,43,.98), rgba(8,19,30,.98)); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { justify-content: space-between; gap: 1rem; min-height: 68px; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: rgba(6, 15, 24, .58); }
.panel-head.compact { min-height: 59px; }
.metric-row { gap: 1rem; color: var(--muted); font-size: .78rem; }
.metric-row b { color: white; font-size: 1rem; }
.metric-row .priority-metric b { color: var(--yellow); }
.checkins-panel { grid-area:checkins; }
.right-rail { grid-area:weather;display:grid;align-content:start;gap:.8rem; }
.field-panel { grid-area:station; }
.allstar-panel { grid-area:allstar; }
.chat-panel { grid-area:chat; }
.people-panel { grid-area:people; }
.activity-panel { grid-area:activity; }
.reports-panel { grid-area:reports; }
.scripts-panel { grid-area:scripts; }
.health-panel { grid-area:health; }
.resources-panel { grid-area:resources; }

label { display: grid; gap: .34rem; color: var(--muted); font-size: .74rem; font-weight: 850; letter-spacing: .025em; }
input, select, textarea { width: 100%; min-height: 42px; border: 1px solid #2a4359; border-radius: 4px; background: #06101a; color: var(--ink); padding: .55rem .62rem; font-size: .92rem; }
textarea { resize: vertical; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: #557087; }
input:hover, select:hover, textarea:hover { border-color: #42627d; }

.checkin-form { display: grid; grid-template-columns: 1.05fr 1.25fr 1fr .9fr .42fr .9fr auto; align-items: end; gap: .55rem; padding: .85rem 1rem .75rem; border-bottom: 1px solid var(--line); background: #0b1825; }
.call-field input { text-transform: uppercase; font-weight: 900; letter-spacing: .08em; }
.state-field input { text-transform: uppercase; }
.checkin-button { min-width: 112px; }
.fcc-lookup { display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: .65rem; margin: .65rem 1rem 0; padding: .55rem .65rem; border: 1px solid #25465a; border-left: 3px solid var(--cyan); border-radius: 4px; background: rgba(73,198,229,.06); font-size: .82rem; }
.fcc-lookup strong { letter-spacing: .06em; }
.fcc-lookup small { color: var(--muted); }
.form-message { min-height: 1.25rem; margin: .4rem 1rem 0; color: var(--yellow); font-size: .8rem; }
.form-message.error { color: #ff8d8d; }
.form-message.success { color: var(--green); }
.filter-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .65rem 1rem; border-bottom: 1px solid var(--line); }
.segmented { display: inline-flex; padding: .16rem; border: 1px solid var(--line); border-radius: 5px; background: #06101a; }
.segmented button { min-height: 32px; padding: .3rem .65rem; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: .76rem; font-weight: 800; }
.segmented button.active { background: #1c3346; color: white; }
.search-field { display: flex; align-items: center; gap: .45rem; }
.search-field input { min-height: 34px; width: min(250px, 40vw); }
.station-table-wrap { overflow: auto; max-height: 625px; }
.station-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.station-table th { position: sticky; top: 0; z-index: 1; padding: .55rem .7rem; border-bottom: 1px solid var(--line-strong); background: #091522; color: var(--muted); font-size: .68rem; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.station-table td { padding: .62rem .7rem; border-bottom: 1px solid rgba(33,52,71,.7); vertical-align: middle; }
.station-table tr[data-station] { cursor: pointer; }
.station-table tr[data-station]:hover, .station-table tr.selected { background: rgba(73,198,229,.07); }
.station-table .callsign { font-weight: 950; letter-spacing: .05em; color: white; }
.station-table .callsign-link { padding:0;border:0;background:transparent;color:white;font:inherit;font-weight:950;letter-spacing:.05em;text-align:left;text-decoration:underline;text-decoration-color:rgba(73,198,229,.35);text-underline-offset:.2rem; }
.station-table .callsign-link:hover { color:var(--cyan);text-decoration-color:var(--cyan); }
.station-table .subline { display: block; margin-top: .16rem; color: var(--muted); font-size: .72rem; }
.station-table .row-number { color: var(--faint); font-variant-numeric: tabular-nums; }
.traffic-tag, .state-tag { display: inline-flex; padding: .25rem .42rem; border-radius: 3px; font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.traffic-tag.none { color: var(--muted); background: #101c27; }
.traffic-tag.routine { color: #c7eafb; background: rgba(73,198,229,.12); }
.traffic-tag.weather-report { color: #baf3d7; background: rgba(75,214,147,.12); }
.traffic-tag.priority { color: #261b00; background: var(--yellow); }
.traffic-tag.emergency { color: white; background: var(--red); animation: warningPulse 1.2s steps(2,end) infinite; }
.par-count { display:block;margin-top:.25rem;color:var(--green);font-size:.66rem;font-weight:900;font-variant-numeric:tabular-nums; }
.par-count.warning { color:var(--yellow); }
.par-count.due { color:white;background:var(--red);padding:.2rem .3rem;border-radius:3px;animation:warningPulse .8s steps(2,end) infinite; }
.btn.par-ok { border-color:#ffca3a;background:#6e4e00;color:#fff4c7; }
.empty-row td, .empty-state { color: var(--muted); text-align: center; }
.empty-state { padding: 1rem; font-size: .82rem; }
.empty-state.tall { display: grid; min-height: 220px; place-items: center; }
.row-button { min-height: 30px; padding: .25rem .45rem; border: 1px solid var(--line); border-radius: 4px; background: #101f2d; color: var(--muted); font-size: .72rem; }

.alert-list { max-height: 345px; overflow: auto; }
.alert-item { padding: .75rem .85rem; border-bottom: 1px solid var(--line); }
.alert-item:last-child { border-bottom: 0; }
.alert-item.warning { border-left: 4px solid var(--red); background: rgba(255,59,59,.08); }
.alert-item.watch { border-left: 4px solid var(--yellow); background: rgba(255,202,58,.05); }
.alert-item.advisory { border-left: 4px solid var(--cyan); }
.alert-meta { display: flex; justify-content: space-between; gap: .8rem; color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.alert-item h3 { margin: .32rem 0 .28rem; font-size: .92rem; line-height: 1.25; }
.alert-item p { margin: 0; color: #bfd0dc; font-size: .78rem; line-height: 1.35; }
.alert-item summary { cursor:pointer;list-style:none; }
.alert-item summary::-webkit-details-marker { display:none; }
.alert-detail { padding:.65rem .8rem .8rem;border-top:1px dashed var(--line);background:#07131e; }
.alert-detail strong,.alert-detail b { display:block;margin-bottom:.35rem;font-size:.78rem; }
.alert-detail p { margin:.35rem 0;white-space:pre-wrap; }
.alert-detail small { display:block;margin-top:.5rem;color:var(--muted); }
.source-note { margin: 0; padding: .48rem .8rem; border-top: 1px solid var(--line); color: var(--faint); font-size: .7rem; }
.text-link { color: var(--cyan); font-size: .76rem; font-weight: 800; text-decoration: none; }

.radar-picker { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; padding: .5rem .8rem; background: #081725; }
.radar-picker label { color: var(--muted); font-size: .75rem; }
.radar-picker select, .radar-picker input { flex: 1 1 165px; width: auto; min-width: 0; }
.radar-picker input[hidden] { display: none; }

.radar-frame { position: relative; min-height: 280px; display: grid; place-items: center; overflow: hidden; background: #020508; }
.radar-frame img { display: block; width: 100%; height: auto; min-height: 280px; object-fit: contain; image-rendering: auto; }
.radar-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at center, transparent 28%, rgba(4,9,14,.1) 55%, rgba(4,9,14,.6)); }
.radar-scan { position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent 0 81%, rgba(75,214,147,.1) 88%, transparent 94%); animation: radarSpin 8s linear infinite; pointer-events: none; mix-blend-mode: screen; }
@keyframes radarSpin { to { transform: rotate(1turn); } }

.identity-card { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .8rem; padding: 1rem; border-bottom: 1px solid var(--line); }
.identity-card div { min-width: 0; }
.identity-card span { display: block; color: var(--muted); font-size: .68rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.identity-card strong { display: block; margin-top: .25rem; overflow-wrap: anywhere; }
.station-actions { display: flex; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.station-ops { display:grid;grid-template-columns:.8fr 1.2fr .55fr 1.2fr auto;align-items:end;gap:.5rem;padding:.75rem 1rem;border-bottom:1px solid var(--line);background:#091722; }
.note-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.note-timeline { max-height: 275px; overflow: auto; }
.note-item { display: grid; grid-template-columns: 7rem 1fr; gap: .75rem; padding: .65rem 1rem; border-bottom: 1px solid rgba(33,52,71,.7); }
.note-item time { color: var(--muted); font-size: .7rem; font-variant-numeric: tabular-nums; }
.note-item p { margin: 0; font-size: .82rem; line-height: 1.4; white-space: pre-wrap; }

#stationActivityDialog,#weatherObservationDialog { width:min(920px,calc(100vw - 2rem)); }
.station-activity-dialog { width:100%; }
.activity-station-summary { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem;margin-bottom:.8rem;padding:.75rem;border:1px solid var(--line);border-radius:5px;background:#07131e; }
.activity-station-summary div { min-width:0; }
.activity-station-summary span { display:block;color:var(--muted);font-size:.66rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase; }
.activity-station-summary strong { display:block;margin-top:.2rem;overflow-wrap:anywhere; }
.station-activity-actions { display:flex;gap:.55rem;margin-bottom:.75rem; }
.station-recheck-form { display:grid;grid-template-columns:1fr auto;align-items:end;gap:.65rem;padding:.8rem;border:1px solid var(--line);border-radius:5px;background:#091722; }
.activity-history-head { display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:1rem;padding-bottom:.55rem;border-bottom:1px solid var(--line); }
.activity-history-head h3 { margin:0;color:var(--orange-2);font-size:.78rem;letter-spacing:.08em;text-transform:uppercase; }
.station-activity-history { max-height:310px;overflow:auto;border:1px solid var(--line);border-top:0;border-radius:0 0 5px 5px; }
.station-activity-item { display:grid;grid-template-columns:8rem 1fr auto;gap:.75rem;padding:.68rem .75rem;border-bottom:1px solid rgba(33,52,71,.72); }
.station-activity-item:last-child { border-bottom:0; }
.station-activity-item time,.station-activity-item small { color:var(--muted);font-size:.68rem; }
.station-activity-item strong,.station-activity-item p { margin:0; }
.station-activity-item p { margin-top:.2rem;color:#d8e3eb;font-size:.8rem;line-height:1.42;white-space:pre-wrap; }
.activity-kind { align-self:start;padding:.22rem .38rem;border:1px solid var(--line);border-radius:3px;color:var(--muted);font-size:.61rem;font-weight:900;text-transform:uppercase; }
.activity-kind.weather { border-color:rgba(75,214,147,.45);color:#baf3d7; }
.activity-kind.significant { border-color:rgba(255,202,58,.55);color:#ffe59a; }
.precipitation-options { display:flex;flex-wrap:wrap;align-items:center;gap:.55rem 1rem; }
.precipitation-options legend { width:auto; }
.precipitation-options .check-label { min-width:90px; }
.significant-weather { padding:.65rem;border:1px solid rgba(255,202,58,.4);border-radius:5px;background:rgba(255,202,58,.06);color:#ffe59a; }

.report-list { max-height:420px;overflow:auto; }
.report-item { padding:.72rem .85rem;border-bottom:1px solid var(--line);border-left:4px solid var(--yellow); }
.report-item.relayed { border-left-color:var(--green); }
.report-top,.report-actions { display:flex;align-items:center;justify-content:space-between;gap:.6rem; }
.report-item p { margin:.38rem 0;color:#d3dee6;font-size:.8rem;line-height:1.45; }
.report-item small { color:var(--muted);font-size:.69rem; }
.relay-status { color:var(--yellow);font-size:.65rem;font-weight:900;text-transform:uppercase; }
.relay-status.relayed { color:var(--green); }
.report-actions { justify-content:flex-start;margin-top:.4rem; }
.text-button { padding:.2rem 0;border:0;background:transparent;color:var(--cyan);font-size:.72rem;font-weight:850; }
.danger-text { color:#ff8d8d; }
.report-dialog { width:min(900px,100%); }
.report-preview { margin:.8rem 0;padding:.75rem;border:1px solid #39556c;border-left:4px solid var(--cyan);background:#07131e;color:#d7e5ed;font-size:.8rem;line-height:1.45; }

.connected-nodes { display: flex; align-items: center; gap: .4rem; min-height: 46px; padding: .55rem .8rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.node-chip { padding: .3rem .48rem; border: 1px solid #2f526b; border-radius: 4px; background: #0b1a26; color: #ccecf6; font: 850 .76rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.panel-head-actions { display:flex;align-items:center;gap:.65rem; }
.allstar-live { display:block;padding:0;overflow-x:auto; }
.allstar-live-summary { display:grid;grid-template-columns:auto 1fr auto;gap:.75rem;align-items:center;padding:.7rem .8rem;background:#062a2d;border-bottom:1px solid #12705c; }
.allstar-live-summary strong { color:var(--green);font-size:.82rem; }
.allstar-live-summary span { color:#d7e5ec;font-weight:800; }
.allstar-live-summary small { color:var(--muted);text-transform:uppercase;font-size:.65rem; }
.allstar-live-table { min-width:760px; }
.allstar-live-row { display:grid;grid-template-columns:80px minmax(250px,1fr) 90px 80px 110px 100px;gap:.55rem;align-items:center;padding:.48rem .8rem;border-bottom:1px solid var(--line);font-size:.72rem; }
.allstar-live-row span:first-child { color:#fff;font-weight:900; }
.allstar-live-row span:nth-child(5) { color:var(--green);font-weight:850; }
.allstar-live-head { color:var(--cyan);font-size:.62rem;font-weight:850; }
.allstar-live-head span:first-child,.allstar-live-head span:nth-child(5) { color:var(--cyan); }
.macro-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; padding: .75rem .8rem; border-bottom: 1px solid var(--line); }
.macro-button { min-height: 54px; padding: .55rem; border: 1px solid var(--line-strong); border-radius: 4px; background: #102131; color: white; text-align: left; }
.macro-button:hover { border-color: var(--orange); }
.macro-button strong, .macro-button span { display: block; }
.macro-button span { margin-top: .12rem; color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.macro-button.unlink { border-color: #6e3535; }
.dtmf-box { padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.dtmf-box [hidden] { display: none !important; }
.dtmf-box h3 { margin: 0; color: #d2e0e9; font-size: .85rem; font-weight: 850; }
.dtmf-box:target { outline: 2px solid var(--cyan); outline-offset: -2px; }
.dtmf-display { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; margin-top: .65rem; padding: .5rem .6rem; border: 1px solid var(--line); background: #03090f; }
.dtmf-display span { color: var(--muted); font-size: .68rem; }
.dtmf-display strong { min-height: 1.2rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.dtmf-display button { border: 0; background: transparent; color: var(--cyan); font-size: .72rem; }
.dtmf-pad { display: grid; grid-template-columns: repeat(4,1fr); gap: .35rem; margin: .5rem 0; }
.dtmf-pad button { min-height: 36px; border: 1px solid var(--line); border-radius: 3px; background: #101f2d; color: white; font-weight: 900; }
.command-history { max-height: 190px; overflow: auto; }
.command-row { display: grid; grid-template-columns: 1fr auto; gap: .4rem; padding: .55rem .8rem; border-bottom: 1px solid var(--line); font-size: .75rem; }
.command-row small { display: block; color: var(--muted); margin-top: .15rem; }
.command-status { align-self: start; text-transform: uppercase; color: var(--muted); font-size: .65rem; font-weight: 900; }
.command-status.completed { color: var(--green); }
.command-status.failed { color: var(--red); }
.command-status.queued, .command-status.running { color: var(--yellow); }

.chat-stream, .activity-log, .presence-list { max-height: 320px; overflow: auto; }
.chat-message { display: grid; grid-template-columns: 5.5rem 1fr; gap: .7rem; padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
.chat-message.warning { border-left: 4px solid var(--red); background: rgba(255,59,59,.08); }
.chat-message time, .activity-item time { color: var(--muted); font-size: .7rem; font-variant-numeric: tabular-nums; }
.chat-message strong { font-size: .76rem; }
.chat-message p { margin: .2rem 0 0; color: #cfdae2; font-size: .8rem; line-height: 1.4; white-space: pre-wrap; }
.quick-log { display: grid; grid-template-columns: 1fr auto; gap: .45rem; padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
.quick-log input { min-height: 38px; }
.activity-item { display: grid; grid-template-columns: 7rem 1fr auto; align-items: start; gap: .7rem; padding: .55rem .8rem; border-bottom: 1px solid var(--line); font-size: .78rem; }
.activity-item p { margin: 0; line-height: 1.35; }
.activity-item span { color: var(--faint); font-size: .68rem; }
.presence-person { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.presence-avatar { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid #36536b; border-radius: 50%; background: #102334; color: var(--cyan); font-size: .68rem; font-weight: 950; }
.presence-person strong, .presence-person small { display: block; }
.presence-person small { color: var(--muted); font-size: .7rem; }
.presence-person .person-role { color: var(--muted); font-size: .66rem; font-weight: 850; text-transform: uppercase; }
.script-tabs { display:flex;gap:.35rem;padding:.65rem .8rem 0; }
.script-tabs button { min-height:32px;padding:.3rem .55rem;border:1px solid var(--line);border-radius:4px;background:#0a1723;color:var(--muted);font-size:.72rem;font-weight:850; }
.script-tabs button.active { border-color:var(--orange);color:white;background:rgba(255,103,29,.13); }
.script-text { min-height:90px;margin:.7rem .8rem;padding:.8rem;border-left:3px solid var(--orange);background:#07131e;color:#dae4eb;line-height:1.55;white-space:pre-wrap; }
.scripts-panel>.btn { margin:0 .8rem .8rem; }
.source-chip.training { border-color:var(--yellow);background:#493700;color:#fff0ac; }
.health-grid { display:grid;grid-template-columns:1fr 1fr; }
.health-item { display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.5rem;padding:.65rem .8rem;border-right:1px solid var(--line);border-bottom:1px solid var(--line); }
.health-item i { grid-row:span 2;width:.58rem;height:.58rem;border-radius:50%;background:var(--red);box-shadow:0 0 8px rgba(255,59,59,.5); }
.health-item.ok i { background:var(--green);box-shadow:0 0 8px rgba(75,214,147,.5); }
.health-item strong { font-size:.78rem; }
.health-item span { grid-column:2;color:var(--muted);font-size:.68rem; }
.macro-admin-list { display:grid;gap:.35rem; }
.macro-admin-row { display:grid;grid-template-columns:1fr auto auto auto;align-items:center;gap:.5rem;padding:.5rem;border:1px solid var(--line);background:#07131e; }
.macro-admin-row strong,.macro-admin-row small { display:block; }
.macro-admin-row small { margin-top:.15rem;color:var(--muted);font-size:.68rem; }
.resource-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:.65rem;padding:.8rem; }
.resource-card { display:grid;gap:.28rem;min-height:90px;padding:.75rem;border:1px solid var(--line-strong);border-radius:5px;background:#0a1825;color:white;text-decoration:none; }
.resource-card:hover { border-color:var(--orange);transform:translateY(-1px); }
.resource-card span { color:var(--muted);font-size:.75rem; }
.resource-card b { align-self:end;color:var(--cyan);font-size:.73rem; }

.auth-gate { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 1rem; background: radial-gradient(circle at 50% 10%, #16324a, transparent 38rem), #050b12; }
.auth-card { width: min(470px,100%); padding: 1.4rem; border: 1px solid var(--line-strong); border-top: 4px solid var(--orange); border-radius: 7px; background: rgba(9,21,33,.97); box-shadow: 0 30px 100px rgba(0,0,0,.6); }
.auth-card { position: relative; }
.auth-close { position: absolute; top: .55rem; right: .55rem; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 4px; background: #101f2d; color: var(--muted); font-size: 1.3rem; }
.auth-brand { display: flex; justify-content: space-between; align-items: center; margin-bottom: .85rem; }
.auth-brand img { width: 76px; height: 76px; object-fit: contain; }
.auth-copy { color: var(--muted); line-height: 1.5; font-size: .88rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; margin: 1rem 0; padding: .2rem; border: 1px solid var(--line); border-radius: 5px; background: #06101a; }
.auth-tab { min-height: 38px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-weight: 850; }
.auth-tab.active { background: #1a3348; color: white; }
.stack-form { display: grid; gap: .75rem; }
.auth-card .form-message { margin: .75rem 0 0; }

dialog { width: min(680px, calc(100vw - 1rem)); max-height: calc(100vh - 2rem); padding: 0; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--panel); color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(0, 5, 10, .78); backdrop-filter: blur(4px); }
.dialog-card { padding: 1rem; overflow: auto; }
.dialog-card.small { max-width: 520px; margin: auto; }
#settingsDialog { width: min(1120px, calc(100vw - 2rem)); }
#settingsDialog .wide-dialog { width: 100%; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.dialog-close { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 4px; background: #101f2d; color: var(--muted); font-size: 1.3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.span-2 { grid-column: span 2; }
.dialog-note { margin: .8rem 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .5rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.recovery-actions { display: grid; gap: .6rem; }
.file-button { display: flex; align-items: center; justify-content: center; min-height: 39px; border: 1px solid var(--line-strong); border-radius: 5px; background: #101f2d; color: #dce7ef; font-size: .82rem; }
.file-button input { position: absolute; opacity: 0; pointer-events: none; }
.settings-columns { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1rem; }
.settings-columns > fieldset { align-content: start; }
.selection-chips { display: flex; flex-wrap: wrap; gap: .32rem; }
.selection-chips button { min-height: 30px; padding: .3rem .48rem; border: 1px solid var(--line); border-radius: 999px; background: #0a1723; color: var(--muted); font-size: .68rem; font-weight: 800; }
.selection-chips button.selected { border-color: var(--orange); background: rgba(255,103,29,.14); color: #ffd0b8; }
fieldset { display: grid; gap: .65rem; min-width: 0; margin: 0; padding: .8rem; border: 1px solid var(--line); }
legend { color: var(--orange-2); font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
fieldset hr { width: 100%; border: 0; border-top: 1px solid var(--line); }
.settings-group { display:grid;gap:.55rem;padding:.75rem;border:1px solid var(--line);border-radius:5px;background:#07131e; }
.settings-group h3 { margin:0;color:var(--orange-2);font-size:.78rem;letter-spacing:.08em;text-transform:uppercase; }
.settings-group .dialog-note { margin:0; }
.allstar-settings-row { display:grid;grid-template-columns:minmax(150px,.7fr) minmax(230px,1.3fr);align-items:end;gap:.7rem; }
.settings-disclosure { border:1px solid var(--line);border-radius:5px;background:#07131e; }
.settings-disclosure summary { display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.8rem;color:var(--orange-2);font-size:.78rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase;cursor:pointer; }
.settings-disclosure summary small { color:var(--muted);font-size:.66rem;font-weight:700;letter-spacing:0;text-transform:none; }
.settings-disclosure[open] summary { border-bottom:1px solid var(--line); }
.macro-form-grid { display:grid;grid-template-columns:1fr 1fr;gap:.65rem;padding:.8rem; }
.macro-form-grid .check-label { align-self:center; }
.macro-form-grid .btn { align-self:end; }
.settings-disclosure .macro-admin-list { padding:0 .8rem .8rem; }
.alert-type-chips { max-height:9rem;overflow:auto;padding:.45rem;border:1px solid var(--line);border-radius:5px;background:#06101a; }
.check-label { display: flex; align-items: center; gap: .5rem; }
.check-label input { width: auto; min-height: 0; }

.toast-region { position: fixed; right: 1rem; bottom: 1rem; z-index: 200; display: grid; gap: .5rem; width: min(390px, calc(100vw - 2rem)); }
.toast { padding: .75rem .85rem; border: 1px solid var(--line-strong); border-left: 4px solid var(--cyan); border-radius: 5px; background: #102131; box-shadow: var(--shadow); font-size: .82rem; animation: toastIn .18s ease-out; }
.toast.error { border-left-color: var(--red); }
.toast.success { border-left-color: var(--green); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

.mobile-jump-nav { display: none; }
.site-footer { padding: 1rem .8rem 5rem; color: var(--faint); text-align: center; font-size: .72rem; letter-spacing: .04em; }

body.read-only .control-only { display: none !important; }
body:not(.signed-in) .signed-in-only { display: none !important; }
.selection-chips.disabled { opacity: .45; pointer-events: none; }
body:not(.is-admin) .admin-only { display: none !important; }
body:not(.is-primary):not(.is-admin) .primary-only { display: none !important; }
body:not(.can-start-net) .starter-only { display: none !important; }
body:not(.has-net) .primary-only { display: none !important; }
body.large-display .checkin-form,body.large-display .filter-row,body.large-display .field-panel,body.large-display .people-panel,body.large-display .scripts-panel,body.large-display .activity-panel,body.large-display .command-strip { display:none!important; }
body.large-display .operations-grid { grid-template-columns:minmax(0,1.2fr) minmax(360px,1fr);max-width:none; }
body.large-display .station-table-wrap,body.large-display .alert-list,body.large-display .report-list { max-height:calc(100vh - 250px); }

@media (max-width: 1180px) {
  .top-status .icon-btn span, .top-status .status-pill { display: none; }
  .checkin-form { grid-template-columns: 1fr 1fr 1fr .45fr; }
  .traffic-field { grid-column: span 2; }
  .checkin-button { grid-column: span 2; }
}

@media (max-width: 960px) {
  .operations-grid { grid-template-columns: 1fr;grid-template-areas:none; }
  .checkins-panel, .right-rail, .field-panel, .reports-panel, .allstar-panel, .chat-panel, .people-panel, .scripts-panel, .health-panel, .resources-panel, .activity-panel { grid-area:auto;grid-column: 1; }
  .checkins-panel { grid-row: auto; }
  .right-rail { grid-row: auto; }
  .activity-panel { grid-column: 1; }
  .topbar { position: relative; }
  .warning-banner { top: 0; }
  .par-banner,.quick-actions { top:0; }
  .brand-logo.skywarn { display: none; }
  .net-identity { max-width: 60vw; }
  .net-workspace { grid-template-columns:1fr;padding:.65rem .75rem; }
  .net-workspace-label { grid-template-columns:1fr auto;align-items:center; }
  .net-workspace-label .btn { grid-column:2;grid-row:1 / span 2; }
}

@media (max-width: 680px) {
  :root { font-size: 15px; }
  html { scroll-padding-top: .5rem; }
  body { padding-bottom: calc(67px + env(safe-area-inset-bottom)); }
  #settingsDialog { width: 100vw; }
  #stationActivityDialog,#weatherObservationDialog { width:100vw; }
  .topbar { align-items: center; min-height: 66px; padding: .55rem .65rem; }
  .brand-logo.ara { width: 46px; height: 46px; }
  .topbar .eyebrow { display: none; }
  .topbar h1 { font-size: 1.05rem; }
  .net-identity { max-width: 54vw; font-size: .72rem; }
  .clock-pair, .top-status .status-pill { display: none; }
  .top-status { gap: .3rem; }
  .top-status #displayButton { display: none; }
  .icon-btn { min-width: 44px; min-height: 44px; justify-content: center; padding: .45rem; }
  #logoutButton { width: 44px; overflow: hidden; color: transparent; font-size: 0; }
  #logoutButton::before { content: '↪'; color: var(--muted); font-size: 1.2rem; }
  .command-strip { align-items: stretch; flex-direction: column; padding: .6rem .7rem; }
  .net-workspace { padding:.55rem .65rem;gap:.5rem; }
  .net-workspace-label .btn { min-height:44px;padding:.45rem .6rem; }
  .net-tabs { grid-template-columns:1fr; }
  .net-controls { width: 100%; }
  .net-controls .btn { flex: 1 1 calc(50% - .45rem); min-height: 46px; }
  .operator-block { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .3rem .5rem; }
  .operator-block strong { min-width: 0; }
  .operator-block .operation-stat { text-align: center; }
  .operations-grid { padding: .42rem; gap: .5rem; }
  .checkins-panel { order: 1; }
  .field-panel { order: 2; }
  .reports-panel { order: 3; }
  .activity-panel { order: 4; }
  .right-rail { order: 5; }
  .people-panel { order: 6; }
  .allstar-panel { order: 7; }
  .chat-panel { order: 8; }
  .scripts-panel { order: 9; }
  .health-panel { order: 10; }
  .resources-panel { order: 11; }
  .panel-head { padding: .7rem; }
  .panel-head { min-height: 58px; }
  .metric-row { gap: .55rem; font-size: .7rem; }
  .metric-row b { font-size: .9rem; }
  .checkin-form { grid-template-columns: 1fr 1fr; padding: .7rem; }
  .checkin-form label:nth-of-type(2), .checkin-form label:nth-of-type(4), .call-field, .traffic-field, .checkin-button { grid-column: span 2; }
  .state-field { grid-column: auto; }
  input, select, textarea { min-height: 46px; font-size: 16px; }
  .btn { min-height: 46px; }
  .checkin-button { min-height: 52px; font-size: .95rem; }
  .fcc-lookup { grid-template-columns: auto 1fr; margin: .6rem .7rem 0; }
  .fcc-lookup small { grid-column: span 2; }
  .filter-row { align-items: stretch; flex-direction: column; padding: .55rem .7rem; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .search-field { width: 100%; }
  .search-field span { display: none; }
  .search-field input { width: 100%; }
  .station-table-wrap { max-height: none; overflow: visible; }
  .station-table { display: block; min-width: 0; font-size: .86rem; }
  .station-table thead { display: none; }
  .station-table tbody { display: grid; gap: .5rem; padding: .55rem; }
  .station-table tr { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: .42rem .65rem; padding: .7rem; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 6px; background: #081522; }
  .station-table tr.selected { border-left-color: var(--cyan); background: rgba(73,198,229,.08); }
  .station-table tr:has(.traffic-tag.priority) { border-left-color: var(--yellow); }
  .station-table tr:has(.traffic-tag.emergency) { border-left-color: var(--red); }
  .station-table td { display: block; min-width: 0; padding: 0; border: 0; }
  .station-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: .14rem; color: var(--faint); font-size: .62rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
  .station-table .row-number { position: absolute; top: .65rem; right: .7rem; }
  .station-table .station-cell { grid-column: 1 / -1; padding-right: 2rem; }
  .station-table .station-cell .callsign { font-size: 1.05rem; }
  .station-table .location-cell, .station-table .traffic-cell { grid-column: span 1; }
  .station-table .notes-cell { display: flex; align-items: end; justify-content: flex-end; }
  .station-table .row-button { min-height: 44px; min-width: 92px; }
  .empty-row { display: block !important; }
  .empty-row td { padding: 1.2rem !important; }
  .identity-card { grid-template-columns: 1fr 1fr; }
  .station-ops { grid-template-columns:1fr 1fr; }
  .station-ops .btn { grid-column:1/-1; }
  .station-actions { display: grid; grid-template-columns: 1fr 1fr; padding: .7rem; }
  .station-actions .btn { min-width: 0; }
  .station-actions #parOkButton, .station-actions #stationReportButton { grid-column: 1 / -1; }
  .note-form { grid-template-columns: 1fr; }
  .activity-station-summary { grid-template-columns:1fr 1fr; }
  .station-activity-actions,.station-recheck-form { display:grid;grid-template-columns:1fr; }
  .station-activity-item { grid-template-columns:1fr auto; }
  .station-activity-item>div { grid-column:1/-1; }
  .note-item { grid-template-columns: 1fr; gap: .25rem; }
  .settings-columns, .form-grid { grid-template-columns: 1fr; }
  .allstar-settings-row, .macro-form-grid { grid-template-columns:1fr; }
  .settings-disclosure summary { align-items:flex-start;flex-direction:column; }
  .span-2 { grid-column: span 1; }
  .warning-banner, .par-banner { position: relative; top: auto !important; padding: .7rem; }
  .warning-banner { grid-template-columns: auto 1fr; }
  .warning-banner .btn { grid-column: 1 / -1; }
  .par-banner { grid-template-columns:auto 1fr; }
  .par-actions { grid-column:1/-1;justify-content:stretch; }
  .par-actions .btn { flex:1; }
  .quick-actions { padding: .5rem .65rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .quick-actions button { min-height: 44px; scroll-snap-align: start; }
  .chat-message, .activity-item { grid-template-columns: 1fr; gap: .2rem; }
  .resource-grid { grid-template-columns:1fr; }
  .health-grid { grid-template-columns: 1fr; }
  .health-item { border-right: 0; }
  .macro-grid { grid-template-columns: 1fr; }
  .quick-log { grid-template-columns: 1fr; }
  dialog { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .dialog-card { min-height: 100%; padding: max(.8rem, env(safe-area-inset-top)) .8rem max(.8rem, env(safe-area-inset-bottom)); }
  .dialog-head { position: sticky; top: 0; z-index: 2; margin: -.2rem -.2rem 1rem; padding: .4rem .2rem .75rem; background: var(--panel); }
  .dialog-close { width: 46px; height: 46px; }
  .dialog-actions { position: sticky; bottom: 0; z-index: 2; margin: .8rem -.2rem -.2rem; padding: .75rem .2rem .2rem; background: var(--panel); }
  .dialog-actions .btn { flex: 1; }
  .toast-region { right: .5rem; bottom: calc(72px + env(safe-area-inset-bottom)); width: calc(100vw - 1rem); }
  .mobile-jump-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 80; display: grid; grid-template-columns: repeat(5,1fr); padding: .32rem .25rem calc(.32rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-strong); background: rgba(5,11,18,.97); box-shadow: 0 -8px 28px rgba(0,0,0,.45); backdrop-filter: blur(12px); }
  .mobile-jump-nav a { display: grid; justify-items: center; gap: .12rem; min-width: 0; padding: .25rem .1rem; color: var(--muted); font-size: .62rem; font-weight: 850; text-decoration: none; }
  .mobile-jump-nav a span { color: var(--orange-2); font-size: 1.05rem; line-height: 1; }
}

@media (max-width: 390px) {
  .brand-logo.ara { width: 40px; height: 40px; }
  .net-identity { max-width: 48vw; }
  .top-status { gap: .15rem; }
  .icon-btn { min-width: 42px; width: 42px; }
  .operator-block { grid-template-columns: 1fr 1fr; }
  .operator-block strong { grid-column: 1 / -1; }
  .panel-head { align-items: flex-start; }
  .metric-row { flex-direction: column; align-items: flex-end; gap: .1rem; }
  .station-table tr { grid-template-columns: 1fr; }
  .station-table .location-cell, .station-table .traffic-cell { grid-column: 1; }
  .station-table .notes-cell { justify-content: stretch; }
  .station-table .row-button { width: 100%; }
}

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

