:root {
  color-scheme: light;
  --bg: #e2e4e8;
  --surface-1: #eceef1;
  --border: #d2d5db;
  --grid: #d8dbe0;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #7a7974;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --night: rgb(60 80 170 / .09);
  --range-track: #d2d5db;
  --danger: #c62828;
  --alert-warning: #c62828;
  --alert-advisory: #b26a00;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="mixed"]) {
    color-scheme: dark;
    --bg: #1c1f26;
    --surface-1: #262a33;
    --border: #383d49;
    --grid: #353a46;
    --text-primary: #f4f6fa;
    --text-secondary: #cdd2dd;
    --text-muted: #9ea5b5;
    --series-1: #4f9dff;
    --series-2: #ff8a4c;
    --series-3: #35d0a0;
    --night: rgb(150 170 255 / .13);
    --range-track: #3a3f4b;
    --danger: #ef5350;
    --alert-warning: #ef5350;
    --alert-advisory: #f0a020;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1c1f26;
  --surface-1: #262a33;
  --border: #383d49;
  --grid: #353a46;
  --text-primary: #f4f6fa;
  --text-secondary: #cdd2dd;
  --text-muted: #9ea5b5;
  --series-1: #4f9dff;
  --series-2: #ff8a4c;
  --series-3: #35d0a0;
  --night: rgb(150 170 255 / .13);
  --range-track: #3a3f4b;
  --danger: #ef5350;
  --alert-warning: #ef5350;
  --alert-advisory: #f0a020;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 640px; margin: 0 auto; padding: 12px 16px 32px; }
a { color: var(--series-1); }
h2 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
     color: var(--text-secondary); margin: 0 0 10px; }
.muted { color: var(--text-muted); }
.faint { opacity: .45; }

/* Location picker */
.top { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
#picker { flex: 1 1 100%; }
#picker summary { list-style: none; cursor: pointer; font-size: 1.35rem; font-weight: 600;
                  padding: 6px 0; display: inline-block; }
#picker summary::-webkit-details-marker { display: none; }
.caret { color: var(--text-muted); font-size: 1rem; display: inline-block; transition: transform .15s; }
#picker[open] .caret { transform: rotate(180deg); }
#map { height: 320px; border-radius: 10px; border: 1px solid var(--border); margin: 6px 0 4px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="mixed"]) .base-tiles .leaflet-tile { filter: brightness(.8) invert(1) contrast(.85) hue-rotate(200deg) saturate(.5); }
}
:root[data-theme="dark"] .base-tiles .leaflet-tile { filter: brightness(.8) invert(1) contrast(.85) hue-rotate(200deg) saturate(.5); }

/* Alerts */
.alert { border-left: 4px solid var(--alert-advisory); background: var(--surface-1);
         border-radius: 8px; padding: 8px 12px; margin: 8px 0; }
.alert.sev-severe, .alert.sev-extreme { border-left-color: var(--alert-warning); }
.alert summary { cursor: pointer; font-weight: 600; }
.alert-head { font-weight: 500; }
.alert-body { white-space: pre-line; font-size: .9rem; color: var(--text-secondary); }

/* Now */
.now { padding: 8px 0 14px; }
.now-main { display: flex; align-items: center; gap: 12px; }
.now-icon { font-size: 3rem; line-height: 1; }
.now-temp { font-size: 4rem; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.now-label { font-size: 1.1rem; }
.now-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 0; }
.now-stats div { min-width: 0; }
.now-stats dt { font-size: .75rem; color: var(--text-muted); }
.now-stats dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .now-stats { grid-template-columns: repeat(2, 1fr); } }

/* Cards */
.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px;
        padding: 14px 16px; margin: 12px 0; }
.card-head { display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: space-between; align-items: baseline; }
.chip { font: inherit; font-size: .8rem; color: var(--text-secondary); background: none;
        border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; cursor: pointer; }
.chip[aria-pressed="true"] { color: var(--text-primary); border-color: var(--text-muted); }

