
:root {
  --bg: #eef2f1;
  --surface: #ffffff;
  --surface-2: #eef3f4;
  --line: #d3dee1;
  --fg: #0e1f26;
  --muted: #55696f;
  --accent: #0b6d8f;
  --land: #e9ece6;
  --land-2: #f3f4ef;
  --border-map: #a9b8b4;
  --water: #4c97c4;
  --road: #ffffff;
  --road-case: #c4cdc9;
  --hwy: #f7d48a;
  --hwy-case: #d4a646;
  --metro: #1d6b4f;
  --halo: rgba(243,244,239,.92);
  --label: #2b3a3f;
  --label-2: #5d6d71;
  --ok: #2f9b5a;
  --warn: #8a5f00;   /* 5.6:1 on white */
  --bad: #d4462c;
  --wet: #1d3f9a;
  --wet-fg: #ffffff;
  --soon: #fff1cf;
  --soon-fg: #5e4400;
  --dry: #ffffff;
  --dry-fg: #0e1f26;
  --alert-bg: #c63f25;
  --alert-fg: #ffffff;
  --shadow: 0 2px 10px rgba(14,31,38,.16), 0 1px 2px rgba(14,31,38,.12);
  --font-display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-ui: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081115; --surface: #121e24; --surface-2: #1a2930; --line: #273a42; --fg: #e3ecef; --muted: #98adb4; --accent: #5fd0ea;
    --land: #0f1a1f; --land-2: #14232a; --border-map: #34505a; --water: #3f8fbf; --road: #3b505a; --road-case: #0a1317; --hwy: #6d5a2a; --hwy-case: #4a3d1d;
    --metro: #5cc49c; --halo: rgba(15,26,31,.9); --label: #d5e1e4; --label-2: #93a8ae;
    --ok: #46c47a; --warn: #e8b23a; --bad: #ff6a4d; --wet: #2b4fb8; --soon: #3a2f10; --soon-fg: #f6dc96; --dry: #121e24; --dry-fg: #e3ecef;
    --alert-bg: #c23b22; --shadow: 0 2px 12px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #081115; --surface: #121e24; --surface-2: #1a2930; --line: #273a42; --fg: #e3ecef; --muted: #98adb4; --accent: #5fd0ea;
  --land: #0f1a1f; --land-2: #14232a; --border-map: #34505a; --water: #3f8fbf; --road: #3b505a; --road-case: #0a1317; --hwy: #6d5a2a; --hwy-case: #4a3d1d;
  --metro: #5cc49c; --halo: rgba(15,26,31,.9); --label: #d5e1e4; --label-2: #93a8ae;
  --ok: #46c47a; --warn: #e8b23a; --bad: #ff6a4d; --wet: #2b4fb8; --soon: #3a2f10; --soon-fg: #f6dc96; --dry: #121e24; --dry-fg: #e3ecef;
  --alert-bg: #c23b22; --shadow: 0 2px 12px rgba(0,0,0,.5);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-ui); font-size: 16px; overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* the map zooms (its own pinch and wheel), the page around it doesn't: no pinch or double-tap zoom of the panels */
html, body { touch-action: pan-x pan-y; }
#map { position: fixed; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; background: var(--land); cursor: grab; }
.float { position: fixed; z-index: 3; left: 0; right: 0; margin: 0 auto; max-width: 480px; padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px)); pointer-events: none; }
.float > * { pointer-events: auto; }

