/* Truvane styles. System fonts only, nothing loaded from elsewhere. */

:root, [data-theme="light"] {
  --bg: #F4F5F2; --surface: #FFFFFF; --sunk: #F3F4F1; --line: #DDE1DB; --ink: #16202B; --muted: #5A6470; --link: #1F5E7A;
  --btn: #16202B; --btn-ink: #FFFFFF; --seg: #E6E8E3;
  --hero: #1F3D50; --hero-ink: #FFFFFF; --hero-muted: #CFDCE5; --hero-chip: #294B60; --hero-line: #1F3D50;
  --ok: #276B43; --ok-bg: #E6F2EA; --watch: #9A5B00; --watch-bg: #FBF0DC; --alert: #B3261E; --alert-bg: #FBE5E3;
  --noresp: #6B3FA0; --noresp-bg: #EFE7F8; --none: #5A6470; --none-bg: #ECEEEA;
  --h-ok: #7FD4A0; --h-watch: #F2B45A; --h-alert: #FFA39B; --h-noresp: #D2B6F5; --h-none: #C9D2DB;
  --focus: #2F7DB0; --flash: rgba(47, 125, 176, 0.35);
  --rain: #2F6FC0;
  /* Brighter status colors for dots and card edges (shapes need 3:1, text keeps the darker ones). */
  --ok-mk: #2F9E5C; --watch-mk: #D07800; --alert-mk: #D93025; --noresp-mk: #8A5CD0; --none-mk: #7D8790;
  --minor: #24617D; --minor-bg: #E2EEF4; --minor-mk: #4A8CAD;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0F161D; --surface: #18222C; --sunk: #1F2A35; --line: #2C3946; --ink: #E8EDF2; --muted: #A3B0BD; --link: #8CC4DE;
  --btn: #E8EDF2; --btn-ink: #0F161D; --seg: #1F2A35;
  --hero: #1D3A4D; --hero-ink: #FFFFFF; --hero-muted: #CFDCE5; --hero-chip: #27495F; --hero-line: #2C5068;
  --ok: #7FD4A0; --ok-bg: #173323; --watch: #F2B45A; --watch-bg: #3A2A10; --alert: #FF8A80; --alert-bg: #3D1A18;
  --noresp: #C9A8F0; --noresp-bg: #2C2140; --none: #A3B0BD; --none-bg: #26313C;
  --h-ok: #7FD4A0; --h-watch: #F2B45A; --h-alert: #FFA39B; --h-noresp: #D2B6F5; --h-none: #B9C7D3;
  --focus: #8CC4DE; --flash: rgba(140, 196, 222, 0.35);
  --rain: #5AA2EE;
  --ok-mk: #7FD4A0; --watch-mk: #F2B45A; --alert-mk: #FF8A80; --noresp-mk: #C9A8F0; --none-mk: #A3B0BD;
  --minor: #8CC4DE; --minor-bg: #192F3B; --minor-mk: #7DB6D3;
  color-scheme: dark;
}
/* Night: red only, to keep night vision. Status words carry the meaning. */
[data-theme="night"] {
  --bg: #0A0202; --surface: #150404; --sunk: #1E0707; --line: #3A0E0E; --ink: #FF8A7A; --muted: #D9574B; --link: #FF8A7A;
  --btn: #FF8A7A; --btn-ink: #0A0202; --seg: #1E0707;
  --hero: #220606; --hero-ink: #FF8A7A; --hero-muted: #D9574B; --hero-chip: #2E0909; --hero-line: #5A1414;
  --ok: #FF8A7A; --ok-bg: #2A0808; --watch: #FFB3A8; --watch-bg: #3D0B0B; --alert: #FFD2CC; --alert-bg: #4A0D0D;
  --noresp: #FF8A7A; --noresp-bg: #1E0707; --none: #D9574B; --none-bg: #1E0707;
  --h-ok: #FF8A7A; --h-watch: #FFB3A8; --h-alert: #FFD2CC; --h-noresp: #FF8A7A; --h-none: #D9574B;
  --focus: #FF8A7A; --flash: rgba(255, 138, 122, 0.3);
  --rain: #B8433A;
  --ok-mk: #FF8A7A; --watch-mk: #FFB3A8; --alert-mk: #FFD2CC; --noresp-mk: #FF8A7A; --none-mk: #D9574B;
  --minor: #FF8A7A; --minor-bg: #250707; --minor-mk: #E0705F;
  color-scheme: dark;
}
[data-theme="night"] img.radar { filter: grayscale(1) sepia(1) saturate(6) hue-rotate(-35deg) brightness(0.7); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.45; -webkit-text-size-adjust: 100%;
}
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { max-width: 1760px; margin: 0 auto; padding: 18px 20px 48px; display: flex; flex-direction: column; gap: 14px; }