/* Charts */
.viz-wrap { position: relative; }
.chart-title { font-size: .8rem; color: var(--text-secondary); margin-top: 6px; }
.chart svg { display: block; width: 100%; overflow: visible; touch-action: pan-y; }
.chart text { fill: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .day-sep { stroke: var(--text-muted); stroke-width: 1; stroke-opacity: .35; }
.chart .night { fill: var(--night); }
.chart .arrow { fill: var(--text-secondary); }
.chart .line { fill: none; stroke: var(--c); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--c); fill-opacity: .22; }
.chart .area-edge { fill: none; stroke: var(--c); stroke-width: 1.5; stroke-opacity: .8; }
.chart text.axis { fill: var(--c); font-weight: 600; }
.chart .bar.c-sky { fill-opacity: .55; }
.chart .bar.c-sky.active { fill-opacity: .85; }
.chart .line.dash { stroke-dasharray: 6 4; }
.chart .dot, .chart .bar { fill: var(--c); }
.chart .dot { stroke: var(--surface-1); stroke-width: 2; }
.chart .bar.active { fill-opacity: .7; }
.chart .crosshair { stroke: var(--text-muted); stroke-width: 1; }
.chart .label-strong { fill: var(--text-primary); font-weight: 600; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--text-secondary); margin-top: 4px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-block; width: 14px; height: 2px; border-radius: 1px; background: var(--c); }
.key.dash { background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 7px); }
.key.box { width: 8px; height: 8px; border-radius: 2px; }
.tooltip { position: absolute; top: 0; pointer-events: none; z-index: 2; background: var(--surface-1);
           border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px;
           box-shadow: 0 2px 8px rgb(0 0 0 / .15); font-size: .85rem; white-space: nowrap; }
