/* WeatherDVR Accounts — one stylesheet for the portal, the public pages and the control panel.
   Tokens follow weatherdvr.com's style.css: light paper surfaces, the dark "deck", one saturated accent (the live red),
   IBM Plex Sans. */
:root {
  --ink: #1b1f24; --ink-2: #5c6670; --paper: #fff; --paper-2: #f2f4f6; --line: #d9dee3;
  --deck: #171c22; --deck-2: #222a33; --deck-line: #303a45; --deck-ink: #e9edf1; --deck-ink-2: #8c98a5;
  --live: #ff3b30; --accent: #2f7cf6; --focus: #4c8dff; --ok: #1f9d55; --warn: #c7841c; --bad: #d03b3b; --event: #ffd23f;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 6px; --shadow: 0 2px 10px rgba(20,30,40,.14);
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #e9edf1; --ink-2: #9aa6b2; --paper: #1a2027; --paper-2: #11161b; --line: #2b353f; --shadow: 0 2px 12px rgba(0,0,0,.4); }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 var(--font); color: var(--ink); background: var(--paper-2); min-height: 100vh; -webkit-text-size-adjust: 100%; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; } h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
p { margin: 0 0 1em; } small, .muted { color: var(--ink-2); } .muted { font-size: 13px; }
code, .mono { font-family: var(--mono); font-size: 13px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

/* top bar (the deck) */
.bar { background: var(--deck); color: var(--deck-ink); border-bottom: 1px solid var(--deck-line); }
.bar-in { max-width: 1120px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 14px; min-height: 54px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--deck-ink); font-weight: 600; font-size: 15px; letter-spacing: .01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px rgba(255,59,48,.7); }
.brand .sub { color: var(--deck-ink-2); font-weight: 500; }
.tag { font: 600 10.5px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; background: var(--event); color: #2a2100; }
.tag.cp { background: #6d28d9; color: #fff; }
.bar nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.bar nav a { color: var(--deck-ink-2); padding: 8px 10px; border-radius: var(--radius); font-size: 13.5px; font-weight: 500; }
.bar nav a:hover { color: var(--deck-ink); background: var(--deck-2); text-decoration: none; }
.bar nav a.on { color: var(--deck-ink); background: var(--deck-2); }
.bar nav .badge { display: inline-block; min-width: 18px; padding: 1px 5px; margin-left: 4px; border-radius: 999px; background: var(--live); color: #fff; font-size: 11px; text-align: center; font-weight: 600; }
.bar form { margin: 0; }
.bar nav button.linkish { background: none; border: 0; color: var(--deck-ink-2); padding: 8px 10px; border-radius: var(--radius); font: 500 13.5px var(--font); cursor: pointer; text-align: left; } .bar nav button.linkish:hover { color: var(--deck-ink); background: var(--deck-2); }
.bar .who { display: flex; align-items: center; gap: 8px; color: var(--deck-ink-2); font-size: 13px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--deck-2); color: var(--deck-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; overflow: hidden; flex: none; border: 1px solid var(--deck-line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; } .avatar.lg { width: 72px; height: 72px; font-size: 24px; }
.menu-btn { display: none; background: none; border: 1px solid var(--deck-line); color: var(--deck-ink); border-radius: var(--radius); padding: 6px 10px; font: inherit; cursor: pointer; margin-left: auto; }
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  .bar nav { display: none; width: 100%; flex-direction: column; padding-bottom: 8px; }
  .bar-in { flex-wrap: wrap; } .bar-in.open nav { display: flex; }
  .bar .who .name { display: none; }
}

/* page */
.wrap { max-width: 1120px; margin: 0 auto; padding: 22px 16px 60px; }
.wrap.narrow { max-width: 460px; } .wrap.mid { max-width: 760px; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.head h1 { margin: 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 12px; }
.grid { display: grid; gap: 16px; } .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid.three, .grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; } }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.stat .n { font-size: 26px; font-weight: 600; line-height: 1.1; } .stat .l { color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.stat.warn .n { color: var(--warn); } .stat.bad .n { color: var(--bad); }

/* forms */
form { margin: 0; }
label { display: block; font-size: 13px; color: var(--ink-2); margin: 10px 0 4px; font-weight: 500; }
label.inline { display: inline-flex; align-items: center; gap: 8px; margin: 6px 12px 6px 0; color: var(--ink); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=url], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 11px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid rgba(47,124,246,.25); }
textarea { min-height: 120px; resize: vertical; }
input.code { font-family: var(--mono); font-size: 22px; letter-spacing: .3em; text-align: center; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; } .row.end { justify-content: flex-end; } .row > * { margin: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 14px/1 var(--font); padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--paper-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; } .btn.primary:hover { background: #2568d4; }
.btn.danger { color: var(--bad); border-color: rgba(208,59,59,.4); } .btn.danger:hover { background: rgba(208,59,59,.08); }
.btn.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.sm { padding: 6px 10px; font-size: 13px; } .btn.block { width: 100%; }
.btn.provider { background: var(--paper); justify-content: flex-start; gap: 10px; width: 100%; font-weight: 500; }
.btn.provider svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.hint { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.err { color: var(--bad); font-size: 13.5px; }

/* flashes */
.flash { padding: 11px 14px; border-radius: var(--radius); margin-bottom: 14px; border: 1px solid; font-size: 14px; }
.flash.ok { background: rgba(31,157,85,.08); border-color: rgba(31,157,85,.35); color: #15703c; }
.flash.error { background: rgba(208,59,59,.08); border-color: rgba(208,59,59,.35); color: #a12c2c; }
.flash.info { background: rgba(47,124,246,.08); border-color: rgba(47,124,246,.35); color: #1e56b0; }
@media (prefers-color-scheme: dark) { .flash.ok { color: #7ee2a8; } .flash.error { color: #ff9b9b; } .flash.info { color: #9cc1ff; } }
.notice { background: rgba(255,210,63,.14); border: 1px solid rgba(255,210,63,.6); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-weight: 600; color: var(--ink-2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; } .tbl td.r, .tbl th.r { text-align: right; } .tbl .num { font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -20px; padding: 0 20px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: rgba(31,157,85,.4); } .pill.bad { color: var(--bad); border-color: rgba(208,59,59,.4); } .pill.warn { color: var(--warn); border-color: rgba(199,132,28,.5); }
.pill.info { color: var(--accent); border-color: rgba(47,124,246,.4); } .pill.purple { color: #6d28d9; border-color: rgba(109,40,217,.4); }
.pager { display: flex; gap: 6px; align-items: center; margin-top: 12px; font-size: 13px; } .pager a, .pager span { padding: 5px 9px; border: 1px solid var(--line); border-radius: var(--radius); } .pager span.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; margin-bottom: 12px; } .filters label { margin-top: 0; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.tabs a { padding: 8px 12px; color: var(--ink-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; } .tabs a.on { color: var(--ink); border-color: var(--accent); } .tabs a:hover { text-decoration: none; color: var(--ink); }

/* lists */
.list { list-style: none; margin: 0; padding: 0; } .list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); } .list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; } .list .t { font-weight: 500; } .list .s { color: var(--ink-2); font-size: 12.5px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; } .kv dt { color: var(--ink-2); } .kv dd { margin: 0; word-break: break-word; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.thumb { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
.thumb .img { aspect-ratio: 16/10; background: linear-gradient(135deg, #1d2a3a, #0e151d); display: flex; align-items: center; justify-content: center; color: var(--deck-ink-2); font-size: 12px; } .thumb .img img { width: 100%; height: 100%; object-fit: cover; }
.thumb .cap { padding: 8px 10px; font-size: 13px; } .thumb .cap .s { color: var(--ink-2); font-size: 12px; }
.empty { text-align: center; color: var(--ink-2); padding: 28px 10px; border: 1px dashed var(--line); border-radius: 8px; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-family: var(--mono); font-size: 16px; padding: 14px; background: var(--paper-2); border-radius: var(--radius); margin: 10px 0; }
.qr { background: #fff; padding: 10px; border-radius: 8px; display: inline-block; border: 1px solid var(--line); }
.steps { counter-reset: s; padding-left: 0; list-style: none; } .steps li { counter-increment: s; position: relative; padding-left: 34px; margin-bottom: 10px; } .steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--deck); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
details.adv { margin-top: 10px; } details.adv summary { cursor: pointer; color: var(--ink-2); font-size: 13px; }
.split { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; } @media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.spark { display: flex; gap: 2px; align-items: flex-end; height: 44px; } .spark i { flex: 1; background: var(--line); border-radius: 2px 2px 0 0; min-height: 2px; position: relative; } .spark i.hi { background: var(--warn); }
footer.foot { text-align: center; color: var(--ink-2); font-size: 12.5px; padding: 20px 16px; } footer.foot a { color: inherit; }
.danger-zone { border-color: rgba(208,59,59,.35); } .danger-zone h2 { color: var(--bad); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }   /* screen readers only; never drawn (a far-left offset reappeared in very wide scrolled tables) */

/* ======================================================================================================================
   ACCOUNT PORTAL (signed in): the dark storm-sky look, icon navigation, dashboard cards. Everything below is scoped to
   body.portal, so the control panel and the public pages (sign in, register, shared links) keep the styles above.
   ====================================================================================================================== */
body.portal {
  --ink: #eaf0f6; --ink-2: #98a7b8; --paper: rgba(15, 24, 36, .78); --paper-2: rgba(10, 17, 27, .72); --line: rgba(120, 150, 185, .2);
  --accent: #3b8cff; --focus: #6aa8ff; --ok: #36c47a; --warn: #e3a33a; --bad: #ef6464;
  --glass: rgba(14, 23, 35, .74); --glass-line: rgba(130, 165, 205, .22); --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --blue: #4c9bff; --green: #3ddc97; --purple: #a77bff;
  color: var(--ink); background: #070c14; position: relative; isolation: isolate;
}
/* the sky: a dusk glow over a night-blue gradient (or the photo at assets/portal-bg.jpg, darkened, when it is there) */
body.portal::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 11, 19, .30) 0%, rgba(6, 11, 19, .42) 40%, rgba(6, 11, 19, .50) 75%, rgba(6, 10, 16, .58) 100%),
    var(--portal-photo, none) 75% bottom / cover no-repeat,   /* 75%: keeps the radar tower (right of centre) on screen */
    radial-gradient(60% 45% at 78% 4%, rgba(255, 128, 64, .38), rgba(255, 96, 48, .12) 45%, transparent 70%),
    radial-gradient(45% 35% at 58% 0%, rgba(160, 90, 190, .22), transparent 70%),
    radial-gradient(70% 55% at 12% 0%, rgba(54, 98, 170, .32), transparent 70%),
    linear-gradient(180deg, #101c30 0%, #0b1424 35%, #080e18 70%, #060a11 100%);
}
body.portal a { color: var(--accent); }
body.portal .ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
body.portal .ic.sm { width: 14px; height: 14px; } body.portal .ic.xs { width: 12px; height: 12px; } body.portal .ic.big { width: 30px; height: 30px; }

/* header */
body.portal .bar { background: rgba(8, 13, 21, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(120, 150, 185, .16); position: sticky; top: 0; z-index: 20; }
body.portal .bar-in { max-width: 1280px; min-height: 72px; gap: 18px; padding: 0 20px; }
body.portal .brand { gap: 12px; color: #fff; }
body.portal .brand .logo { width: 40px; height: 40px; flex: none; }
body.portal .brand-t { display: flex; flex-direction: column; line-height: 1.1; }
body.portal .brand-n { font-size: 21px; font-weight: 600; letter-spacing: .005em; display: flex; align-items: center; gap: 8px; }
body.portal .brand-s { font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8e9db0; margin-top: 3px; }
body.portal .tag { font-size: 10px; padding: 4px 7px; }
body.portal .bar nav { margin: 0 auto; gap: 2px; flex-wrap: nowrap; align-self: stretch; }
body.portal .bar nav a, body.portal .bar nav .linkish {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 76px; padding: 8px 8px 7px;
  border-radius: 0; color: #9eadbf; font-size: 12.5px; font-weight: 500; position: relative; background: none;
}
body.portal .bar nav a:hover, body.portal .bar nav .linkish:hover { color: #fff; background: rgba(255, 255, 255, .04); text-decoration: none; }
body.portal .bar nav a.on { color: #fff; background: linear-gradient(180deg, rgba(59, 140, 255, .0), rgba(59, 140, 255, .16)); }
body.portal .bar nav a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); box-shadow: 0 0 10px rgba(59, 140, 255, .8); }
body.portal .bar nav a.on .ni { color: var(--blue); }
body.portal .bar nav .ni { position: relative; display: inline-flex; }
body.portal .bar nav .ni .ic { width: 22px; height: 22px; }
body.portal .bar nav .badge { position: absolute; top: -6px; right: -12px; margin: 0; font-size: 10px; min-width: 17px; padding: 1px 4px; box-shadow: 0 0 0 2px #0a111b; }
body.portal .bar nav .nav-extra { display: none; }
body.portal .map-btn { color: #cfe2ff; background: rgba(59, 140, 255, .1); border: 1px solid rgba(59, 140, 255, .7); border-radius: 10px; padding: 10px 14px; gap: 8px; box-shadow: 0 0 18px rgba(59, 140, 255, .18) inset; }
body.portal .map-btn:hover { background: rgba(59, 140, 255, .2); color: #fff; }
body.portal .map-btn .ic { width: 18px; height: 18px; } body.portal .map-btn .ic.sm { width: 13px; height: 13px; opacity: .8; }
body.portal details.who { position: relative; }
body.portal details.who summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 8px; border-radius: 10px; color: #e6edf5; font-weight: 600; font-size: 15px; }
body.portal details.who summary::-webkit-details-marker { display: none; }
body.portal details.who summary:hover, body.portal details.who[open] summary { background: rgba(255, 255, 255, .05); }
body.portal details.who .avatar { width: 38px; height: 38px; border: 2px solid rgba(255, 255, 255, .14); }
body.portal details.who .chev { width: 16px; height: 16px; opacity: .7; transition: transform .15s; } body.portal details.who[open] .chev { transform: rotate(180deg); }
body.portal .who-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; background: #0e1824; border: 1px solid var(--glass-line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); z-index: 30; }
body.portal .who-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; }
body.portal .who-head small { color: var(--ink-2); font-size: 12.5px; word-break: break-all; }
body.portal .who-menu a, body.portal .who-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; border: 0; background: none; color: var(--ink); font: 500 14px var(--font); cursor: pointer; text-align: left; }
body.portal .who-menu a:hover, body.portal .who-menu button:hover { background: rgba(255, 255, 255, .06); text-decoration: none; }
body.portal .who-menu .ic { width: 18px; height: 18px; color: var(--ink-2); }
body.portal .menu-btn { align-items: center; gap: 6px; color: #e6edf5; border-color: var(--glass-line); border-radius: 10px; }
body.portal .menu-btn .ic { width: 18px; height: 18px; }
@media (max-width: 1520px) { body.portal .bar nav a, body.portal .bar nav .linkish { min-width: 66px; padding: 8px 5px 7px; font-size: 12px; } body.portal .bar-in { gap: 12px; } }
@media (max-width: 1240px) { body.portal .bar nav a, body.portal .bar nav .linkish { min-width: 64px; padding: 8px 5px 7px; font-size: 12px; } body.portal .map-btn span, body.portal .map-btn .ic.sm { display: none; } body.portal .map-btn { padding: 10px; } }
@media (max-width: 1060px) { body.portal .brand-s { display: none; } body.portal details.who .name { display: none; } }
@media (max-width: 960px) {
  body.portal .bar-in { flex-wrap: wrap; min-height: 64px; gap: 10px; }
  body.portal .menu-btn { display: inline-flex; margin-left: auto; order: 2; }
  body.portal .map-btn { order: 3; } body.portal details.who { order: 4; }
  body.portal .bar nav { order: 5; display: none; width: 100%; margin: 0; flex-direction: row; flex-wrap: wrap; padding: 4px 0 12px; gap: 4px; }
  body.portal .bar-in.open nav { display: flex; }
  body.portal .bar nav a, body.portal .bar nav .linkish { flex-direction: row; justify-content: flex-start; gap: 10px; width: calc(50% - 2px); min-width: 0; padding: 11px 12px; border-radius: 9px; font-size: 14px; }
  body.portal .bar nav a.on::after { left: 0; right: auto; top: 8px; bottom: 8px; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  body.portal .bar nav .nav-extra { display: flex; }
  body.portal .bar nav form.nav-extra { width: calc(50% - 2px); } body.portal .bar nav form.nav-extra .linkish { width: 100%; }
  body.portal .bar nav .badge { right: -10px; }
}
@media (max-width: 520px) { body.portal .brand-n { font-size: 18px; } body.portal .brand .logo { width: 34px; height: 34px; } body.portal .map-btn { display: none; } body.portal .bar nav a, body.portal .bar nav form.nav-extra { width: 100%; } }

/* page surfaces (every portal page): frosted glass cards on the sky */
body.portal .wrap { max-width: 1280px; padding: 30px 20px 60px; }
body.portal .card { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 16px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow); padding: 20px 22px; }
body.portal .stat, body.portal .thumb, body.portal .tbl-wrap { background: var(--glass); border-color: var(--glass-line); }
body.portal .stat { border-radius: 14px; }
body.portal .head h1, body.portal h1 { font-size: 28px; }
body.portal .btn { background: rgba(255, 255, 255, .04); border-color: var(--glass-line); color: var(--ink); border-radius: 9px; }
body.portal .btn:hover { background: rgba(255, 255, 255, .09); }
body.portal .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; } body.portal .btn.primary:hover { background: #2f7cf0; }
body.portal input[type=text], body.portal input[type=email], body.portal input[type=password], body.portal input[type=number], body.portal input[type=date],
body.portal input[type=search], body.portal input[type=url], body.portal select, body.portal textarea { background: rgba(6, 12, 20, .7); border-color: var(--glass-line); color: var(--ink); }
body.portal select option { background: #0e1824; }
body.portal .flash.ok { color: #7ee2a8; } body.portal .flash.error { color: #ff9b9b; } body.portal .flash.info { color: #9cc1ff; }
body.portal .notice { background: rgba(255, 210, 63, .1); color: #f3dc9b; }
body.portal .pill { background: rgba(255, 255, 255, .04); }
body.portal .pill.ok { color: var(--ok); border-color: rgba(54, 196, 122, .55); background: rgba(54, 196, 122, .1); display: inline-flex; align-items: center; gap: 4px; }
body.portal .pill.purple { color: #c4a6ff; }
body.portal .empty { border-color: var(--glass-line); }
body.portal .codes { background: rgba(6, 12, 20, .7); }
body.portal .steps li::before { background: var(--accent); }
body.portal .tabs a.on { color: #fff; }
body.portal footer.foot { color: #7f8fa2; } body.portal footer.foot a { color: inherit; }

/* dashboard */
body.portal .hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 4px 0 22px; }
body.portal .hero h1 { font-size: 38px; margin: 0 0 6px; letter-spacing: -.01em; text-shadow: 0 2px 16px rgba(0, 0, 0, .5); }
body.portal .hero .hl { color: var(--blue); }
body.portal .hero .lede { color: #b8c5d4; font-size: 17px; margin: 0; }
body.portal .since { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(14, 23, 35, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
body.portal .since .ic { width: 24px; height: 24px; color: #b8c5d4; }
body.portal .since span { display: flex; flex-direction: column; line-height: 1.25; } body.portal .since small { color: var(--ink-2); font-size: 13px; } body.portal .since b { font-weight: 600; }
body.portal .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 20px; }
body.portal .stat2 {
  --tone: var(--blue); display: flex; align-items: center; gap: 18px; padding: 20px 20px 20px 22px; border-radius: 16px; color: var(--ink); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tone) 22%, transparent), transparent 60%), var(--glass);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow); transition: transform .15s, border-color .15s;
}
body.portal .stat2.green { --tone: var(--green); } body.portal .stat2.purple { --tone: var(--purple); }
body.portal .stat2:hover { transform: translateY(-2px); border-color: var(--tone); text-decoration: none; }
body.portal .stat2 .si { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; color: var(--tone);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--tone) 34%, transparent), color-mix(in srgb, var(--tone) 10%, transparent)); box-shadow: 0 0 24px color-mix(in srgb, var(--tone) 25%, transparent); }
body.portal .stat2 .si .ic { width: 32px; height: 32px; stroke-width: 2; }
body.portal .stat2 .st { display: flex; flex-direction: column; min-width: 0; flex: 1; }
body.portal .stat2 .n { font-size: 34px; font-weight: 600; line-height: 1; color: var(--tone); }
body.portal .stat2 .l { font-size: 17px; font-weight: 600; margin-top: 6px; }
body.portal .stat2 .d { color: #a9b7c7; font-size: 13.5px; margin-top: 2px; }
body.portal .stat2 .go { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--glass-line); display: flex; align-items: center; justify-content: center; flex: none; color: #dbe5ef; }
body.portal .stat2:hover .go { border-color: var(--tone); color: var(--tone); }
body.portal .split.dash { grid-template-columns: 1fr 380px; gap: 20px; }
body.portal .ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
body.portal .ch h2 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 10px; }
body.portal .ch h2 .ic { width: 22px; height: 22px; color: #c3d0de; }
body.portal .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
body.portal .more .ic { width: 16px; height: 16px; transition: transform .15s; } body.portal .more:hover { text-decoration: none; } body.portal .more:hover .ic { transform: translateX(3px); }
body.portal .ib { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
body.portal .ib:hover { background: rgba(255, 255, 255, .07); color: #fff; }
body.portal .thumbs2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
body.portal .thumb2 { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid var(--glass-line); background: rgba(8, 14, 22, .7); color: var(--ink); text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
body.portal .thumb2:hover { transform: translateY(-2px); border-color: rgba(59, 140, 255, .7); box-shadow: 0 0 0 1px rgba(59, 140, 255, .35), 0 10px 24px rgba(0, 0, 0, .4); text-decoration: none; }
body.portal .thumb2 .img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 40%, #1b2a3d, #0c141f); display: flex; align-items: center; justify-content: center; }
body.portal .thumb2 .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
body.portal .thumb2 .none { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #6f8197; font-size: 12px; }
body.portal .thumb2 .kind { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(5, 10, 16, .66); color: #e8eef5; }
body.portal .thumb2 .kind .ic { width: 16px; height: 16px; }
body.portal .thumb2 .cap { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
body.portal .thumb2 .cap b { font-size: 14.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.portal .thumb2 .k { color: #a9b7c7; font-size: 13px; }
body.portal .thumb2 .when { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 6px; color: #b8c5d4; font-size: 13px; }
body.portal .thumb2 .when .ic { width: 15px; height: 15px; }
body.portal .empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 14px; color: #a9b7c7; border-style: dashed; border-radius: 12px; }
body.portal .empty .ic.big { color: #8fa2b8; margin-bottom: 2px; } body.portal .empty b { color: var(--ink); } body.portal .empty .btn { margin-top: 8px; }
body.portal .empty.quiet { border: 0; background: rgba(255, 255, 255, .025); }
body.portal .list .li-i { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(59, 140, 255, .12); color: var(--blue); flex: none; }
body.portal .list .li-i .ic { width: 18px; height: 18px; }
body.portal .acct-who { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
body.portal .acct-who .avatar.lg { width: 76px; height: 76px; border: 3px solid rgba(255, 255, 255, .12); box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
body.portal .acct-who b { font-size: 18px; margin-right: 8px; }
body.portal .kv2 { display: grid; grid-template-columns: max-content 1fr; gap: 12px 16px; font-size: 14px; margin: 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
body.portal .kv2 dt { display: flex; align-items: center; gap: 10px; color: #a9b7c7; } body.portal .kv2 dt .ic { width: 18px; height: 18px; }
body.portal .kv2 dd { margin: 0; word-break: break-word; color: var(--ink); }
body.portal .acct-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
body.portal .btn.tile { justify-content: flex-start; gap: 10px; padding: 13px 14px; font-size: 14px; border-radius: 10px; }
body.portal .btn.tile .ic { width: 19px; height: 19px; color: var(--blue); }
body.portal .btn.tile.primary-o { border-color: var(--accent); background: rgba(59, 140, 255, .14); box-shadow: 0 0 16px rgba(59, 140, 255, .15) inset; }
@media (max-width: 1180px) { body.portal .thumbs2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { body.portal .stats { grid-template-columns: 1fr; } body.portal .split.dash { grid-template-columns: 1fr; } body.portal .hero h1 { font-size: 30px; } }
@media (max-width: 520px) {
  body.portal .bar-in { padding: 0 12px; gap: 8px; } body.portal .menu-btn span { display: none; } body.portal .menu-btn { padding: 8px; } body.portal details.who .chev { display: none; }
  body.portal .ch { flex-wrap: wrap; } body.portal .ch h2 { font-size: 17px; } body.portal .stat2 { padding: 16px; gap: 14px; } body.portal .stat2 .si { width: 52px; height: 52px; } body.portal .stat2 .si .ic { width: 26px; height: 26px; }
  body.portal .thumbs2 { grid-template-columns: 1fr 1fr; gap: 10px; } body.portal .acct-btns { grid-template-columns: 1fr; } body.portal .wrap { padding: 20px 14px 50px; } }
@media (prefers-reduced-motion: reduce) { body.portal .stat2, body.portal .thumb2, body.portal .more .ic { transition: none; } }

/* ======================================================================================================================
   WEATHER PAGES (/weather for everyone, /locations for signed-in users): the same dark glass as the portal.
   ====================================================================================================================== */
body.portal.guest .guest-nav { display: flex; margin: 0 auto; gap: 2px; align-self: stretch; }
body.portal.guest .guest-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 76px; padding: 8px; color: #9eadbf; font-size: 12.5px; font-weight: 500; position: relative; }
body.portal.guest .guest-nav a:hover { color: #fff; text-decoration: none; }
body.portal.guest .guest-nav a.on { color: #fff; } body.portal.guest .guest-nav a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
body.portal.guest .guest-nav .ni .ic { width: 22px; height: 22px; }
body.portal .map-btn.primary { background: var(--accent); color: #fff; }
body.portal .wx .ic { width: 20px; height: 20px; } body.portal .wx .ic.xs { width: 13px; height: 13px; } body.portal .wx .ic.big { width: 30px; height: 30px; }
.wi { width: 40px; height: 40px; flex: none; } .wi-lg { width: 48px; height: 48px; } .wi-xl { width: 92px; height: 92px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
.wx-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.wx-find { position: relative; flex: 1; min-width: 260px; max-width: 560px; }
.wx-find > .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #8fa3b8; pointer-events: none; }
.wx-find input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px 0 42px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(6, 12, 20, .7); color: var(--ink); font: inherit; font-size: 15px; }
.wx-find input:focus { border-color: var(--accent); outline: 2px solid rgba(59, 140, 255, .25); }
.wx-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; padding: 6px; border-radius: 12px; background: #0e1824; border: 1px solid var(--glass-line); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); max-height: 320px; overflow-y: auto; }
.wx-res { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.wx-res:hover, .wx-res:focus-visible { background: rgba(255, 255, 255, .07); outline: none; }
.wx-res .ic { color: var(--blue); flex: none; } .wx-res span { display: flex; flex-direction: column; min-width: 0; } .wx-res b { font-weight: 600; } .wx-res small { color: var(--ink-2); }
.wx-res-none { padding: 10px 12px; color: var(--ink-2); font-size: 13.5px; }
.wx-mine select { height: 46px; border-radius: 12px; min-width: 200px; }
.wx-intro h1, .wx-intro h2 { margin-bottom: 6px; } .wx-intro .lede { color: #b8c5d4; font-size: 16px; }
.wx-loading { display: flex; align-items: center; gap: 12px; padding: 40px 10px; color: var(--ink-2); justify-content: center; }
.wx-loading .ic { animation: wx-spin 1.6s linear infinite; } @keyframes wx-spin { to { transform: rotate(360deg); } }
.wx-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 16px; }
.wx-place h1 { font-size: 34px; margin: 0 0 2px; letter-spacing: -.01em; text-shadow: 0 2px 16px rgba(0, 0, 0, .5); }
.wx-place .muted { font-size: 13.5px; }
.wx-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wx-acts .btn.saved { border-color: rgba(54, 196, 122, .6); color: var(--ok); }
.useg { display: inline-flex; border: 1px solid var(--glass-line); border-radius: 9px; overflow: hidden; }
.ub { padding: 7px 11px; border: 0; background: rgba(255, 255, 255, .04); color: var(--ink-2); font: 600 13px var(--font); cursor: pointer; } .ub.on { background: var(--accent); color: #fff; }
.wx-save-note { flex-basis: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: rgba(59, 140, 255, .12); border: 1px solid rgba(59, 140, 255, .4); font-size: 14px; }
.wx-save-note .ic { color: var(--blue); flex: none; } .wx-save-note span { flex: 1; } .wx-save-note[hidden] { display: none; }
.wx-now-main { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.wx-now-t { display: flex; flex-direction: column; gap: 2px; }
.wx-temp { font-size: 64px; font-weight: 600; line-height: 1; letter-spacing: -.02em; } .wx-temp small { font-size: 22px; font-weight: 500; color: var(--ink-2); margin-left: 4px; vertical-align: top; }
.wx-text { font-size: 20px; font-weight: 600; } .wx-feels { color: #b8c5d4; font-size: 14.5px; }
.wx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.wx-grid.small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.wx-cell { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid var(--glass-line-2, rgba(120, 150, 185, .12)); }
.wx-cell .ic { color: var(--blue); flex: none; } .wx-cell span { display: flex; flex-direction: column; min-width: 0; } .wx-cell small { color: var(--ink-2); font-size: 12px; } .wx-cell b { font-size: 15px; }
.wx-obs { margin: 14px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--ink-2); font-size: 12.5px; } .wx-stale { color: var(--warn); }
.wx-quiet { display: flex; align-items: center; gap: 8px; margin: 0; color: #9fd9b6; } .wx-quiet .ic { color: var(--ok); }
.wx-alert { border: 1px solid var(--glass-line); border-left: 4px solid var(--warn); border-radius: 10px; margin-bottom: 8px; background: rgba(255, 255, 255, .03); }
.wx-alert.sev-extreme, .wx-alert.sev-severe { border-left-color: var(--bad); } .wx-alert.sev-minor { border-left-color: var(--blue); }
.wx-alert summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none; } .wx-alert summary::-webkit-details-marker { display: none; }
.wx-al-h { display: flex; flex-direction: column; } .wx-al-h b { font-size: 15px; } .wx-al-h small { color: var(--ink-2); }
.wx-alert .chev { transition: transform .15s; color: var(--ink-2); } .wx-alert[open] .chev { transform: rotate(180deg); }
.wx-alert.is-target { box-shadow: 0 0 0 2px var(--blue), 0 6px 24px rgba(0, 0, 0, .35); }      /* the alert opened from the map's briefing */
.wx-al-go { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 4px 0 10px; } .wx-al-go .muted { font-size: 13px; }
.wx-al-b { padding: 0 14px 14px; } .wx-al-head { font-weight: 600; margin-bottom: 4px; }
.wx-al-cols { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; } .wx-al-b h4 { margin: 12px 0 4px; font-size: 13px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.wx-pre { white-space: pre-wrap; font: inherit; font-size: 14px; line-height: 1.5; margin: 0; color: #dbe6f1; }
.wx-cov { width: 300px; display: flex; flex-direction: column; gap: 4px; } .wx-cov svg { width: 100%; height: auto; max-height: 340px; background: rgba(6, 12, 20, .6); border: 1px solid var(--glass-line); border-radius: 8px; } .wx-cov small { color: var(--ink-2); font-size: 11.5px; }
.wx-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.wx-h { flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--glass-line-2, rgba(120, 150, 185, .12)); background: rgba(255, 255, 255, .03); color: var(--ink); font: inherit; cursor: pointer; scroll-snap-align: start; }
.wx-h:hover { background: rgba(255, 255, 255, .07); } .wx-h.on { border-color: var(--accent); background: rgba(59, 140, 255, .14); }
.wx-h-t { font-size: 12.5px; color: var(--ink-2); } .wx-h b { font-size: 17px; } .wx-h-p { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--ink-2); } .wx-h-p.wet { color: var(--blue); } .wx-h-w { font-size: 11.5px; color: var(--ink-2); }
.wx-hour-detail { margin-top: 10px; padding: 12px; border-radius: 12px; border: 1px solid rgba(59, 140, 255, .4); background: rgba(59, 140, 255, .08); } .wx-hour-detail[hidden] { display: none; }
.wx-hd-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; } .wx-hd-head div { flex: 1; display: flex; flex-direction: column; } .wx-hd-head small { color: var(--ink-2); }
.wx-daygrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.wx-day { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 14px; border: 1px solid var(--glass-line-2, rgba(120, 150, 185, .12)); background: rgba(255, 255, 255, .03); color: var(--ink); font: inherit; cursor: pointer; text-align: center; transition: transform .12s, border-color .12s; }
.wx-day:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .06); } .wx-day.on { border-color: var(--accent); background: rgba(59, 140, 255, .12); }
.wx-day-l { display: flex; flex-direction: column; font-weight: 600; } .wx-day-l small { color: var(--ink-2); font-weight: 500; }
.wx-day-t { display: flex; gap: 8px; align-items: baseline; } .wx-day-t b { font-size: 20px; } .wx-day-t span { color: var(--ink-2); font-size: 15px; }
.wx-day-x { font-size: 13px; color: #cbd6e1; min-height: 2.6em; display: flex; align-items: center; }
.wx-day-m { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--ink-2); } .wx-day-m > span { display: flex; align-items: center; justify-content: center; gap: 3px; }
.wx-day-snow { font-size: 11.5px; color: #9be3f5; } .wx-day-note { font-size: 11px; color: var(--ink-2); font-style: italic; }
.wx-foot { color: var(--ink-2); font-size: 12.5px; text-align: center; margin: 4px 0 20px; }
/* the day in words and the week ahead (wx.js wordsHtml), and the guests' note where the model comparison would be */
.wx-words { display: grid; grid-template-columns: 1fr; gap: 14px 22px; }
@media (min-width: 900px) { .wx-words { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.wx-word { border-left: 4px solid var(--ok); padding: 2px 0 2px 14px; min-width: 0; }
.wx-word.lv-watch { border-left-color: var(--warn); } .wx-word.lv-alert { border-left-color: var(--bad); } .wx-word.lv-week { border-left-color: var(--accent); }
.wx-word small { display: block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.wx-word b { display: block; font-size: 16px; margin: 2px 0 4px; } .wx-word p { margin: 0; font-size: 14px; line-height: 1.5; }
.wx-words-src { grid-column: 1 / -1; margin: 0; font-size: 12px; }
.wx-more { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13.5px; margin: 0 0 14px; }
/* My Locations */
.locs-split { grid-template-columns: 380px minmax(0, 1fr); gap: 20px; } .locs-split > * { min-width: 0; }
.wx-hours, .wx-days, .wx-now { min-width: 0; }
.locs-card .wx-find { max-width: none; margin-bottom: 12px; } .locs-card .wx-find input { height: 42px; font-size: 14px; }
.locs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.loc { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 4px; border-radius: 12px; border: 1px solid var(--glass-line-2, rgba(120, 150, 185, .12)); background: rgba(255, 255, 255, .03); }
.loc.is-on { border-color: var(--accent); background: rgba(59, 140, 255, .12); } .loc.is-drag { position: relative; z-index: 3; background: #15243a; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.loc-grip { display: none; width: 22px; height: 36px; place-items: center; color: #7a8ea3; cursor: grab; touch-action: none; } .loc-grip .ic { width: 16px; height: 16px; }
.loc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 4px 6px; color: var(--ink); text-decoration: none; } .loc-main:hover { text-decoration: none; color: #fff; }
.loc-main b { font-weight: 600; display: flex; align-items: center; gap: 6px; } .loc-main small { color: var(--ink-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-def { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: rgba(246, 196, 83, .18); color: #f6c453; }
.loc-wx { display: flex; align-items: center; gap: 4px; min-width: 64px; justify-content: flex-end; font-size: 14px; } .loc-wx .wi { width: 26px; height: 26px; }
.loc-ed { display: none; gap: 2px; } .loc-form { margin: 0; display: contents; }
.locs-list.is-editing .loc-ed { display: flex; } .locs-list.is-editing .loc-grip { display: grid; } .locs-list.is-editing .loc-wx { display: none; }
.loc-ed .ib { width: 30px; height: 30px; } .loc-ed .ib:disabled { opacity: .3; } .loc-ed .ib.danger:hover { color: var(--bad); } .loc.is-default .loc-ed .ib:disabled { color: #f6c453; opacity: .9; }
.loc-rename-form { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(59, 140, 255, .4); background: rgba(59, 140, 255, .08); margin: 2px 0 6px; } .loc-rename-form label { margin-top: 0; }
#locs-edit[aria-pressed="true"] { background: rgba(59, 140, 255, .16); color: #fff; }
@media (max-width: 1100px) { .wx-daygrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .locs-split { grid-template-columns: 320px 1fr; } }
@media (max-width: 860px) { .locs-split { grid-template-columns: 1fr; } .wx-al-cols { grid-template-columns: 1fr; } .wx-cov { width: 100%; max-width: 420px; } }
@media (max-width: 560px) { .wx-place h1 { font-size: 26px; } .wx-temp { font-size: 52px; } .wi-xl { width: 70px; height: 70px; } .wx-now-main { gap: 14px; } .wx-daygrid { grid-template-columns: repeat(2, 1fr); gap: 8px; } .wx-h { width: 74px; } body.portal.guest .guest-nav { display: none; } body.portal.guest .map-btn.primary { display: none; } body.portal.guest .map-btn:not(.primary) { display: inline-flex; margin-left: auto; padding: 8px 10px; } body.portal.guest .map-btn span { display: inline; } body.portal.guest .bar-in { flex-wrap: nowrap; } }
.wx-map { padding: 0; overflow: hidden; } .wx-map .ch { padding: 14px 18px 10px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .wx-map .muted { font-size: 13px; }
.wx-map-f { display: block; width: 100%; height: 520px; border: 0; background: #0b121a; } @media (max-width: 700px) { .wx-map-f { height: 440px; } }
.loc-full { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--ink-2); flex: none; } .loc-full:hover { background: rgba(255, 255, 255, .10); color: #fff; } .loc-full .ic { width: 16px; height: 16px; } .locs-list.is-editing .loc-full { display: none; }

/* ======================================================================================================================
   FORECAST DASHBOARD, update 2: the compact radar preview, hour and day details, the model comparison matrix and the
   trend charts (assets/wx-models.js). Same glass, same spacing; colour only where it carries a value.
   ====================================================================================================================== */
/* radar preview (compact) */
.wx-map .ch { align-items: center; }
.wx-map-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.wx-map-acts .btn .ic { width: 15px; height: 15px; margin-right: 5px; }
.wx-map-f { height: 300px; } .wx-map.fcst .wx-map-f { height: 480px; }
.wx-map-foot { margin: 0; padding: 8px 18px 12px; font-size: 12.5px; }
@media (max-width: 700px) { .wx-map-f { height: 240px; } .wx-map.fcst .wx-map-f { height: 400px; } .wx-map-acts { margin-left: 0; width: 100%; } }
/* hour and day details */
.wx-hd-sev { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 13.5px; color: #cbd6e1; } .wx-hd-sev .ic { color: var(--warn); margin-top: 2px; } .wx-hd-sev b { color: var(--ink); }
.wx-day-detail { margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px solid rgba(59, 140, 255, .4); background: rgba(59, 140, 255, .08); } .wx-day-detail[hidden] { display: none; }
.wx-parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wx-part { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 8px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(120, 150, 185, .12); text-align: center; font-size: 12.5px; color: var(--ink-2); }
.wx-part b { color: var(--ink); font-size: 14px; } .wx-part .wi { width: 34px; height: 34px; } .wx-part-t { font-size: 18px; font-weight: 600; color: var(--ink); } .wx-part-t small { font-weight: 500; color: var(--ink-2); font-size: 13px; }
.wx-part-x { color: #cbd6e1; } .wx-part-m { display: flex; align-items: center; gap: 4px; } .wx-part.off { opacity: .6; }
.wx-cell.on { border-color: var(--accent); background: rgba(59, 140, 255, .14); }
@media (max-width: 700px) { .wx-parts { grid-template-columns: 1fr 1fr; } }
/* matrix */
.mx .ch, .wx-ch .ch { flex-wrap: wrap; }
.mx-ctl { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; margin-bottom: 12px; }
.mx-ctl-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mx-models { display: flex; gap: 6px; flex-wrap: wrap; }
.mx-m { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border-radius: 9px; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .03); font-size: 13.5px; font-weight: 600; cursor: pointer; user-select: none; color: var(--ink-2); }
.mx-m input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mx-m.on { color: var(--ink); border-color: color-mix(in srgb, var(--mc) 70%, transparent); background: color-mix(in srgb, var(--mc) 16%, transparent); }
.mx-m.off { opacity: .45; cursor: not-allowed; } .mx-m small { font-weight: 500; }
.mx-m:focus-within { outline: 2px solid rgba(59, 140, 255, .5); outline-offset: 1px; }
.mx-swatch { width: 22px; height: 4px; border-radius: 2px; background: var(--mc); flex: none; } .mx-swatch[data-dash] { background: repeating-linear-gradient(90deg, var(--mc) 0 6px, transparent 6px 9px); }
.mx-sel { height: 38px; border-radius: 9px; padding: 0 10px; font: 600 13.5px var(--font); max-width: 100%; }
.mx-int .ub { padding: 7px 10px; }
.mx-sym { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.mx-note { display: flex; align-items: flex-start; gap: 7px; margin: 0 0 10px; font-size: 13px; color: #b8c5d4; } .mx-note .ic { color: var(--blue); margin-top: 2px; }
.mx-wrap { position: relative; overflow: auto; max-height: 520px; border: 1px solid var(--glass-line); border-radius: 12px; background: rgba(6, 12, 20, .55); scrollbar-width: thin; }
.mx-t { border-collapse: separate; border-spacing: 0; font-size: 13.5px; min-width: 100%; }
.mx-t th, .mx-t td { padding: 0; border-bottom: 1px solid rgba(120, 150, 185, .12); border-right: 1px solid rgba(120, 150, 185, .08); white-space: nowrap; }
.mx-t thead th { position: sticky; top: 0; z-index: 3; background: #0f1a28; color: var(--ink-2); font-weight: 600; font-size: 12.5px; text-align: center; padding: 7px 6px; }
.mx-t thead tr.mx-days th { top: 0; z-index: 4; font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; color: #8fa3b8; border-bottom-color: rgba(120, 150, 185, .25); }
.mx-t thead tr:not(.mx-days) th { top: 0; } .mx-t.int-12h thead tr:not(.mx-days) th, .mx-t.int-6h thead tr:not(.mx-days) th, .mx-t.int-3h thead tr:not(.mx-days) th, .mx-t.int-hourly thead tr:not(.mx-days) th { top: 29px; }
.mx-t thead th b { display: block; color: var(--ink); } .mx-t thead th small { display: block; font-weight: 500; color: var(--ink-2); }
.mx-corner { position: sticky; left: 0; z-index: 5 !important; text-align: left !important; min-width: 150px; }
.mx-corner small { display: block; font-weight: 500; }
.mx-row { position: sticky; left: 0; z-index: 2; background: #0f1a28; text-align: left; padding: 8px 10px !important; min-width: 150px; font-weight: 600; }
.mx-row .mx-dot { display: inline-block; margin-right: 8px; vertical-align: middle; } .mx-row span { vertical-align: middle; }
.mx-row small { color: var(--ink-2); font-weight: 500; font-size: 11.5px; margin-left: 8px; vertical-align: middle; }
.mx-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mc, #8fa3b8); flex: none; box-shadow: 0 0 8px color-mix(in srgb, var(--mc, #8fa3b8) 70%, transparent); } .mx-dot.lg { width: 16px; height: 16px; }
.mx-t td { text-align: center; padding: 9px 8px; min-width: 58px; color: var(--ink); font-variant-numeric: tabular-nums; position: relative; cursor: pointer; transition: box-shadow .1s; }
.mx-t.int-daily td { min-width: 78px; padding: 12px 8px; font-size: 14.5px; }
.mx-t td small { font-size: 11px; opacity: .85; }
.mx-t td.mx-c:hover, .mx-t td.mx-c:focus-visible, .mx-t td.on { box-shadow: inset 0 0 0 2px #fff; outline: none; z-index: 1; }
.mx-t td.mx-none, .mx-t td.mx-na { color: #6f8197; cursor: default; }
.mx-t td.interp { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255, 255, 255, .13) 6px 8px); }
.mx-t td.part::after { content: ""; position: absolute; right: 3px; top: 3px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .55; }
.mx-ice { position: absolute; left: 4px; top: 2px; font-style: normal; font-size: 10px; opacity: .9; }
.mx-t td.sym1::before { content: "▴"; position: absolute; left: 5px; bottom: 2px; font-size: 9px; opacity: .8; } .mx-t td.sym2::before { content: "▴▴"; position: absolute; left: 4px; bottom: 2px; font-size: 9px; opacity: .9; }
.mx-agree th.mx-row, .mx-agree td { background: rgba(255, 255, 255, .025); cursor: default; }
.ag { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; } .ag-0 { background: #3ddc97; } .ag-1 { background: #f0b84a; } .ag-2 { background: #ef6464; }
.mx-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.mx-leg { display: flex; flex-direction: column; gap: 6px; } .mx-leg-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mx-leg-bar { display: flex; height: 14px; border-radius: 4px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .15); } .mx-leg-bar i { display: block; width: 26px; height: 100%; }
.mx-leg-lab { display: flex; gap: 10px; font-variant-numeric: tabular-nums; } .mx-leg-lab span:first-child::after { content: " →"; }
.mx-keys { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .mx-keys > span { display: inline-flex; align-items: center; gap: 5px; }
.mx-how { display: inline-block; } .mx-how summary { cursor: pointer; color: var(--blue); list-style: none; display: inline-flex; align-items: center; gap: 5px; } .mx-how summary::-webkit-details-marker { display: none; }
.mx-how[open] summary { margin-bottom: 6px; } .mx-how > div, .mx-how > table, .mx-how > p { max-width: 720px; line-height: 1.5; }
.mx-detail { margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px solid rgba(59, 140, 255, .4); background: rgba(59, 140, 255, .08); } .mx-detail[hidden] { display: none; }
.mx-meta { margin-top: 12px; font-size: 12.5px; color: var(--ink-2); } .mx-meta-d { display: block; } .mx-meta-d > summary .ic { color: var(--blue); }
.mx-meta-t { border-collapse: collapse; font-size: 12.5px; margin: 4px 0 8px; width: 100%; max-width: 900px; }
.mx-meta-t th, .mx-meta-t td { text-align: left; padding: 5px 10px 5px 0; border-bottom: 1px solid rgba(120, 150, 185, .12); vertical-align: top; } .mx-meta-t thead th { color: #8fa3b8; font-weight: 600; } .mx-meta-t tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.mx-meta-t tbody th .mx-dot { display: inline-block; margin-right: 7px; vertical-align: middle; } .mx-meta-t small { color: var(--ink-2); }
.mx-tip { position: fixed; z-index: 60; pointer-events: none; display: flex; flex-direction: column; gap: 2px; padding: 8px 11px; border-radius: 9px; background: #0e1824; border: 1px solid var(--glass-line); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: 12.5px; color: var(--ink-2); max-width: 300px; }
.mx-tip b { color: var(--ink); font-size: 13.5px; } .mx-tip[hidden] { display: none; }
/* charts */
.ch-legend { display: flex; gap: 6px; flex-wrap: wrap; }
.ch-lg { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border-radius: 9px; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .03); color: var(--ink); font: 600 13px var(--font); cursor: pointer; }
.ch-lg svg { width: 30px; height: 8px; } .ch-lg.off { opacity: .4; } .ch-lg.off svg { filter: grayscale(1); } .ch-lg.none { opacity: .45; cursor: not-allowed; } .ch-lg small { font-weight: 500; color: var(--ink-2); }
.ch-box { position: relative; width: 100%; border: 1px solid var(--glass-line); border-radius: 12px; background: rgba(6, 12, 20, .55); overflow: hidden; touch-action: pan-y; }
.ch-box svg { display: block; width: 100%; height: auto; cursor: crosshair; }
.ch-grid { stroke: rgba(120, 150, 185, .18); } .ch-day { stroke: rgba(120, 150, 185, .35); stroke-dasharray: 3 3; } .ch-now { stroke: #f6c453; stroke-width: 1.5; } .ch-cross { stroke: rgba(255, 255, 255, .6); }
.ch-ax { fill: #98a7b8; font: 11.5px var(--font); } .ch-nowl { fill: #f6c453; } .ch-unit { fill: #b8c5d4; }
.ch-brush { fill: rgba(59, 140, 255, .18); stroke: rgba(59, 140, 255, .7); } .ch-brush[hidden] { display: none; }
.ch-tip { position: absolute; z-index: 5; pointer-events: none; display: flex; flex-direction: column; gap: 3px; padding: 8px 11px; border-radius: 9px; background: rgba(14, 24, 36, .96); border: 1px solid var(--glass-line); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: 12.5px; color: var(--ink-2); min-width: 170px; }
.ch-tip > b { color: var(--ink); font-size: 13px; } .ch-tip > small { margin-top: -3px; margin-bottom: 3px; }
.ch-tip > span { display: flex; align-items: center; gap: 7px; } .ch-tip > span i { width: 9px; height: 9px; border-radius: 50%; background: var(--mc); flex: none; } .ch-tip > span b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; } .ch-tip em { color: var(--ink-2); font-style: normal; margin-left: 2px; }
.ch-tip[hidden] { display: none; }
#ch-note:empty { display: none; }
@media (max-width: 700px) {
  .mx-ctl { flex-direction: column; align-items: stretch; } .mx-ctl-r { justify-content: flex-start; } .mx-sel { flex: 1 1 100%; width: 100%; min-width: 0; }
  .mx-wrap { max-height: 440px; } .mx-corner, .mx-row { min-width: 92px; width: 92px; } .mx-row { padding: 8px 8px !important; } .mx-row .mx-dot { margin-right: 6px; } .mx-agree th.mx-row, .mx-pop th.mx-row, .mx-sec th.mx-row { white-space: normal !important; line-height: 1.25; } .mx-row small { display: none !important; } .mx-t td { min-width: 52px; padding: 8px 6px; font-size: 13px; } .mx-t.int-daily td { min-width: 64px; padding: 10px 6px; font-size: 13.5px; }
  .mx-foot { flex-direction: column; } .mx-tip { display: none !important; }
}

/* My Locations layout: the title sits in the left column, so the forecast starts at the top of the page on desktop.
   The place header keeps the name and its buttons on one row when they fit (the long place line shortens instead). */
body.portal .locs-hero { margin: 4px 0 16px; } body.portal .locs-hero h1 { font-size: 34px; } body.portal .locs-hero .lede { font-size: 15px; }
.wx-place { flex: 1 1 240px; min-width: 0; } .wx-place h1 { overflow-wrap: anywhere; }
.wx-place .muted { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-acts { flex: 0 1 auto; justify-content: flex-end; }
@media (max-width: 860px) { .wx-place .muted { white-space: normal; } .wx-acts { justify-content: flex-start; } }

/* ======================================================================================================================
   1.2.0-beta.3 refinement: denser desktop layout, observed vs forecast labels, clearer matrix states, the Overview weather card.
   ====================================================================================================================== */
#wx-app { container-type: inline-size; }
/* current conditions beside the radar when the column is wide enough; stacked otherwise (phones, narrow windows) */
.wx-duo { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; } .wx-duo > .card { margin: 0; }
@container (min-width: 820px) {
  .wx-duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .wx-duo .wx-map { display: flex; flex-direction: column; } .wx-duo .wx-map-f { flex: 1; height: auto; min-height: 260px; }
  .wx-duo .wx-now .wx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.wx-now { padding: 18px 20px 14px; }
.wx-now-main { flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; align-items: center; }
.wx-now .wx-grid { gap: 8px; } .wx-now .wx-cell { padding: 8px 10px; } .wx-now .wx-cell b { font-size: 14.5px; }
.wx-cell b.miss { color: var(--ink-2); font-weight: 500; font-size: 13px; }
.wx-hilo { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: #cbd6e1; flex-basis: 100%; }
@container (min-width: 1100px) { .wx-hilo { flex-basis: auto; margin-left: auto; } }
.wx-hilo > span { display: flex; align-items: center; gap: 8px; }
.tag-o, .tag-f { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; min-width: 70px; text-align: center; }
.tag-o { background: rgba(61, 220, 151, .14); color: #7ee2b4; border: 1px solid rgba(61, 220, 151, .35); }
.tag-f { background: rgba(246, 196, 83, .12); color: #f6c453; border: 1px solid rgba(246, 196, 83, .35); }
.wx-flag { align-self: flex-start; font-size: 12px; color: #ffb37a; border: 1px dashed rgba(255, 150, 80, .5); border-radius: 6px; padding: 2px 8px; }
.wx-obs { margin-top: 10px; } .wx-obs > span { flex: 1; min-width: 0; }
.wx-day-m small, .wx-h-p small { font-size: 10.5px; opacity: .8; }
/* matrix: the selected variable stands out; missing, not applicable and zero look different */
.mx-var-now { display: block; color: var(--ink); font-size: 13.5px; font-weight: 700; }
/* the comparison's title over the matrix (it used to fill the first column); the first column only names the models */
.mx-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 2px 0 8px; padding-left: 10px; border-left: 3px solid var(--accent); }
.mx-title .mx-var-now { font-size: 15px; } .mx-title small { color: var(--ink-2); font-size: 12.5px; }
.mx-corner-h { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: #8fa3b8; }

.mx-t thead th .mx-wi { width: 22px; height: 22px; display: block; margin: 0 auto 2px; } .mx-t thead tr.mx-days th .mx-wi { display: inline-block; vertical-align: middle; margin: 0 6px 0 0; width: 18px; height: 18px; }
.mx-t thead th.mx-rest small { color: #f6c453; }
.mx-t td.mx-none { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 5px, rgba(255, 255, 255, .07) 5px 7px); color: #6f8197; }
.mx-t td.mx-na2 { color: #8fa3b8; font-size: 11.5px; font-style: italic; cursor: default; }
.mx-t td.zero { color: #8fa3b8; }
.mx-t tr.mx-pop th.mx-row span { color: #c7d7e6; }
.mx-t tr.mx-sec th, .mx-t tr.mx-sec td { background: #142235; color: #b8c5d4; font-size: 12px; padding: 6px 10px; text-align: left; cursor: default; border-top: 2px solid rgba(59, 140, 255, .45); }
.mx-t tr.mx-sec th span { font-weight: 700; color: var(--ink); }
.mx-leg-u { font-weight: 600; color: var(--ink); min-width: 160px; }
.mx-leg-bar i { width: auto; min-width: 34px; padding: 0 4px; font: 600 10.5px/14px var(--font); font-style: normal; text-align: center; }
.mx-leg-bar { height: auto; }
.mx-k { display: inline-grid; place-items: center; width: 22px; height: 14px; border-radius: 3px; font: 600 9.5px var(--font); font-style: normal; border: 1px solid rgba(255, 255, 255, .15); }
.mx-k.k-none { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 4px, rgba(255, 255, 255, .14) 4px 6px); }
.mx-k.k-na { color: #8fa3b8; font-style: italic; } .mx-k.k-zero { color: #8fa3b8; }
.mx-k.k-part { position: relative; } .mx-k.k-part::after { content: ""; position: absolute; right: 2px; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: #cbd6e1; }
.mx-k.k-interp { background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgba(255, 255, 255, .25) 4px 6px); }
.mx-note span { flex: 1; }
/* charts: compact by default, Expand for the tall view */
.ch-title { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 2px 0 8px; font-size: 13px; color: var(--ink-2); } .ch-title b { color: var(--ink); font-size: 14px; }
#ch-big[aria-pressed="true"] { background: rgba(59, 140, 255, .16); }
/* beta data check */
.wx-check table { max-width: none; } .wx-check td small { color: var(--ink-2); } .ck-ok { color: var(--ok); font-weight: 700; } .ck-bad { color: var(--bad); font-weight: 700; }
.wx-check th { white-space: nowrap; color: var(--ink-2); font-weight: 600; }
/* Overview: weather first on the left, account and the counts on the right */
body.portal .split.dash2 { align-items: start; } body.portal .dash-l, body.portal .dash-r { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
body.portal .dash-l > .card, body.portal .dash-r > .card { margin: 0; }
body.portal .stats.stats-col { grid-template-columns: 1fr; gap: 12px; margin: 0; }
body.portal .stats-col .stat2 { padding: 14px 16px; gap: 14px; } body.portal .stats-col .stat2 .si { width: 46px; height: 46px; } body.portal .stats-col .stat2 .si .ic { width: 22px; height: 22px; }
body.portal .stats-col .stat2 .n { font-size: 24px; } body.portal .stats-col .stat2 .l { font-size: 15px; margin-top: 2px; } body.portal .stats-col .stat2 .d { font-size: 12.5px; } body.portal .stats-col .stat2 .go { width: 32px; height: 32px; }
.dwx .ch h2 small { font-size: 13px; font-weight: 500; } .dwx-links { display: flex; gap: 8px; flex-wrap: wrap; } .dwx-links .btn .ic { margin: 0 2px; }
.dwx-main { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; } .dwx-t { display: flex; flex-direction: column; gap: 2px; }
.dwx .wx-hilo { flex-basis: auto; margin-left: auto; }
.dwx-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; } .dwx-grid .wx-cell { padding: 8px 10px; }
.dwx-al { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.dwx-alert { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(227, 163, 58, .5); border-left: 4px solid var(--warn); background: rgba(227, 163, 58, .1); color: var(--ink) !important; font-size: 13.5px; text-decoration: none !important; }
.dwx-alert.sev-extreme, .dwx-alert.sev-severe { border-color: rgba(239, 100, 100, .55); border-left-color: var(--bad); background: rgba(239, 100, 100, .1); } .dwx-alert .ic { color: var(--warn); }
.dwx-more { font-size: 13px; align-self: center; }
.dwx-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.dwx-h { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(120, 150, 185, .12); font-size: 12px; color: var(--ink-2); }
.dwx-h .wi { width: 30px; height: 30px; } .dwx-h b { color: var(--ink); font-size: 15px; } .dwx-h span { display: flex; align-items: center; gap: 2px; }
.dwx-src { font-size: 12px; margin: 8px 0 0; }
@media (max-width: 960px) {
  /* one column: weather, then the account, the counts, recent investigations and messages */
  body.portal .split.dash2 { display: flex; flex-direction: column; gap: 20px; align-items: stretch; }      /* one column: every card full width (the desktop rule's align-items: start shrank the Account card) */ body.portal .dash-l, body.portal .dash-r { display: contents; }
  .dwx { order: 1; } body.portal .dash-r .acct { order: 2; } body.portal .stats-col { order: 3; } .dash-recent { order: 4; } .dash-msgs { order: 5; }
  body.portal .stats.stats-col { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) { body.portal .stats.stats-col { grid-template-columns: 1fr; } .dwx-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .dwx .wx-hilo { margin-left: 0; flex-basis: 100%; } }

/* ======================================================================================================================
   1.2.0-beta.5: dashboard polish, alert status line, fronts & pressure map, matrix disagreement / run hand-overs, diagnostics.
   ====================================================================================================================== */
/* type and controls: small text a step larger, clearer selected states */
.wx .muted, .wx small { font-size: max(12px, 1em * .86); }
.wx .ub { font-size: 13px; padding: 7px 11px; } .wx .ub.on { box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .55); }
.wx .btn:disabled, .wx .btn[disabled] { opacity: .45; cursor: not-allowed; }
.wx .card { margin-bottom: 18px; } .wx .card > .ch { margin-bottom: 12px; }
/* alerts: one quiet line when there are none, a strong card when there are */
.wx-status { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; margin: 0 0 14px; font-size: 13.5px; border: 1px solid var(--glass-line); background: rgba(14, 23, 35, .6); }
.wx-status.ok { color: #9fd9b6; } .wx-status.ok .ic { color: var(--ok); } .wx-status.warn { color: #f3dc9b; border-color: rgba(227, 163, 58, .45); } .wx-status.warn .ic { color: var(--warn); }
.wx-alerts.has { border-color: rgba(227, 163, 58, .55); box-shadow: 0 0 0 1px rgba(227, 163, 58, .2), var(--shadow); }
.wx-alerts.has.sev-severe { border-color: rgba(239, 100, 100, .65); box-shadow: 0 0 0 1px rgba(239, 100, 100, .25), 0 0 24px rgba(239, 100, 100, .15), var(--shadow); }
.wx-alerts.has .ch h2 .ic { color: var(--warn); } .wx-alerts.has.sev-severe .ch h2 .ic { color: var(--bad); }
/* observed vs forecast note: small for a few degrees, highlighted for a big gap, the reasons inside */
.wx-why { font-size: 12.5px; } .wx-why summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; }
.wx-why summary::-webkit-details-marker { display: none; } .wx-why summary::after { content: "why?"; text-decoration: underline; opacity: .8; }
.wx-why.small summary { color: #cbd6e1; border: 1px solid var(--glass-line); } .wx-why.big summary { color: #ffb37a; border: 1px solid rgba(255, 150, 80, .6); background: rgba(255, 150, 80, .08); }
.wx-why > div { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: rgba(6, 12, 20, .6); color: #cbd6e1; max-width: 520px; } .wx-why ul { margin: 4px 0 0; padding-left: 18px; }
/* map card: three views, a time bar for the weather map, a loading veil */
.wx-map .wx-map-acts .useg .ub { padding: 6px 10px; }
.wx-map-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 10px; align-items: center; }
.wx-map-bar .ub { border: 1px solid var(--glass-line); border-radius: 8px; } .wx-map-bar .ub small { opacity: .75; margin-left: 3px; }
.wx-map-box { position: relative; flex: 1; display: flex; min-height: 0; } .wx-map-box .wx-map-f { flex: 1; width: 100%; }
.wx-map-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(8, 14, 22, .72); color: var(--ink-2); font-size: 13px; pointer-events: none; }
.wx-map-load a { pointer-events: auto; } .wx-map-load[hidden] { display: none; }
.wx-map.mode-fcst .wx-map-f, .wx-duo .wx-map.mode-fcst .wx-map-box .wx-map-f { min-height: 380px; }
@container (min-width: 820px) { .wx-duo .wx-map-box .wx-map-f { min-height: 260px; height: auto; } }
/* 24 hours: tighter strip */
.wx-strip { gap: 6px; } .wx-h { width: 74px; padding: 8px 4px; gap: 3px; } .wx-h .wi { width: 32px; height: 32px; } .wx-h b { font-size: 16px; }
/* 10 days: one row of compact cards when there is room, a swipeable row on phones */
.wx-daygrid { gap: 8px; }
@container (min-width: 1000px) { .wx-daygrid { grid-template-columns: repeat(10, minmax(0, 1fr)); } .wx-day { padding: 10px 4px; gap: 4px; } .wx-day .wi-lg { width: 38px; height: 38px; } .wx-day-x { min-height: 2.4em; font-size: 12px; } .wx-day-t b { font-size: 17px; } }
@container (max-width: 640px) { .wx-daygrid { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; } .wx-day { flex: 0 0 132px; scroll-snap-align: start; } }
/* matrix: the shown variable(s) in one compact legend; disagreement and run hand-overs on the cells */
.mx-leg { display: flex; flex-direction: column; gap: 6px; } .mx-leg-u small { color: var(--ink-2); font-weight: 500; }
.mx-leg-bar i { min-width: 30px; }
.mx-t td.dis { box-shadow: inset 0 3px 0 #ef6464, inset 0 -3px 0 #ef6464; } .mx-t td.dis.on, .mx-t td.dis:hover { box-shadow: inset 0 0 0 2px #fff, inset 0 3px 0 #ef6464; }
.mx-t td.runchg { border-left: 2px dotted rgba(255, 255, 255, .75); }
.mx-n { position: absolute; left: 3px; top: 2px; font: 700 9px/1 var(--font); font-style: normal; opacity: .75; }
.mx-t td.ag-c { line-height: 1.1; } .mx-t td.ag-c small { display: block; font-size: 10.5px; color: var(--ink-2); margin-top: 2px; } .mx-t td.ag-c.lv2 small { color: #ff9b9b; font-weight: 700; }
.mx-k.k-run { border-left: 2px dotted #fff; } .mx-k.k-dis { box-shadow: inset 0 3px 0 #ef6464, inset 0 -3px 0 #ef6464; }
.mx-note { margin-bottom: 8px; font-size: 12.5px; }
.ch-run { font-style: normal; font-size: 10.5px; color: var(--ink-2); margin-left: 5px; }
/* diagnostics (beta): collapsed at the foot */
details.wx-check { padding: 12px 18px; } details.wx-check > summary { cursor: pointer; display: flex; align-items: center; gap: 10px; list-style: none; flex-wrap: wrap; } details.wx-check > summary::-webkit-details-marker { display: none; }
details.wx-check > summary .muted { font-size: 12.5px; } details.wx-check h4 { margin: 14px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
details.wx-check td:first-child { width: 48px; }
/* map card beside the conditions: title on one line, the controls on the next (no ragged wrap) */
@container (min-width: 820px) { .wx-duo .wx-map > .ch { flex-direction: column; align-items: flex-start; gap: 10px; } .wx-duo .wx-map .wx-map-acts { margin-left: 0; width: 100%; } .wx-duo .wx-map #wx-map-open { margin-left: auto; } }
/* beta.12: two answers per card - the NWS chance of precipitation, and model agreement as a word (never one merged number) */
.wx-ag { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; color: var(--ink-1, #e8eef6); white-space: nowrap; }
.wx-ag i, .wx-h-ag i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #8a97a8; }
.wx-ag.lv0 i, .wx-h-ag.lv0 i { background: #3ddc97; } .wx-ag.lv1 i, .wx-h-ag.lv1 i { background: #f6c453; } .wx-ag.lv2 i, .wx-h-ag.lv2 i { background: #ff6b6b; }
.wx-ag.lvna { color: var(--ink-3, #8a97a8); } .wx-ag.sm { font-size: 11px; }
.wx-hd-ag .wx-ag { margin-top: 6px; padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line, rgba(255,255,255,.14)); align-self: flex-start; font-size: 12.5px; }
.wx-hd-ag { display: flex; }
.wx-h-ag { display: flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--ink-2); } .wx-h-ag.lvna { opacity: .6; }
.wx-h-p.na, .wx-day-pc.na, .dwx-pc.na { color: var(--ink-3, #8a97a8); }
.wx-day-m > span.wx-day-pc { white-space: nowrap; gap: 2px; font-size: 11.5px; } .wx-day-pc small { font-size: 10px; opacity: .85; white-space: nowrap; }
.wx-day-pc.na small { font-size: 10px; white-space: normal; text-align: center; line-height: 1.2; }
.dwx-pc { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--ink-2); }
.wx-day-m .wx-ag { white-space: normal; text-align: center; line-height: 1.25; max-width: 100%; font-size: 10.5px; gap: 4px; }
.wx-day-m .wx-ag i { width: 7px; height: 7px; }
.wx-day-m > span.wx-day-pc.na { white-space: normal; flex-wrap: nowrap; align-items: center; }
.wx-day-m > span.wx-day-pc.na svg { flex: none; }
.wx-part .wx-ag { font-size: 11px; }
.wx-day-m > span.wx-day-pc.ens small { color: #c4b5fd; }      /* the ECMWF ensemble's chance: labelled apart from the NWS chance */
/* beta.15: a card's model-agreement word jumps to its column in the model comparison, outlined there */
.mx-wrap { position: relative; }
.mx-focus { position: absolute; z-index: 3; pointer-events: none; box-sizing: border-box; border: 3px solid #f6c453; border-radius: 9px; box-shadow: 0 0 0 4px rgba(246, 196, 83, .22), 0 0 22px rgba(246, 196, 83, .35); animation: mx-focus-in .5s ease-out; }
.mx-focus.lv0 { border-color: #3ddc97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .2), 0 0 22px rgba(61, 220, 151, .32); }
.mx-focus.lv2 { border-color: #ff6b6b; box-shadow: 0 0 0 4px rgba(255, 107, 107, .2), 0 0 22px rgba(255, 107, 107, .32); }
.mx-focus-note { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 8px 6px 10px; border-radius: 9px; font-size: 13px; background: rgba(246, 196, 83, .1); border: 1px solid rgba(246, 196, 83, .45); }
.mx-focus-note i { width: 10px; height: 10px; border-radius: 3px; border: 2px solid #f6c453; flex: none; }
.mx-focus-note.lv0 { background: rgba(61, 220, 151, .08); border-color: rgba(61, 220, 151, .45); } .mx-focus-note.lv0 i { border-color: #3ddc97; }
.mx-focus-note.lv2 { background: rgba(255, 107, 107, .08); border-color: rgba(255, 107, 107, .5); } .mx-focus-note.lv2 i { border-color: #ff6b6b; }
.mx-focus-note span { flex: 1; min-width: 0; } .mx-focus-note .ib { flex: none; width: 26px; height: 26px; font-size: 16px; line-height: 1; }
.mx-t tbody th.mx-row, .mx-t thead th.mx-corner { z-index: 4; }      /* the sticky first column stays above scrolled cells and the outline */
@keyframes mx-focus-in { from { transform: scale(1.06); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mx-focus { animation: none; } }
button.wx-ag, .wx-ag[data-ag-int] { cursor: pointer; font: inherit; background: none; border: 0; padding: 0; color: inherit; }
.wx-hd-ag button.wx-ag { padding: 3px 9px; border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: 8px; }
button.wx-ag:hover, .wx-ag[data-ag-int]:hover { text-decoration: underline; text-underline-offset: 2px; }
button.wx-ag:focus-visible { outline: 2px solid #3b8cff; outline-offset: 2px; }
.mx-agree th.mx-row { background: #141f2d; }      /* solid: the sticky label must hide the cells scrolled under it (it was see-through) */

.wx-grid .wx-ag { white-space: normal; text-align: left; justify-content: flex-start; line-height: 1.25; }      /* the hour details' agreement wraps inside its box */
.wx-grid .wx-cell b { min-width: 0; overflow-wrap: anywhere; }
/* beta.17: the observed / forecast lines sit beside the temperature when the card has room (they drop below it when it doesn't) */
.wx-now .wx-now-main { flex-wrap: wrap; align-items: center; }
.wx-now .wx-hilo { flex: 1 1 240px; max-width: 330px; margin-left: auto; min-width: 0; font-size: 13px; gap: 6px; }
.wx-now .wx-hilo > span { flex-wrap: wrap; row-gap: 2px; }
.wx-now .wx-hilo .wx-why { align-self: flex-start; }
/* beta.19: the trends chart's Past / Future switch (a two-position slider) */
.ch-dir { position: relative; display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--glass-line, rgba(255,255,255,.16)); background: rgba(255, 255, 255, .04); isolation: isolate; }
.ch-dir-b { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; min-width: 84px; justify-content: center; padding: 5px 14px; border: 0; border-radius: 999px; background: none; color: var(--ink-2, #b8c5d4); font: 600 13px/1.2 inherit; cursor: pointer; transition: color .2s; }
.ch-dir-b.on { color: #0b1118; }
.ch-dir-k { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: #3b8cff; transition: transform .25s ease; }
.ch-dir:has(.ch-dir-b[data-dir="future"].on) .ch-dir-k { transform: translateX(100%); }
.wx-ch.is-past .ch-dir-k { background: #c4b5fd; }
.ch-dir-b:focus-visible { outline: 2px solid #3b8cff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ch-dir-k, .ch-dir-b { transition: none; } }
@media (max-width: 560px) { .ch-past-w { display: none; } }      /* phones: "24 h" (the Past switch already says which way) */

/* 1.2.0-beta.22: the observation-station picker (wx-pws.js) and per-value source tags */
.wx-src { display: inline-block; margin-left: 5px; padding: 0 4px; border-radius: 4px; font: 600 9.5px/15px var(--font); font-style: normal; letter-spacing: .03em; vertical-align: 2px; border: 1px solid; }
.wx-src.p { color: #8cc4ff; border-color: rgba(74, 163, 255, .5); background: rgba(74, 163, 255, .12); }
.wx-src.n { color: var(--ink-2); border-color: var(--line); background: rgba(255, 255, 255, .04); }
.wx-src.c { color: #c9b3ff; border-color: rgba(167, 123, 255, .45); background: rgba(167, 123, 255, .1); }
.wx-temp .wx-src { vertical-align: super; font-size: 10px; }
.wx-obs .pws-btn { margin-left: auto; flex: none; }
.pws-src-l { flex: 1; min-width: 0; } .pws-src-l.warn { color: var(--warn); } .pws-src-l b { color: var(--ink); font-weight: 600; }
.pws-demo { margin-left: 6px; letter-spacing: .04em; } .pws-demo-t { color: var(--bad); }
.pws-host { container-type: inline-size; margin-top: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--glass-line, var(--line)); background: rgba(8, 15, 25, .55); animation: pws-in .18s ease-out; }
@keyframes pws-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pws-load { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; padding: 6px 0; }
.pws-h { display: flex; align-items: center; gap: 8px; } .pws-h b { display: flex; align-items: center; gap: 6px; font-size: 15px; } .pws-h .pws-x { margin-left: auto; }
.pws-lede { margin: 4px 0 10px; font-size: 12.5px; }
.pws-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; margin: 0 0 6px; border-radius: 10px; border: 1px solid var(--glass-line-2, rgba(120, 150, 185, .14)); background: rgba(255, 255, 255, .03); color: var(--ink); font: inherit; cursor: pointer; }
.pws-row:hover { border-color: rgba(59, 140, 255, .45); } .pws-row.on { border-color: var(--accent); background: rgba(59, 140, 255, .14); }
.pws-k { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--k, #9cc1ff); box-shadow: 0 0 0 2px rgba(0, 0, 0, .3); } .pws-k.nws { background: #fff; box-shadow: 0 0 0 3px #2f7cf6; }
.pws-rn { display: flex; flex-direction: column; min-width: 0; flex: 1; } .pws-rn b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pws-rn small { color: var(--ink-2); font-size: 12px; } .pws-ms { color: #b9c8d8 !important; } .pws-nu { color: var(--warn); }
.pws-rt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; } .pws-rt b { font-size: 16px; }
.pws-body { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 14px; margin-top: 6px; align-items: start; }
.pws-mapw { position: sticky; top: 8px; }
.pws-map { width: 100%; height: auto; display: block; border-radius: 10px; background: radial-gradient(circle at 50% 50%, rgba(59, 140, 255, .1), rgba(10, 17, 27, .6) 70%); border: 1px solid var(--line); }
.pws-ring { fill: none; stroke: rgba(150, 180, 215, .25); stroke-dasharray: 3 4; } .pws-rl { fill: #7f93a8; font-size: 9.5px; } .pws-n { fill: #9fb2c6; font: 600 10px var(--font); } .pws-na { fill: #9fb2c6; }
.pws-pt { cursor: pointer; } .pws-pt circle:first-of-type { fill: var(--k); stroke: rgba(0, 0, 0, .55); stroke-width: 1.2; } .pws-pt.stale circle:first-of-type { fill: rgba(0, 0, 0, .35); stroke: var(--k); stroke-width: 2; }
.pws-pt.on circle:first-of-type { stroke: #fff; stroke-width: 2.4; } .pws-pt:hover circle:first-of-type { stroke: #fff; } .pws-w { fill: var(--warn); stroke: #0b1420; stroke-width: 1; }
.pws-me circle { fill: #ff3b30; stroke: #fff; stroke-width: 2; } .pws-me circle.d { fill: #fff; stroke: none; }
.pws-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 11.5px; color: var(--ink-2); } .pws-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--k); margin-right: 4px; vertical-align: -1px; } .pws-leg i.w { background: var(--warn); width: 7px; height: 7px; }
.pws-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; font-size: 12.5px; } .pws-only { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; } .pws-only input { width: auto; }
.pws-list { max-height: 330px; overflow: auto; padding-right: 2px; }
.pws-det { margin-top: 12px; padding: 14px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.pws-dh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; } .pws-dh b { font-size: 15px; }
.pws-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 14px; margin-bottom: 12px; font-size: 13.5px; } .pws-facts span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; } .pws-facts small { color: var(--ink-2); font-size: 11.5px; }
.pws-mt { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 12px; } .pws-mt th, .pws-mt td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; } .pws-mt th { color: var(--ink-2); font-weight: 500; font-size: 12px; }
.pws-y { color: var(--ok); display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; } .pws-y small { color: var(--ink-2); } .pws-no { color: var(--ink-2); }
.pws-lh { margin: 0 0 6px; font-size: 13.5px; } .pws-lims { list-style: none; margin: 0 0 10px; padding: 0; } .pws-lims li { display: flex; gap: 8px; align-items: flex-start; padding: 7px 10px; border-radius: 8px; margin-bottom: 6px; font-size: 13px; border: 1px solid var(--line); }
.pws-lims li .ic { flex: none; margin-top: 2px; } .pws-lims .lv-warn { border-color: rgba(227, 163, 58, .45); background: rgba(227, 163, 58, .08); } .pws-lims .lv-x { border-color: rgba(239, 100, 100, .5); background: rgba(239, 100, 100, .09); } .pws-lims .lv-info { color: var(--ink-2); }
.pws-dup { display: flex; gap: 6px; align-items: center; font-size: 13px; } .pws-gen, .pws-nolim { font-size: 12.5px; } .pws-src { margin: 10px 0 0; font-size: 11.5px; }
.pws-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .pws-note { font-size: 13px; } .pws-note.ok { color: var(--ok); } .pws-note.bad { color: var(--bad); } .pws-hint { font-size: 12.5px; }
.pws-err { color: var(--warn); display: flex; gap: 6px; align-items: center; font-size: 13px; } .pws-none { font-size: 13px; }
.pws-pt.far { opacity: .45; } .pws-far { font-style: italic; }
@container (max-width: 480px) { .pws-mt thead { display: none; } .pws-mt tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 7px 2px; border-bottom: 1px solid var(--line); } .pws-mt td { border: 0; padding: 0; } .pws-mt td:nth-child(2) { text-align: right; white-space: normal; } .pws-mt td:nth-child(3) { grid-column: 1 / -1; font-size: 12px; } }
@container (max-width: 680px) { .pws-body { grid-template-columns: 1fr; } .pws-mapw { position: static; max-width: 420px; } .pws-list { max-height: none; } }
@media (max-width: 760px) { .pws-body { grid-template-columns: 1fr; } .pws-mapw { position: static; max-width: 360px; } .pws-list { max-height: none; } .pws-host { padding: 12px 10px; } .pws-mt th:nth-child(2), .pws-mt td:nth-child(2) { white-space: nowrap; } }
/* 1.2.0-beta.23: the observing station's own line, and the observation line wrapping (no squeezed text on phones) */
.pws-st { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: rgba(74, 163, 255, .08); border: 1px solid rgba(74, 163, 255, .32); }
.pws-st > .ic { color: #8cc4ff; flex: none; } .pws-st > span:not(.pill) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pws-st small { color: var(--ink-2); font-size: 11px; letter-spacing: .02em; } .pws-st b { font-size: 14.5px; font-weight: 600; } .pws-st-w { color: var(--ink-2); font-size: 12.5px; }
.pws-st .pill { flex: none; margin-left: auto; } .pws-st.off { border-color: rgba(227, 163, 58, .45); background: rgba(227, 163, 58, .07); }
.wx-obs.pws-on { align-items: flex-start; } .wx-obs.pws-on > .ic { margin-top: 2px; }
.wx-obs.pws-on > .pws-src-l { flex: 1 1 calc(100% - 26px); min-width: 0; }
.wx-obs.pws-on > .pws-btn { margin-left: 20px; }

/* "What am I looking at?": the plain-words explainer under each forecast card's header (wx-models.js / wx.js) */
.wx-what { margin: 0 0 12px; font-size: 13px; color: #c3cfdc; }
.wx-what summary { cursor: pointer; color: var(--blue); list-style: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.wx-what summary::-webkit-details-marker { display: none; }
.wx-what summary span::after { content: "▾"; margin-left: 5px; font-size: 11px; opacity: .8; }
.wx-what[open] summary span::after { content: "▴"; }
.wx-what-b { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(120, 150, 185, .18); line-height: 1.55; max-width: 820px; }
.wx-what-b p { margin: 0 0 8px; } .wx-what-b p:last-child { margin-bottom: 0; }
.wx-what-b h4 { margin: 12px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #98a7b8; }
.wx-what-m { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.wx-what-m li { position: relative; padding-left: 16px; }
.wx-what-m li .mx-dot { position: absolute; left: 0; top: 7px; }
.wx-what-m li b { color: #eef2f6; }
.wx-what-m li small { display: block; color: #98a7b8; font-size: 12px; margin-top: 1px; }
.wx-now .wx-what { margin: 12px 0 0; }