.top { top: 0; padding-top: calc(env(safe-area-inset-top, 0px) + 10px); display: grid; gap: 8px; }
.row { display: flex; gap: 8px; align-items: center; }
.pill { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--surface); border: none; border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); cursor: pointer; text-align: left; }
.pill svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.pill b { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pill .chev { margin-left: auto; color: var(--muted); }
.rbtn { flex: none; width: 44px; height: 44px; border-radius: 14px; border: none; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; }
.rbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.verdict { border: none; width: 100%; text-align: left; border-radius: 18px; padding: 12px 14px; display: grid; gap: 2px; background: var(--dry); color: var(--dry-fg); box-shadow: var(--shadow); cursor: pointer; }
.verdict[data-s="wet"], .verdict[data-s="driz"] { background: var(--wet); color: var(--wet-fg); }
.verdict[data-s="soon"], .verdict[data-s="maybe"], .verdict[data-s="unc"], .verdict[data-s="risk"] { background: var(--soon); color: var(--soon-fg); }
.verdict .h { display: flex; align-items: center; gap: 10px; }
html[data-offline] .verdict .dot { background: var(--muted) !important; }   /* offline: the verdict may be old */
.verdict .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.verdict b { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; line-height: 1.1; }
.verdict .chev { margin-left: auto; opacity: .7; transition: transform .2s; }
.verdict[aria-expanded="true"] .chev { transform: rotate(180deg); }
.verdict .p { display: block; margin: 0; font-size: 15px; line-height: 1.35; opacity: .92; }
.verdict .p[hidden] { display: none; }
.verdict .p.storm, .popup .storm { font-weight: 650; opacity: 1; white-space: normal; }
.popup .storm { margin-top: 6px; color: var(--fg); }
/* icons drawn with CSS masks (no emoji): lightning before storm lines, crossed drop before water-outage lines */
.verdict .p.storm::before, .popup .storm::before, .popup .agua::before { content: ''; display: inline-block; width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M13%202L4%2014h7l-1%208%209-12h-7z%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M13%202L4%2014h7l-1%208%209-12h-7z%22/%3E%3C/svg%3E") center / contain no-repeat; }
.popup .agua::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M12%203c3%204%206%207%206%2011a6%206%200%200%201-12%200c0-4%203-7%206-11zM4%204l16%2016%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M12%203c3%204%206%207%206%2011a6%206%200%200%201-12%200c0-4%203-7%206-11zM4%204l16%2016%22/%3E%3C/svg%3E"); }
.vx { display: grid; gap: 8px; padding-top: 8px; }
.strip { display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px; height: 42px; align-items: end; }
.strip i { display: block; border-radius: 3px 3px 1px 1px; min-height: 4px; background: currentColor; opacity: .18; }
.strip i.w { opacity: 1; }
.stripx { display: grid; grid-template-columns: repeat(13, 1fr); font-size: 11.5px; opacity: .8; font-family: var(--font-data); }
.stripx span:nth-child(1) { grid-column: 1 / span 3; }
.stripx span:nth-child(2) { grid-column: 6 / span 3; text-align: center; }
.stripx span:nth-child(3) { grid-column: 11 / span 3; text-align: right; }
.vx .adv { font-weight: 700; font-size: 15px; }
.vx small { font-size: 12.5px; opacity: .8; }

.achip { display: flex; align-items: center; gap: 10px; width: 100%; border: none; text-align: left; background: var(--alert-bg); color: var(--alert-fg); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); cursor: pointer; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.achip svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.schip { display: flex; align-items: center; gap: 8px; justify-self: start; border: none; background: #ffd21f; color: #2a1f00; border-radius: 999px; padding: 7px 12px; box-shadow: var(--shadow); cursor: pointer; font-size: 14px; font-weight: 700; }
.schip svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
.schip svg.sh { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

#clipov { position: fixed; inset: 0; z-index: 50; background: rgba(8,17,21,.55); display: grid; place-items: center; padding: 16px; }
#clipov[hidden] { display: none; }
#clipov .cv { background: var(--surface); color: var(--fg); border-radius: 18px; box-shadow: var(--shadow); padding: 22px 20px; width: min(320px, 100%); display: grid; gap: 12px; justify-items: center; text-align: center; }
#clipov b { font-size: 16px; line-height: 1.3; }
#clipov small { color: var(--muted); font-family: var(--font-data); font-size: 13px; }
#clipov .cbar { width: 100%; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
#clipov .cbar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s linear; }
#clipov .cacts { display: flex; gap: 8px; width: 100%; }
#clipov .cacts[hidden] { display: none; }
#clipov .cacts button { flex: 1; border: none; border-radius: 12px; padding: 12px; font: 700 15px var(--font-ui); cursor: pointer; background: var(--surface-2); color: var(--fg); }
#clipov .cacts button.go { background: var(--accent); color: var(--bg); }
#clipov.ready .spin, #clipov.ready .cbar, #clipov.ready small { display: none; }
#clipov .spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface-2); border-top-color: var(--accent); animation: cspin .9s linear infinite; }
@keyframes cspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #clipov .spin { animation: none; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* bigger touch targets (≥ 44 px) without changing the look */
.play, .golive, .sheet .x, .bell { position: relative; }
.play::after, .golive::after, .sheet .x::after, .bell::after { content: ''; position: absolute; inset: -6px; }
/* the smaller buttons get an invisible 44 px touch area (their look doesn't change) */
.chips button, .schip, .popup .act, .toast button { position: relative; }
.chips button::after, .schip::after, .popup .act::after, .toast button::after { content: ''; position: absolute; inset: -5px -2px; }

.fabs { position: fixed; z-index: 3; right: max(12px, calc(50% - 228px), env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 128px); display: grid; gap: 8px; }

.fieldtag { justify-self: stretch; padding: 5px 10px 4px; border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 11.5px; line-height: 1.3; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.fscale { position: relative; display: block; height: 20px; margin-top: 4px; }
.fscale i { display: block; height: 5px; border-radius: 3px; }
.fscale span { position: absolute; top: 7px; font-size: 10.5px; line-height: 1.2; }
body.mini .fieldtag { display: none !important; }
.toff { grid-column: 1 / -1; color: var(--muted); font-size: 11.5px; line-height: 1.3; padding: 2px 0; }
.toff b { display: block; color: var(--warn); font-size: 13.5px; font-weight: 600; }
.toff .tsep { display: block; height: 6px; }
body.roff .tbar > :not(.toff) { display: none !important; }
.bottom { bottom: 0; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); display: grid; gap: 8px; }
.popup { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; display: grid; gap: 6px; }
.popup .ph { display: flex; gap: 10px; align-items: baseline; }
.popup .ph b { font-size: 16px; }
.popup .ph small { color: var(--muted); font-size: 13px; }
.popup .ph button { min-width: 40px; min-height: 40px; margin: -8px -8px -8px auto; border: none; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; }
.popup .pv { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 17px; }
.popup .agua { margin-top: 6px; color: var(--fg); font-weight: 600; }
.popup .pv i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.popup p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.35; }
.popup .act { border: none; background: var(--surface-2); border-radius: 10px; padding: 9px 12px; font-weight: 600; font-size: 14px; cursor: pointer; justify-self: start; }
.nudge p { margin: 0; color: var(--muted); font-size: 14px; }
.nudge .nacts { display: flex; gap: 8px; flex-wrap: wrap; }
.nudge .act.go { background: var(--accent); color: var(--bg); }
.nudge svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nudge .act { display: inline-flex; align-items: center; gap: 7px; }
.nudge .ph { align-items: center; } .nudge .ph > svg { color: var(--accent); }
.popup .act.star.on { color: var(--accent); background: transparent; padding-left: 0; cursor: default; }
/* first-visit coach: a pulsing tap ring on the map + one short line, no modal */
#coach { position: fixed; left: 50%; top: 52%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 12px; pointer-events: none; z-index: 40; }
#coach .rip { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); position: relative; }
#coach .rip::before, #coach .rip::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: coachrip 1.8s ease-out infinite; }
#coach .rip::after { animation-delay: .9s; }
@keyframes coachrip { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.4); opacity: 0; } }
#coach .ctxt { background: var(--surface); color: var(--fg); font: 600 15px var(--font-ui); padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { #coach .rip::before, #coach .rip::after { animation: none; } }
.tbar { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 10px 12px 8px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
/* "back to the latest image": its slot is always reserved so nothing shifts when it appears */
.golive { grid-column: 3; grid-row: 1 / span 2; min-width: 58px; height: 30px; border-radius: 999px; border: 0; padding: 0 10px; background: var(--accent); color: var(--bg); font: 700 12.5px var(--font-ui); cursor: pointer; white-space: nowrap; }
.golive.off { visibility: hidden; }
.tline .rel { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tline .tag, .tline .ramp { flex: none; }
.play { grid-row: span 2; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--fg); color: var(--bg); display: grid; place-items: center; cursor: pointer; }
.play svg { width: 18px; height: 18px; fill: currentColor; }
.tline { display: flex; align-items: baseline; gap: 8px; min-width: 0; overflow: hidden; }
.tline b { font-family: var(--font-data); font-weight: 500; font-size: 15px; white-space: nowrap; }
.tline .rel { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.tag { margin-left: auto; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tag.fc { background: var(--soon); color: var(--soon-fg); }
.scrubw { position: relative; height: 30px; }
.scrubw .track { position: absolute; left: 0; right: 0; top: 12px; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.scrubw .track i { position: absolute; top: 0; bottom: 0; right: 0; background: repeating-linear-gradient(-45deg, var(--line) 0 3px, transparent 3px 6px); }
.scrubw .nowmark { position: absolute; top: 7px; width: 2px; height: 16px; background: var(--fg); border-radius: 1px; }
input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 30px; background: none; }
input[type=range]::-moz-range-track { height: 30px; background: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%; background: var(--surface); border: 3px solid var(--fg); box-shadow: var(--shadow); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--fg); }
.ticks { grid-column: 2 / span 1; position: relative; height: 14px; font-size: 11.5px; color: var(--muted); font-family: var(--font-data); }
.ticks span { position: absolute; left: 0; white-space: nowrap; }   /* placed by fitTicks (ui.js) */

.sheet { position: fixed; inset: 0; z-index: 10; background: var(--bg); display: grid; grid-template-rows: auto minmax(0, 1fr); padding-top: env(safe-area-inset-top, 0px); }
.sheet.half { inset: auto 0 0 0; max-height: 82%; border-radius: 20px 20px 0 0; box-shadow: 0 -4px 30px rgba(0,0,0,.25); background: var(--surface); padding-top: 0; }
.scrim { position: fixed; inset: 0; z-index: 9; background: rgba(8,17,21,.35); }
.sheet .bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px 8px; max-width: 480px; width: 100%; margin: 0 auto; }
.sheet .bar { border-bottom: 1px solid transparent; transition: border-color var(--t-press) var(--ease-out); }
.sheet.scrolled .bar { border-bottom-color: var(--line); }
.sheet .bar b { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.sheet .x { margin-left: auto; border: none; background: var(--surface-2); width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; flex: none; }
.sheet .body { overflow-y: auto; padding: 4px 16px calc(env(safe-area-inset-bottom, 0px) + 24px); max-width: 480px; width: 100%; margin: 0 auto; display: grid; gap: 14px; align-content: start; min-width: 0; grid-auto-rows: max-content; }
/* rows at their content height: when a sheet is taller than the screen it scrolls; without this, blocks with overflow:hidden (the language and city pills) were squeezed to 0 */
.search { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 13px 14px; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); }
.chips button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.res { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 13px 4px; border: none; background: none; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; width: 100%; }
.res > span:first-child { display: flex; gap: 10px; align-items: center; font-size: 16px; min-width: 0; }
.res > span:last-child { color: var(--muted); font-size: 13px; text-align: right; flex: none; max-width: 45%; }
.res .st { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.install { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; margin: 4px 0 6px; border: 0; border-radius: 14px; background: var(--accent); color: var(--bg); text-align: left; cursor: pointer; font: inherit; }
.install svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.install span { display: grid; gap: 1px; } .install b { font-size: 16px; } .install small { font-size: 13px; opacity: .85; }
.steps { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 14px; counter-reset: st; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; font-size: 16px; line-height: 1.35; counter-increment: st; }
.steps li::before { content: counter(st); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--bg); font-weight: 800; display: grid; place-items: center; }
.steps .ic { display: inline-grid; place-items: center; vertical-align: -6px; width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); margin: 0 2px; }
.steps .ic svg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copyrow { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border-radius: 12px; padding: 8px 8px 8px 12px; font-family: var(--font-data); font-size: 14px; }
.copyrow span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copyrow button { border: 0; border-radius: 9px; padding: 8px 12px; background: var(--accent); color: var(--bg); font: 700 13px var(--font-ui); cursor: pointer; }
.srow { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.srow .res { flex: 1; min-width: 0; border-bottom: 0; }
.bell { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.bell svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.bell[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.bell[aria-pressed="true"] svg { fill: currentColor; }
.toast { position: fixed; z-index: 30; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); margin: 0 auto; max-width: 456px; top: calc(env(safe-area-inset-top, 0px) + 12px); background: var(--surface); color: var(--fg); border-radius: 16px; box-shadow: var(--shadow); padding: 14px; display: grid; gap: 10px; font-size: 15px; }
.toast.low { top: auto; right: max(68px, calc(50% - 176px)); }   /* clear of the round buttons on the right */
.toast .acts { display: flex; gap: 8px; justify-content: flex-end; }
.toast button { border: 0; border-radius: 10px; padding: 9px 14px; font: 600 14px var(--font-ui); cursor: pointer; background: var(--surface-2); color: var(--fg); }
.toast button.go { background: var(--accent); color: var(--bg); }
.res .lbl { font-size: 12px; font-weight: 700; background: var(--surface-2); padding: 2px 7px; border-radius: 6px; }
.note { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.45; }
.primary { border: none; background: var(--fg); color: var(--bg); border-radius: 14px; padding: 15px; font-size: 17px; font-weight: 700; cursor: pointer; width: 100%; }
.ghost { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px; font-size: 16px; font-weight: 600; cursor: pointer; width: 100%; display: flex; justify-content: space-between; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; width: max-content; }
.langs button { border: none; background: var(--surface); padding: 8px 14px; min-height: 40px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.langs button:focus-visible { outline-offset: -3px; }   /* the pill clips anything drawn outside it */
.langs button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.layer { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.layer .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; }
.layer .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.layer b { display: block; font-size: 16px; }
.layer small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.sw { width: 46px; height: 28px; border-radius: 14px; background: var(--line); box-shadow: inset 0 0 0 1.5px var(--muted); position: relative; flex: none; transition: background .15s; }   /* the outline shows "off" (the track alone was 1.4:1) */
.layer[aria-checked="true"] .sw { box-shadow: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.layer[aria-checked="true"] .sw { background: var(--accent); }
.layer[aria-checked="true"] .sw::after { transform: translateX(18px); }
h3 { margin: 6px 0 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ob-h { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.05; letter-spacing: -.02em; margin: 8px 0 0; text-wrap: balance; }
#stamp.stale, .verdict[data-s=stale] #vp { color: var(--warn); font-weight: 600; }
/* on a coloured card the amber is unreadable: the card's own text colour, still in bold */
.verdict:is([data-s=wet], [data-s=driz], [data-s=soon], [data-s=maybe], [data-s=unc], [data-s=risk]) #stamp.stale { color: inherit; opacity: 1; }
.upd { position: fixed; left: 50%; transform: translate(-50%, 0); z-index: 6; display: flex; align-items: center; gap: 8px; background: var(--surface); color: var(--fg); border-radius: 999px; padding: 6px 14px 6px 6px; font: 600 13px/1 var(--font-ui); box-shadow: var(--shadow); white-space: nowrap; transition: opacity .45s, transform .45s; pointer-events: none; }
.upd i { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--bg); display: grid; place-items: center; flex: none; }
.upd i svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.upd small { color: var(--muted); font-weight: 500; }
.upd.out { opacity: 0; transform: translate(-50%, 8px); }
@media (prefers-reduced-motion: reduce) { .upd { transition: opacity .3s; } .upd.out { transform: translate(-50%, 0); } }
.foot a { color: inherit; }
.foot { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0; }

.q { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: none; text-align: left; cursor: pointer; width: 100%; }
.q .d { width: 12px; height: 12px; border-radius: 3px; transform: rotate(45deg); }
.q .n { font-weight: 600; font-size: 15px; display: block; }
.q small { color: var(--muted); font-size: 13px; }
.q .v { font-size: 14px; font-weight: 700; text-align: right; white-space: nowrap; }
.qs { display: grid; gap: 6px; }
.qbig { font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.gauge { position: relative; padding-top: 4px; }
.gauge .track { position: relative; height: 16px; border-radius: 8px; overflow: hidden; display: flex; }
.gauge .track i { display: block; height: 100%; }
.gauge .mark { position: absolute; top: 0; width: 4px; height: 24px; border-radius: 2px; background: var(--fg); transform: translateX(-2px); box-shadow: 0 0 0 2px var(--surface); }
.gauge .lab { position: relative; height: 34px; font-size: 12px; color: var(--muted); }
.gauge .lab span { position: absolute; top: 6px; transform: translateX(-50%); text-align: center; line-height: 1.15; white-space: nowrap; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 15px; }
.kv > span:nth-child(even) { font-weight: 700; text-align: right; font-family: var(--font-data); }
.what { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.45; }

.top { gap: 6px; padding-top: calc(env(safe-area-inset-top, 0px) + 8px); }
.pill { padding: 7px 10px; border-radius: 12px; }
.pill b { font-size: 15px; }
.rbtn { width: 38px; height: 38px; border-radius: 12px; position: relative; }
.rbtn::after { content: ''; position: absolute; inset: -3px; }
.rbtn svg { width: 18px; height: 18px; }
.verdict { padding: 8px 12px; border-radius: 14px; }
.verdict .h { gap: 8px; }
.verdict .dot { width: 10px; height: 10px; }
.verdict b { font-size: 19px; }
.verdict .p { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.verdict[aria-expanded="true"] .p { white-space: normal; }
.achip { padding: 7px 10px; font-size: 13.5px; border-radius: 12px; }
.achip svg { width: 17px; height: 17px; }
.fabs { gap: 6px; }
.fabs .rbtn.squeezed { display: none; }
.bottom { gap: 6px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); }
.tbar { padding: 6px 10px 4px; border-radius: 14px; gap: 0 10px; }
.play { width: 36px; height: 36px; }
.play svg { width: 14px; height: 14px; }
.tline b { font-size: 13.5px; }
.tline .rel { font-size: 12.5px; }
.tag { font-size: 10.5px; padding: 2px 6px; margin-left: 0; }
.tline .ramp { margin-left: auto; display: grid; grid-template-columns: repeat(5, 10px); height: 6px; border-radius: 3px; overflow: hidden; flex: none; }
.tline .ramp i { display: block; }
/* narrow time line (ui.js fitTline) */
.tline.nr .ramp, .tline.nt .tag { display: none; }
.tline.ct { gap: 6px; } .tline.ct .tag { letter-spacing: 0; padding: 2px 4px; }
.tline.nt .rel.fc { background: var(--soon); color: var(--soon-fg); border-radius: 6px; padding: 1px 5px; flex: none; }   /* no tag: the forecast colour on the time itself */
.scrubw { height: 24px; }
.scrubw .track { top: 9px; }
.scrubw .nowmark { top: 5px; height: 14px; }
input[type=range]::-webkit-slider-runnable-track { height: 24px; }
input[type=range]::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: 3px; border-width: 3px; }
.ticks { font-size: 10.5px; height: 12px; }
@media (hover: none) { #zin, #zout { display: none; } }          /* phones pinch to zoom */
.float, .fabs { transition: opacity .2s; }
body.moving .float, body.moving .fabs { opacity: .25; }
body.mini .top .verdict .p, body.mini #vx, body.mini .ticks, body.mini .tline .rel, body.mini .tline .ramp { display: none !important; }
body.mini .pill small, body.mini .pill .chev { display: none; }
body.mini .pill { flex: 0 1 auto; }
body.mini .verdict { padding: 6px 10px; justify-self: start; width: auto; }
body.mini .verdict b { font-size: 15px; }
body.mini .verdict .chev { display: none; }
#uitoggle svg path.closed { display: none; }
body.mini #uitoggle svg path.open { display: none; }
body.mini #uitoggle svg path.closed { display: inline; }
.attr { text-align: right; font-size: 10px; line-height: 1; padding: 3px 6px 0; color: var(--muted); pointer-events: auto; }
.attr a { color: inherit; text-decoration: none; }
/* splash "llega y se llena": a drop falls (≤ 1.1 s), then fills with water as the data arrives (--p, 0 to 1); .hide fades it at any moment */
#splash { --sp1: #f4f8fb; --sp2: #e3ecf4; --sp-rain: rgba(38,110,214,.15); --sp-empty: #d3e0ec; --sp-ring: #266ed6; --sp-dl: #3a8fe0; --sp-bar: #d6e2ec; --sp-acc: #266ed6;
  position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; overflow: hidden;
  background: linear-gradient(180deg, var(--sp1), var(--sp2)); color: var(--fg); transition: opacity .22s ease; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #splash { --sp1: #0d1419; --sp2: #173257; --sp-rain: rgba(168,220,255,.14); --sp-empty: #20375a; --sp-ring: #46b6d8; --sp-dl: #7fc8f0; --sp-bar: #1f3550; --sp-acc: #5fd0ea; } }
:root[data-theme="dark"] #splash { --sp1: #0d1419; --sp2: #173257; --sp-rain: rgba(168,220,255,.14); --sp-empty: #20375a; --sp-ring: #46b6d8; --sp-dl: #7fc8f0; --sp-bar: #1f3550; --sp-acc: #5fd0ea; }
#splash.hide { opacity: 0; pointer-events: none; }
#splash > * { position: relative; }
#splash > .sp-rain { position: absolute; inset: -40px; pointer-events: none; will-change: transform; animation: sp-rain 1.6s linear infinite;
  background: repeating-linear-gradient(104deg, transparent 0 9px, var(--sp-rain) 9px 10px, transparent 10px 23px);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 40px); mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 40px); }
@keyframes sp-rain { to { transform: translate(-10px, 40px); } }
.sp-mk { width: 110px; height: 110px; flex: none; }
.sp-mk > *, .sp-sq > * { position: absolute; left: 0; top: 0; }
.sp-fall { animation: sp-fall .42s cubic-bezier(.33,0,.67,.33) .1s both; }
@keyframes sp-fall { 0% { transform: translateY(-280px); opacity: 0; } 12% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.sp-sq { width: 110px; height: 110px; transform-origin: 55px 98px; animation: sp-sq .14s ease-out .52s; }
@keyframes sp-sq { 0% { transform: scale(1.024, .976); } 100% { transform: none; } }
.sp-clip { width: 110px; height: 110px; overflow: hidden; clip-path: path('M55 15.47C55 15.47 25.78 49.84 25.78 68.75a29.22 29.22 0 0 0 58.44 0C84.22 49.84 55 15.47 55 15.47z'); }
.sp-wv path { fill: var(--sp-empty); }
.sp-lvl { transform: translateY(-102px); transition: transform .6s cubic-bezier(.3,.7,.3,1); }
#splash.filling .sp-lvl { transform: translateY(calc(-10px - 92px * var(--p, 0))); }
#splash.filling .sp-wv { animation: sp-wave 1.4s linear infinite; }
@keyframes sp-wave { to { transform: translateX(-110px); } }
.sp-hl { transform-origin: 47px 75px; transition: opacity .35s, transform .35s cubic-bezier(.3,1.4,.5,1); }
#splash.filling:not(.full) .sp-hl { opacity: 0; transform: scale(.9); }
.sp-rip { left: 10px !important; top: 90px !important; width: 90px; height: 16px; border: 2px solid var(--sp-ring); border-radius: 50%; opacity: 0; animation: sp-rip .55s ease-out .52s both; }
@keyframes sp-rip { 0% { opacity: 0; transform: scale(.3); } 12% { opacity: .9; } 100% { opacity: 0; transform: scale(1.7); } }
.sp-dl { left: calc(51px + var(--sx)) !important; top: 90px !important; width: 7px; height: 7px; border-radius: 50%; background: var(--sp-dl); opacity: 0; animation: sp-dl .45s cubic-bezier(.2,.6,.4,1) .52s both; }
@keyframes sp-dl { 0% { opacity: 0; transform: scale(.5); } 8% { opacity: 1; } 55% { opacity: 1; transform: translate(calc(var(--x) * .65), var(--y)) scale(1); } 100% { opacity: 0; transform: translate(var(--x), 6px) scale(.6); } }
.sp-title { display: inline-flex; align-items: baseline; font: 800 32px/1 var(--font-display); letter-spacing: -.025em; color: var(--fg); }
.sp-title i { font-style: normal; display: inline-block; animation: sp-let .25s cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(.6s + var(--i) * .03s); }
@keyframes sp-let { from { opacity: 0; transform: translateY(8px); } }
.sp-dot { width: 6.4px; height: 9px; margin-left: 1.6px; animation: sp-dot .28s cubic-bezier(.33,0,.67,.33) .85s both; }
@keyframes sp-dot { 0% { opacity: 0; transform: translateY(-60px); } 20% { opacity: 1; } 100% { transform: none; opacity: 1; } }
#spmsg { min-height: 1.2em; color: var(--muted); font-size: 14px; text-align: center; padding: 0 24px; transition: opacity .25s ease; animation: sp-in .3s ease .7s both; }
@keyframes sp-in { from { opacity: 0; } }
.sp-retry { margin-top: 4px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 22px; background: var(--accent); color: var(--surface); font: 700 15px var(--font-ui); cursor: pointer; }
.sp-bar { width: 120px; height: 3px; border-radius: 3px; background: var(--sp-bar); overflow: hidden; animation: sp-in .3s ease .7s both; }
.sp-bar span { display: block; width: 100%; height: 100%; border-radius: 3px; background: var(--sp-acc); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .6s cubic-bezier(.3,.7,.3,1); }
@media (prefers-reduced-motion: reduce) {
  #splash *, #splash > .sp-rain { animation: none !important; }
  .sp-rip, .sp-dl { opacity: 0 !important; }
  .sp-lvl, .sp-hl, .sp-bar span { transition: none; }
}
/* first visit: pick a city on the splash itself, then the loading messages carry on */
#spcity { display: grid; gap: 10px; width: min(340px, calc(100vw - 32px)); color: var(--fg); }
#spcity[hidden], #splash.choosing #spmsg, #splash.choosing .sp-bar { display: none; }
@media (max-height: 560px) { #splash.choosing .sp-mk { display: none; } }   /* landscape: the city buttons first */
#spcity h1 { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 2px; text-align: center; text-wrap: balance; }
#spcity .city { display: grid; gap: 2px; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--fg); cursor: pointer; font: inherit; box-shadow: var(--shadow); }
#spcity .city b { font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
#spcity .city small { color: var(--muted); font-size: 13.5px; }
#spcity .ghost { justify-content: center; gap: 8px; align-items: center; font-size: 15px; }
#spcity .ghost svg { width: 18px; height: 18px; fill: currentColor; }
#spcity .langs { justify-self: center; }
#spcity .note { text-align: center; }

/* desktop: a left panel (place + verdict), map buttons in the bottom-right corner, a wider time bar, sheets as a side panel */
@media (min-width: 900px) and (min-height: 560px) and (hover: hover) {
  .top { left: 20px; right: auto; margin: 0; width: 400px; max-width: none; padding: 20px 0 0; }
  .verdict { padding: 14px 16px; }
  .verdict b { font-size: 22px; }
  .verdict .p { font-size: 14.5px; white-space: normal; }
  .fabs { right: 20px; bottom: 28px !important; }
  .bottom { max-width: 680px; padding-bottom: 20px; }
  .tbar { padding: 10px 14px 6px; border-radius: 18px; gap: 2px 12px; }
  .play { width: 42px; height: 42px; }
  .tline b { font-size: 15px; }
  .tline .rel { font-size: 13.5px; }
  .ticks { font-size: 11.5px; height: 14px; }
  .sheet, .sheet.half { inset: 20px auto 20px 20px; width: 420px; max-height: none; border-radius: 20px; box-shadow: 0 8px 40px rgba(0,0,0,.35); background: var(--surface); padding-top: 0; }
  .sheet .bar, .sheet .body { max-width: none; }
  .scrim { background: rgba(8,17,21,.15); }
  .toast { left: auto; right: 20px; top: 20px; margin: 0; width: 400px; }
  .toast.low { top: 20px; right: 20px; bottom: auto !important; }   /* top right is free on a wide screen */
}

/* motion: things come in from where they belong (sheets from the bottom, cards with a small lift), leave a bit faster than they came,
   things come in from where they belong (sheets from the bottom, cards with a small lift), leave a bit faster than they came,
   and the map itself never animates. Everything here is off when the phone asks for reduced motion. */
:root { --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-in: cubic-bezier(.4, 0, 1, 1); --t-in: 220ms; --t-out: 160ms; --t-press: 120ms; }
@keyframes m-fade { from { opacity: 0; } }
@keyframes m-up { from { opacity: 0; transform: translateY(28px); } }
@keyframes m-lift { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes m-drop { from { opacity: 0; transform: translateY(-8px); } }
@keyframes m-fade-out { to { opacity: 0; } }
@keyframes m-down-out { to { opacity: 0; transform: translateY(28px); } }
.sheet { animation: m-fade var(--t-in) var(--ease-out); }
.sheet.half { animation: m-up var(--t-in) var(--ease-out); }
.scrim { animation: m-fade var(--t-in) var(--ease-out); }
.sheet.out, .scrim.out { pointer-events: none; animation: m-fade-out var(--t-out) var(--ease-in) forwards; }
.sheet.half.out { animation: m-down-out var(--t-out) var(--ease-in) forwards; }
.popup, #clipov .cv { animation: m-lift var(--t-in) var(--ease-out); }
.toast { animation: m-drop var(--t-in) var(--ease-out); }
#vx { animation: m-drop var(--t-in) var(--ease-out); }
.verdict, .verdict .dot { transition: background-color .3s ease, color .3s ease; }
.rbtn, .play, .golive, .act, .chips button, .city, .sheet .x, .toast button, .langs button, .bell, .sp-retry { transition: transform var(--t-press) var(--ease-out); }
:is(.rbtn, .play, .golive, .act, .chips button, .city, .sheet .x, .toast button, .langs button, .bell, .sp-retry):active { transform: scale(.94); }
@media (min-width: 900px) and (min-height: 560px) and (hover: hover) {
  @keyframes m-side { from { opacity: 0; transform: translateX(-16px); } }
  @keyframes m-side-out { to { opacity: 0; transform: translateX(-16px); } }
  .sheet, .sheet.half { animation-name: m-side; }
  .sheet.out, .sheet.half.out { animation-name: m-side-out; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet.half, .scrim, .popup, #clipov .cv, .toast, #vx { animation: none; }
  .verdict, .verdict .dot { transition: none; }
  :is(.rbtn, .play, .golive, .act, .chips button, .city, .sheet .x, .toast button, .langs button, .bell, .sp-retry):active { transform: none; }
}

@media (orientation: landscape) and (max-height: 500px) { .verdict[aria-expanded="true"] { max-height: 55dvh; overflow-y: auto; overscroll-behavior: contain; } }
/* move to Aguacero: the open button under the steps */
.mvgo { margin: 14px 0 0; }
.mvgo .act { min-height: 44px; padding: 0 20px; border: 0; border-radius: 22px; background: var(--accent); color: var(--bg); font: 700 15px var(--font-ui); cursor: pointer; }
/* the move to Aguacero: said in the middle of the screen, once in a while (never a corner toast nobody reads) */
#mvcard { position: fixed; inset: 0; z-index: 60; background: rgba(8,17,21,.6); display: grid; place-items: center; padding: 16px; }
#mvcard[hidden] { display: none; }
#mvcard .mv { background: var(--surface); color: var(--fg); border-radius: 22px; box-shadow: var(--shadow); padding: 26px 22px 20px; width: min(360px, 100%); max-height: calc(100dvh - 32px); overflow: auto; display: grid; gap: 12px; justify-items: center; text-align: center; animation: m-lift var(--t-in) var(--ease-out); }
#mvcard img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 6px 18px rgba(23,50,87,.35); }
#mvcard h2 { margin: 4px 0 0; font: 800 23px/1.15 var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
#mvcard #mvcp { display: grid; gap: 10px; }
#mvcard p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
#mvcard p b { color: var(--fg); }
#mvcard .steps { text-align: left; margin: 2px 0 0; font-size: 14.5px; }
#mvcard .mvacts { display: grid; gap: 8px; width: 100%; margin-top: 6px; }
#mvcard .mvacts button { min-height: 48px; border: none; border-radius: 14px; padding: 12px; font: 700 16px var(--font-ui); cursor: pointer; background: var(--surface-2); color: var(--fg); }
#mvcard .mvacts button.go { background: var(--accent); color: var(--bg); }
@media (prefers-reduced-motion: reduce) { #mvcard .mv { animation: none; } }
@media (max-height: 500px) { #mvcard img { display: none; } #mvcard .mv { padding: 18px 20px 16px; gap: 8px; } #mvcard .mvacts { grid-template-columns: 1fr 1fr; } }
/* with steps: no icon, and the button stays in sight at the bottom of the scrolling card */
#mvcard.long img { display: none; }
#mvcard.long .mvacts { position: sticky; bottom: -20px; margin: 0 -22px -20px; padding: 10px 22px 16px; background: var(--surface); box-shadow: 0 -8px 12px -8px rgba(0,0,0,.18); }