.tt-time { color: var(--text-secondary); font-size: .75rem; }
.tt-row { display: flex; align-items: center; gap: 6px; }
.tt-row b { font-variant-numeric: tabular-nums; }
.viz-table { max-height: 360px; overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .9rem; }
.data-table th, .data-table td { text-align: right; padding: 3px 6px; border-bottom: 1px solid var(--grid); white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table th { position: sticky; top: 0; background: var(--surface-1); font-weight: 600; color: var(--text-secondary); }

/* Tabs + range chips */
.tabs-row { flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { font: inherit; font-size: .88rem; background: none; border: 1px solid var(--border); border-radius: 999px;
       color: var(--text-secondary); padding: 4px 12px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--series-1); border-color: var(--series-1); color: #fff; font-weight: 600; }
.chips { display: flex; gap: 4px; }

/* NWS periods */
.period { padding: 8px 0; border-top: 1px solid var(--grid); }
.period:first-of-type { border-top: 0; padding-top: 0; }
.period-name { font-weight: 600; }
.period-text { color: var(--text-secondary); font-size: .92rem; }

/* 10 days */
.days { list-style: none; margin: 0; padding: 0; }
.days li { display: grid; grid-template-columns: 3.2em 1.8em 2.8em 2.4em 1fr 2.4em; align-items: center;
           gap: 8px; padding: 6px 0; border-top: 1px solid var(--grid); font-variant-numeric: tabular-nums; }
.days li:first-child { border-top: 0; }
.day-name { font-weight: 500; }
.day-icon { font-size: 1.2rem; text-align: center; }
.day-pop { color: var(--series-1); font-size: .85rem; text-align: right; }
.day-lo { color: var(--text-muted); text-align: right; }
.range { position: relative; height: 6px; background: var(--range-track); border-radius: 3px; }
.range-fill { position: absolute; top: 0; bottom: 0; border-radius: 3px;
              background: linear-gradient(90deg, var(--series-1), var(--series-2)); }

/* Sun & moon */
.sky { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.sky-item { display: flex; gap: 10px; align-items: center; min-width: 0; }
.sky-icon { font-size: 1.6rem; }
.sky .muted { font-size: .82rem; }
@media (max-width: 420px) { .sky { grid-template-columns: 1fr; } }

footer { text-align: center; font-size: .78rem; margin-top: 18px; }
footer a { color: inherit; }

/* Header links */
.top { align-items: center; }
.gear { text-decoration: none; font-size: 1.3rem; color: var(--text-secondary);
        padding: 2px 6px; border-radius: 8px; }
.gear:hover { background: var(--surface-1); }
#picker { flex: 1 1 100%; min-width: 0; }
.back { text-decoration: none; font-size: 1.1rem; padding: 6px 0; }
.top .back + .muted { margin-left: auto; }

/* Forms (login, register, settings) */
h1 { font-size: 1.4rem; margin: 0 0 12px; }
.narrow { max-width: 380px; margin: 40px auto; }
.form { display: flex; flex-direction: column; gap: 6px; }
.form label { font-size: .85rem; color: var(--text-secondary); margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number] {
  font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text-primary); }
button { font: inherit; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--border);
         background: var(--surface-1); color: var(--text-primary); cursor: pointer; }
.form button { margin-top: 10px; align-self: flex-start; }
button.primary { background: var(--series-1); border-color: var(--series-1); color: #fff; }
button.danger { color: var(--danger); }
.alt-link { margin: 14px 0 0; font-size: .9rem; }
.flash { padding: 8px 12px; border-radius: 8px; margin: 8px 0; background: var(--surface-1);
         border: 1px solid var(--border); }
.flash.error { border-color: var(--danger); color: var(--danger); }
.flash.ok { border-color: var(--series-3); }
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2000;
          display: flex; flex-direction: column; gap: 8px; width: max-content; max-width: calc(100% - 32px); }
.toasts .flash { margin: 0; cursor: pointer; box-shadow: 0 4px 16px rgb(0 0 0 / .25);
                 animation: toast-in .2s ease-out; transition: opacity .3s, transform .3s; }
.toasts .flash.hide { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.form-row { display: flex; gap: 8px; margin-top: 12px; }

/* Layout editor */
.layout-list { list-style: none; margin: 0; padding: 0; }
.layout-list li { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid var(--grid); }
.layout-list li:first-child { border-top: 0; }
.layout-toggle { flex: 1; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.layout-toggle input { width: 18px; height: 18px; accent-color: var(--series-1); }
.layout-toggle input:not(:checked) + span { color: var(--text-muted); }
.icon-btn { padding: 4px 10px; font-size: .75rem; color: var(--text-secondary); }
.layout-list li:first-child [data-move="-1"], .layout-list li:last-child [data-move="1"] { visibility: hidden; }

/* Place menu, favorites star */
.places { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.place-chip { text-decoration: none; font-size: .88rem; padding: 4px 10px; border-radius: 999px;
              border: 1px solid var(--border); background: var(--surface-1); color: var(--text-primary); }
.place-chip.current { border-color: var(--series-1); color: var(--series-1); }
#picker form { margin: 6px 0 2px; }
#picker form button { font-size: .88rem; padding: 5px 12px; }
.star { font-size: 1.3rem; line-height: 1; padding: 2px 6px; border: 0; background: none; color: var(--text-muted); }
.star.on { color: #eda100; }
.top:has(.top-actions) { position: relative; }
.top-actions { position: absolute; top: 4px; right: 0; display: flex; align-items: center; gap: 2px; }
.top-actions form { margin: 0; }
#picker summary { padding-right: 84px; }
.grow { flex: 1; min-width: 0; }
.settings-map { height: 260px; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 4px; }
.pin-icon { background: none; border: 0; }
.pin-icon path { fill: var(--series-1); stroke: #fff; stroke-width: 1.5; }
.pin-icon circle { fill: #fff; }

/* Palette slots 4-6 (model comparison) and ensemble band */
:root { --series-4: #eda100; --series-5: #e87ba4; --series-6: #008300; --band: rgb(120 120 130 / .18); --band-edge: rgb(100 100 115 / .55); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="mixed"]) { --series-4: #ffc93c; --series-5: #ff6fa8; --series-6: #4cc95a; --band: rgb(220 228 245 / .28); --band-edge: rgb(225 232 248 / .7); }
}
:root[data-theme="dark"] { --series-4: #ffc93c; --series-5: #ff6fa8; --series-6: #4cc95a; --band: rgb(220 228 245 / .28); --band-edge: rgb(225 232 248 / .7); }
.key.band { background: var(--band); height: 8px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--band-edge); }
.chart .band { fill: var(--band); }
.chart .band-edge { fill: none; stroke: var(--band-edge); stroke-width: 1; }
.chart .zero { stroke: var(--text-muted); stroke-width: 1.5; }
.chart .ref { stroke: var(--text-secondary); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart .ref-label { fill: var(--text-secondary); font-size: 11px; }
.tab[hidden] { display: none; }

/* Radar */
.radar-map { height: 340px; border-radius: 10px; border: 1px solid var(--border); }
.radar-time { font-size: .85rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.radar.is-forecast .radar-time { color: var(--series-2); font-weight: 600; }
.radar-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.radar-play { width: 40px; text-align: center; }
.radar-slider { flex: 1; accent-color: var(--series-1); height: 6px; appearance: none; border-radius: 3px;
  background: linear-gradient(90deg, var(--range-track) var(--now, 50%), var(--series-2) var(--now, 50%)); }
.radar-slider::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--series-1); border: 2px solid var(--surface-1); }
.radar-slider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%;
  background: var(--series-1); border: 2px solid var(--surface-1); }
.radar-scale { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--text-muted); margin-top: 8px; }
.radar-ramp { flex: 0 1 200px; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, #04e9e7, #019ff4, #0300f4, #02fd02, #01c501, #008e00,
                              #fdf802, #e5bc00, #fd9500, #fd0000, #d40000, #bc0000, #f800fd); }
.alert-shape { stroke: var(--danger); fill: var(--danger); }

/* Commute */
.small { font-size: .8rem; }
.chip-link { display: inline-block; text-decoration: none; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--series-1); color: var(--series-1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; }
input[type=time] { font: inherit; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text-primary); }
.day-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.day-pick input { position: absolute; opacity: 0; pointer-events: none; }
.day-pick span { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border);
  font-size: .85rem; cursor: pointer; color: var(--text-muted); }
.day-pick input:focus-visible + span { outline: 2px solid var(--series-1); outline-offset: 2px; }
.route-tools { margin-top: 6px; align-items: center; }
.route-line { stroke: var(--series-1); }
.route-start { stroke: var(--series-3); fill: var(--series-3); fill-opacity: .9; }
.route-point { stroke: var(--series-1); fill: var(--surface-1); fill-opacity: 1; }

/* Color per measurement (validated pairs: see README) and model slots */
:root {
  --red: #d1495b; --blue: #3b8be0; --cobalt: #1d4f91; --sky: #4a9be0; --aqua: #1baf7a;
  --green: #1f9a34; --violet: #6250d6; --orange: #eb6834; --yellow: #eda100; --gray: #52514e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="mixed"]) {
    --red: #ff6b7a; --blue: #4f9dff; --cobalt: #cfe6ff; --sky: #6cc3ff; --aqua: #35d0a0;
    --green: #4cc95a; --violet: #a594ff; --orange: #ff8a4c; --yellow: #ffc93c; --gray: #cdd2dd;
  }
}
:root[data-theme="dark"] {
  --red: #ff6b7a; --blue: #4f9dff; --cobalt: #cfe6ff; --sky: #6cc3ff; --aqua: #35d0a0;
  --green: #4cc95a; --violet: #a594ff; --orange: #ff8a4c; --yellow: #ffc93c; --gray: #cdd2dd;
}
.c-red { --c: var(--red); } .c-blue { --c: var(--blue); } .c-aqua { --c: var(--aqua); }
.c-green { --c: var(--green); } .c-violet { --c: var(--violet); } .c-orange { --c: var(--orange); }
.c-yellow { --c: var(--yellow); } .c-gray { --c: var(--gray); }
.c-cobalt { --c: var(--cobalt); } .c-sky { --c: var(--sky); }
.s1 { --c: var(--series-1); } .s2 { --c: var(--series-2); } .s3 { --c: var(--series-3); }
.s4 { --c: var(--series-4); } .s5 { --c: var(--series-5); } .s6 { --c: var(--series-6); }

/* Wide screens: two columns; charts, radar and mountain span both */
@media (min-width: 1000px) {
  main { max-width: 1240px; padding: 16px 24px 40px; }
  .sections { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; grid-auto-flow: row dense; align-items: start; }
  .sections > .wide { grid-column: 1 / -1; }
  .sections > .now { padding-top: 14px; }
  .radar-map { height: 520px; }
  #map { height: 420px; }
}
.days li[hidden] { display: none; }
.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; gap: 2px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-block; padding: 5px 14px; border-radius: 999px; cursor: pointer; color: var(--text-secondary); font-size: .9rem; }
.segmented input:checked + span { background: var(--series-1); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--series-1); outline-offset: 2px; }
.chart .seg-hover { fill: var(--text-muted); fill-opacity: .12; }
.form-grid.limits { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-top: 10px; }

/* Commute: ride tiles and per-ride strips */
.rides { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 6px; }
.ride-day { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ride-day-name { font-size: .8rem; font-weight: 600; color: var(--text-secondary); }
.ride { color: var(--text-primary); background: var(--bg); border: 1px solid var(--border);
        border-left: 4px solid var(--good); border-radius: 8px; padding: 6px 8px; }
.ride.no-go { border-left-color: var(--danger); }
.ride-head { display: flex; justify-content: space-between; gap: 6px; font-size: .78rem; color: var(--text-secondary); }
.ride .verdict { font-weight: 700; color: var(--good); }
.ride.no-go .verdict { color: var(--danger); }
.ride-line { display: flex; align-items: center; gap: 5px; font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.ride-line .muted { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; }
.ride-line.fail b { color: var(--danger); }
.ride-line.fail b::before { content: "✗ "; }
.wind-arrow { flex: none; }
.wind-arrow path { fill: var(--text-secondary); }
.chart .ride-bar { fill: var(--c); fill-opacity: .8; }
.chart .ride-gust { fill: var(--c); fill-opacity: .25; }
.chart .over { stroke: var(--danger); stroke-width: 2; }
.key.peak { opacity: .8; }
.key.gusty { opacity: .25; }
:root { --good: #1f9a34; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="mixed"]) { --good: #4cc95a; } }
:root[data-theme="dark"] { --good: #4cc95a; }

/* Top navigation: the account's tabs, then Settings */
.topnav { display: flex; gap: 4px; margin-bottom: 10px; padding: 4px; overflow-x: auto;
          background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px; }
.topnav a { flex: 1 0 auto; text-align: center; padding: 8px 12px; border-radius: 8px; white-space: nowrap;
            color: var(--text-secondary); text-decoration: none; font-size: .9rem; font-weight: 600; }
.topnav a:hover { color: var(--text-primary); }
.topnav a.active { background: var(--series-1); color: #fff; }
h3.sub { font-size: .8rem; font-weight: 600; color: var(--text-secondary); margin: 12px 0 6px; }
.units-form { display: flex; flex-direction: column; gap: 8px; }
.unit-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.unit-title { min-width: 104px; font-size: .9rem; color: var(--text-secondary); }
.chart .rain-label { fill: var(--text-secondary); font-size: 10px; }

/* Mixed theme: dark page with light cards. Light tokens apply inside cards; what sits
   directly on the page (header, current conditions, footer, messages) gets dark tokens. */
:root[data-theme="mixed"] { --surface-1: #eceef1; --border: #d2d5db; --grid: #d8dbe0; --bg: #e2e4e8; }
:root[data-theme="mixed"] body { background: #262b34; }
:root[data-theme="mixed"] .top, :root[data-theme="mixed"] .now,
:root[data-theme="mixed"] footer, :root[data-theme="mixed"] .flash {
  --text-primary: #f4f6fa; --text-secondary: #cdd2dd; --text-muted: #9ea5b5;
  --surface-1: #303642; --border: #414857; --bg: #262b34;
  color: var(--text-primary);
}
.radar-layer { transition: opacity .18s linear; }
.list-head { display: flex; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--text-muted); padding-bottom: 2px; }
.list-head .col-tab, /* Layout editor: a block per tab (name, then its widgets in order, then the add picker) */
.tab-block { border: 1px solid var(--border); border-radius: 10px; padding: 10px; margin-bottom: 10px; }
.tab-block-head { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.tab-name { flex: 1; min-width: 0; font-weight: 600; }
#tab-editor .icon-btn { width: 34px; padding-left: 0; padding-right: 0; flex: none; }
#tab-editor .w-type { flex: 1 1 0; min-width: 0; }
#tab-editor .w-title { flex: 1 1 0; min-width: 0; }
.widget-head .col-order { width: 114px; text-align: center; flex: none; }
.add-widget { font: inherit; font-size: .85rem; margin-top: 8px; padding: 4px 8px; border-radius: 6px;
              border: 1px solid var(--border); background: var(--bg); color: var(--text-primary); }
.chips { flex-wrap: wrap; }
.days-chip[aria-pressed="true"], .table-toggle[aria-pressed="true"], .day-pick input:checked + span { background: var(--series-1); border-color: var(--series-1); color: #fff; }
/* Settings sub-tabs: a connected bar like the top tabs, inset to read as a subset */
.settings-tabs { flex-wrap: nowrap; gap: 4px; margin: 0 24px 12px; padding: 3px; background: var(--surface-1);
                 border: 1px solid var(--border); border-radius: 10px; }
.settings-tabs .tab { flex: 1 1 0; text-align: center; border: 0; border-radius: 7px; padding: 6px 4px; font-weight: 600; }
a.tab { text-decoration: none; }
.tab[aria-current="page"] { background: var(--series-1); border-color: var(--series-1); color: #fff; font-weight: 600; }
.sky-title { grid-column: 1 / -1; margin-bottom: -6px; }
/* Settings → Users (admins) */
.invite-form, .issued-row { display: flex; gap: 8px; }
.invite-form input, .issued-row input { flex: 1; min-width: 0; }
.ok-note { color: var(--series-3); margin: 8px 0 0; font-size: .9rem; }
.error-note { color: var(--danger); margin: 8px 0 0; font-size: .9rem; }
.user-list li { flex-wrap: wrap; }
.user-meta { font-size: .8rem; }
.badge { font-size: .7rem; padding: 1px 6px; border-radius: 999px; background: var(--series-1); color: #fff; vertical-align: middle; }