/* Top bar */
.topbar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 28px; }
.topbar .left { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 32px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand .name { font-size: 21px; font-weight: 700; line-height: 1.1; }
.brand .time { font-size: 13px; color: var(--muted); }
.loc { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 1px solid var(--line); min-width: 0; }
.loc .label { font-size: 12px; font-weight: 600; color: var(--muted); }
.loc .label span { font-weight: 400; }
.loc .place { font-size: 16px; font-weight: 650; }
.loc .coords, .loc .ip { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.loc .ip b { font-weight: 500; color: var(--ink); }
.right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.right .row { display: flex; gap: 8px; align-items: center; }
.modenote { font-size: 11px; color: var(--muted); text-align: right; max-width: 280px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; background: var(--seg); padding: 3px; border-radius: 8px; }
.seg button { border: none; background: transparent; border-radius: 6px; min-height: 36px; padding: 0 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.seg.icons button { width: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.seg svg { width: 18px; height: 18px; }

.btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; min-height: 40px; padding: 0 14px; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn.primary { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.btn.icon { width: 40px; padding: 0; justify-content: center; }
.btn svg { width: 18px; height: 18px; }
.linkbtn { border: none; background: transparent; color: var(--link); font-weight: 600; cursor: pointer; padding: 6px 2px; min-height: 32px; font-size: 13px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.banner { border-radius: 10px; padding: 10px 14px; font-size: 14px; background: var(--watch-bg); color: var(--ink); border: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Scope bar: where, and how wide */
.scopebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.places { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.places .lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; min-height: 38px; padding: 0 14px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.chip[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.chip.add { border-style: dashed; border-color: var(--muted); color: var(--link); font-weight: 600; background: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--none-mk); }

/* SITREP */
.sitrep { background: var(--hero); color: var(--hero-ink); border: 1px solid var(--hero-line); border-radius: 10px; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.sitrep .shead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; }
.sitrep .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--hero-muted); text-transform: uppercase; }
.sitrep h1 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.sitrep .sub { font-size: 14px; line-height: 1.55; color: var(--hero-muted); max-width: 980px; margin: 0; }
.sitrep .bline { display: block; margin: 0 0 3px; }
.sitrep .bline.bquiet { font-size: 12.5px; opacity: .85; margin-top: 6px; }
.sitrep .bline b { color: var(--hero-ink); font-weight: 650; }
.sitrep .bline.st-alert b { color: var(--h-alert); }
.sitrep .bline.st-watch b { color: var(--h-watch); }
.sitrep .bextra b.st-alert { color: var(--h-alert); } .sitrep .bextra b.st-watch { color: var(--h-watch); }
.sitrep .bextra .linkbtn { color: var(--hero-ink); text-decoration: underline; min-height: 0; padding: 0 2px; font-size: inherit; font-weight: 600; }
@media (max-width: 660px) { .sitrep h1 { font-size: 19px; } .sitrep .sub { font-size: 13.5px; } }
.sitrep .fresh { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--hero-muted); }
.sitrep .fresh button.count { border: none; background: transparent; color: var(--hero-ink); text-decoration: underline; cursor: pointer; padding: 2px 0; font-size: 12px; }
.sitrep .sbtns { display: flex; gap: 8px; align-items: center; }
.sitrep .printbtn { border: 1px solid color-mix(in srgb, var(--hero-ink) 45%, transparent); background: transparent; color: var(--hero-ink); border-radius: 8px; min-height: 34px; padding: 0 12px; font-weight: 600; cursor: pointer; font-size: 13px; }
.sitrep .printbtn:hover { background: color-mix(in srgb, var(--hero-ink) 12%, transparent); }
.sitrep .refresh { border: none; background: var(--hero-ink); color: var(--hero); border-radius: 8px; min-height: 34px; padding: 0 14px; font-weight: 600; cursor: pointer; font-size: 13px; }
[data-theme="night"] .sitrep .refresh { color: #0A0202; }
.hchips { display: flex; flex-wrap: wrap; gap: 8px; }
.hchips { gap: 6px; }
.hchip { border: none; background: var(--hero-chip); color: var(--hero-ink); border-radius: 6px; min-height: 30px; padding: 0 10px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.hchip b { font-weight: 700; }
.hchip .st-alert { color: var(--h-alert); } .hchip .st-watch { color: var(--h-watch); } .hchip .st-noresp { color: var(--h-noresp); }
.hchip .st-ok { color: var(--h-ok); } .hchip .st-none { color: var(--h-none); }
.hchip.muted { opacity: 0.85; }
.hchip .you { font-size: 11px; font-weight: 700; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; }
.onboard { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.onboard input { flex: 1; min-width: 0; width: 100%; }
.inline { display: flex; gap: 8px; align-items: flex-end; }
.onboard .results button { color: var(--ink); }

/* Widgets */
.whead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.whead h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
/* Widgets pack tightly: the page measures each one and gives it exactly the rows it needs (see layoutMasonry in app.js). */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-auto-flow: dense; gap: 12px; align-items: start; }
.grid.masonry { grid-auto-rows: 2px; row-gap: 0; }
.grid.masonry .tile { margin-bottom: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile.wide, .tile.wide-tall { grid-column: span 2; }
.tile.tall, .tile.wide-tall { min-height: 440px; }
.grid:not(.masonry) .tile.tall, .grid:not(.masonry) .tile.wide-tall { grid-row: span 2; }
@media (max-width: 660px) { .tile.wide, .tile.wide-tall { grid-column: auto; } .tile.tall, .tile.wide-tall { min-height: 0; } }
.tile .th { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile .tname { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill.st-ok, .badge.st-ok { color: var(--ok); background: var(--ok-bg); }
.pill.st-watch { color: var(--watch); background: var(--watch-bg); }
.pill.st-alert { color: var(--alert); background: var(--alert-bg); }
.pill.st-noresp { color: var(--noresp); background: var(--noresp-bg); }
.pill.st-none { color: var(--none); background: var(--none-bg); }
.dot.st-ok { background: var(--ok-mk); } .dot.st-watch { background: var(--watch-mk); } .dot.st-alert { background: var(--alert-mk); }
.dot.st-noresp { background: var(--noresp-mk); } .dot.st-none { background: var(--none-mk); }
.tile .headline { font-size: 17px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.tile .sub { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.tile .tf { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 4px; }
.tile .detail { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.tile .stale { color: var(--noresp); font-weight: 600; }
.tile.flash { animation: flash 1.6s ease-out 1; }
@keyframes flash { 0% { box-shadow: 0 0 0 6px var(--flash); } 100% { box-shadow: 0 0 0 0 transparent; } }
.scale { display: flex; gap: 4px; margin-top: 2px; }
.scale span { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.scale.l1 span:nth-child(-n+1), .scale.l2 span:nth-child(-n+2), .scale.l3 span:nth-child(-n+3), .scale.l4 span:nth-child(-n+4), .scale.l5 span { background: var(--viz); }
.scale.status.l1 span:nth-child(-n+1), .scale.status.l2 span:nth-child(-n+2) { background: var(--ok); }
.scale.status.l3 span:nth-child(-n+3), .scale.status.l4 span:nth-child(-n+4) { background: var(--watch); }
.scale.status.l5 span { background: var(--alert); }
.scalelbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }

.rows, .news, .alerts, .top, .clocks, .pace { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rows li { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.rows .r { margin-left: auto; color: var(--muted); text-align: right; }
.news li, .alerts li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.alerts p { margin: 2px 0 0; }
.top { list-style: decimal; padding-left: 22px; gap: 4px; font-size: 14px; }
.clocks li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; font-size: 14px; }
.clocks li b { font-size: 16px; font-variant-numeric: tabular-nums; }
.clocks li .small { grid-column: 1 / -1; }
.pace li { font-size: 14px; } .pace span { display: inline-block; min-width: 92px; color: var(--muted); }
.ready { display: flex; flex-direction: column; gap: 12px; } .ready p { margin: 4px 0 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 20px; }
.cols h4 { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.sky { display: flex; gap: 14px; align-items: center; }
.moon .moon-dark { fill: var(--sunk); stroke: var(--line); }
.moon .moon-lit { fill: var(--ink); opacity: 0.85; }
[data-theme="night"] .moon .moon-lit { fill: var(--ink); }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 0; }
.kv dt { font-size: 12px; color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding: 4px 6px; }
.tbl td { border-bottom: 1px solid var(--line); padding: 6px; vertical-align: top; }
.tbl tr.mine td { background: var(--watch-bg); }
.tablewrap { overflow-x: auto; }
img.radar { width: 100%; height: auto; border-radius: 6px; display: block; background: var(--sunk); }

/* Edit layout */
.editbar { display: none; flex-wrap: wrap; gap: 6px; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; }
body.editing .editbar { display: flex; }
body.editing .tile { border-style: dashed; cursor: grab; }
.editbar button { min-height: 34px; font-size: 12px; padding: 0 10px; }
.tile.dragging { opacity: 0.4; }
.tile.dropbefore { box-shadow: -4px 0 0 0 var(--focus); }

/* Panels (settings, add widget, privacy) */
dialog.panel { border: none; padding: 0; margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(480px, 100%); background: var(--surface); color: var(--ink); border-left: 1px solid var(--line); }
dialog.panel::backdrop { background: rgba(5, 10, 15, 0.45); }
.panel .inner { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.panel .phead { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: sticky; top: 0; background: var(--surface); padding: 4px 0 8px; z-index: 1; }
.panel h2 { margin: 0; font-size: 20px; }
.panel h3 { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.panel section { display: flex; flex-direction: column; gap: 8px; }
.panel label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.panel .inline { display: flex; gap: 8px; align-items: flex-end; }
.panel .inline > * { flex: 1; min-width: 0; }
.panel .inline > .btn { flex: none; }
input, select, textarea { font: inherit; font-size: 14px; color: var(--ink); background: var(--sunk); border: 1px solid var(--line); border-radius: 6px; min-height: 40px; padding: 6px 10px; }
textarea { min-height: 90px; resize: vertical; }
.list { display: flex; flex-direction: column; gap: 6px; }
.list .item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--sunk); font-size: 14px; }
.list .item .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.list .item .small { color: var(--muted); }
.results { display: flex; flex-direction: column; gap: 4px; }
.results button { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 8px 10px; cursor: pointer; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.note { font-size: 12px; color: var(--muted); }

footer.foot { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--muted); align-items: center; }

@media (max-width: 720px) {
  .wrap { padding: 12px 12px 40px; }
  .loc { padding-left: 0; border-left: none; }
  .right { align-items: flex-start; }
  .modenote { text-align: left; }
  .sitrep { padding: 16px; }
  .sitrep h1 { font-size: 22px; }
  .sitrep .fresh { flex-wrap: wrap; }
}

@media print {
  body * { visibility: hidden; }
  #print-area, #print-area * { visibility: visible; }
  #print-area { position: absolute; left: 0; top: 0; width: 100%; color: #000; background: #fff; }
}

/* Situation brief (brief.js): its own print layout, black on white, readable from a few feet away. */
.pbform fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.pbform legend { font-weight: 650; padding: 0 4px; }
.panel .pbform label.radio { flex-direction: row; gap: 10px; align-items: flex-start; padding: 6px 0; font-weight: 400; font-size: 14px; }
.panel .pbform label.radio input, .panel .pblist input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; padding: 0; flex: none; }
.panel .pblist label { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; }
.panel .pblist label.pbdet { font-size: 12px; }
.pbform .radio > span { display: flex; flex-direction: column; }
.pbform .field { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 10px; }
.pbform .field > .small { font-weight: 400; }
.pbform .field input, .pbform .field select { min-height: 36px; }
.pblist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 40vh; overflow-y: auto; }
.pblist li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 4px 0; border-top: 1px solid var(--line); }
.pblist li:first-child { border-top: none; }
.pblist .pbdet { white-space: nowrap; color: var(--muted); }
#print-area.pb { display: none; }
@media print {
  html.briefprint body > *:not(#print-area) { display: none !important; }
  html.briefprint body * { visibility: visible; }
  html.briefprint, html.briefprint body { background: #fff !important; }
  .pb .pb-off { margin: 4px 0 0; }
  html.briefprint #print-area.pb { display: block; position: static; width: auto; color: #000; background: #fff; font: 11pt/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pb .pb-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border-bottom: 3px solid #000; padding-bottom: 8px; margin-bottom: 10px; }
  .pb .pb-star { width: 44px; height: 44px; } .pb .pb-star .smray { fill: #1d3534; } .pb .pb-star circle { fill: #fff; }
  .pb .pb-brand { display: flex; flex-direction: column; } .pb .pb-brand b { font-size: 20pt; letter-spacing: .01em; line-height: 1.05; } .pb .pb-brand span { font-size: 10pt; text-transform: uppercase; letter-spacing: .14em; color: #333; }
  .pb .pb-when { display: flex; flex-direction: column; text-align: right; font-size: 9.5pt; color: #222; } .pb .pb-when b { font-size: 14pt; color: #000; }
  .pb .pb-sum h1 { font-size: 19pt; line-height: 1.2; margin: 4px 0 6px; }
  .pb .pb-sum .sub { display: flex; flex-direction: column; gap: 3px; font-size: 11pt; } .pb .pb-sum .bline { display: block; }
  .pb .pb-sec { font-size: 10pt; text-transform: uppercase; letter-spacing: .12em; color: #333; border-bottom: 1px solid #999; padding-bottom: 2px; margin: 14px 0 6px; }
  .pb .pb-st { display: inline-block; font-weight: 800; font-size: 8.5pt; letter-spacing: .06em; padding: 1px 6px; border: 1.5px solid #000; border-radius: 3px; white-space: nowrap; margin-right: 8px; }
  .pb .pb-alert .pb-st, .pb .pb-st.pb-alert { background: #000; color: #fff; }
  .pb .pb-st.pb-watch { border-width: 2px; } .pb .pb-st.pb-none, .pb .pb-st.pb-noresp, .pb .pb-st.pb-info { border-color: #888; color: #444; }
  .pb .pb-card { break-inside: avoid; border: 1px solid #999; border-left: 5px solid #bbb; border-radius: 4px; padding: 6px 10px; margin: 0 0 8px; }
  .pb .pb-card.pb-long { break-inside: auto; }
  .pb .pb-card.pb-alert { border-left-color: #000; border-left-width: 8px; } .pb .pb-card.pb-watch { border-left-color: #555; border-left-width: 6px; }
  .pb .pb-card h2 { display: flex; align-items: center; flex-wrap: wrap; font-size: 12.5pt; margin: 0 0 3px; }
  .pb .pb-unoff { margin-left: auto; font-size: 8.5pt; font-weight: 600; color: #333; }
  .pb .pb-hl { font-weight: 650; font-size: 11.5pt; margin: 0; } .pb .pb-sub { margin: 1px 0 0; color: #222; }
  .pb .pb-viz, .pb .pb-det { margin-top: 6px; font-size: 9.5pt; } .pb .pb-viz svg, .pb .pb-det svg { max-width: 100%; max-height: 3.6in; height: auto; }
  .pb .pb-det h3, .pb .pb-det h4 { font-size: 10pt; margin: 8px 0 3px; } .pb .pb-det ul { margin: 2px 0; }
  .pb .pb-spec { margin: 4px 0 2px; padding-left: 16px; font-size: 10pt; } .pb .pb-spec li { margin: 1px 0; }
  .pb .pb-why { margin: 3px 0 0; font-size: 9pt; color: #222; }
  .pb .pb-calm { list-style: none; margin: 6px 0 0; padding: 0; columns: 2; column-gap: 18px; font-size: 9pt; } .pb .pb-calm li { break-inside: avoid; margin: 0 0 2px; padding-left: 12px; text-indent: -12px; } .pb .pb-calm b { font-weight: 650; margin-right: 3px; } .pb .pb-m { display: inline-block; width: 12px; text-indent: 0; }
  .pb .pb-src { font-size: 8pt; color: #444; margin: 4px 0 0; }
  .pb .pb-tab { width: 100%; border-collapse: collapse; font-size: 9.5pt; } .pb .pb-tab td, .pb .pb-tab th { text-align: left; padding: 1.5px 4px; border-bottom: 1px solid #ccc; vertical-align: top; } .pb .pb-tab th { white-space: nowrap; font-weight: 650; }
  .pb .pb-foot { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; border-top: 2px solid #000; margin-top: 12px; padding-top: 8px; break-inside: avoid; font-size: 9.5pt; }
  .pb .pb-foot p { margin: 0 0 4px; } .pb .pb-by { font-size: 11pt; } .pb .pb-small { font-size: 8pt; color: #333; }
  .pb .pb-qr { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 7.5pt; text-align: center; color: #222; } .pb .pb-qr svg { width: 0.95in; height: 0.95in; }
}

/* Pinned header on computers: time, place, appearance and scope stay in view while widgets scroll. */
.pinned { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) and (min-height: 600px) {
  body { overflow-x: clip; }
  html { scroll-padding-top: calc(var(--pin-h, 0px) + 12px); }
  .pinned { position: sticky; top: 0; z-index: 20; margin: -18px -20px 0; padding: 18px 20px 12px; }
  .pinned::before { content: ""; position: absolute; inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%); z-index: -1;
    background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
    border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
  .pinned.scrolled::before { border-bottom-color: var(--line); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .35); }
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .pinned::before { background: var(--bg); } }

.tile .tf .tfb { display: inline-flex; gap: 14px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
#panel section { scroll-margin-top: 56px; }
#panel section.flash { animation: secflash 1.6s ease-out; border-radius: 8px; }
@keyframes secflash { from { box-shadow: 0 0 0 4px var(--flash); } to { box-shadow: 0 0 0 4px transparent; } }
#clk-list .item { gap: 8px; flex-wrap: nowrap; }
#clk-list .item input { width: auto; flex: 1 1 0; min-width: 0; }
#clk-list .item [data-clk-tz] { flex-grow: 1.6; }
#clk-list .item .btn { flex: none; }


/* Sections */
.sections { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 12px; row-gap: 6px; }
.wsec { display: flex; flex-direction: column; width: 100%; min-width: 0; }
.sechead { display: flex; align-items: center; gap: 12px; min-height: 40px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.wsec.shut .sechead, .wsec.empty .sechead { margin-bottom: 0; }
.sectoggle { display: inline-flex; align-items: center; gap: 6px; border: none; background: none; padding: 6px 2px; cursor: pointer; color: var(--ink); }
.sectoggle:disabled { cursor: default; }
.sectoggle h2 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wsec.empty .sectoggle h2 { color: var(--muted); }
.chev { width: 12px; font-size: 12px; color: var(--muted); }
.secdots { display: inline-flex; flex-wrap: wrap; gap: 5px; align-items: center; flex: 1; min-width: 0; }
.secdots .dot { margin: 0; }
.secmove { display: none; gap: 6px; }
body.editing .secmove { display: inline-flex; }
.secmove .btn { min-height: 30px; padding: 0 10px; }

.addtile { border-style: dashed; background: transparent; align-items: flex-start; }
.addtile .btn { min-height: 34px; }
.sechead .secdots .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Cards (1.6.0): every widget is the same height; Details open in the side panel ---------- */
:root { --card-h: 228px; }
.grid { grid-auto-rows: var(--card-h); align-items: stretch; grid-auto-flow: row dense; }
.tile { height: 100%; overflow: hidden; gap: 4px; }
.tile.tall, .tile.wide-tall { grid-row: span 2; min-height: 0; }
.tile .headline { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .cardbody { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 6px; position: relative; }
.tile .cardbody .body { overflow: hidden; min-height: 0; flex: 1; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.tile .tf { margin-top: 0; }
@media (max-width: 660px) { .tile.tall, .tile.wide-tall { grid-row: span 2; } }
.dpanel { display: flex; flex-direction: column; gap: 10px; }
.dpanel .pill { align-self: flex-start; }
.dpanel .headline { margin: 0; font-size: 19px; font-weight: 650; }
.dpanel .sub { margin: 0; color: var(--muted); }
.dpanel .viz .ico.big { width: 64px; height: 64px; }

/* Icons and small visuals */
.ico { width: 26px; height: 26px; flex: none; color: var(--ink); }
.ico.sm { width: 20px; height: 20px; }
.ico.big { width: 48px; height: 48px; }
.wxnow { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 12px; }
.wxnow b { font-size: 34px; font-weight: 650; line-height: 1; }
.wxnow .small { grid-column: 1 / -1; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; text-align: center; font-size: 12px; }
.days > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.days b { font-size: 14px; }
.spark { width: 100%; height: 64px; overflow: visible; }
.spark .pop { fill: var(--rain); }
.spark .tline { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark text { font-size: 10px; fill: var(--muted); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.trio .lv { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 8px; background: var(--sunk); font-size: 11px; color: var(--muted); }
.trio .lv b { font-size: 15px; color: var(--ink); }
.trio .lv.st-minor { background: var(--minor-bg); }
.trio .lv.st-watch { background: var(--watch-bg); box-shadow: inset 0 0 0 2px var(--watch); }
.trio .lv.st-alert { background: var(--alert-bg); box-shadow: inset 0 0 0 2px var(--alert); }
.mini3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mini3 > div { display: flex; flex-direction: column; background: var(--sunk); border-radius: 8px; padding: 6px 8px; font-size: 12px; color: var(--muted); }
.mini3 b { font-size: 15px; color: var(--ink); }
.skymini { display: flex; align-items: center; gap: 10px; }
.skymini svg { width: 44px; height: 44px; flex: none; }
.gauges { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.gauges li { display: flex; align-items: center; gap: 6px; }
.gauges li span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gauges .ico { color: var(--link); }
.uvbars, .kpbars { display: flex; align-items: flex-end; gap: 3px; height: 56px; }
.uvbars span, .kpbars span { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.uvbars i, .kpbars i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--viz); min-height: 3px; }
.uvbars .u-ok i { background: #3BA55C; } .uvbars .u-minor i { background: #E0B000; } .uvbars .u-watch i { background: #F08C2E; } .uvbars .u-alert i { background: #D9342B; }
.uvbars span i { opacity: .38; } .uvbars span.now i { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.kpbars .k-uns i { background: var(--watch); } .kpbars .k-storm i { background: var(--alert); }
.kpcap { display: flex; justify-content: space-between; }
.tilemap { width: 100%; height: auto; max-height: 100%; }
.tilemap rect { fill: var(--sunk); stroke: none; }
.tilemap .h1 rect { fill: #F6E3B4; } .tilemap .h2 rect { fill: #F0C26E; } .tilemap .h3 rect { fill: #E3913A; } .tilemap .h4 rect { fill: #C9562C; }
.tilemap .home rect { stroke: var(--ink); stroke-width: 2.5; }
.tilemap text { fill: var(--ink); font-size: 10px; font-weight: 700; }
.tilemap .n { font-weight: 500; font-size: 10px; }
.tilemap .h3 text, .tilemap .h4 text { fill: #fff; }
.maplegend { display: flex; align-items: center; gap: 6px; }
.maplegend span { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.maplegend .h1 { background: #F6E3B4; } .maplegend .h4 { background: #C9562C; }
[data-theme="night"] .ico { color: var(--ink); }

/* Bar heights (the page allows no inline styles) */
.uvbars i[data-v="0"] { height: 5%; }
.uvbars i[data-v="1"] { height: 9%; }
.uvbars i[data-v="2"] { height: 18%; }
.uvbars i[data-v="3"] { height: 27%; }
.uvbars i[data-v="4"] { height: 36%; }
.uvbars i[data-v="5"] { height: 45%; }
.uvbars i[data-v="6"] { height: 55%; }
.uvbars i[data-v="7"] { height: 64%; }
.uvbars i[data-v="8"] { height: 73%; }
.uvbars i[data-v="9"] { height: 82%; }
.uvbars i[data-v="10"] { height: 91%; }
.uvbars i[data-v="11"] { height: 100%; }
.kpbars i[data-v="0"] { height: 5%; }
.kpbars i[data-v="1"] { height: 11%; }
.kpbars i[data-v="2"] { height: 22%; }
.kpbars i[data-v="3"] { height: 33%; }
.kpbars i[data-v="4"] { height: 44%; }
.kpbars i[data-v="5"] { height: 56%; }
.kpbars i[data-v="6"] { height: 67%; }
.kpbars i[data-v="7"] { height: 78%; }
.kpbars i[data-v="8"] { height: 89%; }
.kpbars i[data-v="9"] { height: 100%; }
/* Keep the browser's scroll anchoring off the pinned header, or the page can open slightly scrolled. */
html, .pinned { overflow-anchor: none; }
/* Maps and radar are pictures, not lists: never fade their bottom edge. */
.tile[data-id="alertmap"] .cardbody .body, .tile[data-id="radar"] .cardbody .body { -webkit-mask-image: none; mask-image: none; }
.tile[data-id="alertmap"] .body { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tile[data-id="alertmap"] .tilemap { flex: 1; min-height: 0; width: auto; max-width: 100%; }

/* ---------- 1.7.0: section panels with rows that always end flush ---------- */
.sections { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 14px; }
.wsec { width: 100% !important; background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px 14px; }
.wsec.shut, .wsec.empty { padding-bottom: 4px; }
.sechead { border-bottom: none; margin-bottom: 6px; min-height: 42px; }
.wsec.shut .sechead, .wsec.empty .sechead { margin-bottom: 0; }
.wsec .grid { display: flex; flex-wrap: wrap; gap: 12px; --per: 4; }
.wsec .grid > .tile { flex: 1 1 calc((100% - (var(--per) - 1) * 12px) / var(--per)); min-width: min(100%, 260px); height: var(--card-h); }
.wsec .grid > .tile.wide { flex-grow: 2; flex-basis: calc(2 * (100% - (var(--per) - 1) * 12px) / var(--per) + 12px); }
@media (max-width: 660px) { .wsec { padding: 2px 10px 10px; } .wsec .grid > .tile, .wsec .grid > .tile.wide { flex-basis: 100%; } }
.wsec .grid > .addtile { height: auto; min-height: 120px; }

/* Cards adapt to their width */
.tile { container-type: inline-size; }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-columns: none; }
@container (max-width: 430px) { .days > div:nth-child(n+6) { display: none; } }
.thumbbtn { display: block; width: 100%; height: 100%; padding: 0; border: none; background: none; cursor: zoom-in; border-radius: 8px; overflow: hidden; }
.thumbbtn img.radar.thumb { width: 100%; height: 100%; max-height: 116px; object-fit: cover; display: block; border-radius: 8px; }
.thumbbtn .tilemap { width: 100%; height: 100%; max-height: 116px; }
.tile .viz { min-height: 0; flex: 1; }
dialog.panel.wide { width: min(820px, 100%); }
dialog.panel.wide img.radar { width: 100%; height: auto; border-radius: 8px; }

/* ---------- 1.74.0: three card widths ----------
   Cards stretch to fill their section's row, so a card can be anything from phone width to most of
   a big screen. Rather than fixing cards one by one, every card follows the same three steps, set
   by the card's own width (not the window's):
     compact   under 430 px   one column, fewest rows
     standard  430 to 899 px  one column; short lists split into two columns from 620 px
     wide      900 px and up  the summary keeps a readable width on the left, and a peek at
                              Details fills the right. Pictures in the peek stay small.
   A card needs its own width rule only for something these steps can't cover. */
.tile .cardmain { flex: 1; min-height: 0; display: flex; gap: 22px; }
.tile .cardleft { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.tile .preview { display: none; }
@container (min-width: 900px) {
  .tile .cardmain:has(> .preview) > .cardleft { flex: 0 1 680px; }
  .tile .preview { display: block; flex: 1 1 260px; min-width: 0; overflow: hidden; font-size: 13px; border-left: 1px solid var(--line); padding-left: 20px;
    -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
  .tile .preview .rows, .tile .preview .alerts, .tile .preview .news, .tile .preview .top { gap: 4px; }
  .tile .preview .btnrow { margin-top: 8px; }
  .tile .preview h3 { margin: 0 0 4px; font-size: 14px; }
  .tile .preview svg:not(.dot svg), .tile .preview img, .tile .preview canvas { display: block; width: auto; max-width: 100%; height: auto; max-height: 140px; }
  .tile .preview .rows, .tile .preview table { max-width: 640px; }
}

/* ---------- 1.8.0: compact summaries in every card ---------- */
:root { --card-h: 262px; }
.mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px 18px; font-size: 13px; line-height: 1.35; }
.mini li { display: flex; align-items: center; gap: 7px; min-width: 0; }
.mini li .dot { margin: 0; }
.mini li b { flex: none; font-weight: 650; }
.mini li .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini li .t a { color: inherit; text-decoration: none; }
.mini li .t a:hover, .mini li .t a:focus-visible { text-decoration: underline; color: var(--link); }
.mini li .r { flex: none; color: var(--muted); font-size: 12px; white-space: nowrap; }
.mini li:nth-child(n+5) { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; overflow: hidden; max-height: 100%; -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 6px; background: var(--sunk); font-size: 12px; line-height: 1.5; color: var(--ink); text-decoration: none; white-space: nowrap; }
a.chip:hover, a.chip:focus-visible { background: var(--line); }
.chip .dot { margin: 0; }
.tile:has(.viz .mini, .viz .chips) .sub { -webkit-line-clamp: 1; }
.meter { height: 6px; border-radius: 3px; background: var(--noresp, #8a6bbf); opacity: .9; overflow: hidden; margin-bottom: 4px; }
.meter .m-ok { display: block; height: 100%; background: var(--ok); }
@container (min-width: 620px) {
  /* Two columns on wide cards, each kept to a readable width so a value stays near its label. */
  .mini { grid-template-columns: repeat(2, minmax(0, 320px)); }
  .mini li:nth-child(n+5) { display: flex; }
}
.dpanel .mini li:nth-child(n+5) { display: flex; }
.meter .m-ok[data-p="0"] { width: 0%; }
.meter .m-ok[data-p="1"] { width: 5%; }
.meter .m-ok[data-p="2"] { width: 10%; }
.meter .m-ok[data-p="3"] { width: 15%; }
.meter .m-ok[data-p="4"] { width: 20%; }
.meter .m-ok[data-p="5"] { width: 25%; }
.meter .m-ok[data-p="6"] { width: 30%; }
.meter .m-ok[data-p="7"] { width: 35%; }
.meter .m-ok[data-p="8"] { width: 40%; }
.meter .m-ok[data-p="9"] { width: 45%; }
.meter .m-ok[data-p="10"] { width: 50%; }
.meter .m-ok[data-p="11"] { width: 55%; }
.meter .m-ok[data-p="12"] { width: 60%; }
.meter .m-ok[data-p="13"] { width: 65%; }
.meter .m-ok[data-p="14"] { width: 70%; }
.meter .m-ok[data-p="15"] { width: 75%; }
.meter .m-ok[data-p="16"] { width: 80%; }
.meter .m-ok[data-p="17"] { width: 85%; }
.meter .m-ok[data-p="18"] { width: 90%; }
.meter .m-ok[data-p="19"] { width: 95%; }
.meter .m-ok[data-p="20"] { width: 100%; }
.dpanel .tilemap.zoom { max-width: 460px; align-self: center; }

/* 1.8.2: grouped lists and single-column headlines */
.mgroups { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.mgroups h5 { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mgroups .away { border-top: 1px dashed var(--line); padding-top: 5px; }
.mgroups .mini li:nth-child(n+3) { display: none; }
.mini.one { grid-template-columns: minmax(0, 1fr) !important; }
@container (min-width: 620px) {
  .mgroups { flex-direction: row; gap: 24px; }
  .mgroups > div { flex: 1; min-width: 0; }
  .mgroups .away { border-top: none; padding-top: 0; border-left: 1px dashed var(--line); padding-left: 20px; }
  .mgroups .mini li:nth-child(n+3) { display: flex; }
  .mgroups .mini li:nth-child(n+5) { display: none; }
  .mini.one li:nth-child(n+6) { display: none; }
}
@container (max-width: 619px) { .mgroups .away .mini li:nth-child(n+2) { display: none; } }

/* 1.9.0 */
.sitrep .freshtext { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.sitrep .fresh button.count.since { max-width: 520px; white-space: normal; text-align: right; }
@media (max-width: 660px) { .sitrep .freshtext { align-items: flex-start; } }
.legend { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 11px; color: var(--muted); margin-top: 2px; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 3px; margin-right: 5px; vertical-align: middle; border-radius: 2px; }
.legend .k-t::before { background: var(--ink); } .legend .k-p::before { background: var(--rain); height: 8px; } .legend .k-w::before { border-top: 2px dashed var(--muted); background: none; }
.spark .wline { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.clockcheck { margin-top: 6px; }

.recbar { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 6px; text-align: center; }
.recbar > div { display: flex; flex-direction: column; background: var(--sunk); border-radius: 8px; padding: 6px 4px; gap: 1px; }
.recbar b { font-size: 20px; }

.floodwrap { position: relative; height: 34px; }
.floodbar { width: 100%; height: 14px; display: block; }
.floodwrap .fb-now { position: absolute; top: -2px; width: 4px; height: 18px; margin-left: -2px; background: var(--ink); border-radius: 1px; }
.floodwrap .fb-lab { position: absolute; top: 18px; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.floodwrap .fb-lab.start { transform: none; }
.floodwrap .fb-lab.end { transform: translateX(-100%); }
.floodbar .fb-base { fill: var(--ok); opacity: .35; }
.floodbar .fb-watch, .floodbar .fb-alert, .floodbar .fb-alert2, .floodbar .fb-alert3 { opacity: .5; }
.floodbar .fb-watch { fill: #E0B000; } .floodbar .fb-alert { fill: #E3913A; } .floodbar .fb-alert2 { fill: #C9562C; } .floodbar .fb-alert3 { fill: #8E1F1F; }

/* 1.9.1 */
.wxnow { grid-template-columns: auto auto 1fr; }
.wind { display: flex; align-items: center; gap: 8px; justify-self: end; }
.wind > div { display: flex; flex-direction: column; line-height: 1.2; }
.compass { width: 46px; height: 46px; }
.compass .ring { fill: none; stroke: var(--line); stroke-width: 2; }
.compass text { font-size: 8px; fill: var(--muted); font-weight: 700; }
.compass .warrow { fill: var(--link); } .compass .wtail { stroke: var(--link); stroke-width: 2.5; stroke-linecap: round; }
.wxnow + .mini li:nth-child(n+3) { display: none; }
.gauges2 { display: flex; flex-direction: column; gap: 4px; }
.gauges2 .gbar { display: none; } .gauges2 .gbar.sel { display: block; }
.gcap { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcap b { color: var(--ink); }
.gauges2 .mini li { display: flex; }
.gauges2 .mini li:nth-child(n+4) { display: none; }
.gsel { display: flex; align-items: center; gap: 7px; width: 100%; border: 1px solid var(--line); background: none; padding: 3px 8px; border-radius: 5px; cursor: pointer; font: inherit; color: inherit; text-align: left; min-width: 0; }
.gsel .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsel .r { color: var(--muted); font-size: 12px; }
.gsel:hover { background: var(--sunk); }
/* 1.113.4: each gauge is its own outlined row, spaced apart; the one shown says "Showing", the
   others a chevron, so it's clear they can be tapped. */
.gauges2 .mini { display: flex; flex-direction: column; gap: 4px; }
.gsel.sel { background: var(--sunk); border-color: var(--link); }
.gsel .gshow { flex: none; font-size: 11px; color: var(--muted); }
.gsel .gshow::after { content: '›'; font-size: 15px; line-height: 1; }
.gsel.sel .gshow { color: var(--link); font-weight: 600; }
.gsel.sel .gshow::after { content: 'Showing'; font-size: 11px; }
.spark.tide .tfill { fill: var(--link); opacity: .15; }
.tidewrap { position: relative; margin-top: 8px; }
.tidewrap .spark.tide { display: block; }
.tdot { position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--muted); pointer-events: none; }
.tdot.th { background: var(--link); } .tdot.tnow { width: 11px; height: 11px; background: var(--watch); }
.tlab { position: absolute; transform: translate(-50%, calc(-100% - 7px)); font-size: 11px; font-weight: 600; color: var(--ink); white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.tlab.down { transform: translate(-50%, 7px); }
.tidewrap + .mini li:nth-child(n+3) { display: none; }
@container (min-width: 620px) { .gauges2 .mini li:nth-child(n+4) { display: flex; } .tidewrap + .mini li:nth-child(n+3) { display: flex; } }

.wxnow .wind b { font-size: 15px; font-weight: 650; }
.gsel:focus { outline: none; } .gsel:focus-visible { outline: 2px solid var(--focus); }

/* 1.9.3 */
.chips { -webkit-mask-image: none; mask-image: none; }
.spark text.ax, .spark .ax { font-size: 9px; fill: var(--muted); }
.spark.grid { height: 52px; }
.spark.tide { height: 66px; }
.spark.tide text { font-size: 9px; fill: var(--ink); font-weight: 600; }
.tile[data-id="lookingup"] .mini li:nth-child(-n+6), .tile[data-id="wiki"] .mini li:nth-child(-n+6) { display: flex; }
.dpanel .tilemap g[data-st] { cursor: pointer; }
.dpanel .tilemap g[data-st]:hover rect, .dpanel .tilemap g[data-st]:focus rect { stroke: var(--link); stroke-width: 2; }
#stalerts h4 { margin: 8px 0 4px; }
.tilemap .h1 text, .tilemap .h2 text { fill: #2A2118; }
.tile[data-id="nightsky"] .mini li:nth-child(-n+5) { display: flex; }

/* 1.11.1 */
.moonstrip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; text-align: center; font-size: 10px; color: var(--muted); margin-bottom: 8px; }
.moonstrip > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px 0; border-radius: 6px; }
.moonstrip > div.now { background: var(--sunk); color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 2px var(--link); }
.moonstrip svg { width: 26px; height: 26px; }
.retro { width: 100%; max-width: 420px; height: auto; margin: 6px 0; }
.retro text { font-size: 9px; fill: var(--muted); }
.retro .sun { fill: #E0B000; } .retro .earth { fill: var(--link); } .retro .planet { fill: #C9562C; }
.retro .orbit { fill: none; stroke: var(--line); stroke-dasharray: 3 3; }
.retro .sight { stroke: var(--muted); stroke-dasharray: 2 3; }
.retro .loop { fill: none; stroke: #C9562C; stroke-width: 2; }

/* 1.12.0: grid region map */
.gridmap { width: 100%; max-width: 520px; height: auto; }
.gridmap rect { fill: var(--sunk); }
.gridmap .g1 rect { fill: #CFE3D6; } .gridmap .gm rect { fill: #BFD8EA; } .gridmap .g2 rect { fill: #F0C26E; } .gridmap .g3 rect { fill: #C9562C; }
.gridmap text { font-size: 9px; font-weight: 700; fill: #1D2630; } .gridmap .g3 text { fill: #fff; } .gridmap .g0 text { fill: var(--ink); }
.gridmap .n { font-weight: 500; }
.gridmap g { cursor: pointer; } .gridmap g:hover rect, .gridmap g:focus rect, .gridmap g.sel rect { stroke: var(--link); stroke-width: 2.5; }
.gridmap .home rect { stroke: var(--ink); stroke-width: 3.5; }
.gridmap .g0 rect { fill: transparent; stroke: var(--line); stroke-dasharray: 3 3; }
.maplegend .g1 { background: #CFE3D6; } .maplegend .gm { background: #BFD8EA; } .maplegend .g3 { background: #C9562C; }
#gridsel h4 { margin: 10px 0 4px; }
/* Charts keep their proportions in the wider Details panel */
.dpanel .spark { height: auto; aspect-ratio: 300 / 64; max-height: 150px; }
.dpanel .spark.grid { aspect-ratio: 300 / 52; }
.dpanel .spark.tide { aspect-ratio: 300 / 66; }

.kv.hist { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.tile .preview .gridtop .kv { gap: 2px 14px; }

/* 1.13.0 */
.editbtn { color: var(--link); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; min-height: 28px; }
.editbtn:hover { background: var(--sunk); }
.hchip.fold { background: transparent; border: 1px dashed currentColor; font-weight: 600; opacity: .9; }
.hchip.fold:hover { opacity: 1; background: var(--hero-chip); }
.hchip.fold .chev { font-size: 11px; }
.gridwho { font-size: 12px; color: var(--muted); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gridwho b { color: var(--ink); }
.meter.soft { background: var(--line); opacity: 1; }
.meter.soft .m-ok { background: var(--viz); }
.meterlbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin: -2px 0 4px; }
.meterlbl b { color: var(--ink); }
.aqibar { width: 100%; max-width: 340px; height: auto; display: block; margin: 2px 0 4px; }
.aqibar text { font-size: 9px; fill: var(--muted); }
.aqibar rect { opacity: .3; } .aqibar rect.cur { opacity: 1; }
.aqibar .aq1 { fill: #3BA55C; } .aqibar .aq2 { fill: #E8C53A; } .aqibar .aq3 { fill: #F08C2E; } .aqibar .aq4 { fill: #D9342B; } .aqibar .aq5 { fill: #8E3E97; }
.aqibar .aqmark { fill: var(--ink); }
.spark.attn { height: 44px; }
.detail .spark.attn, .dpanel .spark.attn { height: 80px; }
/* On the card the chart takes whatever room the two rows leave, so it shrinks instead of being cut off. */
.tile .attnwrap { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.tile .attnwrap .arows { flex: none; }
.tile .attnwrap .spark.attn { flex: 1 1 44px; min-height: 0; height: auto; max-height: 64px; }
.tile .attnwrap .taxis { flex: none; }
.zulu { display: flex; align-items: baseline; gap: 4px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; line-height: 1; margin: 2px 0 8px; }
.zulu b { font-size: 36px; font-weight: 700; letter-spacing: 2px; padding: 4px 9px; border: 2px solid var(--ink); border-radius: 6px; background: var(--sunk); }
.zulu span { font-size: 22px; font-weight: 700; color: var(--muted); }
.zlocal { color: var(--muted); } .zlocal b { color: var(--ink); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.nato { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px 8px; font-size: 12px; }
.nato li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nato b { display: inline-block; width: 14px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--muted); }
.tile.wide .nato { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.natot { border-collapse: collapse; width: 100%; font-size: 14px; }
.natot th { text-align: left; width: 28px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.natot td, .natot th { padding: 3px 6px; border-bottom: 1px solid var(--line); }
.cwlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 12px; }
.panel .cwlist label { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; min-height: 34px; margin: 0; cursor: pointer; }
.panel .cwlist input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; flex: none; }
.editbtn { white-space: nowrap; flex: none; }
.nato { font-size: 11px; gap: 0 6px; line-height: 15px; }
.nato b { width: 11px; }
.detail .nato { font-size: 13px; line-height: 20px; }
.brand .zt { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.taxis { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: -2px; }
.alist { list-style: none; margin: 0; padding: 0; }
.alist li { display: grid; grid-template-columns: 14px 1fr; gap: 0 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.alist li > .dot { margin-top: 6px; }

/* 1.15.0: signal vs. information.
   Status colors (green, amber, red, purple) mark status only: pills, dots, SITREP chips, and cards at Watch or Alert.
   Charts and scales use --viz (a quiet ink tone). Official color scales (AQI, UV, flood stages) are drawn faded,
   with only the current reading at full strength. */
:root { --viz: #6B7682; }
[data-theme="dark"] { --viz: #8C98A5; }
[data-theme="night"] { --viz: #B5483F; }
.tile.is-watch { box-shadow: inset 0 3px 0 var(--watch-mk); background: linear-gradient(var(--watch-bg), var(--surface) 56px); }
.tile.is-alert { box-shadow: inset 0 4px 0 var(--alert-mk); background: linear-gradient(var(--alert-bg), var(--surface) 70px); }
.usmap { width: 100%; height: auto; display: block; margin: 4px 0; }
.usmap .nation { fill: var(--sunk); stroke: var(--muted); stroke-width: 1; }
.usmap .borders { fill: none; stroke: var(--line); stroke-width: 1; }
.usmap .run { fill: var(--ink); }
.usmap .part { fill: var(--viz); opacity: .55; stroke: var(--ink); stroke-width: 1.5; }
.usmap .off { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.usmap .me .pin { fill: var(--link); stroke: var(--surface); stroke-width: 4; paint-order: stroke; }
.usmap .me .pinhole { fill: var(--surface); }
.usmap .me .pinlbl { font-size: 26px; font-weight: 700; fill: var(--link); stroke: var(--surface); stroke-width: 6; paint-order: stroke; }
/* Plant marks in lists match the map. */
.dot.st-nk-run { background: var(--ink); }
.dot.st-nk-part { background: var(--viz); opacity: .7; box-shadow: inset 0 0 0 1.5px var(--ink); }
.dot.st-nk-off { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.nukelegend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.nukelegend span { display: inline-flex; align-items: center; gap: 5px; }
.nukelegend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; }
.nukelegend i.run { background: var(--ink); } .nukelegend i.part { background: var(--viz); opacity: .6; border: 1.5px solid var(--ink); }
.nukelegend i.off { border: 2px solid var(--ink); } .nukelegend i.me { background: var(--link); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.scale.brk span:last-child { margin-left: 10px; }
.scalelbls { display: flex; gap: 4px; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.scalelbls span { flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scalelbls.brk span:last-child { margin-left: 10px; }
.scalelbls .cur { color: var(--ink); font-weight: 700; }
.cwlist.one { grid-template-columns: 1fr; }
.panel .cwlist.one label { align-items: flex-start; min-height: 0; padding: 6px 0; }
.panel .cwlist.one input { margin-top: 2px; }
.usmap.local path, .usmap.local circle { vector-effect: non-scaling-stroke; }
.usmap.local .run, .usmap.local .part, .usmap.local .off { stroke-width: 1.5; }
.usmap .ring50 { fill: none; stroke: var(--link); stroke-width: 2; stroke-dasharray: 6 4; }
.usmap .epz { fill: var(--viz); opacity: .14; stroke: var(--viz); stroke-width: 1; }
.usmap .plbl { fill: var(--ink); font-weight: 600; stroke: var(--surface); paint-order: stroke; }
.usmap .ringlbl { fill: var(--link); font-weight: 700; stroke: var(--surface); paint-order: stroke; }
.nukelegend i.ring50 { border: 2px dashed var(--link); } .nukelegend i.epz { background: var(--viz); opacity: .35; }
.tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--muted); border-radius: 4px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; }
.dpanel > .tag { margin: 0 0 6px; align-self: flex-start; width: max-content; }
.todo { border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 8px; padding: 10px 12px; margin: 6px 0 12px; background: var(--sunk); }
.todo p { margin: 0 0 6px; } .todo ul { margin: 0; padding-left: 18px; font-size: 13px; } .todo li { margin-bottom: 4px; }
.panel label.chk { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; }
.panel label.chk input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; flex: none; }
/* Edit mode uses the link-blue accent (not a status color). */
body.editing #edit-layout { background: var(--link); border-color: var(--link); color: var(--surface); }
.editdock { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--link); color: var(--surface); box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: 14px; max-width: calc(100vw - 24px); }
.editdock[hidden] { display: none; }
.editdock .btn { background: var(--surface); color: var(--link); border-color: var(--surface); min-height: 36px; }
body.editing .foot { padding-bottom: 80px; }
body.editing .tile { border-color: var(--link); }
.editdock { font-size: 15px; padding: 10px 10px 10px 18px; gap: 18px; }
.editdock span { white-space: nowrap; }
@media (max-width: 560px) {
  .editdock { left: 10px; right: 10px; transform: none; justify-content: space-between; max-width: none; }
  .editdock span { white-space: normal; font-size: 14px; }
}
.numgrid { display: grid; gap: 6px; margin-bottom: 10px; }
.numrow { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 4px 6px; align-items: center; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.numrow .nlbl { grid-column: 1 / -1; }
.numrow > span:empty { display: none; }
.numrow .nlbl { font-size: 13px; font-weight: 600; }
.numrow input { min-width: 0; }
@media (max-width: 560px) { .numrow { grid-template-columns: 1fr 1fr; } }
#print-area .ready ul.rows li { break-inside: avoid; }
/* Settings: Save stays in view. */
.savebar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -20px -20px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(0,0,0,.06); }
.savebar #s-state { color: var(--muted); }
.savebar.dirty { background: var(--link); border-top-color: var(--link); }
.savebar.dirty #s-state { color: var(--surface); font-weight: 600; }
.savebar.dirty .btn.primary { background: var(--surface); color: var(--link); border-color: var(--surface); }
/* Community add-ons: attached to their official card, clearly marked. */
/* Unofficial cards (1.113.2): same surface as official cards, a faint dashed edge and a quiet label,
   so they read as different without pulling the eye. */
.tile.addon { border-style: dashed; border-color: color-mix(in srgb, var(--line) 70%, var(--muted)); background: var(--surface); }
.addonlbl { font-size: 11px; color: var(--muted); opacity: .8; margin: -4px 0 2px; }
.addonlbl.testlbl { color: var(--minor); font-weight: 600; }
.commbtn { font-weight: 500; color: var(--muted); font-size: 12px; margin-right: 6px; }
.commbtn:hover { color: var(--link); }
.commnote { border: 1px dashed var(--muted); border-radius: 8px; padding: 10px 12px; }
.commnote p { margin: 0 0 8px; }
/* Commerce charts: quiet ink tones (signal vs. information rule). */
.spark.money { height: 56px; }
.spark.money .band { fill: var(--viz); opacity: .16; stroke: none; }
.spark.money .zero { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.curve { width: 100%; height: auto; max-height: 70px; display: block; }
.curve .now { fill: none; stroke: var(--ink); stroke-width: 2; }
.curve .prev { fill: none; stroke: var(--viz); stroke-width: 1.5; stroke-dasharray: 3 3; opacity: .7; }
.curve circle { fill: var(--ink); }
.curve text { font-size: 8px; fill: var(--muted); }
.trio.rates { margin: 2px 0 4px; } .trio.rates .lv { padding: 4px 2px; } .trio.rates .lv b { font-size: 16px; }
.lineChart-h44, .spark.money[viewBox$=" 44"] { height: 44px; }
.debtchart { width: 100%; height: 74px; display: block; margin-top: 6px; }
.debtchart .area { fill: var(--viz); opacity: .16; }
.debtchart .tline { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.curve { max-height: 90px; }
.mini .t2 { color: var(--muted); margin-left: 16px; }
.rows .t2 { display: block; }
.chartwrap { position: relative; }
.chartwrap .ylab { position: absolute; left: 0; font-size: 10px; line-height: 1; color: var(--muted); background: var(--surface); padding: 0 3px 0 0; }
.chartwrap .ylab.hi { top: 6px; } .chartwrap .ylab.lo { bottom: 4px; }
.chartwrap .spark { padding-left: 34px; box-sizing: border-box; }
.natot.codes th { width: auto; white-space: nowrap; padding-right: 12px; }

/* 1.22: Settings groups, section switches, quick links */
.setnav { position: sticky; top: 50px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 10px; background: var(--surface); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.setnav .chip { min-height: 32px; padding: 0 12px; font-size: 13px; }
.setgroup { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 26px 0 4px; padding-top: 10px; border-top: 2px solid var(--line); scroll-margin-top: 110px; }
.setgroup:first-of-type { margin-top: 8px; border-top: 0; }
.cwhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cwhead h3 { margin: 0; }
.panel .cwhead label.switch { font-size: 13px; margin: 0; white-space: nowrap; }
.cwsec.off .cwlist { opacity: .45; }
.cwsec.off h3 { color: var(--muted); }
.qlinks { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; overflow: hidden; max-height: 100%; padding: 2px; margin: -2px; }
.qlink { display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; min-height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--sunk); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.qlink span { color: var(--muted); font-weight: 400; }
.qlink:hover, .qlink:focus-visible { border-color: var(--ink); background: var(--surface); outline: none; }
.qlink:focus-visible { box-shadow: 0 0 0 2px var(--link); }
.qlinks.all { flex-direction: column; flex-wrap: nowrap; max-height: none; }
.qlinks.all .qlink { justify-content: space-between; white-space: normal; padding: 8px 12px; }
.phead .backbtn { min-height: 36px; padding: 0 10px; margin-right: 8px; flex: none; }
.setnav .autosave { flex-basis: 100%; color: var(--muted); padding-top: 2px; }
.setnav .autosave.on { color: var(--ok); font-weight: 600; }
.panel .phead h2 { flex: 1; min-width: 0; }
.qmore { display: none; align-self: center; font-size: 12px; color: var(--muted); padding: 0 4px; }
@media (max-width: 660px) { .qlink { min-height: 32px; padding: 0 10px; font-size: 13px; } .qlinks:not(.all) .qlink:nth-child(n+6) { display: none; } .qmore { display: inline; } }
/* 1.24: remove button in Edit layout, place label, undo toast */
.tremove { display: none; flex: none; margin-left: 6px; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; line-height: 1; cursor: pointer; }
body.editing .tremove { display: inline-flex; align-items: center; justify-content: center; }
.tremove:hover, .tremove:focus-visible { border-color: var(--alert); color: var(--alert); }
.tplace { margin-left: 8px; padding: 1px 7px; border-radius: 6px; background: var(--sunk); color: var(--ink); font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.tplace::before { content: '⌖ '; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 140%); z-index: 50; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-radius: 12px; background: var(--ink); color: var(--surface); font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s ease; max-width: calc(100vw - 24px); }
.toast.on { transform: translate(-50%, 0); }
.toast .btn { background: transparent; color: var(--surface); border-color: rgba(255,255,255,.4); min-height: 34px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.tile .th .tname { flex: 1; min-width: 0; }
body.editing .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
.secdots .secsum { margin-left: 4px; color: var(--muted); }
/* 1.26: Needs attention board inside the SITREP */
.hchip.boardbtn { font-weight: 700; background: var(--hero-ink); color: var(--hero); }
.hchip.boardbtn .chev { font-size: 10px; }
.sitboard { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--hero-line); padding-top: 14px; }
.sbhead { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hero-muted); margin-bottom: 8px; }
.sbgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.sbcard { position: relative; display: flex; flex-direction: column; }
.sbcard .tile { height: var(--card-h); color: var(--ink); text-align: left; }
.sbcard .tile.wide { grid-column: auto; }
.sbcard .editbar, .sbcard .tremove { display: none !important; }
.sbcard.isback .tile { opacity: .6; }
.sbcat { display: flex; align-items: center; gap: 8px; min-height: 22px; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hero-muted); }
.sbtag { font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: none; padding: 1px 8px; border-radius: 999px; background: var(--hero-ink); color: var(--hero); }
.sbtag.back { background: var(--ok-bg); color: var(--ok); }
.sbcalm { font-size: 15px; color: var(--hero-ink); padding: 4px 0; }
.sbdown p { margin: 0 0 8px; color: var(--hero-muted); }
.sbdown .sbdownlist { display: flex; flex-wrap: wrap; gap: 6px; }
.sbdown .hchip .small { color: var(--hero-muted); }
/* 1.27: connection light, quick link icons, space-weather visuals */
/* The glow is drawn on the logo image itself, so it follows the image's exact size and corners. */
.brand .compass { position: relative; display: block; flex: none; width: 34px; height: 34px; border-radius: 8px; }
.brand .compass img { display: block; width: 34px; height: 34px; border-radius: 8px; transition: box-shadow .3s ease; }
.brand .compass .starmark { display: block; width: 34px; height: 34px; overflow: visible; transition: filter .3s ease; }
.brand .compass.net-up img { box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 60%, transparent), 0 0 10px 2px color-mix(in srgb, var(--ok) 30%, transparent); }
.brand .compass.net-down img { box-shadow: 0 0 0 2px var(--alert), 0 0 12px 3px color-mix(in srgb, var(--alert) 45%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .brand .compass.net-up::after { content: ''; position: absolute; inset: 0; border-radius: 8px; pointer-events: none; animation: netping 3s ease-out infinite; }
  .brand .compass.net-down img { animation: netwarn 1.6s ease-in-out infinite; }
  @keyframes netping { 0% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 12px transparent; } }
  @keyframes netwarn { 50% { box-shadow: 0 0 0 2px var(--alert), 0 0 4px 1px color-mix(in srgb, var(--alert) 20%, transparent); } }
}
.netstate { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.netstate.up { color: var(--ok); background: var(--ok-bg); }
.netstate.down { color: var(--alert); background: var(--alert-bg); }
.qlink .qico { width: 16px; height: 16px; flex: none; color: var(--muted); }
.qlink .qname { display: inline-flex; align-items: center; gap: 6px; }
.flarechart { width: 100%; height: auto; display: block; margin: 4px 0 2px; }
.flarechart .fgrid { stroke: var(--line); stroke-width: 1; }
.flarechart .fgrid.strong { stroke: var(--muted); stroke-dasharray: 3 4; }
.flarechart .flab, .flarechart .ftime { fill: var(--muted); font-size: 11px; text-anchor: middle; }
.flarechart .fline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.flarechart .fs-calm { stop-color: var(--viz); } .flarechart .fs-c { stop-color: var(--ok); } .flarechart .fs-m { stop-color: var(--watch); } .flarechart .fs-x { stop-color: var(--alert); }
.flarechart .fband.m { fill: var(--watch); opacity: .07; } .flarechart .fband.x { fill: var(--alert); opacity: .08; }
.nimg { margin: 6px 0 14px; }
.nimg img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: #000; }
.nimg figcaption { margin-top: 4px; }
.mortrow { margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--line); }
.netstate { font-variant-numeric: tabular-nums; } .netstate.down { display: inline-block; min-width: 24ch; text-align: center; }
/* 1.28: radar map (always dark, whatever the theme) */
.rmapbtn { display: block; position: relative; width: 100%; height: 100%; min-height: 150px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #070b10; cursor: zoom-in; }
.rmapbtn .rmap { position: absolute; inset: 0; width: 100%; height: 100%; }
.rmapbig { border-radius: 10px; overflow: hidden; background: #070b10; }
.rmapbig .rmap { display: block; width: 100%; height: auto; }
.rmap .rm-sea { fill: #070b10; }
.rmap .rm-land { fill: #161d26; }
.rmap .rm-coast { fill: none; stroke: #4a5a6c; stroke-width: 1; vector-effect: non-scaling-stroke; }
.rmap .rm-states { fill: none; stroke: #2e3a48; stroke-width: 1; vector-effect: non-scaling-stroke; }
.rmap .rm-radar { opacity: .92; }
.rmap .rm-ring { fill: none; stroke: #9fb3c8; stroke-opacity: .45; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.rmap .rm-ringlab { fill: #9fb3c8; font-size: 11px; text-anchor: middle; }
.rmap .rm-you { fill: #fff; }
.rmap .rm-you-halo { fill: #fff; fill-opacity: .25; }
.rlegend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); margin-top: 6px; }
.rmapbtn .rlegend { position: absolute; right: 8px; bottom: 6px; margin: 0; color: #c9d2db; background: rgba(7,11,16,.7); padding: 2px 6px; border-radius: 6px; }
.rlegend i { display: block; width: 80px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #04e9e7, #019ff4, #02fd02, #01c501, #fdf802, #fd9500, #fd0000, #bc0000, #f800fd); }
.tile[data-id="radar"] .viz { display: flex; }
[data-theme="night"] .rmap { filter: grayscale(1) sepia(1) saturate(6) hue-rotate(-35deg) brightness(0.8); }
.tile[data-id="radar"] .sub, .tile[data-id="radar"] .preview { display: none; }
.tile[data-id="radar"] .viz { flex: 1; min-height: 0; display: flex; }
.tile[data-id="radar"] .rmapbtn { flex: 1; }
.fxpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; }
.olstrip { margin-top: 8px; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .olstrip b { color: var(--ink); font-weight: 600; margin-right: 4px; }
/* Grid demand: power "flowing" along the actual line up to now, and a pulsing now-dot */
.gridflow { position: relative; }
.spark.grid .tflow { fill: none; stroke: var(--surface); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 14; vector-effect: non-scaling-stroke; opacity: 0; }
.gnow { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--viz); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .spark.grid .tflow { opacity: .7; animation: gflow 1.6s linear infinite; }
  .gnow::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 color-mix(in srgb, var(--viz) 60%, transparent); animation: gpulse 2s ease-out infinite; }
  @keyframes gflow { to { stroke-dashoffset: -15; } }
  @keyframes gpulse { 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
}
.gridflow > .spark { display: block; }
.spark .gline { fill: none; stroke: var(--link); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark .nline { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 3; opacity: .7; vector-effect: non-scaling-stroke; }
.legend .k-g::before { background: var(--link); }
.arows { display: grid; gap: 6px; margin: 4px 0 8px; }
.arow { display: grid; grid-template-columns: minmax(0, 1fr) 52px 7.4em; align-items: center; gap: 10px; padding: 5px 8px 5px 10px; border-left: 3px solid var(--ink); background: var(--sunk); border-radius: 0 6px 6px 0; }
.arow.news { border-left-color: var(--link); }
.arow.off { border-left-style: dashed; opacity: .75; }
.arow.news .aname b { color: var(--link); }
.aname { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.aname b { font-size: 13px; font-weight: 600; white-space: nowrap; }
.aname span, .aval span { font-size: 11px; color: var(--muted); }
.aval { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.25; }
.aval b { font-size: 14px; font-variant-numeric: tabular-nums; }
.ameter { display: inline-flex; gap: 3px; }
.ameter i { width: 7px; height: 14px; border-radius: 2px; background: var(--line, rgba(127,127,127,.25)); }
.arow.look .ameter i.on { background: var(--ink); } .arow.news .ameter i.on { background: var(--link); }
.axisrow { display: flex; justify-content: space-between; margin-top: 2px; }
.awaysum { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.loc .ip .linkbtn { min-height: 0; padding: 0 2px; line-height: 1.25; }
/* Radar loop */
.rmapbig { position: relative; }
.rmap .rm-frame { display: none; }
.rmap.looping .rm-radar:not(.rm-frame) { display: none; }
.rmap.looping .rm-frame.on { display: inline; }
.rmtime { position: absolute; left: 10px; top: 8px; font-size: 13px; font-weight: 700; color: #e6edf3; background: rgba(7,11,16,.7); padding: 2px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.rmtime:empty { display: none; }
/* Wildfire map points */
.rmap .rm-pt { fill: #ff8a3d; fill-opacity: .75; stroke: #ffd2b0; stroke-width: 1; vector-effect: non-scaling-stroke; }
.rmap .rm-pt.mid { fill: #ff5a1f; }
.rmap .rm-pt.big { fill: #d7261e; fill-opacity: .85; }
.rmap .rm-pt.hot { fill: #ffd54a; fill-opacity: .9; stroke: none; }

#now { font-variant-numeric: tabular-nums; }
/* Systems Status row: sticks just under the pinned header once you scroll past it,
   so Collapse all, + Add widget and Edit layout (or Done) stay in reach. */
.whead { position: sticky; top: 0; z-index: 18; padding-top: 8px; padding-bottom: 8px; }
.whead::before { content: ""; position: absolute; inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%); z-index: -1; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.whead.stuck::before { border-bottom-color: var(--line); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .35); }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .whead::before { background: var(--bg); } }
@media (min-width: 900px) and (min-height: 600px) {
  .whead { top: var(--pin-h, 0px); }
  html { scroll-padding-top: calc(var(--pin-h, 0px) + var(--whead-h, 0px) + 12px); }
}
@media not all and (min-width: 900px) and (min-height: 600px) { html { scroll-padding-top: calc(var(--whead-h, 0px) + 12px); } }
/* Compact once stuck: shorter bar, smaller buttons and title. */
.whead { transition: padding .15s ease; }
.whead.stuck { padding-top: 4px; padding-bottom: 4px; gap: 6px; }
.whead.stuck h2 { font-size: 11px; }
.whead.stuck .btn { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
@media (max-width: 660px) {
  .whead.stuck { flex-wrap: nowrap; }
  .whead.stuck h2 { display: none; }
  .whead.stuck .btnrow { width: 100%; justify-content: space-between; flex-wrap: nowrap; gap: 6px; }
  .whead.stuck .btn { flex: 1; min-height: 32px; padding: 0 6px; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .whead { transition: none; } }

/* Earthquakes: epicenter badge (count inside two rings) */
.epihead { display: flex; align-items: center; gap: 18px; margin: 6px 0 10px 8px; }
.epi { --c: var(--muted); position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--c); flex: none;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent), 0 0 0 10px color-mix(in srgb, var(--c) 8%, transparent); }
.epi b { font-size: 15px; font-variant-numeric: tabular-nums; }
.epi.st-watch { --c: var(--watch); } .epi.st-alert { --c: var(--alert); }

/* Current conditions (1.39): icon, temperature and wind together, then a grid of facts */
.wxnow2 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wxnow2 .wxt { display: flex; flex-direction: column; line-height: 1.1; }
.wxnow2 .wxt b { font-size: 38px; font-weight: 650; line-height: 1; }
.wxnow2 .wxinst { display: flex; align-items: center; gap: 12px; }
.wxnow2 .wxinst b, .wxnow2 .wxinst .small { white-space: nowrap; }
/* Narrow cards: smaller dials and tighter spacing instead of dropping the barometer (1.118.1). */
@container (max-width: 340px) { .wxnow2 .wxinst { gap: 8px; } .wxnow2 .wind { margin-left: 0; padding-left: 8px; gap: 6px; } .wxnow2 .baro { padding-left: 8px; gap: 4px; } .wxnow2 .bdial { width: 40px; height: 34px; } .wxnow2 .wxinst b { font-size: 14px; } }
@container (max-width: 250px) { .wxnow2 .bdial { display: none; } }
.wxnow2 .baro { display: flex; align-items: center; gap: 6px; padding-left: 12px; border-left: 1px solid var(--line); }
.baro > div { display: flex; flex-direction: column; line-height: 1.2; } .baro b { font-size: 15px; font-weight: 650; }
.baro > div > span { display: inline-flex; align-items: center; gap: 3px; }
.bdial { width: 46px; height: 38px; } .bdial path { fill: none; stroke-width: 4; stroke-linecap: round; }
.bdial .blo { stroke: color-mix(in srgb, var(--link) 35%, transparent); } .bdial .bmid { stroke: var(--line); } .bdial .bhi { stroke: color-mix(in srgb, var(--watch-mk) 40%, transparent); }
.bdial .bneedle { stroke: var(--ink); stroke-width: 2.4; } .bdial .bhub { fill: var(--ink); }
.bdial text { font-size: 8px; fill: var(--muted); font-weight: 700; }
.btrend { width: 15px; height: 15px; flex: none; } .btrend path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btrend.t-falling { color: var(--link); } .btrend.t-falling.quickly { color: var(--watch); } .btrend.t-rising { color: var(--ok); }
.wxnow2 .wind { justify-self: auto; margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--line); }
.wxstats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px 14px; margin: 12px 0 0; }
.wxstats div { min-width: 0; }
.wxstats dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.wxstats dd { margin: 1px 0 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Fire safety: fire danger style meter */
.firemeter { display: flex; align-items: center; gap: 14px; margin: 4px 0 8px; }
.firemeter svg { width: 120px; height: 64px; flex: none; }
.firemeter path { opacity: .35; } .firemeter path.on { opacity: 1; }
.firemeter .fm0 { fill: #3f9a5a; } .firemeter .fm1 { fill: #e0b000; } .firemeter .fm2 { fill: #e3732a; } .firemeter .fm3 { fill: #c62828; }
.firemeter .needle { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; } .firemeter .hub { fill: var(--ink); }
.firemeter > div { display: flex; flex-direction: column; line-height: 1.25; }
.firemeter b { font-size: 20px; } .firemeter .fmday { font-size: 13px; font-weight: 400; color: var(--muted); } .firemeter .fm1t { color: #e0b000; } .firemeter .fm2t { color: #e3732a; } .firemeter .fm3t { color: #e05252; }

/* UV scale under the bars */
.uvscale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-top: 10px; }
.uvscale span { display: flex; flex-direction: column; align-items: center; padding: 4px 2px 3px; border-radius: 4px; border-top: 4px solid; opacity: .5; font-size: 11px; line-height: 1.2; text-align: center; }
.uvscale span.on { opacity: 1; background: var(--sunk); }
.uvscale b { font-weight: 600; white-space: nowrap; } .uvscale i { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.uvscale .us-ok { border-color: #3BA55C; } .uvscale .us-minor { border-color: #E0B000; } .uvscale .us-watch { border-color: #F08C2E; } .uvscale .us-alert { border-color: #D9342B; } .uvscale .us-ext { border-color: #8E44AD; }

/* Today's records: a light cold/warm tint */
.recbar .rcold { background: color-mix(in srgb, #4a90d9 12%, transparent); border-radius: 8px; }
.recbar .rhot { background: color-mix(in srgb, #e3732a 12%, transparent); border-radius: 8px; }
.recbar .cold, .coldt { color: #1f6fbf; } .recbar .hot, .hott { color: #c4561a; }
[data-theme="dark"] .recbar .cold, [data-theme="dark"] .coldt { color: #6aa8ec; }
[data-theme="dark"] .recbar .hot, [data-theme="dark"] .hott { color: #f08c4a; }
.uvscale.kpscale { display: grid; grid-template-columns: repeat(8, 1fr); margin: 8px 0 0; }
.kpscale span { padding: 2px 1px 1px; font-size: 10px; border-top-width: 3px; }

/* Phonetic alphabet reads down each column, then across */
/* Whole alphabet on the small card: 4 columns of 7, read top to bottom. */
.nato.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); grid-auto-flow: column; gap: 0 6px; }
.nato.cols li { overflow: visible; text-overflow: clip; letter-spacing: -0.1px; }
.tile.wide .nato.cols { grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); }
/* Currencies table */
.fxt { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.fxt th { text-align: left; font-weight: 650; padding: 2px 10px 2px 0; width: 3.2em; }
.fxt td { padding: 2px 10px 2px 0; white-space: nowrap; }
.fxt td.chg { text-align: right; padding-right: 0; color: var(--muted); }
.fxt tr:nth-child(n+5) { display: none; }
@container (min-width: 620px) { .fxt tr:nth-child(n+5) { display: table-row; } }
svg.spark.h48 { height: 110px; } .spark .hgrid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dot.st-warmx { background: #D9531E; } .dot.st-coldx { background: #2F6FC0; } .dot.st-wetx { background: #1F7A8C; } .dot.st-dryx { background: #B8862A; }
.spark .aqline { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; } .spark .aqline.c0 { stroke: #C99A2E; } .spark .aqline.c1 { stroke: #D9531E; } .spark .aqline.c2, .spark .aqline.c3 { stroke: #B8434E; }
.dot.st-aqmod { background: #D8B23A; }
/* Station history table (Current conditions Details) */
.tblwrap { overflow-x: auto; }
table.obst { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
table.obst th, table.obst td { text-align: left; padding: 3px 8px 3px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.obst th { font-weight: 650; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
table.obst td:last-child { white-space: normal; }
/* Forecast discussion, office products, weather story, satellite */
.afdlead { margin: 6px 0 0; font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.afd h4 { margin: 14px 0 4px; } .afdlist { margin: 0 0 8px; padding-left: 18px; line-height: 1.5; } .afdlist li { margin: 0 0 4px; } .afd p { margin: 0 0 8px; line-height: 1.5; }
mark.afdnew { background: color-mix(in srgb, var(--watch-mk) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
pre.nwstext { white-space: pre; font-size: 12px; line-height: 1.4; background: var(--sunk); padding: 10px; border-radius: 8px; max-height: 50vh; overflow: auto; }
img.wxstory, img.goes, video.goes { display: block; width: 100%; height: auto; border-radius: 8px; margin-top: 8px; background: var(--sunk); }
img.wxstory { max-height: 260px; object-fit: contain; } img.wxstory.big { max-height: none; } img.goes { aspect-ratio: 1; object-fit: cover; max-height: 300px; }
img.goes.big, video.goes.big { max-height: none; max-width: 600px; aspect-ratio: 1; object-fit: contain; margin-inline: auto; }
details.goesloop, details.nwsraw { margin-top: 12px; } details.goesloop summary, details.nwsraw summary { cursor: pointer; color: var(--link, inherit); }
table.obst.cli tbody th { text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--ink); font-weight: 600; }
/* Current conditions: one row of facts on a normal card, all of them when it's wide */
.wxnow2 + .wxstats div:nth-child(n+4) { display: none; }
@container (min-width: 620px) { .wxnow2 + .wxstats div:nth-child(n+4) { display: block; } }

/* Ham radio band table */
.hamt { border-collapse: collapse; font-size: 13px; margin-top: 4px; }
.hamt th, .hamt td { padding: 1px 12px 1px 0; text-align: left; white-space: nowrap; }
.hamt thead th { font-weight: 600; color: var(--muted); font-size: 12px; }
.hamt thead th.now { color: var(--ink); text-decoration: underline; }
.hamt tbody th { font-weight: 650; }
.hamt td.hg { color: var(--ok); font-weight: 600; }
.hamt td.hf { color: var(--watch); font-weight: 600; }
.hamt td.hp { color: var(--alert); font-weight: 600; }
.hamt.big, dialog .hamt { font-size: 15px; margin-bottom: 10px; }

/* Snowpack map: brown (low) to blue (high) */
.snowmap circle { stroke: var(--surface); stroke-width: 0.8; }
.snowover path.sn0, .snowover path.sn1, .snowover path.sn2, .snowover path.sn3, .snowover path.sn4, .snowover path.snq { stroke: var(--surface); stroke-width: 1.5; opacity: .9; }
.snowover path.avwarn { stroke: #e05252; stroke-width: 4; }
.snowover .snl { font-size: 24px; font-weight: 700; fill: var(--ink); stroke: var(--surface); stroke-width: 4; paint-order: stroke; }
.snowover .snn { font-size: 19px; fill: var(--ink); stroke: var(--surface); stroke-width: 4; paint-order: stroke; }
.nukelegend i.avwarnkey { background: transparent; border: 2px solid #e05252; border-radius: 2px; }
.snowtab { margin-bottom: 14px; } .snowtab td:nth-child(2), .snowtab th:nth-child(2) { text-align: right; padding-right: 16px; }
.avzones { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 13px; }
.avz { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.avzones i, .nukelegend i.av0, .nukelegend i.av1, .nukelegend i.av2, .nukelegend i.av3, .nukelegend i.av4, .nukelegend i.av5 { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; }
.av0 { background: #9aa3ab; } .av1 { background: #50b848; } .av2 { background: #fff200; } .av3 { background: #f7941e; } .av4 { background: #ed1c24; } .av5 { background: #231f20; outline: 1px solid #ed1c24; }
.avtag { font-size: 13px; } .av3t { color: #f7941e; } .av4t, .av5t, .avw { color: #e05252; }
.snowmap .sn0, .nukelegend i.sn0 { fill: #A0522D; background: #A0522D; }
.snowmap .sn1, .nukelegend i.sn1 { fill: #E0A030; background: #E0A030; }
.snowmap .sn2, .nukelegend i.sn2 { fill: #4CAF6A; background: #4CAF6A; }
.snowmap .sn3, .nukelegend i.sn3 { fill: #5DA9E9; background: #5DA9E9; }
.snowmap .sn4, .nukelegend i.sn4 { fill: #2C5BD6; background: #2C5BD6; }
.snowmap .snq, .nukelegend i.snq { fill: #B8C4D0; background: #B8C4D0; }
.snowmap .snx, .nukelegend i.snx { fill: transparent; stroke: var(--muted); background: transparent; border: 1px solid var(--muted); }

/* Most-wanted name lists: two columns of linked names */
.namegrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; font-size: 13px; line-height: 1.4; }
.namegrid li { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.namegrid a { color: var(--ink); text-decoration: none; font-weight: 600; }
.namegrid a:hover, .namegrid a:focus-visible { text-decoration: underline; color: var(--link); }
.namegrid .muted { font-weight: 400; font-size: 12px; }

.appver { margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--muted); vertical-align: middle; font-variant-numeric: tabular-nums; }

/* Room between a list and the link chips under it (Cell networks, Power & utilities) */
.viz .mini + .chips { margin-top: 10px; }
.viz .mini.risk { gap: 5px 18px; }

/* ---------- 1.45.0: clearer section hierarchy, jump row, dev menu ---------- */
/* Section titles: larger, normal case, with a small line icon, so they read as a level above the
   small uppercase card labels. Panels keep one calm background; more air between them. */
.sections { gap: 20px; }
.wsec { padding: 6px 16px 16px; }
.sechead { min-height: 48px; margin-bottom: 8px; }
/* Header row lines up with the cards below: the icon sits on the cards' left edge, and the
   collapse arrow hangs in the panel's margin to its left. Plain line icons, no tile behind them. */
.sechead { position: relative; gap: 14px; }
.sechead .sectoggle { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; }
.sechead h2 { font-size: 17px; font-weight: 650; letter-spacing: 0; text-transform: none; color: var(--ink); line-height: 1.2; }
.sechead .secico { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: var(--muted); flex: none; }
.sechead .secico .ico { width: 22px; height: 22px; stroke-width: 1.8; }
.sechead .sectoggle { border-radius: 8px; margin-left: -6px; padding: 6px 8px 6px 6px; transition: background-color .15s; }
.sechead .sectoggle:not(:disabled):hover { background: var(--surface); }
.sechead .sectoggle:not(:disabled):hover .secico, .sechead .sectoggle:focus-visible .secico { color: var(--ink); }
.wsec.shut .sechead h2 { color: var(--muted); }
.wsec.empty .sechead .secico { opacity: .6; }
@media (max-width: 660px) { .sechead h2 { font-size: 16px; } .sechead .secico, .sechead .secico .ico { width: 20px; height: 20px; } }

/* Jump row: an even grid of section names, each with its overall status dot */
.secnav { --navcols: 7; display: grid; grid-template-columns: repeat(var(--navcols), minmax(0, 1fr)); gap: 2px 6px; margin: -2px 0 14px; }
.secnav a { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 10px; border-radius: 8px; font-size: 13px; color: var(--muted); text-decoration: none; border: 1px solid transparent; }
.secnav a .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.secnav a:hover, .secnav a:focus-visible { color: var(--ink); border-color: var(--line); background: var(--sunk); }
.secnav a .dot { width: 9px; height: 9px; flex: none; }

.secnav a .dot.st-none { background: transparent; border: 1.5px solid var(--none-mk); opacity: .7; }
@media (max-width: 660px) { .secnav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Dev menu (temporary) */
.devmenu { position: relative; }
.devmenu > summary { list-style: none; cursor: pointer; }
.devmenu > summary::-webkit-details-marker { display: none; }
.devmenu > summary::after { content: ' ▾'; font-size: 10px; }
.devpop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 250px; display: flex; flex-direction: column; gap: 6px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.devpop .btn { width: 100%; justify-content: flex-start; text-align: left; }
.devpop .note { margin: 2px 2px 0; font-size: 12px; }

/* Fuel price map: four shades from lowest to highest regional gasoline price */
.fuelmap path { stroke: var(--surface); stroke-width: 1.2; }
.fuelmap .fp0, .nukelegend i.fp0 { fill: #3E7CB1; background: #3E7CB1; }
.fuelmap .fp1, .nukelegend i.fp1 { fill: #74A9CF; background: #74A9CF; }
.fuelmap .fp2, .nukelegend i.fp2 { fill: #E0A35C; background: #E0A35C; }
.fuelmap .fp3, .nukelegend i.fp3 { fill: #C8553D; background: #C8553D; }
.fuelmap path.mine { stroke: var(--ink); stroke-width: 3; }
.nukelegend i.fpmine { background: transparent; border: 2px solid var(--ink); }
.fuelmap .fplab { font-size: 22px; font-weight: 700; fill: #fff; text-anchor: middle; paint-order: stroke; stroke: rgba(0,0,0,.45); stroke-width: 3px; }
.fueltab td, .fueltab th { white-space: nowrap; }
.fxt.fueltab tr:nth-child(n+5), .fxt.wqtab tr:nth-child(n+5), .fxt.snowtab tr:nth-child(n+5), dialog .fxt tr:nth-child(n+5) { display: table-row; }
.fxt.fueltab th { width: auto; }
.fxt.fueltab td:last-child { white-space: normal; }
.fuelchart { margin-bottom: 14px; }
.fuelchart .taxis { margin-top: 2px; }

/* ---------- 1.47.0: tiny card edit button, App settings ---------- */
/* Cards with settings show a small pencil beside Details; it opens that card's own panel. */
.tile .tf .editbtn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; min-height: 28px; padding: 0; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; }
.tile .tf .editbtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile .tf .editbtn:hover, .tile .tf .editbtn:focus-visible { color: var(--ink); border-color: var(--line); background: var(--sunk); }
.tile .tf .tfb { align-items: center; gap: 10px; }

/* App settings: a side list of pages and one page at a time */
.setwrap { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 0; min-height: calc(100vh - 70px); margin: 0 -20px -20px; border-top: 1px solid var(--line); }
.setside { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--line); background: var(--sunk); position: sticky; top: 48px; align-self: start; min-height: calc(100vh - 70px); }
.setnavbtn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: none; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.setnavbtn .secico { display: inline-flex; width: 18px; height: 18px; flex: none; }
.setnavbtn .secico .ico { width: 18px; height: 18px; color: currentColor; stroke-width: 1.8; }
.setnavbtn:hover { color: var(--ink); background: var(--surface); }
.setnavbtn[aria-current="page"] { color: var(--ink); background: var(--surface); font-weight: 600; box-shadow: inset 3px 0 0 var(--link); }
.setmain { padding: 18px 24px 28px; min-width: 0; }
.setpane > h3 { font-size: 16px; margin: 6px 0 8px; }
.setpane > h3 ~ h3 { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.setsub { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.setlist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 14px; border: none; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.setlist > .setrow:first-child { border-top: none; }
.setrow > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.setrow b { font-weight: 600; font-size: 14px; }
.setrow .go { color: var(--muted); font-size: 18px; line-height: 1; }
.setrow:hover { background: var(--sunk); }
.setrow.radio { justify-content: flex-start; }
.setrow.radio input { margin: 0; flex: none; }
.btn.danger { color: var(--alert); border-color: color-mix(in srgb, var(--alert) 45%, var(--line)); }
#s-state { margin: 22px 0 0; color: var(--muted); }
#s-state.on, .autosave.on { color: var(--ok); font-weight: 600; }
.autosave { color: var(--muted); }
@media (max-width: 700px) {
  .setwrap { display: block; min-height: 0; } /* a plain stack: the grid row came out shorter than the tabs, hiding page headings (1.139.2) */
  .setside { position: sticky; top: var(--phead-h, 0px); z-index: 3; flex-direction: row; overflow-x: auto; min-height: 0; padding: 8px 10px; border-right: none; border-bottom: 1px solid var(--line); }
  .setnavbtn { width: auto; white-space: nowrap; padding: 7px 10px; font-size: 13px; }
  .setnavbtn[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--link); }
  .setmain { padding: 14px 16px 24px; }
}
.setlist label.setrow.radio { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; margin: 0; font-weight: 400; }
.setlist label.setrow.radio > span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.setlist label.setrow.radio input { width: 16px; height: 16px; accent-color: var(--link); }
.setmain .btnrow label.btn { display: inline-flex; align-items: center; }

.wqsites li > span { flex: 1; min-width: 0; } .wqtab { margin: 6px 0; width: 100%; table-layout: fixed; } .wqtab td:first-child { width: 62%; white-space: normal; } .wqtab td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wqdefs { margin: 4px 0 10px; } .wqdefs dt { font-weight: 600; margin-top: 8px; } .wqdefs dd { margin: 2px 0 0; }

/* Code reference cards: the whole list on the small card. */
.codegrid { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; gap: 0 12px; font-size: 12px; line-height: 16px; }
.codegrid li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.codegrid b { font-weight: 650; }
.codegrid.tight b { display: inline-block; min-width: 3.1em; font-variant-numeric: tabular-nums; }
.tile.wide .codegrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.distress { list-style: none; margin: 2px 0 4px; padding: 0; font-size: 12px; line-height: 16px; }
.distress b { color: var(--alert); font-weight: 700; }

.avscale { display: flex; gap: 3px; margin: 2px 0 6px; }
.avscale span { flex: 1; text-align: center; font-size: 11px; font-weight: 700; line-height: 16px; border-radius: 3px; opacity: .35; color: #111; }
.avlab { display: flex; gap: 3px; margin: -4px 0 6px; }
.avlab span { flex: 1; text-align: center; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avlab span.on { color: var(--ink); font-weight: 650; }
.avscale span.av5 { color: #fff; }
.avscale span.on { opacity: 1; outline: 2px solid var(--ink); outline-offset: 1px; }
.avadv { margin: 4px 0 0; }

.tile .headline:empty, dialog .headline:empty { display: none; }

.linkbtn.inl { font-size: inherit; padding: 0; min-height: 0; font-weight: 600; }
.dpanel .tolink { display: none; }
.sitelist.few .mini { grid-template-columns: minmax(0, 360px); }

/* Chart labels drawn in HTML so they don't stretch with the chart. */
.sparkx { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin: 1px 0 2px; line-height: 1.2; }
.sparkx.gx { padding-left: 10%; }
.clab { position: absolute; font-size: 10px; color: var(--muted); transform: translateY(-50%); line-height: 1; pointer-events: none; }

.fuelhl { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.fuelhl b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }

/* In light mode the alerts board sits inside the dark Right now section, so its cards use the
   dark palette there; white cards on the dark band were harsh and the status edges looked heavy. */
[data-theme="light"] .sitrep .sitboard, :root:not([data-theme]) .sitrep .sitboard {
  --bg: #0F161D; --surface: #18222C; --sunk: #1F2A35; --line: #2C3946; --ink: #E8EDF2; --muted: #A3B0BD; --link: #8CC4DE;
  --btn: #E8EDF2; --btn-ink: #0F161D; --seg: #1F2A35;
  --ok: #7FD4A0; --ok-bg: #173323; --watch: #F2B45A; --watch-bg: #3A2A10; --alert: #FF8A80; --alert-bg: #3D1A18;
  --noresp: #C9A8F0; --noresp-bg: #2C2140; --none: #A3B0BD; --none-bg: #26313C; --rain: #5AA2EE;
  --ok-mk: #7FD4A0; --watch-mk: #F2B45A; --alert-mk: #FF8A80; --noresp-mk: #C9A8F0; --none-mk: #A3B0BD;
  --focus: #8CC4DE; color-scheme: dark; color: var(--ink);
}
/* Narrow cards: name only your level and the two ends of the scale, so nothing gets cut off. */
@container (max-width: 380px) {
  .avlab span:not(.on):not(:first-child):not(:last-child) { visibility: hidden; }
  .avlab span.on { overflow: visible; }
}

/* Tropical cyclone map in Details */
.cyclmap { width: 100%; height: auto; display: block; margin: 6px 0 4px; border-radius: 8px; }
.cyclmap .csea { fill: var(--sunk); }
.cyclmap .cland { fill: var(--muted); opacity: .45; stroke: none; }
.cyclmap .cz { fill: var(--watch-mk); opacity: .4; }
.cyclmap .ceq { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; opacity: .7; }
.cyclmap .cpath { fill: none; stroke: var(--ink); stroke-width: 2.6; opacity: .85; }
.cyclmap .carrh { fill: var(--ink); opacity: .75; }
.cyclmap .clabel { font-size: 16px; font-weight: 700; letter-spacing: .06em; fill: var(--ink); paint-order: stroke; stroke: var(--sunk); stroke-width: 3px; }
.cyclmap .cnow circle { fill: var(--alert-mk); stroke: var(--surface); stroke-width: 2; }
.cyclmap .cnow text { font-size: 14px; font-weight: 650; fill: var(--ink); paint-order: stroke; stroke: var(--sunk); stroke-width: 3px; }
.nukelegend i.czk { background: var(--watch-mk); opacity: .5; border-radius: 3px; }
.nukelegend i.cpk { background: none; border-top: 2px solid var(--ink); border-radius: 0; height: 0; width: 14px; }
.nukelegend i.cnk { background: var(--alert-mk); }

/* Outage map */
.omwrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.ommap .outmap, .ommap .airmap { max-height: 100px; margin: 0 auto; }
@container (min-width: 620px) { .omwrap { grid-template-columns: minmax(0, 300px) minmax(0, 340px); align-items: center; gap: 24px; } .ommap .outmap, .ommap .airmap { max-height: 112px; margin: 0; } .omwrap .mini { grid-template-columns: minmax(0, 1fr); } }
.tile.addon .ommap .airmap { max-height: 92px; }
.outmap path { stroke: var(--surface); stroke-width: 1; }
.outmap .ob0, .nukelegend i.ob0 { fill: var(--seg); background: var(--seg); }
.outmap .ob1, .nukelegend i.ob1 { fill: #F6D9A8; background: #F6D9A8; }
.outmap .ob2, .nukelegend i.ob2 { fill: #F2B45A; background: #F2B45A; }
.outmap .ob3, .nukelegend i.ob3 { fill: #E58A2E; background: #E58A2E; }
.outmap .ob4, .nukelegend i.ob4 { fill: #CF5A23; background: #CF5A23; }
.outmap .ob5, .nukelegend i.ob5 { fill: #A3261B; background: #A3261B; }
.nukelegend i.ob0 { border: 1px solid var(--line); }
.outmap path.mine { stroke: var(--link); stroke-width: 2.5px; vector-effect: non-scaling-stroke; }
.outmap .oml { font-size: 21px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.outtab tr.mine td { font-weight: 700; }
[data-theme="night"] .outmap .ob1 { fill: #3A0E0E; } [data-theme="night"] .outmap .ob2 { fill: #5A1414; } [data-theme="night"] .outmap .ob3 { fill: #7A1E16; } [data-theme="night"] .outmap .ob4 { fill: #A3261B; } [data-theme="night"] .outmap .ob5 { fill: #D9574B; }

.radiolist { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.radiolist label.chk { display: flex; align-items: flex-start; gap: 8px; text-align: left; }

/* Compact jump row in the bar that stays at the top while scrolling. Shown only once the bar is
   stuck (the full row is out of view by then). Phones get a "Jump to" menu instead. */
.minnav, .jumpmenu { display: none; }
.whead.stuck .minnav { display: flex; flex: 1; min-width: 0; gap: 2px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.whead.stuck .minnav::-webkit-scrollbar { display: none; }
.whead.stuck h2 { display: none; }
.minnav a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; border: 1px solid transparent; }
.minnav a:hover, .minnav a:focus-visible { color: var(--ink); background: var(--sunk); }
.minnav a.cur { color: var(--ink); background: var(--sunk); border-color: var(--line); }
.minnav a .dot, .jumpmenu .dot { width: 7px; height: 7px; }
.minnav a .dot.st-none, .jumppop a .dot.st-none, #jumpdot.st-none { background: transparent; border: 1.5px solid var(--none-mk); opacity: .7; }
.jumpmenu { position: relative; }
.jumpmenu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.jumpmenu > summary::-webkit-details-marker { display: none; }
.jumppop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: max-content; min-width: 260px; max-width: calc(100vw - 24px); max-height: 70vh; overflow-y: auto; padding: 6px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(0,0,0,.25); display: flex; flex-direction: column; }
.jumppop a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: 14px; white-space: nowrap; }
.jumppop a .small { margin-left: auto; padding-left: 12px; }
.jumppop a:hover, .jumppop a:focus-visible { background: var(--sunk); }
.jumppop .st-watch { color: var(--watch); } .jumppop .st-alert { color: var(--alert); } .jumppop .st-noresp { color: var(--noresp); }
@media (max-width: 760px) {
  .whead.stuck .minnav { display: none; }
  .whead.stuck .jumpmenu { display: block; flex: none; }
  .whead.stuck { flex-wrap: nowrap; }
  .whead.stuck .btnrow { width: auto; flex: 1; }
}

/* Call to action on a card that's yours to fill in */
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 2px 0 8px; }
.btn.ctabtn { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); min-height: 32px; padding: 0 14px; font-weight: 650; }
.btn.ctabtn:hover { filter: brightness(1.1); }
/* Grid demand on the card: a shorter chart so the time labels under it stay in view. */
.tile .spark.grid { height: 38px; }
.tile .sparkx.gx { font-size: 10px; margin: 0; }
.tile:has(.gridflow) .sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }

/* Airspace map */
.airmap .aspt circle { stroke: var(--surface); stroke-width: 2.5; }
.airmap .aspt.st-alert circle, .nukelegend i.dotk.st-alert { fill: var(--alert-mk); background: var(--alert-mk); }
.airmap .aspt.st-watch circle, .nukelegend i.dotk.st-watch { fill: var(--watch-mk); background: var(--watch-mk); }
.airmap .aspt.st-none circle, .nukelegend i.dotk.st-none { fill: var(--none-mk); background: var(--none-mk); }
.airmap .aspt.st-ok circle, .nukelegend i.dotk.st-ok { fill: var(--ok-mk); background: var(--ok-mk); }
.airmap .aspt text { font-size: 20px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 5px; }
.airmap .nation { fill: var(--seg); }

.fxt.cardcount { max-width: 460px; margin-bottom: 12px; } .fxt.cardcount td:nth-child(n+2), .fxt.cardcount th:nth-child(n+2) { text-align: right; } .fxt.cardcount tfoot th { border-top: 1px solid var(--line); padding-top: 4px; }
.fxt.cardcount tr:nth-child(n+5) { display: table-row; }
/* Airspace: where aircraft are flying (hourly OpenSky counts), under the FAA airport dots */
.airmap .skyd { fill: var(--link); stroke: none; }
.airmap .skyd.sd1 { opacity: .07; } .airmap .skyd.sd2 { opacity: .14; } .airmap .skyd.sd3 { opacity: .24; } .airmap .skyd.sd4 { opacity: .36; }
.nukelegend i.dotk.skyk { background: var(--link); opacity: .4; }
.spark.skyline { height: 34px; }
.dpanel .spark.skyline { height: 70px; }

.nukelegend i.curvek { height: 0; width: 16px; border-top: 2px solid var(--ink); border-radius: 0; background: none; }
.nukelegend i.curvek.prev { border-top-style: dashed; border-top-color: var(--viz); opacity: .8; }

/* Outage map: your state, set apart from the top-states list */
.yourst { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.yourst .ysk { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--link); }
.yourst .ysn { min-width: 0; }
.yourst .r { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Card counter table: a light grid so rows and columns are easy to follow */
.fxt.cardcount { border-collapse: collapse; width: 100%; }
.fxt.cardcount th, .fxt.cardcount td { border: 1px solid var(--line); padding: 6px 10px; }
.fxt.cardcount thead th { background: var(--sunk); }
.fxt.cardcount tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--sunk) 45%, transparent); }
.fxt.cardcount tfoot th { background: var(--sunk); border-top: 2px solid var(--line); }
/* Offline: a card showing its last saved result */
.savedtag { display: inline-block; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--sunk); color: var(--ink); font-size: .78em; font-weight: 600; }
.savedtag.none { color: var(--muted); }

/* Power mix: one color per source, readable in light and dark */
.mx-nuc { fill: #8A5CD0; background: #8A5CD0; } .mx-hyd { fill: #2E7FD1; background: #2E7FD1; } .mx-hyd2 { fill: #6FA8E0; background: #6FA8E0; }
.mx-wnd { fill: #2AA7A0; background: #2AA7A0; } .mx-sun { fill: #E6B82E; background: #E6B82E; } .mx-gas { fill: #E8833A; background: #E8833A; }
.mx-coa { fill: #7A6A5D; background: #7A6A5D; } .mx-oil { fill: #B5533A; background: #B5533A; } .mx-bat { fill: #D0599A; background: #D0599A; } .mx-oth { fill: #8C96A0; background: #8C96A0; }
.mixrows { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; align-items: center; margin: 6px 0; }
.mixbar { width: 100%; height: 16px; border-radius: 4px; overflow: hidden; display: block; }
.mixarea { width: 100%; height: 90px; display: block; border-radius: 4px; }
.mixlegend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85em; margin: 4px 0; }
.mixlegend i, .mxk { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: baseline; }

/* Outage map: 48-hour trend */
.spark.outspark { height: 30px; } .spark.outspark.big { height: 60px; }
.spark.outspark .area { fill: var(--link); opacity: .14; stroke: none; }
.omwrap .outspark { height: 20px; width: 100%; display: block; }
.omwrap .hastrend .ommap svg { max-height: 74px; }
.omwrap .hastrend .sparkx { display: none; }
.outtrendlab { margin: 2px 0 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.diagtext { white-space: pre-wrap; word-break: break-word; background: var(--sunk); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; user-select: all; }
/* County maps (Outage map, regional and local views) */
.cmap path { stroke: var(--surface); stroke-width: 0.5px; vector-effect: non-scaling-stroke; }
.cmap path.stb { fill: none; stroke: var(--muted); stroke-width: 1.2px; pointer-events: none; }
.cmap path.stb.mine { stroke: var(--ink); stroke-width: 2px; }
.cmap path.mycounty { fill: none; stroke: var(--link); stroke-width: 3px; pointer-events: none; }
.cmap text { font-size: 15px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.cmap text.cms { font-weight: 700; fill: var(--muted); font-size: 22px; }
.ommap .cmap { max-height: 160px; width: 100%; }
.natline { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.spark .hbar { fill: var(--link); opacity: .75; }

/* Details panel: wider on computers, resizable, remembered (see applyPanelWidth in app.js). */
@media (min-width: 900px) {
  dialog.panel { width: min(640px, 100%); }
  dialog.panel.wide { width: min(860px, 100%); }
}
dialog.panel[open] { display: flex; flex-direction: column; overflow: hidden; }
.panel .inner { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
dialog.panel.dragging { user-select: none; transition: none; }
.pgrip { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; cursor: ew-resize; z-index: 3; touch-action: none; }
.pgrip::after { content: ''; position: absolute; left: 2px; top: 50%; width: 4px; height: 44px; margin-top: -22px; border-radius: 3px; background: var(--line); }
.pgrip:hover::after, .pgrip:focus-visible::after, dialog.panel.dragging .pgrip::after { background: var(--muted); }
.pgrip:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
@media (max-width: 899px) { .pgrip, .panel .pexpand { display: none; } }
/* Readable at any width: paragraphs stop at a comfortable line length; tables and maps use the room. */
.panel .dpanel p, .panel .dpanel .rows li > span:only-child, .panel .dpanel h4 { max-width: 80ch; }
.panel .dpanel svg.usmap, .panel .dpanel svg.cmap { max-height: min(460px, 60vh); width: 100%; }
.panel .porttbl td:first-child { white-space: nowrap; }
.panel .tablewrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.panel .tablewrap .tbl th:first-child, .panel .tablewrap .tbl td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.panel .tablewrap .tbl tr.mine td:first-child { background: var(--watch-bg); }
.panel .tbl th { white-space: nowrap; }
.panel .tbl td .sub2 { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* Dev menu: Request log and Helper jobs */
.devlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.devlist li { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.devlist li.dl-bad { border-color: var(--alert, #C0392B); }
.devlist .dlh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.devlist .dlh .dls { margin-left: auto; font-size: 13px; font-weight: 650; }
.devlist code { font-size: 11.5px; word-break: break-all; }
@media (max-width: 480px) { .panel .natot { font-size: 13px; } .panel .natot td, .panel .natot th { padding: 3px 4px; } .panel .natot.codes td { overflow-wrap: anywhere; } }
.devlist .dls.st-ok { color: var(--ok); } .devlist .dls.st-watch { color: var(--watch); } .devlist .dls.st-alert { color: var(--alert); } .devlist .dls.st-none { color: var(--muted); }
/* Wide panels: lists with a label on the left and a number on the right stay a readable width, so
   the two line up by eye; tables size to their content instead of spreading columns apart. */
.panel .dpanel .rows, .panel .dpanel .mini, .panel .dpanel .top, .panel .dpanel .clocks, .panel .dpanel .pace { max-width: 560px; }
.panel .dpanel .alerts, .panel .dpanel .kv, .panel .dpanel .news, .panel .dpanel .devlist { max-width: 760px; }
.panel .dpanel .tbl, .panel .dpanel .fxt, .panel .dpanel .natot { width: auto; min-width: min(100%, 520px); max-width: 100%; }
.panel .dpanel .tbl td, .panel .dpanel .tbl th { padding-right: 18px; }
.panel .dpanel .chips { max-width: 720px; }
/* Helicopter Activity map */
.helimap path:not(.stb):not(.mycounty):not(.pin) { fill: var(--seg); }
.helimap .h25 { fill: none; stroke: var(--link); stroke-width: 1.5px; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.helimap .hnow { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.nukelegend i.heatk { display: inline-block; width: 64px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, rgba(255,224,110,.55), #F98C26, #D9331F); }
.nukelegend i.hnowk { background: var(--surface); border: 1.5px solid var(--ink); }
.nukelegend i.h25k { background: none; border: 1.5px dashed var(--link); }
.panel .dpanel svg.spark, .panel .dpanel .sparkx { max-width: 560px; }
.cmap path.stbg { fill: var(--seg); stroke: var(--muted); stroke-width: 1px; vector-effect: non-scaling-stroke; opacity: .7; }
.heattabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.heattabs .btn { min-height: 32px; padding: 0 12px; font-size: 13px; }
.heattabs .btn.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.heattabs .btn.on .muted { color: inherit; opacity: .75; }
.nukelegend i.heatk.cool { background: linear-gradient(90deg, rgba(158,235,255,.55), #6EA5F2, #9E4DE6); }
.natheat .hlab { font-size: 13px; font-weight: 650; }
.tile .mini:not(.omwrap .mini) { max-width: 480px; }
@container (min-width: 620px) { .tile .mini:not(.one):not(.omwrap .mini) { max-width: 660px; } }
.mini.wrap li { align-items: flex-start; } .mini.wrap li .dot { margin-top: 5px; } .mini.wrap li .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
details.more { margin: 4px 0 12px; } details.more > summary { cursor: pointer; color: var(--link); font-size: 13px; font-weight: 600; padding: 4px 0; }
/* Airspace tile: the 24-hour line only fits beside the map on wide tiles. */
.tile .omwrap .skyline, .tile .omwrap .skyline + .sparkx { display: none; }
@container (min-width: 620px) { .tile .omwrap .skyline { display: block; } .tile .omwrap .skyline + .sparkx { display: flex; } }
details.akind { border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; margin: 0 0 8px; max-width: 760px; }
details.akind > summary { cursor: pointer; padding: 10px 0; list-style-position: outside; }
details.akind[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
details.akind > .alerts { padding-bottom: 10px; }
/* Row lists: the main text takes the room between the dot and the value, so they stay on one line;
   rows with several lines of text line up at the top. */
.rows li > span:not([class]) { flex: 1 1 auto; min-width: 0; }
.rows li:has(> span:not([class]) br) { align-items: flex-start; flex-wrap: nowrap; }
.rows li:has(> span:not([class]) br) > .dot { margin-top: 6px; }
.panel .dpanel .rows:has(li > span:not([class]) br) { max-width: 760px; }
.rows li > .r { white-space: nowrap; flex: none; }

/* Crypto price chart: up to four lines, told apart by color and dash. */
.cchart { margin-top: 4px; min-height: 0; display: flex; flex-direction: column; }
.cplot { position: relative; padding-left: 38px; min-height: 0; }
.cplot .cspark { display: block; width: 100%; height: 70px; }
.cchart.big .cplot .cspark { height: 130px; }
.cyax { position: absolute; left: 0; top: 0; bottom: 0; width: 34px; font-size: 10px; line-height: 1; color: var(--muted); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.cyax span { white-space: nowrap; }
.cchart .taxis { padding-left: 38px; margin-top: 2px; }
.spark .cl1, .spark .cl2, .spark .cl3, .spark .cl4 { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark .cl1 { stroke: var(--ink); } .spark .cl2 { stroke: var(--link); }
.spark .cl3 { stroke: var(--watch-mk); stroke-dasharray: 6 3; } .spark .cl4 { stroke: var(--ok-mk); stroke-dasharray: 2 3; }
.legend .k-c1::before { background: var(--ink); } .legend .k-c2::before { background: var(--link); }
.legend .k-c3::before { background: var(--watch-mk); } .legend .k-c4::before { background: var(--ok-mk); }
.tile .cchart .cspark { height: 78px; }

/* Weather icons: a little color on the sun, moon, rain, snow, lightning and heat. Night mode keeps
   everything red. Clouds, fog and wind stay in the text color. */
:root { --i-sun: #D99A00; --i-moon: #8A93A3; --i-rain: #2F6FC0; --i-snow: #6FA8DC; --i-bolt: #D07800; --i-hot: #D93025; }
[data-theme="dark"] { --i-sun: #F5C542; --i-moon: #D9DEE7; --i-rain: #5AA2EE; --i-snow: #BFE0FF; --i-bolt: #F2B45A; --i-hot: #FF8A80; }
[data-theme="night"] { --i-sun: currentColor; --i-moon: currentColor; --i-rain: currentColor; --i-snow: currentColor; --i-bolt: currentColor; --i-hot: currentColor; }
.ico .c-sun { stroke: var(--i-sun); } .ico .c-moon { stroke: var(--i-moon); }
.ico .c-rain { stroke: var(--i-rain); } .ico .c-snow { stroke: var(--i-snow); }
.ico .c-bolt { stroke: var(--i-bolt); } .ico .c-hot { stroke: var(--i-hot); }
/* Status scales read like a heat strip: each lit step takes its own color, from calm to severe. */
.scale.status:is(.l1, .l2, .l3, .l4, .l5) span:nth-child(1) { background: var(--ok); }
.scale.status:is(.l2, .l3, .l4, .l5) span:nth-child(2) { background: color-mix(in srgb, var(--ok) 45%, var(--watch)); }
.scale.status:is(.l3, .l4, .l5) span:nth-child(3) { background: var(--watch); }
.scale.status:is(.l4, .l5) span:nth-child(4) { background: color-mix(in srgb, var(--watch) 45%, var(--alert)); }
.scale.status.l5 span:nth-child(5) { background: var(--alert); }

/* K-index bars color by strength: quiet, unsettled, active, storm levels. */
.kpbars i[data-v="0"], .kpbars i[data-v="1"], .kpbars i[data-v="2"] { background: color-mix(in srgb, var(--ok) 60%, var(--line)); }
.kpbars i[data-v="3"] { background: var(--ok); }
.kpbars i[data-v="4"] { background: var(--watch); }
.kpbars i[data-v="5"] { background: color-mix(in srgb, var(--watch) 45%, var(--alert)); }
.kpbars i[data-v="6"], .kpbars i[data-v="7"], .kpbars i[data-v="8"], .kpbars i[data-v="9"] { background: var(--alert); }
.trio .trioscale { display: flex; gap: 2px; margin-top: 4px; width: 100%; max-width: 90px; }
.trio .trioscale span { height: 4px; flex: 1; border-radius: 2px; }
.nukehead { display: flex; align-items: center; gap: 6px; margin: 2px 0 6px; min-width: 0; }
.nukehead .ico { width: 18px; height: 18px; flex: none; color: var(--muted); }
.nukehead span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .viz li.cutrow { visibility: hidden; }
.sechead .refbtn { min-height: 30px; padding: 0 12px; font-size: 13px; flex: none; }

/* Space: Spacecraft overhead map */
.spacemap { width: 100%; height: auto; display: block; }
.tile .spacewrap .ommap { min-width: 0; }
.spacemap .csea { fill: transparent; }
.spacemap .cland { fill: var(--muted); opacity: .35; stroke: none; }
.spacemap .strack { fill: none; stroke: var(--link); stroke-width: 1.5; stroke-dasharray: 4 3; opacity: .8; }
.spacemap .sv { fill: var(--muted); opacity: .7; }
.spacemap .ss { fill: var(--link); opacity: .8; }
.spacemap .splace { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.spacemap .splace.me { fill: var(--ink); }
.spacemap .sbig circle { fill: var(--watch-mk); stroke: var(--surface); stroke-width: 1.5; }
.spacemap .sbig text { fill: var(--ink); font-size: 13px; font-weight: 700; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.spacemap:not(.big) .sbig text { font-size: 16px; }
.nukelegend i.sbigk { background: var(--watch-mk); border-radius: 50%; }
.nukelegend i.ssk { background: var(--link); border-radius: 50%; }
.nukelegend i.svk { background: var(--muted); border-radius: 50%; }
.nukelegend i.strackk { border-top: 2px dashed var(--link); height: 0; background: none; }
.nukelegend i.splacek { border: 1.5px solid var(--ink); border-radius: 50%; background: transparent; }

/* Color key (Details and Settings) */
.ckeywrap { margin-top: 8px; } .ckeywrap summary { cursor: pointer; color: var(--link); }
.ckey { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.ckey li { display: flex; align-items: center; gap: 8px; }
.ckey .pill { flex: none; min-width: 116px; box-sizing: border-box; text-align: center; }
.ckbox { flex: none; width: 116px; padding: 3px 0; border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--watch); text-align: center; }
.ckbox.st-minor { background: var(--minor-bg); color: var(--minor); }

/* ---------- Phones: one layer of framing, not three ----------
   Sections drop their panel (no background, border or padding), so cards run nearly edge to edge
   with a single 10px page margin. Cards size to their content (up to the usual height), so a
   short card doesn't leave a blank block. Toolbar buttons keep their words on one line. */
@media (max-width: 660px) {
  .wrap { padding: 10px 10px 40px; gap: 12px; }
  .sections { gap: 6px; }
  .wsec, .wsec.shut, .wsec.empty { background: none; border: 0; border-radius: 0; padding: 0; }
  .wsec + .wsec { border-top: 1px solid var(--line); padding-top: 4px; }
  .sechead { min-height: 44px; margin-bottom: 4px; }
  .wsec .grid { gap: 8px; }
  .wsec .grid > .tile { height: auto; max-height: calc(var(--card-h) + 40px); min-height: 0; }
  .tile { padding: 14px; border-radius: 8px; }
  .sitrep { padding: 14px; border-radius: 10px; }
  .whead { gap: 6px; }
  .whead .btnrow { gap: 6px; }
  .whead .btn { white-space: nowrap; min-height: 36px; padding: 0 11px; font-size: 13px; }
  /* Once stuck while scrolling, keep what you need on the way: Jump to, Collapse all, Dev. */
  .whead.stuck #add-widget, .whead.stuck #edit-layout { display: none; }
  .whead.stuck .btn { padding: 0 10px; }
}

/* ---------- Phones: section shortcuts as one swipeable row, and a roomier Right now panel ---------- */
@media (max-width: 660px) {
  .whead .lg { display: none; }
  .secnav { display: flex; gap: 8px; overflow-x: auto; margin: -2px -10px 6px; padding: 2px 10px 6px; scroll-snap-type: x proximity; scroll-padding-inline: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .secnav::-webkit-scrollbar { display: none; }
  .secnav a { position: relative; flex: none; min-height: 40px; padding: 0 14px; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; font-size: 14px; font-weight: 500; scroll-snap-align: start; }
  .secnav a .nm { overflow: visible; }
  .secnav a:active { background: var(--sunk); }

  .sitrep { gap: 16px; padding: 16px; }
  .sitrep .shead { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; align-items: start; }
  .sitrep .shead .fresh { display: contents; }
  .sitrep .eyebrow { grid-column: 1; grid-row: 1; font-size: 11px; line-height: 1.5; }
  .sitrep .freshtext { grid-column: 1; grid-row: 2; align-items: flex-start; }
  .sitrep .fresh button.count.since { text-align: left; }
  .sitrep .sbtns { grid-column: 2; grid-row: 1 / span 2; align-self: start; flex-direction: column; align-items: stretch; gap: 6px; }
  .sitrep .refresh, .sitrep .printbtn { min-height: 36px; padding: 0 12px; }
  .sitrep h1 { font-size: 23px; line-height: 1.22; margin-bottom: 12px; }
  .sitrep .sub { font-size: 15px; line-height: 1.5; }
  .sitrep .bline { margin: 0 0 10px; }
  .sitrep .bline.st-alert, .sitrep .bline.st-watch { padding: 2px 0 2px 12px; border-left: 3px solid currentColor; }
  .sitrep .bline.st-alert { border-left-color: var(--h-alert); } .sitrep .bline.st-watch { border-left-color: var(--h-watch); }
  .sitrep .bline.bextra { font-size: 14px; }
  .sitrep .bline.bquiet { font-size: 13px; margin-top: 4px; }
  .hchips { gap: 8px; }
  .hchip { min-height: 38px; padding: 0 12px; border-radius: 8px; font-size: 14px; }
  .hchip.fold { width: 100%; justify-content: flex-start; text-align: left; padding: 8px 12px; line-height: 1.35; }
}

/* ---------- Phones: controls above Right now fill the width; Details opens as a full-width sheet ---------- */
@media (max-width: 660px) {
  .scopebar { gap: 10px; }
  #scopes { display: flex; flex-wrap: nowrap; width: 100%; }
  #scopes button { flex: 1; padding: 0 4px; min-height: 40px; font-size: 14px; }

  dialog.panel { width: 100%; max-width: 100%; border-left: 0; }
  .panel .inner { padding: 12px 16px 28px; gap: 16px; }
  .panel .phead { padding-top: 6px; }
  .panel .phead::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; background: var(--surface); }
}

/* ---------- Menus and the place sheet (shown on phones) ---------- */
.placebtn, .modemenu, .moremenu { display: none; }
.modemenu, .moremenu { position: relative; }
.modemenu > summary, .moremenu > summary { list-style: none; cursor: pointer; }
.modemenu > summary::-webkit-details-marker, .moremenu > summary::-webkit-details-marker { display: none; }
.modemenu > summary svg { width: 20px; height: 20px; }
.modepop, .morepop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 240px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 2px; }
.modepop button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 15px; text-align: left; cursor: pointer; }
.modepop button svg { width: 20px; height: 20px; flex: none; }
.modepop button[aria-checked="true"] { background: var(--sunk); font-weight: 650; }
.modepop button[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--link); }
.modepop .note { margin: 4px 12px 6px; font-size: 12px; color: var(--muted); }
.morepop .btn { justify-content: flex-start; border: 0; background: transparent; min-height: 44px; font-size: 15px; font-weight: 500; }
.morepop .btn:hover { background: var(--sunk); }

dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 88vh; padding: 0; border: 0; border-radius: 16px 16px 0 0; background: var(--surface); color: var(--ink); box-shadow: 0 -10px 40px rgba(0, 0, 0, .4); }
dialog.sheet::backdrop { background: rgba(5, 10, 15, .5); }
.sheethead { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 8px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.sheethead::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line); }
.sheethead h2 { margin: 8px 0 0; font-size: 17px; }
.sheetbody { padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }
.sheetbody .places { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 6px; }
.sheetbody .places .lbl { display: none; }
.sheetbody .places .chip { width: 100%; justify-content: flex-start; min-height: 52px; padding: 0 16px; border-radius: 10px; font-size: 15px; gap: 8px; }
.sheetbody .places .chip span { color: var(--muted); }
.sheetbody .places .chip[aria-pressed="true"] span { color: inherit; opacity: .75; }
.sheetbody .places .chip.add { justify-content: center; }
.sheetbody .loc { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); gap: 4px; }
.sheetbody .loc .place { font-size: 15px; }

@media (max-width: 660px) {
  /* App bar: brand and time on the left, Appearance and Settings on the right. */
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; }
  .topbar .left { display: contents; }
  .brand { grid-column: 1; align-items: flex-start; gap: 10px; min-width: 0; }
  .brand .name { font-size: 19px; }
  .brand .time { font-size: 12.5px; line-height: 1.45; }
  .brand #now-tz, .brand #now-z { display: inline; }
  .brand #now-tz::after { content: " · "; }
  .right { grid-column: 2; grid-row: 1; align-items: flex-end; }
  .right .row { gap: 6px; }
  .right #modes, .modenote { display: none; }
  .modemenu { display: block; }
  .right .btn.icon, .modemenu > summary { width: 44px; min-height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
  /* Where: one place button (opens the sheet), then the five views. */
  .scopebar { flex-direction: column; align-items: stretch; gap: 8px; }
  .placebtn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 12px 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
  .placebtn .pin { width: 20px; height: 20px; flex: none; color: var(--link); }
  .placebtn .pt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .placebtn .pt b { font-size: 15px; }
  .placebtn .pt span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .placebtn .pc { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
  .placebtn .chev { width: 18px; height: 18px; flex: none; color: var(--muted); }
  /* Sections: one Jump to menu (the same before and after you scroll); extra actions behind •••. */
  .secnav { display: none; }
  .whead { flex-wrap: nowrap; }
  .whead h2 { display: none; }
  .whead .jumpmenu, .whead.stuck .jumpmenu { display: flex; flex: 1; min-width: 0; align-self: stretch; align-items: center; }
  .whead .jumpmenu > summary { width: 100%; justify-content: flex-start; }
  .whead .btnrow { flex-wrap: nowrap; }
  #add-widget, #edit-layout { display: none; }
  .moremenu { display: block; }
  .moremenu > summary { letter-spacing: 1px; padding: 0 12px; }
  /* Jump to opens as a bottom sheet: every section at once, two columns, big targets. */
  .jumppop { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; min-width: 0; max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 22px 12px calc(16px + env(safe-area-inset-bottom)); max-height: 78vh; border-radius: 16px 16px 0 0; border-width: 1px 0 0; box-shadow: 0 0 0 100vmax rgba(5, 10, 15, .5); }
  .jumppop::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line); }
  .jumppop a { background: var(--sunk); border-radius: 10px; }
  .whead .jumpmenu > summary, .whead .btnrow .btn, .whead .moremenu > summary { min-height: 40px; }
  .whead .jumpmenu > summary::after { content: "▾"; margin-left: auto; font-size: 11px; color: var(--muted); }
  .whead .morepop .btn { width: 100%; justify-content: flex-start; padding: 0 14px; flex: none; }
  .modepop { min-width: 270px; } .modepop button span { white-space: nowrap; }
  .jumppop a { min-height: 48px; padding: 6px 12px; white-space: normal; line-height: 1.2; font-size: 14.5px; }
  .jumppop a .small { display: none; }
  .whead.stuck .jumpmenu { flex: 1; }
  .whead.stuck .btnrow, .whead .btnrow { width: auto; flex: none; margin-top: 0; }
  .whead.stuck .btnrow .btn { flex: none; min-height: 36px; padding: 0 11px; }
  .whead.stuck .jumpmenu > summary.btn { flex: 1; min-height: 36px; justify-content: flex-start; }
}

/* ---------- 1.86.0 preview cards ---------- */
.heatdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 4px 0 2px; }
.heatdays > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px; border-radius: 6px; font-size: 11px; color: var(--ink); }
.heatdays > div b { font-size: 16px; }
.hr0 { background: #3e9b5f33; } .hr1 { background: #e6c21f40; } .hr2 { background: #f08a2a4d; } .hr3 { background: #d9302566; } .hr4 { background: #b0179480; }
.dot.hr0 { background: #3e9b5f; } .dot.hr1 { background: #e6c21f; } .dot.hr2 { background: #f08a2a; } .dot.hr3 { background: #d93025; } .dot.hr4 { background: #b01794; }
svg.drybar { display: block; width: 100%; height: 12px; border-radius: 4px; overflow: hidden; margin: 6px 0 4px; }
.dry-none { fill: var(--sunk); background: var(--sunk); } .dry-d0 { fill: #ffff00; background: #ffff00; } .dry-d1 { fill: #fcd37f; background: #fcd37f; } .dry-d2 { fill: #ffaa00; background: #ffaa00; } .dry-d3 { fill: #e60000; background: #e60000; } .dry-d4 { fill: #730000; background: #730000; }
.drylegend { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.drylegend span { display: inline-flex; align-items: center; gap: 4px; }
.drylegend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; border: 1px solid var(--line); }
.dot.st-minor { background: var(--minor-mk); }

.dryscale { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; margin: 6px 0 2px; }
.dryscale > div { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 0 0 4px; border-radius: 6px; background: var(--sunk); overflow: hidden; text-align: center; }
.dryscale > div i { display: block; width: 100%; height: 6px; margin-bottom: 3px; }
.dryscale > div b { font-size: 14px; }
.dryscale > div span { font-size: 11px; line-height: 1.2; color: var(--muted); }
.dryscale + .drykey { margin: 4px 0 0; font-size: 11.5px; }
.dryscale > div.zero { opacity: .45; }
.dryscale > div.top { box-shadow: inset 0 0 0 2px var(--ink); opacity: 1; }
.defs { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; gap: 6px; }

.chambers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.chambers > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; background: var(--sunk); min-width: 0; }
.chambers .cn { display: flex; align-items: center; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.chambers b { font-size: 16px; }
.chambers .cl { font-size: 12.5px; color: var(--muted); line-height: 1.35; }

.satline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; margin: 8px 0 0; padding-top: 7px; border-top: 1px solid var(--line); font-size: 13px; }
.satline > span { white-space: nowrap; }
.satline .sl { color: var(--muted); font-weight: 600; letter-spacing: .02em; }

/* Smoke & haze: satellite plumes (light to heavy in warm grays), past-week strip */
.smokemap { display: block; width: 100%; height: auto; border-radius: 10px; margin: 4px 0 6px; }
.smokemap .smk1, .smokemap .smk2, .smokemap .smk3 { stroke: none; }
.smokemap .smkbg { fill: var(--sunk); }
.smokemap .smk1, .nukelegend i.smk1k { fill: #C9B79C; background: #C9B79C; fill-opacity: .45; }
.smokemap .smk2, .nukelegend i.smk2k { fill: #9C7F5C; background: #9C7F5C; fill-opacity: .55; }
.smokemap .smk3, .nukelegend i.smk3k { fill: #5E4630; background: #5E4630; fill-opacity: .7; }
.nukelegend i.smk1k, .nukelegend i.smk2k, .nukelegend i.smk3k { border-radius: 2px; opacity: .85; }
.nukelegend i.smkmek { background: var(--link); }
.smokemap .smkring { fill: none; stroke: var(--muted); stroke-dasharray: 4 4; stroke-opacity: .6; }
.smokemap .smklbl { fill: var(--muted); font-size: 12px; }
.smokemap .smkme { fill: var(--link); stroke: var(--surface); stroke-width: 2; }
.smokemap .smkother { fill: var(--muted); }
.smokemap .smkname { fill: var(--ink); font-size: 14px; font-weight: 650; paint-order: stroke; stroke: var(--sunk); stroke-width: 4px; }
.smkweek { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 6px 0 10px; }
.smkweek .smkd { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.smkweek .smkd i { display: block; width: 100%; height: 14px; border-radius: 4px; background: var(--sunk); border: 1px solid var(--line); }
.smkweek .smk1 i { background: #C9B79C; } .smkweek .smk2 i { background: #9C7F5C; } .smkweek .smk3 i { background: #5E4630; }
.smkweek .smkx i { background: repeating-linear-gradient(45deg, var(--sunk) 0 4px, var(--line) 4px 6px); }
.smkweek b { font-weight: 600; }
/* Air travel volume: the busiest day of the past 4 weeks */
.spark .tsamark { stroke: var(--link); stroke-width: 1.5; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.legend .k-m::before { width: 2px; height: 10px; background: var(--link); }

/* Pass heads-up chip in the SITREP: calm blue, not a status */
.hchip.heads { background: var(--minor-bg); color: var(--minor); border-color: transparent; font-weight: 600; }
.tile.is-heads { box-shadow: inset 0 3px 0 var(--minor-mk); background: linear-gradient(var(--minor-bg), var(--surface) 56px); }
/* FlyItalyADSB vs ADSB.lol: ADSB.lol snapshots as dots on the FlyItalyADSB line */
.spark .cmpdot { stroke: var(--link); stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.legend .k-d::before { width: 7px; height: 7px; border-radius: 50%; background: var(--link); }
.okword { color: var(--ok); font-size: 12px; font-weight: 650; white-space: nowrap; }
.chip.go { color: var(--link); font-weight: 600; }
.chip.go:hover, .chip.go:focus-visible { border-color: var(--link); }
.headsline { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 2px 0; border: 0; background: none; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; }
.headsline .hd { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); box-sizing: border-box; }
.headsline.on { color: var(--minor); font-weight: 600; }
.headsline.on .hd { background: var(--minor-mk); border-color: var(--minor-mk); }
.headsline:hover, .headsline:focus-visible { text-decoration: underline; }
.headsnarrow .headsline { margin: 0 0 4px; }
.headswide { display: none; }
@container (min-width: 620px) { .headsnarrow { display: none; } .headswide { display: block; } }
/* Current location chip: a crosshair, and the town it's near */
.chip.curchip .pin { width: 15px; height: 15px; flex: none; margin-right: 2px; color: var(--link); }
.chip.curchip[aria-pressed="true"] .pin { color: inherit; }
/* Nearby help Details: one clear band per kind of place, so a long list is easy to scan */
.helphd { display: flex; align-items: center; gap: 10px; margin: 22px 0 8px; padding: 10px 12px; border-radius: 8px; background: var(--sunk); border-left: 4px solid var(--link); font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 700; }
.helphd .ico { width: 22px; height: 22px; flex: none; }
.helphd .hcount { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); }
.helphd.hh-er { border-left-color: #D9534F; } .helphd.hh-er .ico { color: #D9534F; }
.helphd.hh-fire { border-left-color: #E8833A; } .helphd.hh-fire .ico { color: #E8833A; }
.helphd.hh-police { border-left-color: #4A7FD4; } .helphd.hh-police .ico { color: #4A7FD4; }
.helphd.hh-urgent, .helphd.hh-pharmacy { border-left-color: #3BA55C; } .helphd.hh-urgent .ico, .helphd.hh-pharmacy .ico { color: #3BA55C; }
.helphd.hh-other { border-left-color: var(--muted); }
/* Logo star (working name Starfix Nine): the star itself carries the connection outline and glow */
.starmark .smray { fill: var(--surface); stroke: var(--muted); stroke-width: 1.3; stroke-linejoin: round; transition: stroke .3s ease; }
.starmark .smdiag { stroke: var(--link); stroke-width: 0.9; stroke-linecap: round; }
.starmark .smcore { fill: var(--link); }
.brand .compass.net-up .starmark .smray { stroke: var(--ok); }
.brand .compass.net-up .starmark { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--ok) 70%, transparent)); }
.brand .compass.net-down .starmark .smray { stroke: var(--alert); }
.brand .compass.net-down .starmark { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--alert) 80%, transparent)); }
.brand .compass:has(.starmark)::after { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .brand .compass.net-up .starmark { animation: starping 3s ease-in-out infinite; }
  .brand .compass.net-down .starmark { animation: starwarn 1.6s ease-in-out infinite; }
  @keyframes starping { 50% { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--ok) 85%, transparent)); } }
  @keyframes starwarn { 50% { filter: drop-shadow(0 0 1px color-mix(in srgb, var(--alert) 40%, transparent)); } }
}
[data-theme="night"] .starmark .smdiag { stroke: #D9574B; }
[data-theme="night"] .starmark .smcore { fill: #FF8A7A; }

/* 1.99: Right now panel color (Settings > Appearance). One background per choice; the panel stays
   dark in light and dark view and its text ignores the page theme. Night mode keeps its red panel. */
:root { --panel-bg: #2a2f36; }
:root[data-panel="graphite"] { --panel-bg: #2a2f36; }
:root[data-panel="basalt"] { --panel-bg: #302e2b; }
:root[data-panel="spruce"] { --panel-bg: #1d3534; }
:root[data-panel="harbor"] { --panel-bg: #1f3340; }
:root[data-panel="dusk"] { --panel-bg: #2a2c3f; }
:root:not([data-theme="night"]) .sitrep {
  --hero: var(--panel-bg); --hero-ink: #ffffff; --hero-muted: #a3acb7; --hero-chip: rgba(255, 255, 255, 0.07); --hero-line: rgba(255, 255, 255, 0.08);
  --h-watch: #f2b544;
  background: var(--panel-bg); color: #ffffff; border-color: rgba(255, 255, 255, 0.08);
}
:root:not([data-theme="night"]) .sitrep .sub, :root:not([data-theme="night"]) .sitrep .sbdown p { color: #c9d1d9; }
:root:not([data-theme="night"]) .sitrep .bline b, :root:not([data-theme="night"]) .sitrep h1 { color: #ffffff; }
:root:not([data-theme="night"]) .sitrep .bline.st-watch b, :root:not([data-theme="night"]) .sitrep .bextra b.st-watch { color: #f2b544; }
:root:not([data-theme="night"]) .sitrep .hchip { background: rgba(255, 255, 255, 0.07); color: #ffffff; }
:root:not([data-theme="night"]) .sitrep .hchip.fold { background: transparent; border-color: #a3acb7; color: #ffffff; }
:root:not([data-theme="night"]) .sitrep .hchip.boardbtn, :root:not([data-theme="night"]) .sitrep .refresh { background: #ffffff; color: #16202b; }
:root:not([data-theme="night"]) .sitrep .sbtag { background: #ffffff; color: #16202b; }
/* Inner alert cards: always the dark card palette, separated from the panel by a faint border. */
:root:not([data-theme="night"]) .sitrep .sitboard {
  --bg: #0F161D; --surface: #1b1f25; --sunk: #232831; --line: #2f3540; --ink: #E8EDF2; --muted: #a3acb7; --link: #c9d1d9;
  --btn: #E8EDF2; --btn-ink: #0F161D; --seg: #232831;
  --ok: #7FD4A0; --ok-bg: #173323; --watch: #f2b544; --watch-bg: #3a2e18; --alert: #FF8A80; --alert-bg: #3D1A18;
  --noresp: #C9A8F0; --noresp-bg: #2C2140; --none: #a3acb7; --none-bg: #262b33; --rain: #5AA2EE;
  --ok-mk: #7FD4A0; --watch-mk: #f2b544; --alert-mk: #FF8A80; --noresp-mk: #C9A8F0; --none-mk: #a3acb7;
  --minor: #8CC4DE; --minor-bg: #192F3B; --minor-mk: #7DB6D3;
  --focus: #8CC4DE; color-scheme: dark; color: var(--ink);
}
:root:not([data-theme="night"]) .sitrep .sbcard .tile { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
@media (prefers-reduced-motion: no-preference) { .sitrep { transition: background-color .15s ease; } }
/* Settings: swatches */
.panelpick { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 6px 0 4px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 5px; border: none; background: transparent; color: var(--ink); cursor: pointer; padding: 4px; border-radius: 10px; font-size: 12px; min-width: 56px; }
.swatch .chip { display: block; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.swatch[aria-checked="true"] .chip { outline: 2px solid var(--focus); outline-offset: 2px; }
.swatch[aria-checked="true"] .swl { font-weight: 700; }
.swatch:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.chip.sw-graphite { background: #2a2f36; } .chip.sw-basalt { background: #302e2b; } .chip.sw-spruce { background: #1d3534; } .chip.sw-harbor { background: #1f3340; } .chip.sw-dusk { background: #2a2c3f; }
.panelprev { display: flex; flex-direction: column; gap: 3px; background: var(--panel-bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; min-width: 190px; color: #ffffff; }
.panelprev .ppe { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a3acb7; }
.panelprev b { font-size: 14px; color: #ffffff; } .panelprev .ppb { font-size: 12px; color: #c9d1d9; }
.panelprev .ppw { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #3a2e18; color: #f2b544; }
[data-theme="night"] .panelprev { background: var(--hero); }

/* Flight restrictions map */
.tfrmap .tfa { stroke-width: 1.5; fill-opacity: .28; }
.tfrmap .tfdot { stroke: var(--surface); stroke-width: 1.5; }
.tf-vip { fill: var(--watch-mk); stroke: var(--watch-mk); } .tf-space { fill: var(--rain); stroke: var(--rain); }
.tf-haz { fill: var(--alert-mk); stroke: var(--alert-mk); } .tf-oth { fill: var(--none-mk); stroke: var(--none-mk); }
.nukelegend i.tfk { border-radius: 3px; opacity: .7; }
.nukelegend i.tfk.tf-vip { background: var(--watch-mk); } .nukelegend i.tfk.tf-space { background: var(--rain); } .nukelegend i.tfk.tf-haz { background: var(--alert-mk); } .nukelegend i.tfk.tf-oth { background: var(--none-mk); }

/* Military aircraft map */
.milmap .mildot { fill: var(--none-mk); fill-opacity: .55; stroke: var(--surface); stroke-width: 1; }
.milmap .milbase rect { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: .7; }
.nukelegend i.mildotk { background: var(--none-mk); opacity: .7; }
.nukelegend i.milbasek { background: none; border: 1.5px solid var(--ink); border-radius: 1px; opacity: .7; }

.navtext { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; line-height: 1.45; margin: 6px 0; }

/* Border wait map: waits as a warm sequential scale (short to long), not the status colors. */
.bwmap .bwpt circle { stroke: var(--surface); stroke-width: 1.2; }
.bwmap .bwpt text { font-size: 15px; font-weight: 650; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.bw-w0 circle, .nukelegend i.bwk.bw-w0 { fill: #6FBF9A; background: #6FBF9A; }
.bw-w1 circle, .nukelegend i.bwk.bw-w1 { fill: #E3C04F; background: #E3C04F; }
.bw-w2 circle, .nukelegend i.bwk.bw-w2 { fill: #E08A3C; background: #E08A3C; }
.bw-w3 circle, .nukelegend i.bwk.bw-w3 { fill: #B8434E; background: #B8434E; }
.bw-none circle, .nukelegend i.bwk.bw-none { fill: var(--none-mk); background: var(--none-mk); opacity: .7; }
.bwmap .bw-closed circle { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 2 2; }
.nukelegend i.bwk.bw-closed { background: none; border: 1.5px dashed var(--muted); }
[data-theme="night"] .bwpt circle { fill: var(--ink); }

/* Small mark before a few card titles */
.tile .tname .ico.tico { width: 15px; height: 15px; vertical-align: -3px; margin-right: 6px; stroke-width: 2.2; color: var(--muted); }
.debtchart.short { height: 44px; }
.usmap .counties { fill: none; stroke: var(--muted); stroke-opacity: .3; stroke-width: .8; }
.usmap .counties + .borders { stroke: var(--muted); stroke-opacity: .85; stroke-width: 1.6; }
.usmap.local path.counties { vector-effect: non-scaling-stroke; }

/* Map view (test): a full-page map with layers. */
html.mvopen, html.mvopen body { overflow: hidden; }
.mapview { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); }
.mvbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.mvbar b { font-size: 16px; } .mvtest { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--minor-bg); color: var(--minor); }
.mvhint { color: var(--muted); } .mvsp { flex: 1; }
.mvbody { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
.mapview.nolayers .mvbody { grid-template-columns: minmax(0, 1fr); } .mapview.nolayers .mvlayers { display: none; }
.mvmap { position: relative; min-height: 0; overflow: hidden; background: var(--sunk); }
.mvsvg { width: 100%; height: 100%; margin: 0; touch-action: none; cursor: grab; display: block; }
.mvsvg:active { cursor: grabbing; }
.mvsvg .nation { fill: var(--surface); stroke: var(--muted); }
.mvsvg .borders { stroke: var(--muted); stroke-opacity: .7; }
.mvsvg .mvinset { fill: none; stroke: var(--muted); stroke-opacity: .35; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.mvsvg circle, .mvsvg rect, .mvsvg path.mv-tfr, .mvsvg path.mv-out { vector-effect: non-scaling-stroke; }
.mvsvg .mv-quake { fill: #8A5A2B; fill-opacity: .55; stroke: #8A5A2B; stroke-width: 1; }
.mvsvg .mv-fire { fill: #D9531E; fill-opacity: .7; stroke: var(--surface); stroke-width: 1; }
.mvsvg .mv-tfr { fill: #C2185B; fill-opacity: .16; stroke: #C2185B; stroke-width: 2.2; stroke-dasharray: 6 3; }
.mvsvg .mv-tfr.vip { fill-opacity: .24; stroke-width: 2.8; stroke-dasharray: none; }
.mvsvg .mv-tfrmk { fill: #C2185B; stroke: var(--surface); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.mvsvg .mv-tfr.space, .mvsvg .mv-tfrmk.space { stroke: #6A3FB5; } .mvsvg .mv-tfr.space { fill: #6A3FB5; } .mvsvg .mv-tfrmk.space { fill: #6A3FB5; }
.mvsvg .mv-heat { fill: #F2A33A; fill-opacity: .8; stroke: #B5532A; stroke-width: .8; } .mvsvg .mv-heat.hot { fill: #E4572E; }
.mvsvg .mv-delay { fill: var(--watch-mk); stroke: var(--surface); stroke-width: 1.5; } .mvsvg .mv-delay.stop { fill: var(--alert-mk); }
.mvsvg .mv-air { fill: #2F6FC0; stroke: none; }
.mvsvg path.mv-air { vector-effect: none; }
.mvsvg .mv-heli { fill: #8A5CD0; fill-opacity: .35; stroke: none; } .mvsvg .mv-heli.now { fill-opacity: .8; stroke: var(--surface); stroke-width: 1; }
.mvsvg .mv-cluster { fill: none; stroke: #8A5CD0; stroke-width: 2.2; stroke-dasharray: 3 2; }
.mvsvg .mv-cluster.usual { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 1 2; opacity: .6; }
.mvsvg .mv-mil { fill: #4FAE5A; fill-opacity: .6; stroke: var(--surface); stroke-width: 1; }
.mvsvg .mv-base { fill: none; stroke: #4B5D3A; stroke-width: 1.4; }
.mvsvg .mv-port { fill: #1F7A8C; fill-opacity: .7; stroke: var(--surface); stroke-width: 1; }
.mvsvg .mv-bw { stroke: var(--surface); stroke-width: 1; } .mvsvg .mv-bw.w0 { fill: #6FBF9A; } .mvsvg .mv-bw.w1 { fill: #E3C04F; } .mvsvg .mv-bw.w2 { fill: #E08A3C; } .mvsvg .mv-bw.w3 { fill: #B8434E; } .mvsvg .mv-bw.w-none { fill: var(--none-mk); }
.mvsvg .mv-out { stroke: none; fill-opacity: .5; } .mvsvg .mv-out.o0 { fill: #F6D9A8; } .mvsvg .mv-out.o1 { fill: #EDB15F; } .mvsvg .mv-out.o2 { fill: #D9822B; } .mvsvg .mv-out.o3 { fill: #B4531A; }
.mvsvg .mv-spc { stroke-width: 1; vector-effect: non-scaling-stroke; fill-opacity: .22; }
.mvsvg .mv-spc.c2 { fill: #9CCB8F; stroke: #6FA25F; fill-opacity: .12; } .mvsvg .mv-spc.c3 { fill: #3E8E41; stroke: #2E6B30; } .mvsvg .mv-spc.c4 { fill: #E8C33A; stroke: #B8962A; }
.mvsvg .mv-spc.c5 { fill: #E8893A; stroke: #B5642A; } .mvsvg .mv-spc.c6 { fill: #D13A3A; stroke: #A22A2A; } .mvsvg .mv-spc.c8 { fill: #C03AC0; stroke: #8E2A8E; }
.mvsvg .mv-lsr { stroke: var(--surface); stroke-width: 1; vector-effect: non-scaling-stroke; fill: #6B7280; }
.mvsvg .mv-lsr.torn { fill: #D13A3A; } .mvsvg .mv-lsr.hail { fill: #2E7D32; } .mvsvg .mv-lsr.wind { fill: #1F5FA8; } .mvsvg .mv-lsr.flood { fill: #0E7C86; } .mvsvg .mv-lsr.winter { fill: #7B61C9; }
.mvsvg .mv-smoke { stroke: none; } .mvsvg .mv-smoke.s1 { fill: #9AA3AD; fill-opacity: .28; } .mvsvg .mv-smoke.s2 { fill: #77808B; fill-opacity: .36; } .mvsvg .mv-smoke.s3 { fill: #545C66; fill-opacity: .45; }
.mvsvg .mv-storm circle { fill: #1F5FA8; fill-opacity: .25; stroke: #1F5FA8; stroke-width: 1.8; } .mvsvg .mv-storm path { fill: none; stroke: #1F5FA8; stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.mvsvg .mv-storm.hu circle { fill: #B8434E; stroke: #B8434E; } .mvsvg .mv-storm.hu path { stroke: #B8434E; }
.mvsvg .mv-nuke circle { fill: var(--surface); stroke: #2E7D6B; stroke-width: 1.8; } .mvsvg .mv-nuke circle.core { fill: #2E7D6B; stroke: none; }
.mvsvg .mv-nuke.part circle { stroke: #C99A2E; } .mvsvg .mv-nuke.part circle.core { fill: #C99A2E; } .mvsvg .mv-nuke.off circle { stroke: var(--muted); stroke-dasharray: 2 2; } .mvsvg .mv-nuke.off circle.core { fill: none; }
.mvsvg .mv-shelter { fill: #2F7D3A; stroke: var(--surface); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.mvsvg .mv-nav { fill: #1F4E79; stroke: var(--surface); stroke-width: 1.2; vector-effect: non-scaling-stroke; } .mvsvg .mv-nav.missile, .mvsvg .mv-nav.gunnery { fill: #B8434E; }
.mvsvg .mv-navarea { fill: #1F4E79; fill-opacity: .08; stroke: #1F4E79; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; } .mvsvg .mv-navarea.missile, .mvsvg .mv-navarea.gunnery { fill: #B8434E; stroke: #B8434E; }
.mvsvg .mv-radar { opacity: .75; pointer-events: none; }
.mvsvg .mv-lbl { font-size: 12px; font-weight: 650; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; pointer-events: none; }
.mvsvg .mv-cty { font-size: 10px; fill: var(--muted); text-anchor: middle; pointer-events: none; }
.mvsvg .counties { stroke-opacity: .35; }
.mvinfo { position: absolute; left: 12px; right: 12px; bottom: 36px; max-width: 520px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.15); font-size: 13px; white-space: pre-line; }
.mvinfo { white-space: normal; padding-right: 36px; max-height: 45%; overflow-y: auto; }
.mvi-row { display: flex; gap: 10px; align-items: flex-start; }
.mvi-row + .mvi-row { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.mvi-row > div { display: flex; flex-direction: column; gap: 1px; white-space: pre-line; }
.mvi-ico { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--sunk); color: var(--ink); }
.mvi-ico .ico, [data-theme="night"] .mvi-ico .ico { width: 17px; height: 17px; color: inherit; }
.mvi-ico.quake { color: #8A5A2B; } .mvi-ico.fire { color: #D9531E; } .mvi-ico.heat { color: #C8691F; } .mvi-ico.tfr { color: #C2185B; } .mvi-ico.delay { color: var(--watch-mk); }
.mvi-ico.severe { color: #B8962A; } .mvi-ico.lsr { color: #1F5FA8; } .mvi-ico.smoke { color: #545C66; } .mvi-ico.storm { color: #1F5FA8; } .mvi-ico.nuke { color: #2E7D6B; } .mvi-ico.shelter { color: #2F7D3A; } .mvi-ico.nav { color: #1F4E79; }
.mvi-ico.air { color: #2F6FC0; } .mvi-ico.heli { color: #8A5CD0; } .mvi-ico.mil { color: #4FAE5A; } .mvi-ico.base { color: #4B5D3A; } .mvi-ico.port { color: #1F7A8C; } .mvi-ico.border { color: #B8434E; } .mvi-ico.out { color: #B4531A; }
.mvclose { position: absolute; top: 6px; right: 6px; border: none; background: none; color: var(--muted); font-size: 15px; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; }
.mvclose:hover { background: var(--sunk); color: var(--ink); }
.mvtab { position: absolute; top: 12px; left: 12px; width: min(360px, calc(100% - 24px)); max-height: calc(100% - 70px); overflow-y: auto; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.15); font-size: 13px; }
.mvtab h4 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 28px 8px 0; font-size: 14px; }
.mvtab ol { list-style: none; margin: 0; padding: 0; }
.mvtab li button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; padding: 7px 6px; border: none; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; cursor: pointer; border-radius: 4px; }
.mvtab li:first-child button { border-top: none; }
.mvtab li button:hover { background: var(--sunk); }
.mvcount { font-size: inherit; padding: 0; min-height: 0; }
.mvscale { position: absolute; left: 12px; bottom: 10px; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.mvscale i { display: block; height: 6px; border: 1.5px solid var(--muted); border-top: none; }
.mvlayers { border-left: 1px solid var(--line); background: var(--surface); overflow-y: auto; padding: 12px 14px; }
.mvlayers ul { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mvlayers label { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: start; padding: 6px 4px; border-radius: 8px; cursor: pointer; }
.mvlayers label:hover { background: var(--sunk); }
.mvlayers label > span { display: flex; flex-direction: column; } .mvst { color: var(--muted); } .mvst.fail { color: var(--noresp); font-weight: 600; }
.mvsw { width: 14px; height: 14px; border-radius: 50%; margin-top: 2px; display: inline-block; }
.mvsw.radar { background: linear-gradient(135deg, #3FBF5A, #E3C04F 55%, #D93025); } .mvsw.quake { background: #8A5A2B; } .mvsw.fire { background: #D9531E; } .mvsw.tfr { background: #C2185B; border-radius: 3px; transform: rotate(45deg) scale(.8); } .mvsw.heat { background: #F2A33A; border: 1.5px solid #B5532A; border-radius: 2px; } .mvsw.delay { background: var(--watch-mk); }
.mvsw.severe { background: linear-gradient(90deg, #3E8E41 0 33%, #E8C33A 33% 66%, #D13A3A 66%); opacity: .8; } .mvsw.lsr { background: #1F5FA8; border-radius: 2px; transform: rotate(45deg) scale(.75); } .mvsw.smoke { background: #77808B; opacity: .7; } .mvsw.storm { background: #1F5FA8; } .mvsw.nuke { background: var(--surface); border: 2px solid #2E7D6B; } .mvsw.shelter { background: #2F7D3A; border-radius: 2px 2px 3px 3px; } .mvsw.nav { background: #1F4E79; border-radius: 2px; }
.mvsw.air { background: #2F6FC0; } .mvsw.heli { background: #8A5CD0; } .mvsw.mil { background: #4FAE5A; } .mvsw.base { border: 2px solid #4B5D3A; border-radius: 2px; } .mvsw.port { background: #1F7A8C; } .mvsw.border { background: linear-gradient(90deg, #6FBF9A, #E3C04F, #B8434E); } .mvsw.out { background: #D9822B; border-radius: 3px; }
@media (max-width: 760px) {
  .mvbody { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .mvlayers { border-left: none; border-top: 1px solid var(--line); max-height: 38vh; }
  .mvhint { display: none; }
}
.mvcard .btn.primary { margin-top: 8px; }

.picsoff { margin-top: 6px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; background: var(--sunk); }
.picsoff p { margin: 0 0 6px; }
.picsoff .btn { padding: 4px 10px; font-size: 13px; min-height: 0; }

/* Lightning nearby */
.ltgwrap { display: flex; gap: 12px; align-items: center; }
.ltgwrap .mini { flex: 1; min-width: 0; }
svg.ltgring { width: 92px; height: 92px; flex: none; }
svg.ltgring circle { fill: none; stroke: var(--line); stroke-width: 1.2; }
svg.ltgring .ltg-r1 { stroke: var(--alert, #c0392b); stroke-dasharray: 3 2; }
svg.ltgring .ltg-me { fill: var(--ink); stroke: none; }
svg.ltgring .ltg-hit { fill: #f5b301; stroke: var(--surface); stroke-width: 1.5; }
svg.ltgring .ltg-lab { font-size: 8px; fill: var(--muted); text-anchor: middle; }
.ltgwarn { margin: 8px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--sunk); border-left: 3px solid #f5b301; font-size: 13px; }
/* River forecast hydrograph */
svg.hydro { width: 100%; height: auto; display: block; margin: 6px 0 2px; }
svg.hydro .hg-obs { fill: none; stroke: var(--link); stroke-width: 2.2; }
svg.hydro .hg-fc { fill: none; stroke: var(--link); stroke-width: 2.2; stroke-dasharray: 6 4; }
svg.hydro .hg-l { stroke-width: 1.2; stroke-dasharray: 2 3; }
svg.hydro .hg-l.fb-watch { stroke: #d4a017; } svg.hydro .hg-l.fb-alert { stroke: #e06c2b; } svg.hydro .hg-l.fb-alert2 { stroke: #c0392b; } svg.hydro .hg-l.fb-alert3 { stroke: #8e44ad; }
svg.hydro .hg-grid { stroke: var(--line); stroke-width: 1; }
svg.hydro .hg-now { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 2; }
svg.hydro .hg-tx { font-size: 10px; fill: var(--muted); }
svg.hydro .hg-crest { fill: var(--link); stroke: var(--surface); stroke-width: 1.5; }
.hg-key .hg-k { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--link); vertical-align: middle; margin: 0 4px 0 8px; }
.hg-key .hg-k.fc { border-top-style: dashed; }

/* Review flags on changed cards */
.addonlbl.revlbl { color: var(--link); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.revdot { width: 7px; height: 7px; border-radius: 50%; background: var(--link); flex: none; }
.commnote.revnote { border-left: 3px solid var(--link); }
.revlist li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.revlist li .btnrow { margin-top: 8px; }

/* Zoomed maps keep their own shape, so nothing outside the zoomed area shows beside them. */
svg.usmap.local { aspect-ratio: 8 / 5; width: auto; max-width: 100%; }
svg.usmap .zbg { fill: var(--sunk); stroke: none; }

/* Aircraft maps (Air traffic, Helicopter activity, Military aircraft, Emergency codes): one style. */
.skymap .skydot { fill: var(--none-mk); fill-opacity: .7; stroke: var(--surface); stroke-width: 1; vector-effect: non-scaling-stroke; }
.skymap .skydot.mil { fill: var(--none-mk); fill-opacity: .55; }
.skymap .skydot.hnowd { fill: var(--surface); fill-opacity: 1; stroke: var(--ink); stroke-width: 1.5; }
.skymap .skydot.emg { fill: var(--watch-mk); fill-opacity: 1; stroke-width: 1.5; }
.skymap .skydot.emg.alert { fill: var(--alert-mk); }
.skymap .skydot.emgpast { fill: var(--none-mk); fill-opacity: .55; }
.skymap .milbase rect { fill: none; stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: .7; }
.nukelegend i.ringk { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px dashed var(--link); vertical-align: middle; margin-right: 4px; }
.nukelegend i.emgk, .nukelegend i.emgpastk { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 4px; background: var(--watch-mk); }
.nukelegend i.emgpastk { background: var(--none-mk); opacity: .6; }
/* Aircraft cards: the map sits beside the rows on every card size, so the rows stay visible. */
.omwrap.sky { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: 12px; }
.omwrap.sky .ommap svg { max-height: 118px; margin: 0; }
@container (min-width: 620px) { .omwrap.sky { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; } .omwrap.sky .ommap svg { max-height: 130px; } }
.omwrap.sky .mini li .t { overflow: hidden; text-overflow: ellipsis; }
svg.hbars { width: 100%; height: auto; display: block; margin: 4px 0; }
svg.hbars .hbar { fill: var(--link); opacity: .75; }
svg.hbars .hbn { font-size: 12px; font-weight: 650; fill: var(--ink); text-anchor: middle; }
svg.hbars .hbt { font-size: 11px; fill: var(--muted); text-anchor: middle; }
svg.hbars .hbase { stroke: var(--line); stroke-width: 1; }

/* Recent alerts: one quiet line on a calm card, and the list in Details (1.113). */
.tile .lastalert { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-size: 0.78rem; color: var(--muted); cursor: pointer; min-width: 0; max-width: 100%; }
.tile .lastalert > span:nth-child(2) { white-space: nowrap; flex: none; }
.tile .lastalert .lah { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tile .lastalert:hover > span:nth-child(2), .tile .lastalert:focus-visible > span:nth-child(2) { text-decoration: underline; }
.tile .lastalert:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
.recalerts .dot { margin-right: 6px; vertical-align: middle; }
/* Lightning nearby on a map (1.113). */
.ltgwrap.hasmap { align-items: stretch; }
.ltgwrap .ltgmap { flex: 0 0 46%; max-width: 220px; min-width: 120px; }
.ltgwrap .ltgmap svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.usmap .ring50.ringn { stroke-width: 1.2; stroke-opacity: .55; }
.skymap .skydot.ltg10 { fill: var(--alert-mk); fill-opacity: .9; }
.skymap .skydot.ltg30 { fill: #f5b301; fill-opacity: .9; }
.skymap .skydot.ltg60 { fill: var(--none-mk); fill-opacity: .75; }
/* Past alerts popup: grayed, stamped cards that can't pass for live ones (1.113). */
.hchip.pastbtn { opacity: .85; }
.pastpanel .sbcat { color: var(--muted); }
.pastpanel .sbcard .tile.pasttile { height: auto; min-height: 0; background: var(--sunk); border: 1px dashed var(--line); box-shadow: none; filter: grayscale(1); color: var(--muted); position: relative; overflow: hidden; }
.pastpanel .pasttile .headline { color: var(--muted); font-weight: 600; }
.pastpanel .pasttile .tname { color: var(--muted); }
.pastpanel .pasttile .pill.pastpill { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.pastpanel .pasttile .tf { margin-top: 8px; font-size: 12px; color: var(--muted); }
.pastpanel .pasttile::after { content: 'ENDED'; position: absolute; right: 10px; bottom: 34px; font-size: 22px; font-weight: 800; letter-spacing: .14em; color: var(--muted); opacity: .14; transform: rotate(-8deg); pointer-events: none; }
.sbtag.ended { background: var(--sunk); color: var(--muted); border: 1px solid var(--line); }
.skymap .skydot.ltg10, .skymap .skydot.ltg30, .skymap .skydot.ltg60 { stroke: none; }
.ltgwrap.hasmap { align-items: center; }
.addonlbl.revlbl, .addonlbl.testlbl { opacity: 1; }
/* Comparison-only Preview cards (1.113.5): a clear tag so they aren't mistaken for cards on their way to the dashboard. */
.addonlbl.cmplbl { opacity: 1; display: inline-flex; align-self: flex-start; margin: -4px 0 4px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--sunk); color: var(--ink); font-weight: 600; }
.unofftag { margin-left: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }

/* 1.113.7: the compact section row fits what it can and puts the rest under "More (n)" (no sideways
   scrolling); the views (Global ... Here) stay at the right of the places row however it wraps. */
.whead.stuck .minnav { overflow: hidden; mask-image: none; }
.navmore { display: none; position: relative; flex: none; }
.whead.stuck .navmore:not([hidden]) { display: block; }
.navmore > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; font-weight: 600; min-height: 30px; padding: 0 10px; }
.navmore > summary::-webkit-details-marker { display: none; }
.navmore > summary::after { content: '▾'; font-size: 10px; opacity: .7; }
.navmore.cur > summary { border-color: var(--link); }
.navmore .dot { width: 7px; height: 7px; }
.navmore #navmoredot.st-none { background: transparent; border: 1.5px solid var(--none-mk); opacity: .7; }
.navmorepop { right: 0; left: auto; }
@media (max-width: 760px) { .whead.stuck .navmore { display: none !important; } }
@media (min-width: 661px) {
  .scopebar { flex-wrap: nowrap; align-items: flex-start; }
  .scopebar .places { flex: 1 1 auto; min-width: 0; }
  .scopebar #scopes { flex: none; margin-left: auto; }
}
@media (min-width: 661px) and (max-width: 900px) { .scopebar { flex-wrap: wrap; } }

/* 1.113.8: room for the phone's status bar (time, signal, battery) and rounded corners when Truvane
   runs from the Home Screen, where the page draws under them. Browsers without them read 0. */
body { padding-top: env(safe-area-inset-top, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.whead { top: env(safe-area-inset-top, 0px); }
@media (min-width: 900px) and (min-height: 600px) { .whead { top: calc(var(--pin-h, 0px) + env(safe-area-inset-top, 0px)); } .pinned { top: env(safe-area-inset-top, 0px); } }
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 40; pointer-events: none; }
dialog.panel, dialog.sheet { padding-top: env(safe-area-inset-top, 0px); box-sizing: border-box; }

/* 1.113.9: on phones and small tablets (where the top of the page doesn't stay pinned), the row with
   Jump to and the buttons comes right after the place and views, above Right now, so it stays at the
   top of the screen from the first scroll, even while reading a long Current alerts list. */
@media not all and (min-width: 900px) and (min-height: 600px) {
  .wrap > .whead { order: 1; }
  .wrap > .sitrep, .wrap > .secnav, .wrap > #grid, .wrap > .editdock, .wrap > .foot { order: 2; }
}
.jumppop a.jtop { grid-column: 1 / -1; font-weight: 600; }
/* Emergency codes key (1.113.12): one color per code on the map, in the legend and in the key. */
.skymap .skydot.emg.c7700, .sqd.c7700, .sqk.c7700 i { --sqc: #E8A33D; }
.skymap .skydot.emg.c7600, .sqd.c7600, .sqk.c7600 i { --sqc: #5AA9E6; }
.skymap .skydot.emg.c7500, .sqd.c7500, .sqk.c7500 i { --sqc: #E5534B; }
.skymap .skydot.emg.c7700, .skymap .skydot.emg.c7600, .skymap .skydot.emg.c7500 { fill: var(--sqc); fill-opacity: 1; }
.skymap .skydot.emgpast.c7700 { fill: #E8A33D; fill-opacity: .45; } .skymap .skydot.emgpast.c7600 { fill: #5AA9E6; fill-opacity: .45; } .skymap .skydot.emgpast.c7500 { fill: #E5534B; fill-opacity: .45; }
.sqd { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 5px; background: var(--sqc, var(--none-mk)); }
.sqleg { margin-top: 6px; }
.sqkey { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.sqk { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 10px; background: var(--sunk); border: 1px solid var(--line); border-left: 4px solid var(--sqc); }
.sqk.c7700 { --sqc: #E8A33D; } .sqk.c7600 { --sqc: #5AA9E6; } .sqk.c7500 { --sqc: #E5534B; }
.sqk .sqc { display: inline-flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.sqk .sqc i { width: 11px; height: 11px; border-radius: 50%; background: var(--sqc); }
.sqk b { font-size: 14px; }
.sqk .small { color: var(--muted); line-height: 1.35; }
.sqmini { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.sqmini .sqd { width: 8px; height: 8px; margin-right: 3px; }
.dot.st-sq7700 { background: #E8A33D; } .dot.st-sq7600 { background: #5AA9E6; } .dot.st-sq7500 { background: #E5534B; }
.dot.past { opacity: .5; }
.obst tr.hl td { background: color-mix(in srgb, var(--watch-mk) 14%, transparent); }
/* 1.114.4: when a browser's built-in Google translator works on this page, it adds a hidden
   "Original text / Contribute a better translation" popup whose own styles our privacy rules
   (no outside stylesheets) block, so it showed at the bottom of the page. Keep it hidden. */
#goog-gt-tt, #goog-gt-vt, .goog-te-balloon-frame, .goog-tooltip, .VIpgJd-yAWNEb-L7lbkb, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-ZVi9od-aZ2wEe-OiiCO { display: none !important; }

/* Space status line (1.115.0): one calm line under the Space & Sky heading, and in Right now. */
.secline { margin: -2px 0 12px; }
.spaceline { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 2px 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.spaceline { font-size: 14px; }
.spaceline:hover { text-decoration: underline; text-underline-offset: 3px; }
.spaceline .dot { margin: 0; }

/* Spacecraft overhead: tap a dot in Details for what it is (1.115.0). */
.spacemap .stap { cursor: pointer; outline: none; }
.spacemap .shit { fill: transparent; stroke: none; }
.spacemap .stap:hover .shit, .spacemap .stap:focus-visible .shit { fill: var(--viz); fill-opacity: .14; }
.spacemap .stap.on .shit { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.satinfo { margin: 10px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; min-height: 44px; }
.satinfo p { margin: 0 0 6px; }
.satrows li { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; align-items: baseline; }

/* Eclipses in Sun, moon & planets (1.115.0). */
.eclline { margin: 6px 0 0; }
.eclrows li { align-items: flex-start; }
/* Heads-up chips (passes, eclipses, moon) stay calm blue in Right now, not gray like the rest (1.115.1). */
:root:not([data-theme="night"]) .sitrep .hchip.heads { background: rgba(125, 182, 211, 0.24); color: #D6ECF6; box-shadow: inset 0 0 0 1px rgba(125, 182, 211, 0.55); }
:root:not([data-theme="night"]) .sitrep .hchip.heads:hover { background: rgba(125, 182, 211, 0.34); }

/* Compare (1.116.0): cards side by side for your places, in a full-width panel over the board. */
dialog.panel.full, dialog.panel.full.custom { width: min(1440px, 100%) !important; }
.cmpbar { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; padding: 4px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; position: sticky; top: 0; background: var(--surface); z-index: 2; }
.cmpgroup { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cmpplaces { display: flex; flex-wrap: wrap; gap: 6px; }
.cmpplaces .chip { min-height: 34px; }
.cmpplaces .chip[disabled] { opacity: .45; cursor: not-allowed; }
.cmpadd select { min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 0 10px; font: inherit; font-size: 13px; }
.cmpcard { margin: 0 0 18px; }
.cmpctitle { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cmpctitle h3 { margin: 0; font-size: 15px; font-weight: 650; }
.cmprow { display: grid; gap: 10px; }
.cmprow.cols-1 { grid-template-columns: minmax(0, 560px); }
.cmprow.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cmprow.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cmprow.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cmprow.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cmpcell { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); overflow: hidden; }
.cmpcell.st-watch { box-shadow: inset 0 3px 0 var(--watch-mk); background: linear-gradient(var(--watch-bg), var(--surface) 56px); }
.cmpcell.st-alert { box-shadow: inset 0 4px 0 var(--alert-mk); background: linear-gradient(var(--alert-bg), var(--surface) 70px); }
.cmpcell.na, .cmpcell.loading { opacity: .7; }
.cmpcell .pill { align-self: flex-start; }
.cmpwhere { font-size: 13px; }
.cmph { margin: 0; font-weight: 650; font-size: 15px; line-height: 1.3; }
.cmps { margin: 0; color: var(--muted); }
.cmpviz { min-width: 0; overflow: hidden; max-height: 260px; }
.cmpviz svg { max-width: 100%; height: auto; }
.cmpfoot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cmpnote { margin-top: 8px; }
/* Phones and narrow panels: each card's places become a strip you swipe across. */
@media (max-width: 760px) {
  .cmprow[class*="cols-"] { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; grid-template-columns: none; }
  .cmprow .cmpcell { flex: 0 0 86%; scroll-snap-align: start; }
  .cmprow.cols-1 .cmpcell { flex-basis: 100%; }
  .cmpbar { position: static; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .cmprow.cols-4, .cmprow.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Compare is already full width, so the "wider view" button has nothing to do there (1.116.1). */
dialog.panel.full .pexpand { display: none; }

/* Print report and Compare print in color (1.116.2). Every status keeps its shape and word, so a
   black-and-white printer still tells them apart: red Alert prints as a dark block, amber Watch as a
   light one with a heavy edge. */
@media print {
  .pb .pb-head { border-bottom-color: #1d3534; }
  .pb .pb-foot { border-top-color: #1d3534; }
  .pb .pb-st.pb-alert, .pb .pb-alert .pb-st { background: #B3261E; border-color: #B3261E; color: #fff; }
  .pb .pb-st.pb-watch, .pb .pb-watch .pb-st { background: #FFF1CC; border-color: #A86200; border-width: 2px; color: #6B3E00; }
  .pb .pb-st.pb-ok, .pb .pb-ok .pb-st { background: #E5F3E8; border-color: #2E7D32; color: #1E5E24; }
  .pb .pb-st.pb-noresp, .pb .pb-noresp .pb-st { background: #EFE8F7; border-color: #6A4C93; color: #4E3670; }
  .pb .pb-card.pb-alert { border-left-color: #B3261E; background: #FDF1F0; }
  .pb .pb-card.pb-watch { border-left-color: #D98A00; background: #FFF9EB; }
  .pb .pb-card.pb-ok { border-left-color: #2E7D32; }
  .pb .pb-card.pb-noresp { border-left-color: #6A4C93; }
  .pb .pb-tab tr.pb-alert th { color: #8E1B15; } .pb .pb-tab tr.pb-watch th { color: #6B3E00; }
  .pb .pb-sec { color: #1d3534; border-bottom-color: #1d3534; }
  /* Compare print: places as columns, each card a row. */
  .pb .pb-cmp { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; margin: 0 -6px; }
  .pb .pb-cmp thead th { text-align: left; font-size: 11.5pt; padding: 2px 4px; border-bottom: 2px solid #1d3534; }
  .pb .pb-cmp .pb-rowh { text-align: left; font-size: 10pt; text-transform: uppercase; letter-spacing: .1em; color: #1d3534; padding: 8px 2px 0; }
  .pb .pb-cmp tr { break-inside: avoid; }
  .pb .pb-cell { vertical-align: top; border: 1px solid #bbb; border-top: 5px solid #bbb; border-radius: 4px; padding: 6px 8px; font-size: 9.5pt; }
  .pb .pb-cell.pb-alert { border-top-color: #B3261E; background: #FDF1F0; } .pb .pb-cell.pb-watch { border-top-color: #D98A00; background: #FFF9EB; }
  .pb .pb-cell.pb-ok { border-top-color: #2E7D32; } .pb .pb-cell.pb-noresp { border-top-color: #6A4C93; }
  .pb .pb-cell .pb-st { margin: 0 0 4px; }
  .pb .pb-cell .pb-hl { font-size: 10.5pt; margin-top: 2px; }
  .pb .pb-cell .pb-viz { font-size: 8.5pt; } .pb .pb-cell .pb-viz svg { max-height: 1.9in; }
  .pb.land .pb-cell { font-size: 9pt; }
}
@media print { .pb .pb-calm .pb-m { color: #2E7D32; font-weight: 800; } }

/* Next 48 hours: chips switch what the chart shows (1.117.0). */
.hmchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.hmchips .chip { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.hmchart { display: none; margin: 0; }
.hmchart.on { display: block; }
.hmchart figcaption { margin-top: 2px; }
.spark .hmline { fill: none; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.spark .hm-temp { stroke: var(--hot, #D9531E); } .spark .hm-feels { stroke: #C77A1E; } .spark .hm-dew { stroke: #1F7A8C; }
.spark .hm-rh { stroke: #4A8CAD; } .spark .hm-wind { stroke: var(--viz); } .spark .hm-gust { stroke: #7A5BB0; }
.spark .hmbar.hm-pop { fill: #4A8CAD; opacity: .75; } .spark .hmbar.hm-sky { fill: #8A96A3; opacity: .6; }
.spark .hmlab { font-size: 12px; font-weight: 650; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
/* Tropical outlook marks on the cyclone map (1.117.0). */
.cyclmap .cout path { stroke: #E0A100; stroke-width: 3.4; stroke-linecap: round; fill: none; }
.cyclmap .cout text { font-size: 14px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.nukelegend .coutk { font-style: normal; font-weight: 800; color: #E0A100; margin-right: 4px; }
/* Compared to normal (1.117.0). */
.nrmtrio .lv span.small { font-size: 11px; }
.trio .lv.warmx { background: color-mix(in srgb, #D9531E 14%, var(--sunk, transparent)); } .trio .lv.coldx { background: color-mix(in srgb, #2F6FC0 14%, var(--sunk, transparent)); }
.trio .lv.dryx { background: color-mix(in srgb, #B8862A 16%, var(--sunk, transparent)); } .trio .lv.wetx { background: color-mix(in srgb, #1F7A8C 16%, var(--sunk, transparent)); }
.nrmlines { margin: 8px 0 0; }

/* One "number on a scale" for air quality, UV and the K-index (1.117.0). */
.lvmeter { display: flex; align-items: center; gap: 12px; margin: 6px 0 4px; max-width: 420px; }
.lvmeter .mnum { font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; min-width: 1.6em; }
.lvmeter .mbody { flex: 1; min-width: 0; }
.lvmeter .mlab { display: block; font-size: 13px; line-height: 1.25; margin-bottom: -2px; }
.lvmeter .mlab b { font-weight: 650; }
.lvmeter svg { width: 100%; height: auto; display: block; }
.lvmeter svg text { font-size: 10px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.lvmeter rect { opacity: .28; } .lvmeter rect.cur { opacity: 1; }
.lvmeter .mt-g { fill: #3BA55C; } .lvmeter .mt-y { fill: #E0B000; } .lvmeter .mt-o { fill: #F08C2E; } .lvmeter .mt-r { fill: #D9342B; } .lvmeter .mt-p { fill: #8E44AD; } .lvmeter .mt-m { fill: #7E1F2C; }
.lvmeter .mmark { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.lvmeter .mt-gt { color: #2E8B4E; } .lvmeter .mt-yt { color: #B88E00; } .lvmeter .mt-ot { color: #D2701A; } .lvmeter .mt-rt { color: #C42B22; } .lvmeter .mt-pt { color: #8E44AD; } .lvmeter .mt-mt { color: #7E1F2C; }
[data-theme="dark"] .lvmeter .mt-gt, [data-theme="night"] .lvmeter .mt-gt { color: #5FC27E; } [data-theme="dark"] .lvmeter .mt-yt { color: #F0C93A; } [data-theme="dark"] .lvmeter .mt-ot { color: #F59A4A; } [data-theme="dark"] .lvmeter .mt-rt { color: #F06A5F; } [data-theme="dark"] .lvmeter .mt-pt { color: #B98AD6; }
.tile[data-id="uv"] .uvbars { height: 34px; }

/* Hourly chart time labels, each under its hour (1.117.1). Margins match the charts' own edge padding. */
.hrx { display: flex; height: 16px; margin: 3px 2% 2px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hrx.h48 { margin: 3px 1.7% 2px; }
.hrx span { flex: 1 1 0; position: relative; min-width: 0; }
.hrx span i { position: absolute; left: 0; transform: translateX(-50%); font-style: normal; white-space: nowrap; }
.hrx span:first-child i { transform: none; }
.hrx span.end { flex: 0 0 0; }
.hrx span.end i { transform: translateX(-100%); }
/* Chart chips stay on one row and scroll sideways when the panel is narrow. */
.hmchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.hmchips::-webkit-scrollbar { display: none; }
.hmchips .chip { flex: none; }

/* Tropical cyclones: NHC cone and satellite close-up (1.117.2). */
.tcpics { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 6px 0; }
.tcpics figure { margin: 0; }
.tcimg { width: 100%; height: auto; display: block; border-radius: 8px; background: var(--sunk); }
.tcimg.tccard { max-height: 150px; object-fit: contain; margin: 4px 0 6px; }

/* Stream gauge level bar, a sibling of the shared meter (1.117.2): NWS flood category colors. */
.gmeter { margin: 2px 0 4px; max-width: 420px; }
.gmeter svg { width: 100%; height: auto; display: block; }
.gmeter rect { opacity: .3; } .gmeter rect.cur { opacity: 1; }
.gmeter .mt-g { fill: #3BA55C; } .gmeter .mt-y { fill: #E0C000; } .gmeter .mt-o { fill: #F08C2E; } .gmeter .mt-r { fill: #D9342B; } .gmeter .mt-p { fill: #A845D1; }
.gmeter .mmark { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.gmeter svg text { font-size: 10px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.gkey { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 1px; }
.gkey i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: 0; }
.gkey .gk-y { background: #E0C000; } .gkey .gk-o { background: #F08C2E; } .gkey .gk-r { background: #D9342B; } .gkey .gk-p { background: #A845D1; }
svg.hydro .hg-l.fb-watch { stroke: #E0C000; } svg.hydro .hg-l.fb-alert { stroke: #F08C2E; } svg.hydro .hg-l.fb-alert2 { stroke: #D9342B; } svg.hydro .hg-l.fb-alert3 { stroke: #A845D1; }
.tile .gkey { display: none; }

/* Illness in your area: recent weeks grid (1.118.0) */
.wwgrid { margin: 4px 0 10px; max-width: 360px; }
.wwgrid svg { width: 100%; height: auto; display: block; }
.wwgrid text { font-size: 10px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.wwgrid .wwy { font-size: 11px; fill: var(--ink); }
.wwgrid .wwm { font-size: 12px; font-weight: 700; fill: var(--muted); }
.wwgrid .wwm.on { fill: #fff; }
.wwl0 { fill: #DCEBF5; background: #DCEBF5; } .wwl1 { fill: #A9CDE6; background: #A9CDE6; } .wwl2 { fill: #6FA8D2; background: #6FA8D2; }
.wwl3 { fill: #3A7AB8; background: #3A7AB8; } .wwl4 { fill: #1D4E89; background: #1D4E89; }
.wwnd { fill: transparent; stroke: var(--line); stroke-dasharray: 2 2; }
.wwd0 { fill: var(--sunk); }
.wwds { fill: var(--line); } .wwdn { fill: var(--watch-mk); }
.wwgrid .wwk { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin: 0 3px 0 2px; }
[data-theme="dark"] .wwd0, [data-theme="night"] .wwd0 { fill: rgba(255,255,255,.07); }
[data-theme="dark"] .wwl0, [data-theme="night"] .wwl0 { fill: #263B4F; background: #263B4F; } [data-theme="dark"] .wwl1, [data-theme="night"] .wwl1 { fill: #31618A; background: #31618A; }
[data-theme="dark"] .wwl2, [data-theme="night"] .wwl2 { fill: #4887BE; background: #4887BE; } [data-theme="dark"] .wwl3, [data-theme="night"] .wwl3 { fill: #78B3E2; background: #78B3E2; }
[data-theme="dark"] .wwl4, [data-theme="night"] .wwl4 { fill: #B5DBF7; background: #B5DBF7; }
[data-theme="dark"] .wwgrid .wwm.on, [data-theme="night"] .wwgrid .wwm.on { fill: #1B1F24; }

/* ---------- 1.119.0: card sizes on fixed columns ----------
   Each section is a grid of equal columns (how many fit is set by packSections in app.js as --cols).
   Rows are half a card tall, so Compact takes one, Normal and Wide two, Tall and Large four. A card
   keeps its size; a short last row leaves room instead of stretching the cards in it. */
.wsec .grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); grid-auto-rows: calc((var(--card-h) - 12px) / 2); grid-auto-flow: row dense; align-items: stretch; gap: 12px; }
.wsec .grid > .tile { grid-row: span 2; grid-column: auto; height: auto; min-height: 0; flex: none; }
.wsec .grid > .tile.compact { grid-row: span 1; }
.wsec .grid > .tile.tall { grid-row: span 4; }
.wsec .grid > .tile.wide { grid-column: span 2; }
.wsec .grid > .tile.large { grid-column: span 2; grid-row: span 4; }
.wsec .grid.onecol > .tile.wide, .wsec .grid.onecol > .tile.large { grid-column: auto; }
.wsec .grid > .addtile, .wsec .grid > .tile.addtile { grid-row: span 2; }
/* Compact: the title, status and headline only (Details has the rest, including any review note). A
   space a Compact card leaves beside a taller one is filled by the next card that fits (dense). */
.tile.compact .addonlbl { display: none; }
.tile.compact .sub, .tile.compact .cardbody, .tile.compact .preview, .tile.compact .lastalert { display: none; }
.tile.compact .headline { -webkit-line-clamp: 1; }
.tile.compact .cardmain { flex: 1; }
/* Tall and Large: the room below the summary shows a peek at Details, faded at the bottom. */
.tile.tall .cardmain, .tile.large .cardmain { flex-direction: column; gap: 10px; }
.tile.tall .cardleft, .tile.large .cardleft { flex: 0 1 auto; max-height: calc(var(--card-h) - 70px); }
.tile.tall .preview, .tile.large .preview { display: block; flex: 1 1 0; min-height: 0; overflow: hidden; font-size: 13px; border-top: 1px solid var(--line); padding-top: 10px; border-left: 0; padding-left: 0;
  -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.tile.tall .preview .btnrow, .tile.large .preview .btnrow { margin-top: 8px; }
.tile.tall .preview h3, .tile.large .preview h3 { margin: 0 0 4px; font-size: 14px; }
.tile.tall .preview img, .tile.large .preview img { max-width: 100%; height: auto; }
/* Size picker in Details. */
.sizepick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sizepick > .small { margin-right: 4px; }
.szbtn { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 10px 0 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.szbtn svg { width: 22px; height: 22px; } .szbtn rect { fill: none; stroke: currentColor; stroke-width: 1.6; }
.szbtn[aria-pressed="true"] { border-color: var(--link); color: var(--link); background: color-mix(in srgb, var(--link) 10%, var(--surface)); }
.szbtn[aria-pressed="true"] rect { fill: color-mix(in srgb, var(--link) 25%, transparent); }
@media (max-width: 660px) {
  /* Phones: one column, cards size to their content; Tall and Large may grow to twice the height. */
  .wsec .grid { display: flex; flex-direction: column; }
  .wsec .grid > .tile.tall, .wsec .grid > .tile.large { max-height: calc(2 * var(--card-h) + 40px); }
  .tile.tall .preview, .tile.large .preview { flex: none; max-height: calc(var(--card-h) - 20px); }
  .wsec .grid > .tile.compact { max-height: none; }
}

/* ---------- 1.120.0: Pro Board ---------- */
.viewsw { display: inline-flex; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--surface); flex: none; align-self: center; }
.viewsw .vsw { font: inherit; font-size: 13px; font-weight: 650; padding: 5px 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.viewsw .vsw + .vsw { border-left: 1px solid var(--line); }
.viewsw .vsw[aria-pressed="true"] { background: color-mix(in srgb, var(--link) 14%, var(--surface)); color: var(--link); }
.viewsw .vsw .small { font-weight: 600; opacity: .8; }
.secnav .viewsw { justify-self: start; align-self: flex-start; grid-column: 1 / -1; margin-bottom: 6px; } /* its own row above the panel names (1.121.3) */
.secnav.onboard { display: flex; flex-direction: row; justify-content: flex-start; }
.minnav .viewsw { margin-right: 6px; } .minnav .viewsw .vsw { font-size: 12px; padding: 3px 9px; }
.proboard .protitle { cursor: default; }
.proboard .sechead .btn { margin-left: auto; }
.proempty { padding: 6px 2px 8px; max-width: 640px; } .proempty p { margin: 0 0 8px; }
.propick { border: 0; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 12px; }
.propick legend { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 4px; }
.proedit input[type="search"] { width: 100%; max-width: 420px; }
.probtn { align-self: flex-start; }
.probtn[aria-pressed="true"] { color: var(--link); border-color: var(--link); }
@media (max-width: 660px) {
  /* Phones jump to sections from the Jump to menu; the bar keeps only the view switch. */
  .secnav, .secnav.onboard { display: flex; margin: 0 0 8px; overflow: visible; }
  .secnav > a { display: none; }
  .secnav .viewsw .vsw { min-height: 36px; padding: 0 14px; font-size: 14px; }
}
.panel .propick label.chk { padding: 4px 0; font-weight: 400; cursor: pointer; }
.panel .propick label.chk input { accent-color: var(--link); }
.panel .propick label.chk[hidden], .panel .propick[hidden] { display: none; }

/* ---------- 1.121.0: corner resize in Edit layout ---------- */
.rsz { display: none; }
@media (pointer: fine) {
  body.editing .wsec .grid > .tile { position: relative; }
  body.editing .rsz { display: flex; position: absolute; right: 2px; bottom: 2px; width: 22px; height: 22px; align-items: flex-end; justify-content: flex-end; padding: 3px; cursor: nwse-resize; color: var(--link); border-radius: 0 0 7px 0; z-index: 2; touch-action: none; }
  body.editing .rsz svg { width: 12px; height: 12px; } body.editing .rsz path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
  body.editing .rsz:hover { background: color-mix(in srgb, var(--link) 14%, transparent); }
  .tile.resizing { outline: 2px solid var(--link); outline-offset: 2px; cursor: nwse-resize; user-select: none; }
  .tile.resizing::after { content: attr(data-sizing); position: absolute; right: 30px; bottom: 6px; font-size: 12px; font-weight: 650; color: var(--surface); background: var(--link); padding: 2px 8px; border-radius: 6px; pointer-events: none; }
  body:has(.tile.resizing) { cursor: nwse-resize; user-select: none; }
}
/* A Compact card in Edit layout keeps its title and the edit buttons (the summary is under All cards or in Details). */
body.editing .tile.compact .cardmain, body.editing .tile.compact .tf { display: none; }
/* Pro Board placeholder for a card that doesn't apply here (1.121.2): keeps its spot, quietly. */
.tile.proph { background: transparent; border-style: dashed; opacity: .55; }
.tile.proph .tname { opacity: .9; }
.tile.proph p { margin: 2px 0 0; }
body.editing .tile.proph { opacity: .8; }

/* ---------- 1.121.4: printouts always use the light colors ----------
   Printing from dark or night view kept that view's colors, so maps drew light-blue outlines and
   near-white labels on white paper. On paper every color comes from the light set, whatever the view. */
@media print {
  :root, :root[data-theme] {
    --bg: #FFFFFF; --surface: #FFFFFF; --sunk: #F3F4F1; --line: #C9CEC6; --ink: #16202B; --muted: #4A535E; --link: #1F5E7A;
    --btn: #16202B; --btn-ink: #FFFFFF; --seg: #E6E8E3;
    --ok: #276B43; --ok-bg: #E6F2EA; --watch: #9A5B00; --watch-bg: #FBF0DC; --alert: #B3261E; --alert-bg: #FBE5E3;
    --noresp: #6B3FA0; --noresp-bg: #EFE7F8; --none: #5A6470; --none-bg: #ECEEEA;
    --ok-mk: #2F9E5C; --watch-mk: #D07800; --alert-mk: #D93025; --noresp-mk: #8A5CD0; --none-mk: #7D8790;
    --minor: #24617D; --minor-bg: #E2EEF4; --minor-mk: #4A8CAD; --rain: #2F6FC0;
    color-scheme: light;
  }
  /* Outage maps: the lightest step is darkened a little so it reads on paper, borders show, and the
     night view's red set never reaches the page. */
  :root body .pb .outmap path, :root body .outmap path { stroke: #FFFFFF; }
  :root body .pb .outmap .ob0, :root body .outmap .ob0 { fill: #E6E8E3; }
  :root body .pb .outmap .ob1, :root body .outmap .ob1, :root body .nukelegend i.ob1 { fill: #EFC27F; background: #EFC27F; }
  :root body .pb .outmap .ob2, :root body .outmap .ob2, :root body .nukelegend i.ob2 { fill: #E9A23F; background: #E9A23F; }
  :root body .pb .outmap .ob3, :root body .outmap .ob3, :root body .nukelegend i.ob3 { fill: #D9791F; background: #D9791F; }
  :root body .pb .outmap .ob4, :root body .outmap .ob4, :root body .nukelegend i.ob4 { fill: #C24E1C; background: #C24E1C; }
  :root body .pb .outmap .ob5, :root body .outmap .ob5, :root body .nukelegend i.ob5 { fill: #8E1F16; background: #8E1F16; }
  :root body .pb .outmap path.mine, :root body .outmap path.mine { stroke: #16202B; stroke-width: 2.5px; }
  :root body .pb .outmap .oml, :root body .outmap .oml { fill: #16202B; stroke: #FFFFFF; }
  /* Shared meters and the wastewater grid in their light colors too. */
  :root body .wwl0 { fill: #DCEBF5; background: #DCEBF5; } :root body .wwl1 { fill: #A9CDE6; background: #A9CDE6; } :root body .wwl2 { fill: #6FA8D2; background: #6FA8D2; }
  :root body .wwl3 { fill: #3A7AB8; background: #3A7AB8; } :root body .wwl4 { fill: #1D4E89; background: #1D4E89; }
  :root body .wwd0 { fill: #ECEEEA; } :root body .wwgrid .wwm.on { fill: #FFFFFF; }
  :root body .lvmeter .mt-gt { color: #2E8B4E; } :root body .lvmeter .mt-yt { color: #B88E00; } :root body .lvmeter .mt-ot { color: #D2701A; } :root body .lvmeter .mt-rt { color: #C42B22; } :root body .lvmeter .mt-pt { color: #8E44AD; }
}

/* ---------- 1.121.5: view switch beside the Systems Status heading ---------- */
.whead h2 { order: 0; }
.vswslot { order: 1; margin-right: auto; display: inline-flex; }
.whead .btnrow { order: 2; }
.secnav .viewsw { display: none; }
.secnav.onboard { display: none; }
.whead.stuck .vswslot { display: none; }
@media (max-width: 660px) {
  .vswslot { display: none; }
  .secnav .viewsw { display: inline-flex; }
  .secnav.onboard { display: flex; }
}
/* Heads-ups at the end of Current alerts (1.123.0): the same calm blue as their chips. */
.sitrep .sbtag.heads, :root:not([data-theme="night"]) .sitrep .sbtag.heads { background: rgba(125, 182, 211, 0.28); color: #D6ECF6; box-shadow: inset 0 0 0 1px rgba(125, 182, 211, 0.55); }
.sitrep .sbheads .tile { box-shadow: inset 0 0 0 1px rgba(125, 182, 211, 0.55); }

/* 1.123.3 volcano map */
.volcmap .vfaint { fill: var(--muted); opacity: .35; }
.volcmap .vmark { stroke: var(--surface); stroke-width: 3; fill: var(--none-mk); }
.volcmap .vmark.st-watch { fill: var(--watch-mk); } .volcmap .vmark.st-alert { fill: var(--alert-mk); }
.volcmap .vlbl { font-size: 22px; font-weight: 700; fill: var(--ink); stroke: var(--surface); stroke-width: 6; paint-order: stroke; }
.nukelegend i.vk-alert { background: var(--alert-mk); } .nukelegend i.vk-watch { background: var(--watch-mk); }
.nukelegend i.vk-none { background: var(--none-mk); } .nukelegend i.vk-faint { background: var(--muted); opacity: .35; }

/* 1.124.1 compact Request log and Helper jobs: smaller rows, two columns on wide screens */
.devlist, .panel .dpanel .devlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 6px; max-width: none; }
.devlist li, .panel .devlist li { padding: 6px 10px; gap: 1px; font-size: 13px; line-height: 1.35; border-radius: 6px; }
.devlist .dlh b, .panel .devlist .dlh b { font-size: 14px; }
.devlist .dlh .dls, .panel .devlist .dlh .dls { font-size: 12px; }
.devlist .small, .panel .devlist .small { font-size: 12px; }
.devlist code, .panel .devlist code { font-size: 11px; }
@media (max-width: 600px) { .devlist, .panel .dpanel .devlist { grid-template-columns: 1fr; } }

/* 1.125.0 Inventory panel */
.inventory .ivt { margin: 8px 0 12px; }
.inventory .ivt th[scope="row"] { text-align: left; }
.inventory .ivsec { border-top: 1px solid var(--line); padding: 8px 0; }
.inventory .ivsec > summary { cursor: pointer; font-weight: 650; padding: 4px 0; }
.inventory .ivorg h4 { margin: 10px 0 4px; }
.inventory .ivlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 6px; }
.inventory .ivlist li { border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; display: flex; flex-direction: column; gap: 1px; font-size: 13px; line-height: 1.35; }
.inventory .ivfields { margin-top: 2px; }
.ivtag { display: inline-block; font-size: 10.5px; font-weight: 650; padding: 0 5px; border-radius: 4px; background: var(--sunk); color: var(--muted); }
.ivtag.calc { color: var(--link); } .ivtag.built { color: var(--ink); }

/* 1.126.0 Map view: Alert activity heat and Warning shapes (testing) */
.mvsvg .mv-ahg { opacity: .8; }
.mvsvg .mv-ah { stroke: none; }
.mvsvg .mv-ah.a1 { fill: #F2D45C; fill-opacity: .45; } .mvsvg .mv-ah.a2 { fill: #F0A93B; fill-opacity: .55; }
.mvsvg .mv-ah.a3 { fill: #E8692E; fill-opacity: .65; } .mvsvg .mv-ah.a4 { fill: #D1342B; fill-opacity: .75; }
.mvsvg .mv-ah.a5 { fill: #8E1B4F; fill-opacity: .85; }
.mvsvg .mv-ahs { fill-opacity: .25; stroke-width: 1; vector-effect: non-scaling-stroke; fill: #F0A93B; stroke: #C77A12; }
.mvsvg .mv-ahs.w4 { fill: #D1342B; stroke: #A3221B; } .mvsvg .mv-ahs.w6 { fill: #8E1B4F; stroke: #5E0F33; fill-opacity: .4; stroke-width: 2; }
.mvsvg .mv-ahs.w1, .mvsvg .mv-ahs.w0 { fill: #E8C33A; stroke: #B8961C; fill-opacity: .18; }
.mvsw.ah { background: radial-gradient(circle, #8E1B4F 0, #D1342B 35%, #F0A93B 65%, #F2D45C 100%); }
.mvsw.ahs { background: #D1342B; opacity: .6; border-radius: 2px; }

/* 1.127.0 Sharing: the SITREP share panel and the banner for a shared place */
.share .sharetext { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; line-height: 1.45; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--sunk); color: var(--ink); resize: vertical; margin: 6px 0 10px; }
.share .btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.share a.btn { text-decoration: none; }
.sharebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 20px 0; padding: 10px 14px; border: 1px solid var(--link); border-radius: 10px; background: color-mix(in srgb, var(--link) 8%, var(--surface)); font-size: 15px; }
.sharebar[hidden] { display: none; }
.sharebar .sbb { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.sharebar .sbx { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; padding: 4px 6px; }
.sharebar .sbwhat { flex-basis: 100%; color: var(--muted); }
.sharebar .sbpro { flex-basis: 100%; }
.chip.peek { border-style: dashed; }

/* 1.129.0 Map view: marine alert layer swatch; alerts at a tapped spot */
.mvsw.ahm { background: radial-gradient(circle, #D1342B 0, #F0A93B 45%, #2F7FC0 100%); }
.mvinfo .mvspot { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.mvinfo .mvspot h5 { margin: 0 0 6px; font-size: 13px; }
.mvinfo .mvspotlist { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mvinfo .mvspotlist li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; line-height: 1.35; }
.mvinfo .mvspotlist .dot { flex: none; transform: translateY(-1px); }
.mvinfo .mvlook { margin-top: 4px; }

/* 1.129.2 Map view: a button for each saved place */
.mvplaces { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.mvplaces .btn[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
@media (max-width: 760px) {
  .mvplaces { order: 10; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .mvplaces::-webkit-scrollbar { display: none; }
  .mvplaces .btn { flex: none; }
}
@media (max-width: 760px) {
  .mvbar { gap: 6px; padding: 8px 10px; }
  .mvbar > .btn { padding: 6px 10px; min-height: 0; }
  .mvbar .btn.icon { padding: 6px 9px; }
}
@media (max-width: 420px) { .mvbar .mvtest { display: none; } .mvbar b { font-size: 15px; } }

/* 1.130.0 Map view layer list: groups, On now chips, reference tag */
.mvon { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 4px; }
.mvchip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; padding: 3px 8px 3px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--sunk); color: var(--ink); cursor: pointer; }
.mvchip:hover { border-color: var(--muted); }
.mvchip .mvsw { width: 10px; height: 10px; margin: 0; }
.mvchip span { color: var(--muted); font-size: 14px; line-height: 1; }
.mvgtools { display: flex; justify-content: flex-end; margin: 4px 0; }
.mvgrp { border-top: 1px solid var(--line); }
.mvgrp > summary { display: flex; align-items: baseline; gap: 8px; padding: 9px 4px; cursor: pointer; list-style: none; }
.mvgrp > summary::-webkit-details-marker { display: none; }
.mvgrp > summary::before { content: "▸"; color: var(--muted); width: 10px; }
.mvgrp[open] > summary::before { content: "▾"; }
.mvgrp > summary .mvgcount { margin-left: auto; }
.mvgrp > ul { margin: 0 0 8px; }
.mvref { font-size: 10.5px; font-weight: 650; padding: 0 5px; border-radius: 4px; background: var(--sunk); color: var(--muted); vertical-align: 1px; }

/* 1.131.0 Map view: your places with their SITREP status */
.mvsvg .mv-mys circle:first-child { fill-opacity: .28; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.mvsvg .mv-mys.alert circle:first-child { fill: var(--alert-mk); stroke: var(--alert-mk); }
.mvsvg .mv-mys.watch circle:first-child { fill: var(--watch-mk); stroke: var(--watch-mk); }
.mvsvg .mv-mys.ok circle:first-child { fill: var(--ok-mk); stroke: var(--ok-mk); }
.mvsvg .mv-mys.unknown circle:first-child { fill: none; stroke: var(--muted); stroke-dasharray: 3 3; }
.mvsvg .mvbadge { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.mvsvg .mvbadgetxt { fill: var(--surface); font-size: 11px; font-weight: 700; }
.mvsw.mys { background: transparent; border: 2.5px solid var(--watch-mk); box-sizing: border-box; }

/* 1.132.0 Map view popup: quick look, add a spot as a place */
.mvinfo .mvspotbtns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mvinfo .mvnear li { display: block; }
.mvinfo .mvaddmsg:empty { display: none; }
.mvinfo .mvaddmsg { margin-top: 6px; }
.mvinfo .mvspotbtns .mvlook { margin-top: 0; }

/* 1.132.1 SITREP status dots on Map view place buttons and in the list */
.mvplace .dot { margin-right: 6px; vertical-align: 1px; }
.mvplace[aria-pressed="true"] .dot.st-none { border: 1px solid var(--surface); }
.mvtab li .dot { vertical-align: 1px; }
.mvtab li .dot.st-none, .mvplace .dot.st-none { background: transparent; border: 1.5px dashed var(--muted); }

/* 1.132.2 SITREP dot on each place chip */
.chip .pdot { margin-right: 6px; vertical-align: 1px; }
.chip .pdot.st-none { background: transparent; border: 1.5px dashed var(--muted); opacity: .8; }
.chip[aria-pressed="true"] .pdot { box-shadow: 0 0 0 1.5px var(--surface); }

/* 1.132.4 Map view: mini SITREP when you tap one of your places */
.mvinfo .mvplacecard + .mvplacecard, .mvinfo .mvi-row + .mvplacecard { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.mvinfo .mvpc-head { font-weight: 650; margin-top: 2px; }
.mvinfo .mvpc-head.st-alert { color: var(--alert); } .mvinfo .mvpc-head.st-watch { color: var(--watch); } .mvinfo .mvpc-head.st-ok { color: var(--ok); }
.mvinfo .mvplacecard .mvspotlist { margin-top: 8px; }

/* 1.133.0 Map view: glow heat pictures and view switches (Heat / Unusual / Dots) */
.mvsvg image.mv-heatimg { image-rendering: auto; }
.mvviews { display: inline-flex; margin: 2px 0 4px 52px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.mvview { font: inherit; font-size: 12px; padding: 2px 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.mvview + .mvview { border-left: 1px solid var(--line); }
.mvview[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.mvview.odd[aria-pressed="true"] { background: #E07A1F; color: #fff; }

/* 1.133.4 Public IP and Connection share one line (they wrap onto two only when space runs out) */
.loc .iprow { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 0; }

/* 1.133.6 Map view: one line under the view switch saying what the picked view shows */
.mvvnote { display: block; margin: 0 8px 8px 52px; line-height: 1.35; }

/* 1.134.0 Dev menu: layout choice (Classic / New preview) */
.devlook { display: flex; align-items: center; gap: 6px; padding-bottom: 6px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.devlook .small { margin-right: auto; }
.devpop .devlook .btn { width: auto; flex: none; padding: 0 10px; min-height: 34px; }
.devlook .btn[aria-checked="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
@media (max-width: 660px) {
  .topbar .devmenu > summary { padding: 0 10px; }
  .topbar .devmenu > summary::after { content: none; }
}

/* 1.135.2 Past alerts: a short list by day, one line per alert, opening to its card */
.pastpanel .pastfilter { margin: 4px 0 6px; }
.pastpanel .pastfilter .hchip[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.pastday h3 { margin: 14px 0 4px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pastrow { border-bottom: 1px solid var(--line); }
.pastrow > summary { list-style: none; display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 10px 4px; cursor: pointer; color: var(--muted); }
.pastrow > summary::-webkit-details-marker { display: none; }
.pastrow > summary:hover { background: var(--sunk); }
.pastrow > summary .dot { align-self: center; opacity: .6; flex: none; }
.pastrow > summary .pico { width: 16px; height: 16px; flex: none; align-self: center; display: inline-flex; opacity: .8; }
.pastrow > summary .pico svg { width: 16px; height: 16px; }
.pastrow > summary b { color: var(--ink); font-weight: 600; flex: none; min-width: 150px; }
.pastrow > summary .ph { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pastrow > summary .pn { flex: none; font-size: 12px; font-weight: 700; padding: 0 6px; border: 1px solid var(--line); border-radius: 999px; }
.pastrow > summary .pt { flex: none; font-size: 12.5px; white-space: nowrap; }
.pastrow[open] > summary .ph { white-space: normal; }
.pastrow .sbcard { margin: 4px 0 12px; max-width: 520px; }
@media (max-width: 660px) {
  .pastrow > summary { flex-wrap: wrap; row-gap: 2px; }
  .pastrow > summary b { min-width: 0; }
  .pastrow > summary .ph { flex-basis: 100%; order: 5; padding-left: 52px; white-space: normal; }
  .pastrow > summary .pt { flex-basis: 100%; order: 6; padding-left: 52px; }
}

/* 1.136.0 Starooda mark: OODA loop, four small stars and the fix star, a here-dot that glows in the
   connection color, and a slow comet. The earlier Starfix Nine star stays as a fallback (Dev menu). */
.brand .compass .soomark { display: block; width: 34px; height: 34px; overflow: visible; }
html:not([data-logo="starfix"]) .brand .compass .starmark { display: none; }
html[data-logo="starfix"] .brand .compass .soomark { display: none; }
.soomark .soloop { fill: none; stroke: #8CC4DE; stroke-opacity: .85; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.soomark .sostars { fill: var(--ink); }
.soomark .sodot, .soomark .soglow { fill: var(--ok-mk); }
.soomark .soglow { opacity: .3; }
.soomark .socomet { fill: var(--ok-mk); }
.brand .compass.net-down .soomark .sodot, .brand .compass.net-down .soomark .soglow { fill: var(--alert-mk); }
[data-theme="light"] .soomark .soloop { stroke: #2E7DA6; }
[data-theme="night"] .soomark .soloop { stroke: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .soomark .soglow { transform-box: fill-box; transform-origin: center; animation: soglow 2.6s ease-in-out infinite; }
  .soomark .soorbit { transform-box: view-box; transform-origin: 32px 32px; animation: soorbit 12s linear infinite; }
}
@keyframes soglow { 0%, 100% { opacity: .15; transform: scale(.8); } 50% { opacity: .5; transform: scale(1.5); } }
@keyframes soorbit { to { transform: rotate(360deg); } }
/* 1.136.1: the circling dot is larger with a soft glow; with no connection the whole mark turns red
   (loop, dot, glow and comet), and the comet stops. */
.soomark .socomet { filter: drop-shadow(0 0 2.5px color-mix(in srgb, var(--ok-mk) 90%, transparent)); }
.brand .compass.net-down .soomark .socomet { fill: var(--alert-mk); filter: drop-shadow(0 0 3px color-mix(in srgb, var(--alert-mk) 90%, transparent)); }
.brand .compass.net-down .soomark .soloop { stroke: var(--alert-mk); stroke-opacity: 1; }
.brand .compass.net-down .soomark .soorbit { animation-play-state: paused; }
:root { --net-red: var(--alert-mk); }
[data-theme="dark"] { --net-red: #F0554A; }
.brand .compass.net-down .soomark .sodot, .brand .compass.net-down .soomark .soglow, .brand .compass.net-down .soomark .socomet { fill: var(--net-red); }
.brand .compass.net-down .soomark .soloop { stroke: var(--net-red); }
.brand .compass.net-down .soomark .socomet { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--net-red) 90%, transparent)); }
/* 1.136.2: the logo links to the Starooda page. */
a.compass { color: inherit; text-decoration: none; }
a.compass:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 50%; }

/* 1.137.0 Glance: the Pro Board as status, one big value, one line and a trendline per card. */
.glsw { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--sunk); border: 1px solid var(--line); margin-left: auto; }
.glsw button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 0 12px; min-height: 32px; border-radius: 7px; cursor: pointer; }
.glsw button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .18); }
.glsw + .btn { margin-left: 8px; }
.glance { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.gl { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 156px; padding: 14px 16px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.gl:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.gl:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.gl::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.gl.st-alert::before { background: var(--edge-alert, var(--net-red)); }
.gl.st-watch::before { background: color-mix(in srgb, var(--watch-mk) 70%, transparent); }
/* 1.140.9 Same edges as the briefing: Alert reads the briefing's red; flagged heads-ups are blue. */
.gl.st-heads::before { background: color-mix(in srgb, var(--minor-mk) 70%, transparent); }
.gl.st-back::before { background: color-mix(in srgb, var(--ok-mk) 60%, transparent); }
.glhead { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.glname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glst { flex: none; font-size: 12.5px; }
.glst.st-alert { color: var(--alert); } .glst.st-watch { color: var(--watch); } .glst.st-ok { color: var(--ok); } .glst.st-noresp { color: var(--noresp-mk); } .glst.st-none { color: var(--muted); }
.glst.st-info { color: var(--muted); font-weight: 600; } .glst.st-heads { color: var(--minor-mk); }
@media (max-width: 660px) { .glst.st-info { display: none; } }
.glbig { font-size: 32px; font-weight: 750; line-height: 1.12; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.glbig.long { font-size: 21px; }
.glline { font-size: 13.5px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gltrend { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.glsp { display: block; width: 100%; height: 28px; overflow: visible; }
.glsp polyline { fill: none; stroke: var(--muted); stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.gl.st-ok .glsp polyline { stroke: var(--ok-mk); } .gl.st-watch .glsp polyline { stroke: var(--watch-mk); } .gl.st-alert .glsp polyline { stroke: var(--edge-alert, var(--net-red)); } .gl.st-heads .glsp polyline { stroke: var(--minor-mk); }
.glsp.wait line { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 2 5; opacity: .45; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.gltrend.wait .glsince { opacity: .65; }
.glsince { font-size: 11.5px; color: var(--muted); opacity: .8; }
.glnote { margin: 10px 2px 0; }
@media (max-width: 660px) { .glance { grid-template-columns: 1fr 1fr; gap: 8px; } .gl { min-height: 132px; padding: 12px; } .glbig { font-size: 24px; } .glbig.long { font-size: 17px; } .glsw { margin-left: 0; } }
@media (max-width: 660px) {
  .proboard .sechead { flex-wrap: wrap; row-gap: 8px; }
  .proboard .sechead .glsw { order: 5; margin-left: 0; }
  .proboard .sechead .glsw + .btn { margin-left: auto; }
  .glhead { flex-direction: column; align-items: flex-start; gap: 0; }
  .glname { width: 100%; }
}
.glbig:empty { display: none; }
.glbig:empty + .glline { font-size: 15px; color: var(--ink); -webkit-line-clamp: 4; }
.gl.flash { animation: flash 1.6s ease-out 1; }

/* 1.139.0: the map leaves room for the phone's status bar and notch (its top row, with the close
   button, sat under them in the installed app), and for the home bar at the bottom. */
.mapview { padding-top: env(safe-area-inset-top, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (max-width: 760px) { .mvbar { position: relative; padding-right: 58px; } .mvbar [data-mv="close"] { position: absolute; top: 8px; right: 10px; } }

/* 1.139.2 Phones and touch: no double-tap-to-zoom wait on taps, a press shows at once, and small
   controls get a full finger-sized target. Settings never runs wider than the screen. */
a, button, summary, label, select, input, [role="button"], [data-details] { touch-action: manipulation; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
@media (pointer: coarse) {
  button:active, .btn:active, a.linkbtn:active, .linkbtn:active { opacity: .7; transition: none; }
  .btn.icon { min-width: 44px; min-height: 44px; }
  .tile .tf .tfb > button, .tile .tf .tfb > a, .cmpfoot .linkbtn, .bfexbtns .linkbtn, .bfcfoot .linkbtn, .nnext .btn { min-height: 44px; display: inline-flex; align-items: center; padding-left: 8px; padding-right: 8px; }
  .sectoggle { min-height: 44px; }
}
dialog.panel { overflow-x: hidden; }
dialog.panel fieldset { min-width: 0; }
dialog.panel select, dialog.panel input:not([type="checkbox"]):not([type="radio"]) { max-width: 100%; }

/* 1.140.0 Forecast radar: plainly marked as a forecast (dashed frame, blue time label), a Pro tag, the
   rain/snow/ice key and the notes on where the model goes wrong. */
.rmap.future { outline: 2px dashed #6fa8ff; outline-offset: -2px; }
.rmap.future ~ .rmtime, .rmapbig:has(.rmap.future) .rmtime { background: rgba(20, 50, 110, .85); color: #dbe8ff; }
.protag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; background: var(--minor-bg); color: var(--minor); vertical-align: 1px; }
.rfut { margin: 8px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid #6fa8ff; border-radius: 8px; background: var(--sunk); }
.rfut p { margin: 6px 0; }
.rfutlist { margin: 4px 0 6px; padding-left: 18px; }
.rfutlist li { margin: 3px 0; }
.rfutlegend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 4px 0; }
.ptk::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.ptk.rain::before { background: #2fae4a; } .ptk.snow::before { background: #4a8fe0; } .ptk.frz::before { background: #e05fb0; } .ptk.ice::before { background: #9b6be0; }

/* 1.140.1 Map Explorer forecast radar: its own swatch, the warning under the layer, a dashed frame on
   the map while it shows, and the playback bar over the map. */
.mvsw.future { background: repeating-linear-gradient(135deg, #2fae4a 0 4px, #6fa8ff 4px 6px); }
.mvwarn { display: block; margin-top: 4px; padding: 6px 8px; border-left: 3px solid #6fa8ff; background: var(--sunk); border-radius: 4px; color: var(--ink); line-height: 1.35; }
.mvmap { position: relative; }
/* the map's own frame */ .mapview.mvfut-on .mvsvg { outline: 2px dashed #6fa8ff; outline-offset: -2px; }
.mv-future image { opacity: .85; }
.mvfbar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; width: max-content; max-width: calc(100% - 24px); padding: 6px 10px; border-radius: 12px; background: rgba(20, 50, 110, .9); color: #dbe8ff; box-shadow: 0 8px 24px rgb(0 0 0 / .35); }
.mvfbar .btn.icon { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.mvfbar .mvfrange { width: 150px; accent-color: #9cc3ff; }
.mvfbar .mvftime { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mvfbar label.chk { color: #dbe8ff; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; margin: 0; }
@media (max-width: 700px) { .mvfbar { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); gap: 6px 8px; flex-wrap: wrap; width: auto; } .mvfbar .mvfrange { width: 110px; } .mvfbar .mvftime { font-size: 12px; white-space: normal; } }
/* 1.140.2: the bar keeps one width while times change; Radar's loop bar is neutral, the forecast's blue. */
.mvfbar .mvftime { display: inline-block; min-width: 34ch; text-align: left; }
.mvfbar.radar { background: rgba(14, 20, 28, .9); color: #e6edf3; }
.mvfbar.radar .mvftime { min-width: 25ch; }
.mvfbar .mvflive { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); min-height: 32px; padding: 0 12px; }
.mvfbar .mvflive[hidden] { display: none; }
.rmapbig .rmtime { min-width: 30ch; }
@media (max-width: 700px) { .mvfbar .mvftime, .mvfbar.radar .mvftime { min-width: 0; flex: 1 1 100%; order: 5; } }
