/* Glassy, milokai house style. Only the accent (dusk violet) is specific to this app. */
/* Numbers in monospaced text read tight (see "Units and times" in CLAUDE.md). A mono font gives the decimal point and the
   narrow space (U+202F) between a number and its unit a full character cell. "SW Gap" (tools/mkgapfont.py) has just those
   two, built with "150 30 0": a dot with no side bearings (tight to each digit) and a gap that leaves about 2 px of clear
   space between a number and its unit. */
@font-face { font-family: "SW Gap"; src: url(data:font/ttf;base64,AAEAAAAKAIAAAwAgT1MvMlRwe/8AAACsAAAAYGNtYXBAQeBqAAABDAAAADRnbHlmApwCywAAAUAAAAA4aGVhZF+0QXcAAAF4AAAANmhoZWEDuAEwAAABsAAAACRobXR4AqgAAAAAAdQAAAAMbG9jYQAAAHAAAAHgAAAAEG1heHAABQAKAAAB8AAAACBuYW1lB9gfxgAAAhAAAACgcG9zdP+fADMAAAKwAAAAIAAEAJYBkAAFAAACigJYAAAASwKKAlgAAAFeADIA+gAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAABTV0dQAEAALiAvAyD/OAAAAyAAyAAAAAEAAAAAAAAAAAAAACAAAAAAAAEAAwABAAAADAAEACgAAAAGAAQAAQACAC4gL///AAAALiAv////09/TAAEAAAAAAAAAAQAAAAAAlgCWAAcAAAEBAQEBAQEBACwAPgAsAAD/1P/C/9QAAAAAAAAALAA+ACwAAP/U/8IAAAABAAAAAQAAm9sV6V8PPPUACwPoAAAAAAAAAAAAAAAAAAAAAAAAAAAAlgCWAAAAAwACAAEAAAAAAAEAAAMg/zgAAAH0AAAAAACWAAEAAAAAAAAAAAAAAAAAAAADAfQAAACWAAAAHgAAAAAAAAAAAAAAAAA4AAAAOAABAAAAAwAIAAEAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAABgBOAAMAAQQJAAEADAAAAAMAAQQJAAIADgAMAAMAAQQJAAMADAAaAAMAAQQJAAQADAAmAAMAAQQJAAUAFgAyAAMAAQQJAAYACgBIAFMAVwAgAEcAYQBwAFIAZQBnAHUAbABhAHIAUwBXACAARwBhAHAAUwBXACAARwBhAHAAVgBlAHIAcwBpAG8AbgAgADEALgAwAFMAVwBHAGEAcAADAAAAAAAA/5wAMgAAAAEAAAAAAAAAAAAAAAAAAAAA) format("truetype"); unicode-range: U+002E, U+202F; }
:root {
  --display: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SW Gap", "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --paper:#f4f5f2; --card:#ffffff; --group:#ffffff; --ink:#16181d; --muted:#626873; --line:#dfe1dc;
  --bad:#c2321f; --bad-soft:#fbe7e3; --warn:#a86400; --warn-soft:#fbefd9; --good:#1f7a4c; --good-soft:#e1f2e8;
  --accent:#5b36c9; --accent-soft:#ece8fb; --on-accent:#ffffff;
  --night:#e9eae6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:#121418; --card:#1b1e24; --group:#1b1e24; --ink:#eceef1; --muted:#9aa1ac; --line:#2c3038;
    --bad:#ff7a66; --bad-soft:#3a1f1b; --warn:#f0b04a; --warn-soft:#352a17; --good:#5fd39a; --good-soft:#17301f;
    --accent:#a891ff; --accent-soft:#2a2440; --on-accent:#14101f; --night:#23262d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper:#121418; --card:#1b1e24; --group:#1b1e24; --ink:#eceef1; --muted:#9aa1ac; --line:#2c3038;
  --bad:#ff7a66; --bad-soft:#3a1f1b; --warn:#f0b04a; --warn-soft:#352a17; --good:#5fd39a; --good-soft:#17301f;
  --accent:#a891ff; --accent-soft:#2a2440; --on-accent:#14101f; --night:#23262d;
  color-scheme: dark;
}

* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font: 15px/1.45 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
button { font: inherit; color: inherit; }
button, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.app { max-width: 720px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 8px) 20px calc(env(safe-area-inset-bottom) + 110px); }
.top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.brand { font: 500 13px var(--mono); color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.brand img { width: 22px; height: 22px; border-radius: 5px; flex: none; }
.iconbtn { width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; display: grid; place-items: center; cursor: pointer; }
.iconbtn svg { fill: var(--ink); }
.iconbtn:active { background: var(--line); }

.ptitle { font: 700 32px/1.1 var(--display); letter-spacing: -0.01em; margin: 6px 0 14px; }
.h2 { font: 600 15px var(--display); color: var(--muted); margin: 22px 2px 8px; }
.note { font-size: 13px; color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.foot { font: 12px var(--mono); color: var(--muted); text-align: center; margin: 28px 0 0; }
.foot a { color: inherit; }

/* Sport switch */
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: var(--line); padding: 4px; border-radius: 12px; margin-bottom: 14px; }
.seg button { border: 0; background: none; min-height: 38px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* Hero */
.hero { background: var(--accent); color: var(--on-accent); border-radius: 18px; padding: 18px; margin-bottom: 8px; }
.hero .k { font-size: 13px; opacity: .85; }
.hero .row { display: flex; align-items: baseline; gap: 12px; margin-top: 2px; flex-wrap: wrap; }
.hero .num { font: 600 34px/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.hero .name { font: 700 20px/1.2 var(--display); }
.hero .line { margin-top: 6px; font-size: 14px; }
.hero .pill { margin-top: 12px; border: 0; background: var(--on-accent); color: var(--accent); font-weight: 600; border-radius: 999px; padding: 0 16px; min-height: 40px; cursor: pointer; }

/* Groups and rows */
.group { background: var(--group); border-radius: 14px; padding: 2px 16px; }
.rowbtn { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 13px 0; cursor: pointer; }
.group > * + * { border-top: 1px solid var(--line); }
.r1 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.r1 .t { font-weight: 600; }
.r2 { color: var(--muted); font-size: 13px; margin-top: 2px; }
.r2 b { color: var(--ink); font-weight: 500; }
.empty { padding: 16px 0; color: var(--muted); }

.chip { font: 500 12px var(--mono); font-variant-numeric: tabular-nums; padding: 3px 8px; border-radius: 999px; white-space: nowrap; background: var(--line); color: var(--muted); }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.acc { background: var(--accent-soft); color: var(--accent); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

/* 24 h strip */
.strip { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; height: 22px; align-items: end; margin-top: 8px; }
.strip i { display: block; border-radius: 2px; background: var(--accent); min-height: 2px; }
.strip i.n { background: var(--night); }
.strip-l { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--muted); margin-top: 3px; }

/* Tab bar */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--card); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px max(8px, calc(50vw - 360px)) calc(env(safe-area-inset-bottom) + 6px); }
.tab { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 50px; justify-content: center; font-size: 11px; color: var(--muted); cursor: pointer; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* Sheets */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 20; }
.sheet { position: fixed; inset: 0; z-index: 30; background: var(--paper); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet.withtabs { bottom: calc(63px + env(safe-area-inset-bottom)); z-index: 9; }   /* the log sits above the tab bar */
.sheet.bottom { inset: auto 0 0 0; max-height: 85vh; border-radius: 18px 18px 0 0; background: var(--card); padding: 8px 20px calc(env(safe-area-inset-bottom) + 16px); }
.sheet .inner { max-width: 720px; margin: 0 auto; padding: 0 20px calc(env(safe-area-inset-bottom) + 32px); }
.sbar { position: sticky; top: 0; z-index: 2; background: var(--paper); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(env(safe-area-inset-top) + 6px) 12px 6px; border-bottom: 1px solid var(--line); }
.sbar h2 { font: 700 17px var(--display); margin: 0; text-align: center; }
.sbar .l { justify-self: start; } .sbar .r { justify-self: end; }
.link { border: 0; background: none; color: var(--accent); font-weight: 600; min-height: 44px; padding: 0 8px; cursor: pointer; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 12px; }
.sheet.bottom h3 { font: 700 18px var(--display); margin: 4px 0 12px; }
.bigbtn { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; border: 0; background: none; border-top: 1px solid var(--line); padding: 0 2px; font-weight: 500; cursor: pointer; text-align: left; }
.bigbtn:first-of-type { border-top: 0; }
.mark { font: 12px var(--mono); color: var(--muted); text-align: center; margin: 18px 0 4px; }

/* Day chips in spot sheet */
.days { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 4px; scroll-snap-type: x mandatory; }
.days button { flex: none; scroll-snap-align: start; border: 1px solid var(--line); background: var(--card); border-radius: 10px; min-height: 44px; padding: 4px 12px; cursor: pointer; text-align: center; }
.days button small { display: block; font: 11px var(--mono); color: var(--muted); }
.days button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.days button[aria-pressed="true"] small { color: var(--on-accent); opacity: .85; }

/* Hour table */
table.hrs { width: 100%; border-collapse: collapse; font-size: 14px; }
.hrs th { font: 600 12px var(--body); color: var(--muted); text-align: left; padding: 10px 6px 6px 0; }
.hrs td { padding: 9px 6px 9px 0; border-top: 1px solid var(--line); vertical-align: top; }
.hrs td.n, .hrs th.n { text-align: right; padding-right: 0; }
.hrs tr.dark td { color: var(--muted); }
.hrs tbody tr { cursor: pointer; }
.hrs tbody tr:active td, .hrs tr.sel td { background: var(--accent-soft); }
.hrs tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--accent); padding-left: 6px; }
.hrs .sub { display: block; font-size: 12px; color: var(--muted); }

/* Forms */
.field { display: block; margin: 14px 0; }
.field > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.tune { margin: -4px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); }
.tune .note { margin: 0; color: var(--ink); }
.tune .btn { margin-top: 8px; min-height: 40px; color: var(--accent); }
p.tune { color: var(--muted); background: none; padding: 0; }
input[type=text], input[type=number], select { width: 100%; font: 16px var(--body); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; min-height: 46px; padding: 0 12px; }
input[type=number] { font-family: var(--mono); }
.two { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.four { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.checks label { display: flex; align-items: center; gap: 8px; min-height: 44px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.checks input { width: 20px; height: 20px; accent-color: var(--accent); }
.btn { min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 600; padding: 0 16px; cursor: pointer; width: 100%; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.danger { color: var(--bad); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 84px); z-index: 40;
  background: #16181d; color: #fff; border-radius: 22px; padding: 10px 16px; font-size: 14px; width: max-content; max-width: calc(100vw - 40px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.toast #undoBtn { white-space: nowrap; }

.loading { padding: 40px 0; text-align: center; color: var(--muted); }
.err { background: var(--bad-soft); color: var(--bad); border-radius: 14px; padding: 14px 16px; }

@media (prefers-reduced-motion: no-preference) {
  .sheet.bottom { animation: up .22s ease-out; }
  @keyframes up { from { transform: translateY(30px); opacity: .5; } to { transform: none; opacity: 1; } }
}

/* Spot picker rows with an on/off switch */
.srow { display: flex; align-items: center; gap: 10px; }
.srow .rowbtn { flex: 1; }
.srow .sedit { min-height: 44px; padding: 0 4px; }
.switch { flex: none; width: 52px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.switch i { position: relative; display: block; width: 44px; height: 26px; border-radius: 13px; background: var(--line); transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch[aria-pressed="true"] i { background: var(--accent); }
.switch[aria-pressed="true"] i::after { transform: translateX(18px); }
@media (prefers-reduced-motion: reduce) { .switch i, .switch i::after { transition: none; } }

/* ---------- 0.2: briefing, map, week, spot page ---------- */
:root { --s1:#ebe8f5; --s2:#cfc5f3; --s3:#9d89e8; --s4:#6a4ed4; --s5:#3b1f9e; --land:#e4e6df; --sand:#c9b48a; --dial:#f7f8fb; --tide:#3d6fa8; --tide-soft:#dbe7f3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --s1:#3d3658; --s2:#54478f; --s3:#6a55c4; --s4:#8b73ee; --s5:#b9a8ff; --land:#2a2e35; --sand:#8a7650; --dial:#1f2229; --tide:#7fb0e6; --tide-soft:#1d2a3a; } }
:root[data-theme="dark"] { --s1:#3d3658; --s2:#54478f; --s3:#6a55c4; --s4:#8b73ee; --s5:#b9a8ff; --land:#2a2e35; --sand:#8a7650; --dial:#1f2229; --tide:#7fb0e6; --tide-soft:#1d2a3a; }
body.locked { overflow: hidden; }
.psub { color: var(--muted); font-size: 13px; margin: -8px 0 14px; }
.hero .big { font: 700 22px/1.25 var(--display); margin-top: 4px; }
.card { background: var(--card); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; display: block; }
.cardbtn { width: 100%; text-align: left; border: 0; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.cardbtn:active { opacity: .85; }
.warnc { background: var(--warn-soft); }
.warnc .kick { color: var(--warn); }
.kick { font-size: 13px; font-weight: 600; color: var(--muted); }
.ctitle { font: 700 18px/1.25 var(--display); }
.chip.good { background: var(--good-soft); color: var(--good); }
.hscroll { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll button { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; min-height: 36px; padding: 0 12px; font-size: 13px; cursor: pointer; }
.hscroll button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.legrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.legrow .t { font-weight: 600; } .legrow .r2 { margin: 0; }
.conds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.conds > div { background: var(--card); border-radius: 12px; padding: 10px 12px; }
.conds small { display: block; font-size: 12px; color: var(--muted); }
.conds b { font: 600 16px var(--mono); font-variant-numeric: tabular-nums; }
.trow { display: grid; grid-template-columns: 1fr auto 70px; gap: 10px; padding: 10px 0; }
.trow span:last-child { text-align: right; }
.collapse { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: none; padding: 0; cursor: pointer; min-height: 44px; }
.collapse svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.collapse[aria-expanded="false"] svg { transform: rotate(-90deg); }
.wgrid { display: grid; grid-template-columns: 74px repeat(7, minmax(0, 1fr)); gap: 8px 3px; align-items: center; }
.wday { font: 11px var(--mono); color: var(--muted); text-align: center; }
.wlab { font-size: 12px; color: var(--muted); line-height: 1.2; } .wlab small { font: 10px var(--mono); }
.wbar { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.wbar span { display: block; width: 70%; max-width: 24px; border-radius: 3px; }
.wbar small { font: 10px var(--mono); color: var(--muted); }
.wname { border: 0; background: none; text-align: left; font-weight: 600; font-size: 13px; line-height: 1.15; padding: 0; cursor: pointer; color: var(--ink); min-height: 34px; }
.wcell { border: 0; background: none; padding: 2px 0; display: flex; gap: 2px; justify-content: center; cursor: pointer; min-height: 38px; align-items: stretch; }
.wcell i { display: block; width: 28%; max-width: 9px; border-radius: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.legend .lt { font-weight: inherit; }   /* holds "over 40 kn" together, so the smaller unit is not a flex item of its own */
.legend i { width: 12px; height: 12px; border-radius: 3px; display: block; }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.chipset button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; min-height: 40px; padding: 0 14px; font-size: 14px; cursor: pointer; }
.chipset button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.gohead { font: 600 13px var(--display); color: var(--muted); margin: 14px 0 2px; }
.bigbtn .chip { margin-left: auto; }
.svgmono { font: 10px var(--mono); }
.svglabel { font: 600 12px var(--body); fill: var(--ink); }
select { appearance: none; }

/* ---------- 0.3: score settings and why ---------- */
.wrow { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; }
.wrow + .wrow { border-top: 1px solid var(--line); }
.wrow .t { font-weight: 600; } .wrow .r2 { margin: 0; }
.chipset.small { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.chipset.small button { min-height: 38px; padding: 0 4px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: default; }
.whyrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.whyrow + .whyrow { border-top: 1px solid var(--line); }
.whyrow > div { flex: 1; } .whyrow .t { font-weight: 600; } .whyrow .r2 { margin: 0; }
.whyrow.muted .t, .whyrow.muted .r2 { color: var(--muted); }
.qbar { display: block; height: 4px; border-radius: 2px; background: var(--line); margin-top: 6px; max-width: 220px; }
.qbar i { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
.good-t { color: var(--good); }
.link.inline { min-height: 0; padding: 0; font-size: inherit; }

/* ---------- 0.3.1: simpler Today ---------- */
.greet { font: 700 26px/1.15 var(--display); margin: 6px 0 14px; }
.alertbar { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; font-size: 14px; }
.alertbar span { display: block; color: var(--ink); opacity: .8; font-size: 13px; }
/* a heads-up, not a warning: card colours with a small violet info mark */
.infobar { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; font-size: 14px; }
.infobar svg { flex: none; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.infobar b { display: block; font-weight: 600; }
.infobar span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
/* 0.129: two or more messages share one fixed-height box that scrolls up and down, one message per stop */
.msgbox { position: relative; margin-bottom: 10px; }
.msgs { height: 84px; overflow-y: auto; scroll-snap-type: y mandatory; border-radius: 12px; scrollbar-width: none; overscroll-behavior: contain; }
.msgs::-webkit-scrollbar { display: none; }
.msgs > div { height: 84px; margin: 0; border-radius: 0; scroll-snap-align: start; scroll-snap-stop: always; box-sizing: border-box; padding-right: 26px; overflow: hidden; }
.msgdots { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 5px; pointer-events: none; }
.msgdots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); opacity: .35; }
.msgdots i.on { opacity: 1; background: var(--ink); }
.winrow { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.wtime { font-size: 13px; color: var(--ink); white-space: nowrap; }
.wwho { display: flex; flex-direction: column; } .wwho .r2 { margin: 0; }

/* ---------- 0.3.2: live cams ---------- */
.cams { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cambtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.cambtn svg { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.cambtn span { color: var(--muted); font-size: 12px; }
.mrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.mrow + .mrow { border-top: 1px solid var(--line); }
.mrow .t { font-weight: 600; } .mrow .r2 { margin: 0; } .mrow .r2 a { color: var(--muted); }
.mrow.fc .t { color: var(--muted); font-weight: 500; }
.mval { text-align: right; white-space: nowrap; } .mval b { font: 600 16px var(--mono); display: block; } .mval span { font: 12px var(--mono); color: var(--muted); }

/* ---------- 0.5: favorites tiles ---------- */
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ftile { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; background: var(--card); border: 0; border-radius: 14px; padding: 12px 12px 10px; min-height: 148px; cursor: pointer; color: var(--ink); font: inherit; }
.ftile:active { opacity: .85; }
.fhead { display: flex; flex-direction: column; } .fhead .t { font-weight: 600; line-height: 1.2; padding-right: 18px; }
.fsport { font: 11px var(--mono); color: var(--muted); }
.fbig { font: 600 26px/1.1 var(--mono); font-variant-numeric: tabular-nums; margin-top: 4px; }
.fsub { font-size: 12px; color: var(--muted); line-height: 1.35; }
.farrow { vertical-align: -2px; margin-right: 2px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ffoot { margin-top: auto; padding-top: 6px; }
.fadd { align-items: center; justify-content: center; gap: 2px; border: 1.5px dashed color-mix(in srgb, var(--line) 80%, transparent); background: transparent; box-shadow: none; color: color-mix(in srgb, var(--muted) 75%, var(--paper)); font-weight: 500; text-align: center; }
.fadd small { font-size: 12px; color: color-mix(in srgb, var(--muted) 70%, var(--paper)); font-weight: 400; }
.ficon { position: relative; display: inline-block; margin-bottom: 6px; }
.ficon svg { fill: none; stroke: color-mix(in srgb, var(--accent) 45%, var(--paper)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fplus { position: absolute; right: -8px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 16px/22px var(--mono); text-align: center; }
button.fadd:active { background: var(--accent-soft); }
.frm { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: 18px; color: var(--muted); cursor: pointer; }
.bigbtn:disabled { color: var(--muted); cursor: default; }

/* Surf tiles a faint blue, wind tiles a faint sea-green (amber is kept for alerts) */
:root { --surf-line: #bcd4ec; --wind-line: #b6dac5; --surf-bg: #e9f2fb; --surf-tag: #d3e4f5; --surf-ink: #2c5f8f; --wind-bg: #e8f4ed; --wind-tag: #d1eadb; --wind-ink: #2b6e4c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --surf-line: #34506d; --wind-line: #335640; --surf-bg: #1d2633; --surf-tag: #273d54; --surf-ink: #9cc4ea; --wind-bg: #1d2a23; --wind-tag: #254032; --wind-ink: #8fd3ad; } }
:root[data-theme="dark"] { --surf-line: #34506d; --wind-line: #335640; --surf-bg: #1d2633; --surf-tag: #273d54; --surf-ink: #9cc4ea; --wind-bg: #1d2a23; --wind-tag: #254032; --wind-ink: #8fd3ad; }
.ftile.surf, .ftile.wind { transition: transform .12s ease, box-shadow .12s ease; }
.ftile.surf { background: linear-gradient(180deg, #eef5fd 0%, var(--surf-bg) 100%); border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(23,52,86,.08), 0 8px 18px -8px rgba(44,95,143,.45); }
.ftile.wind { background: linear-gradient(180deg, #edf7f1 0%, var(--wind-bg) 100%); border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(20,60,40,.08), 0 8px 18px -8px rgba(43,110,76,.45); }
button.ftile:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(0,0,0,.08), 0 3px 8px -4px rgba(0,0,0,.25); opacity: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ftile.surf { background: linear-gradient(180deg, #24303f 0%, var(--surf-bg) 100%); border-color: rgba(255,255,255,.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px -8px rgba(0,0,0,.7); }
  :root:not([data-theme="light"]) .ftile.wind { background: linear-gradient(180deg, #24342b 0%, var(--wind-bg) 100%); border-color: rgba(255,255,255,.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px -8px rgba(0,0,0,.7); } }
:root[data-theme="dark"] .ftile.surf { background: linear-gradient(180deg, #24303f 0%, var(--surf-bg) 100%); border-color: rgba(255,255,255,.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px -8px rgba(0,0,0,.7); }
:root[data-theme="dark"] .ftile.wind { background: linear-gradient(180deg, #24342b 0%, var(--wind-bg) 100%); border-color: rgba(255,255,255,.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px -8px rgba(0,0,0,.7); }
@media (prefers-reduced-motion: reduce) { .ftile.surf, .ftile.wind { transition: none; } }
.ftile .fsport { align-self: flex-start; margin-top: 3px; padding: 1px 7px; border-radius: 999px; font-weight: 600; }
.ftile.surf .fsport { background: var(--surf-tag); color: var(--surf-ink); }
.ftile.wind .fsport { background: var(--wind-tag); color: var(--wind-ink); }
.ftile .frm { background: var(--card); }
.hscroll button small { font: 11px var(--mono); color: var(--muted); margin-left: 6px; }
.hscroll button[aria-pressed="true"] small { color: var(--paper); opacity: .8; }

/* Day picker: 7 equal columns that always fit, "Today" first, a colour bar with each day's best score */
.days { display: grid !important; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; overflow: visible !important; padding: 12px 0 4px; }
.days button { min-width: 0; padding: 6px 0 5px !important; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 50px; }
.days .dname { font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.days button small { font-size: 11px; }
.days button i { display: block; width: 60%; height: 4px; border-radius: 2px; margin-top: 3px; }
.days button[aria-pressed="true"] i { box-shadow: 0 0 0 1.5px var(--on-accent); }
@media (max-width: 350px) { .days .dname { font-size: 11px; } }
.hscroll button.off { border-style: dashed; color: var(--muted); }

/* ---- 3D charts (chart3d.js): the day diorama and the dial disc, on one card that flips ---- */
@property --yaw { syntax: '<angle>'; inherits: true; initial-value: -24deg; }
@property --pitch { syntax: '<angle>'; inherits: true; initial-value: -28deg; }
:root { --c3energy: #2b2f36; --c3line: #0b7f86; --c3go: rgba(91,54,201,.13); --c3win: #e6e1f8; --c3floor: #eef0eb; --c3wall: rgba(219,231,243,.55); --c3night: rgba(22,24,29,.08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c3energy: #ece9e2; --c3line: #4fd1c5; --c3go: rgba(168,145,255,.18); --c3win: #2c2650; --c3floor: #23272e; --c3wall: rgba(40,60,85,.45); --c3night: rgba(0,0,0,.4); } }
:root[data-theme="dark"] { --c3energy: #ece9e2; --c3line: #4fd1c5; --c3go: rgba(168,145,255,.18); --c3win: #2c2650; --c3floor: #23272e; --c3wall: rgba(40,60,85,.45); --c3night: rgba(0,0,0,.4); }
.c3wrap { margin-top: 10px; --sun: var(--cksun); }   /* the sun in the weather pictures on the clock's rim */
.c3flip { display: grid; }
.c3face { grid-area: 1/1; margin: 0; position: relative; display: flex; flex-direction: column; padding: 12px 14px; }
.c3face.off { visibility: hidden; }
.c3face.off .c3stage { display: none; }   /* nothing of the hidden side is drawn; its space is kept */
.c3head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.c3title { font: 700 17px var(--display); }
.c3title .chip { vertical-align: 2px; margin-left: 4px; }
.c3btns { display: flex; gap: 6px; align-items: center; flex: none; }
.c3q, .c3mode, .c3flipbtn { height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.c3q { width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); }
.c3q svg, .c3flipbtn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.c3q[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
.c3mode { min-width: 44px; padding: 0 10px; font: 600 13px var(--mono); color: var(--ink); }
.c3flipbtn { display: inline-flex; align-items: center; gap: 5px; padding: 0 11px; color: var(--accent); font-weight: 600; }
.c3step { display: flex; align-items: center; gap: 4px; }
.c3step h3 { margin: 0; min-width: 3.7em; text-align: center; font: 700 17px var(--display); }
.c3step button { width: 38px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 22px; line-height: 1; cursor: pointer; }
.c3step button:disabled { opacity: .35; cursor: default; }
.c3pop { --pop-bg: var(--ink); position: absolute; z-index: 5; top: 60px; right: 12px; left: 12px; background: var(--pop-bg); color: var(--card); border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.c3pop::before { content: ''; position: absolute; top: -6px; right: 132px; width: 12px; height: 12px; background: var(--pop-bg); transform: rotate(45deg); }
/* Dark mode: a raised dark panel, not a white box glaring over the chart */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c3pop { --pop-bg: #2b3039; color: var(--ink); border-color: #3a404b; box-shadow: 0 10px 28px rgba(0,0,0,.55); } }
:root[data-theme="dark"] .c3pop { --pop-bg: #2b3039; color: var(--ink); border-color: #3a404b; box-shadow: 0 10px 28px rgba(0,0,0,.55); }
.c3v3, .c3v2 { flex: 1 0 auto; display: flex; flex-direction: column; }
.c3v2 { justify-content: center; padding: 6px 0 2px; }
.c3v2 svg { display: block; margin: 0 auto; }
.c3v2:has(> svg.glowtl) { justify-content: flex-start; padding-top: 19px; }   /* 0.90: the surf Timeline sits at a fixed place under the title, lined up with the Dots */
.c3wrap[data-mode="2d"] .c3v3, .c3wrap[data-mode="3d"] .c3v2 { display: none; }
.c3seg { margin-top: 6px; }
.c3scene { position: relative; flex: 1 0 auto; margin: 0 -14px; perspective: 900px; perspective-origin: 50% 40%; overflow: hidden; touch-action: none; cursor: grab;   /* every direction turns the chart; scroll the page outside it */ user-select: none; -webkit-user-select: none; }
.c3scene:active { cursor: grabbing; }
.c3stage { position: absolute; left: 50%; top: var(--top, 50%); width: 340px; height: 200px; margin: -100px 0 0 -170px; transform-style: preserve-3d; transform-origin: 170px 110px; transform: scale(var(--s, 1)) rotateX(var(--pitch)) rotateY(var(--yaw)); }
.c3scene.anim .c3stage { transition: --yaw .8s cubic-bezier(.2,.7,.2,1), --pitch .8s cubic-bezier(.2,.7,.2,1); }
.c3stage div, .c3stage i, .c3stage b, .c3stage svg { position: absolute; left: 0; top: 0; transform-origin: 0 0; display: block; }
.c3scene.terr .c3pdisc { display: none; }   /* 0.105: the WebGL terrain has drawn the photo dial in 3D (terrain.js) */
.c3floor { width: 340px; height: 170px; background: var(--c3floor); border-radius: 10px; }
.c3floor i { height: 170px; }
.c3bar { transform-style: preserve-3d; cursor: pointer; outline: none; }
.c3bar i { width: 16px; background: var(--c); }
.c3bar .sd { background: color-mix(in srgb, var(--c) 80%, #000); }
.c3bar .tp { background: color-mix(in srgb, var(--c) 72%, #fff); height: 16px; }
.c3bar.sel i { box-shadow: inset 0 0 0 2px var(--ink); }
.c3bar:focus-visible i { box-shadow: inset 0 0 0 2px var(--accent); }
.c3glass { pointer-events: none; background: var(--c3go); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.c3pole { width: 0; border-left: 1.5px dotted var(--muted); }
.c3s { pointer-events: none; }
.c3bb { transform: translate3d(var(--x), var(--y), var(--z)) rotateY(calc(var(--yaw) * -1)) rotateX(calc(var(--pitch) * -1)) translate(-50%, -50%); white-space: nowrap; font: 500 10px var(--mono); color: var(--muted); pointer-events: none; }
.c3bb.tl { color: var(--tide); }
.c3bb.ln { color: var(--c3line); }
.c3bb.ln.en { color: var(--c3energy); }
.c3bb.ln.on { font-weight: 600; }
.c3bb.go { font: 600 12px var(--body); color: var(--on-accent); background: var(--accent); padding: 2px 8px; border-radius: 999px; }
.c3bb.sc { font: 600 12px var(--mono); color: var(--ink); background: var(--card); padding: 1px 6px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.c3bb.wl { font: 600 13px var(--mono); color: var(--ink); text-shadow: 0 0 3px var(--card), 0 0 3px var(--card), 0 0 2px var(--card); }   /* 0.109: the wind label by its arrow on the 3D Compass */
.c3bb.big { font: 600 26px var(--mono); color: var(--ink); text-align: center; line-height: 1; }
.c3bb.big small { display: block; font: 500 11px var(--body); color: var(--muted); margin-top: 2px; }
.c3it { transition: opacity .2s; }
/* A blocked swell (it can't reach the spot) is off the dial; tapping its chip shows where it comes from */
.c3it.blk { display: none; }
.c3wrap[data-focus="sw1"] .c3it.blk[data-k="sw1"], .c3wrap[data-focus="sw2"] .c3it.blk[data-k="sw2"], .c3wrap[data-focus="sw3"] .c3it.blk[data-k="sw3"] { display: inline; }
.c3legend button.blk { opacity: .5; }
.c3legend button.blk[aria-pressed="true"] { opacity: 1; }
/* 0.110 (Tomek): picking a swell no longer fades the wind and the other swells; it only brings a shadowed one onto the dial */
.c3hours { display: flex; gap: 2px; margin-top: 10px; touch-action: none; user-select: none; -webkit-user-select: none; }
.c3hours button { flex: 1 1 0; min-width: 0; height: 40px; border: 0; border-radius: 9px; background: var(--off, color-mix(in srgb, var(--muted) 14%, var(--card))); color: var(--muted); font: 500 10px var(--mono); letter-spacing: -.4px; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.c3hours button i { width: 60%; height: 3px; border-radius: 2px; background: var(--hc); }
.c3hours button.on { background: var(--hc); color: #fff; font-weight: 700; text-shadow: 0 0 3px rgba(0, 0, 0, .55); }
.c3hours button.on i { background: #fff; opacity: .7; }
.c3hrt { margin: 0; font: 700 17px var(--display); }
/* 0.99: the compass's swell and wind boxes sit in its corners, over the dial's empty corners */
.c3dialbox { position: relative; flex: 1 0 auto; min-height: 319px; display: flex; flex-direction: column; }
.c3corner { position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 4px; max-width: 49%; }
.c3corner.tl { left: 0; top: 6px; } .c3corner.bl { left: 0; bottom: 0; } .c3corner.br { right: 0; bottom: 0; align-items: flex-end; }
.c3legend button { position: relative; display: block; text-align: left; background: color-mix(in srgb, var(--paper) 88%, transparent); border: 0; border-radius: 10px; padding: 6px 9px 6px 16px; cursor: pointer; min-height: 44px; max-width: 100%; }
.c3legend .c3key { position: absolute; left: 7px; top: 9px; bottom: 9px; width: 3px; height: auto; border-radius: 2px; }
.c3legend .c3key.dash { height: auto; border-top: 0; border-left: 3px dashed var(--ink); width: 0; }
.c3legend button[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.c3legend b { display: block; font: 600 12px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c3legend span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c3key { display: block; height: 5px; width: 28px; border-radius: 3px; }
.c3key.dash { height: 0; border-top: 3px dashed var(--ink); border-radius: 0; }
@media (prefers-reduced-motion: reduce) { .c3scene.anim .c3stage { transition: none; } }

/* a score that opens the Why page */
.scorebtn { border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; min-height: 32px; }
.scorebtn .whyq { font: 600 13px var(--body); color: var(--accent); }

.wxstep { margin: 16px 0 8px; }
.wxstep h3 { min-width: 6.5em; }

/* the Weather tab's day chart */
:root { --wx-temp: #c2541c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --wx-temp: #fb9a5c; } }
:root[data-theme="dark"] { --wx-temp: #fb9a5c; }
.wxcard { margin-top: 10px; padding: 12px 10px 10px; }
.wxkey { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 6px 0; font-size: 12px; color: var(--muted); }
.wxkey span { display: inline-flex; align-items: center; gap: 5px; }
.wxkey i { display: block; width: 14px; height: 10px; border-radius: 2px; }
.wxkey i.sunk { width: 12px; height: 6px; border: 1.6px solid var(--warn); border-bottom: 0; border-radius: 7px 7px 0 0; }

/* the 3D weather */
:root { --wx-sky1: #dcebf9; --wx-sky2: #f4f8fc; --wx-sun: #f2a516; --wx-cloud: #ffffff; --wx-cloud-edge: #c9d3de; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --wx-sky1: #3a5a80; --wx-sky2: #6584a6; --wx-sun: #ffc04d; --wx-cloud: #c9d1dc; --wx-cloud-edge: #8a96a6; } }
:root[data-theme="dark"] { --wx-sky1: #3a5a80; --wx-sky2: #6584a6; --wx-sun: #ffc04d; --wx-cloud: #c9d1dc; --wx-cloud-edge: #8a96a6; }
.c3solo { margin-top: 10px; }
.c3wrap .c3solo + * { margin-top: 0; }
.c3hit { cursor: pointer; outline: none; }
.c3hit:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.c3sun, .c3moon, .c3star, .c3cloud { transform: translate3d(var(--x), var(--y), var(--z)) rotateY(calc(var(--yaw) * -1)) rotateX(calc(var(--pitch) * -1)) translate(-50%, -50%); pointer-events: none; }
.c3sun { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 38% 36%, #fff6c8, #ffd23f 45%, #f59e0b); box-shadow: 0 0 18px 6px rgba(255,190,40,.45); }
.c3sun i { position: absolute; inset: -10px; border-radius: 50%; background: repeating-conic-gradient(rgba(255,190,40,.75) 0 6deg, transparent 6deg 30deg); -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%, #000 70%, transparent 72%); mask: radial-gradient(circle, transparent 54%, #000 56%, #000 70%, transparent 72%); transform-origin: 50% 50%; animation: c3spin 18s linear infinite; }
@keyframes c3spin { to { transform: rotate(360deg); } }
.c3moon { width: 26px; height: 26px; border-radius: 50%; background: transparent; box-shadow: -7px 4px 0 0 #f3eccc; filter: drop-shadow(0 0 6px rgba(243,236,204,.55)); }
.c3star { width: 3px; height: 3px; border-radius: 50%; background: #f3eccc; box-shadow: 0 0 4px #f3eccc; }
.c3cloud svg { display: block; transform: scale(var(--k)); fill: var(--wx-cloud); stroke: var(--wx-cloud-edge); stroke-width: 1.2; filter: drop-shadow(0 3px 3px rgba(0,0,0,.08)); }
.c3bb.tmp { color: var(--wx-temp); }
.c3bb.tmp.on { font-weight: 600; }
.c3bb.uv { color: #fff; font: 600 10px var(--mono); padding: 1px 5px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .c3sun i { animation: none; } }

.c3therm { transform-style: preserve-3d; }
.c3therm i { width: 10px; border-radius: 2px; }
.c3therm .sd { filter: brightness(.78); }
.c3therm .tp { border-radius: 3px; }
.c3drop { display: block; width: 2px; height: 8px; border-radius: 2px; background: var(--tide); animation: c3fall 1.1s linear infinite; }
@keyframes c3fall { from { translate: 0 -6px; opacity: 0; } 20% { opacity: 1; } to { translate: -3px 22px; opacity: 0; } }
.c3uv { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin-top: 4px; }
.c3uv div { text-align: center; }
.c3uv small { display: block; font: 500 10px var(--mono); color: var(--muted); }
.c3uv span { display: block; font: 600 11px var(--mono); border-radius: 5px; padding: 2px 0; background: var(--line); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .c3drop { animation: none; } }

/* the chosen hour's score, sitting along the bottom of the chart card */
.c3score { position: absolute; left: 14px; bottom: 8px; z-index: 3; }
.c3score.flat { position: static; padding: 4px 4px 0; }
.c3score .scorebtn { background: color-mix(in srgb, var(--card) 88%, transparent); border-radius: 999px; padding: 2px 10px 2px 4px; min-height: 40px; }
.c3score .at { font: 600 14px var(--body); color: var(--muted); padding-left: 6px; }

/* the dial's score puck opens the Why page */
.c3ptxt { white-space: nowrap; font: 600 14px var(--mono); color: var(--ink); pointer-events: none; backface-visibility: hidden; }   /* 0.113: the size on the 3D puck's top */
.c3bb.c3puck { pointer-events: auto; cursor: pointer; padding: 4px 8px; border-radius: 12px; }
.c3bb.c3puck em { display: block; font: 600 10px var(--body); font-style: normal; color: var(--accent); margin-top: 1px; }
.c3bb.c3puck:focus-visible { outline: 2px solid var(--accent); }

/* only the parts meant for tapping take taps; the stage itself lets them through */
.c3stage { pointer-events: none; }
.c3bar, .c3hit, .c3bb.c3puck { pointer-events: auto; }

.livehead { margin-top: 18px; text-align: left; }
.livehead span { display: block; }
.livehead small { display: block; font: 400 13px var(--body); color: var(--muted); margin-top: 1px; }

/* Settings: What you do */
.mysport { display: flex; align-items: center; gap: 12px; }
.mysport .ficon { margin: 0; transform: scale(.7); transform-origin: left center; width: 40px; height: 32px; }
.mysport .ficon svg { width: 52px; height: 44px; }
.mysport .t { flex: 1; }
.mysport .tick { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line); flex: none; }
.mysport[aria-pressed="true"] .tick { background: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.mysport[aria-pressed="false"] .ficon svg { stroke: var(--muted); }

/* the Weather chart's number rows: hours, air, rain, UV */
.c3rows { margin-top: 6px; display: grid; gap: 3px; }
.c3row { display: grid; grid-template-columns: 34px repeat(8, minmax(0, 1fr)); gap: 3px; align-items: center; }
.c3row b { font: 600 11px var(--body); color: var(--muted); }
.c3row span { text-align: center; font: 500 12px var(--mono); border-radius: 5px; padding: 2px 0; }
.c3row .hh { font-size: 10px; color: var(--muted); }
.c3row .tv { color: var(--wx-temp); font-weight: 600; }
.c3row .rv { color: var(--muted); }
.c3row .rv.wet { color: var(--tide); font-weight: 600; }
.c3row .rv.faint { opacity: .6; font-weight: 500; }    /* only a trace expected */
.c3row .rv.none { opacity: .35; font-weight: 500; }     /* no rain expected */
.c3rows { position: relative; }
.c3rlab { all: unset; cursor: pointer; font: 600 11px var(--body); color: var(--muted); text-decoration: underline dotted; text-underline-offset: 3px; padding: 6px 0; }
.c3rlab[aria-expanded="true"] { color: var(--accent); }
.c3rpop { top: auto; bottom: calc(100% + 8px); }
.c3rpop::before { top: auto; bottom: -6px; right: auto; left: 14px; }   /* a likely shower that brings only a trace */
.c3row .rv.hard { font-weight: 800; }                    /* over .10 inch in the hour: real rain */
.c3row .rv.tr { font-size: 9.5px; letter-spacing: -.02em; }
.c3row .uvv { background: var(--line); color: var(--muted); font-weight: 600; }
.c3row .hh.on { color: var(--accent); font-weight: 700; }

/* the dial's backdrop: the same light blue wall as the day chart, fixed behind the spinning dial */

/* Dial looks (land and sea): soft, slightly greyed colours so the swells and wind stay the loudest thing */
:root { --lk-grass:#a7bb93; --lk-grass2:#b3c6a1; --lk-hill1:#93ab7e; --lk-hill2:#80986c; --lk-hill3:#6f875c; --lk-hilline:#71885f; --lk-tuft:#86a072;
  --lk-sea:#8fb1c9; --lk-seawin:#adc8db; --lk-sea2:#9dbfd4; --lk-seawin2:#bcd5e5; --lk-foam:#f4f7f9; --lk-foam2:#f4f7f9cc; --lk-sand:#e2d8bd; --lk-trunk:#8d7c66; --lk-frond:#728f63; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lk-grass:#3e4d38; --lk-grass2:#46573f; --lk-hill1:#4a5d42; --lk-hill2:#3a4b34; --lk-hill3:#31402c; --lk-hilline:#34442f; --lk-tuft:#5c7052;
  --lk-sea:#2c4152; --lk-seawin:#3a5468; --lk-sea2:#324a5c; --lk-seawin2:#41607a; --lk-foam:#a9b8c4; --lk-foam2:#a9b8c4aa; --lk-sand:#6f6753; --lk-trunk:#6d604e; --lk-frond:#536b48; } }
:root[data-theme="dark"] { --lk-grass:#3e4d38; --lk-grass2:#46573f; --lk-hill1:#4a5d42; --lk-hill2:#3a4b34; --lk-hill3:#31402c; --lk-hilline:#34442f; --lk-tuft:#5c7052;
  --lk-sea:#2c4152; --lk-seawin:#3a5468; --lk-sea2:#324a5c; --lk-seawin2:#41607a; --lk-foam:#a9b8c4; --lk-foam2:#a9b8c4aa; --lk-sand:#6f6753; --lk-trunk:#6d604e; --lk-frond:#536b48; }
/* 1.1: the photo compass face: shade on the water outside the swell window, and the window's edges */
:root { --ph-shade:rgba(22,52,84,.34); --ph-edge:rgba(255,255,255,.95); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ph-shade:rgba(0,0,0,.42); --ph-edge:rgba(255,255,255,.7); } }
:root[data-theme="dark"] { --ph-shade:rgba(0,0,0,.42); --ph-edge:rgba(255,255,255,.7); }
.c3prop { position: absolute; left: 0; top: 0; transform: translate3d(var(--x), var(--y), var(--z)) rotateY(calc(var(--yaw) * -1)) translate(-50%, -100%); pointer-events: none; line-height: 0; }
.c3stage .c3prop svg { position: relative; display: block; overflow: visible; }

/* Map tab */
.mapv { margin-top: 10px; }
.mapbox { position: relative; height: min(60vh, 560px); border-radius: 14px; overflow: hidden; background: var(--line); }
.mapbox .mapgl { position: absolute; inset: 0; width: 100%; height: 100%; }   /* beats MapLibre's own position: relative */
.mapctl { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; z-index: 2; }
.mapbtn { height: 36px; min-width: 44px; padding: 0 12px; border-radius: 10px; border: 0; background: color-mix(in srgb, var(--card) 92%, transparent); color: var(--ink); font: 600 14px var(--body); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.mapbtn[aria-pressed="true"] { background: var(--ink); color: var(--card); }
.mpanel { background: var(--card); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.mdays { padding: 0 0 10px; }
.mhrow { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; }
.mhrow button { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 20px; }
.mwhen { text-align: center; font: 700 19px var(--display); }
.mwhen small { display: block; font: 500 12px var(--body); color: var(--muted); }
.mhr { width: 100%; margin: 8px 0 4px; accent-color: var(--accent); }
.mcardin { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: var(--paper); cursor: pointer; }
.mcardin b { display: block; font: 700 16px var(--display); }
.mcardin .sub { display: block; font: 500 13px var(--mono); color: var(--muted); }
.mcardin .chip { font: 600 13px var(--mono); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.mcardin .go { font-size: 22px; color: var(--muted); }
.mspot { display: grid; justify-items: center; gap: 2px; cursor: pointer; }
.mspot .sc { position: relative; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 13px; display: grid; place-items: center; font: 600 13px var(--mono); box-shadow: 0 1px 4px rgba(0,0,0,.25); border: 1.5px solid var(--card); }
.mspot.many .sc { display: flex; gap: 5px; padding: 0 9px 0 7px; }
.mspot.many .sc em { font: 600 11px var(--body); font-style: normal; opacity: .8; }
.mspot .nm { font: 600 11px var(--body); color: var(--ink); text-shadow: 0 0 3px var(--card), 0 0 3px var(--card), 0 0 3px var(--card); white-space: nowrap; display: none; }
.mapv.zoomed .mspot .nm, .mspot.on .nm { display: block; }
.mspot.other .sc { transform: scale(.86); box-shadow: 0 1px 3px rgba(0,0,0,.18); }   /* a spot you don't follow */
.mspot.on .sc { outline: 3px solid var(--accent); outline-offset: 1px; }
.mspot .wa { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.mspot .wa i { position: absolute; left: -5px; top: -27px; width: 10px; height: 10px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid var(--ink); box-sizing: border-box; opacity: .75; }
.mring { pointer-events: none; }
.mring text { font: 600 12px var(--mono); }
.mtag { pointer-events: none; width: 0; height: 0; }
.mtag .at { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.mtag .at .t { position: absolute; left: 0; top: 0; transform-origin: 0 50%; }
.mtag .at .t.flip { left: auto; right: 0; transform-origin: 100% 50%; }
.mtag .t { display: flex; align-items: baseline; gap: 2px; height: 24px; line-height: 24px; padding: 0 8px 0 15px; font: 700 12px var(--mono); white-space: nowrap; clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%); }
.mtag .t.flip { padding: 0 15px 0 8px; clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%); }   /* tip on the right, text upright */
.mtag .t small { font-size: 10px; font-weight: 500; }
.mtag.sw2 .t { height: 21px; line-height: 21px; font-size: 11px; }
.maplibregl-ctrl-attrib { font-size: 10px; }

.footmark { display: block; margin-top: 4px; }   /* the maker's mark under the version line */
.mcardin .swsw { display: inline-block; width: 14px; height: 5px; border-radius: 3px; background: var(--accent); margin-right: 5px; vertical-align: middle; }
.mcardin .swsw.two { height: 3px; opacity: .45; }
.mopenbox { position: absolute; left: 12px; right: 64px; bottom: 12px; z-index: 2; display: flex; justify-content: center; pointer-events: none; }
.mopenbox .mopen { pointer-events: auto; min-height: 44px; padding: 0 22px; width: auto; max-width: 100%; box-shadow: 0 4px 14px rgba(0,0,0,.25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mhint { margin: 6px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.esec { margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.esec .h2 { margin: 12px 0 8px; }
.edial { width: min(100%, 300px); aspect-ratio: 1; margin: 4px auto 0; touch-action: none; user-select: none; }
.edial svg { width: 100%; height: 100%; display: block; }
.edh { cursor: grab; } .edh:focus { outline: none; } .edh:focus-visible circle:nth-child(2) { stroke: var(--accent); stroke-width: 3; }
.enums { margin-top: 8px; } .enums summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; padding: 6px 0; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.ecard { background: var(--card); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.ehead { display: flex; align-items: center; justify-content: space-between; font: 700 17px var(--display); min-height: 44px; }
.ecard .checks { margin: 4px 0 10px; }
.ecard.off .ebody { display: none; }
.eoff { display: none; margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.ecard.off .eoff { display: block; }
.eswitch { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 15px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.eswitch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.eswitch:checked { background: var(--accent); } .eswitch:checked::after { transform: translateX(20px); }
.eswitch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.maplibregl-cooperative-gesture-screen { font: 600 15px var(--body); }
.favstar { all: unset; cursor: pointer; font-size: 20px; line-height: 1; color: var(--muted); padding: 4px 6px; vertical-align: 1px; }
.favstar[aria-pressed="true"] { color: var(--accent); }
.favstar:focus-visible { outline: 2px solid var(--accent); border-radius: 6px; }
.c3therm.off { opacity: .55; }
.c3beam { position: absolute; left: 0; top: 0; width: 22px; height: 210px; transform-style: preserve-3d; pointer-events: none; }
.c3beam i { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--accent) 8%, transparent) 60%, transparent); border-radius: 11px 11px 0 0; }
.c3hlab { position: absolute; bottom: 8px; transform: translateX(-50%); font: 700 12px var(--mono); color: var(--accent); white-space: nowrap; }
.c3now { height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--accent); background: none; color: var(--accent); font: 600 14px var(--body); cursor: pointer; }
.c3twi { position: absolute; top: 0; background: color-mix(in srgb, var(--warn) 22%, transparent); }
.c3flab { position: absolute; bottom: 30px; transform: translateX(-50%); font: 700 12px var(--mono); white-space: nowrap; }
.c3flab.sun { color: var(--warn); bottom: 46px; } .c3flab.dim { color: var(--muted); font-weight: 600; font-size: 11px; }
.c3title { display: flex; align-items: center; gap: 2px; white-space: nowrap; min-width: 0; }
.c3q.c3qi { width: 34px; height: 34px; min-width: 34px; border: 0; background: none; color: var(--muted); padding: 0; display: inline-grid; place-items: center; }
.c3q.c3qi svg { width: 20px; height: 20px; }
.c3q.c3qi[aria-expanded="true"] { color: var(--accent); }
.c3now { padding: 0 12px; height: 40px; }
.c3head .c3btns > button { height: 40px; }
.c3flipbtn { padding: 0 10px; gap: 4px; } .c3flipbtn svg { width: 16px; height: 16px; }

.c3foot { margin-top: 8px; } .c3segw .c3seg { margin-top: 0; }
.c3wrap[data-mode="2d"] .c3foot { display: none; }
.c3head { align-items: flex-start; }
.c3hl { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.c3tools { display: flex; gap: 6px; align-items: center; }
.c3tools .c3mode { height: 32px; min-width: 40px; padding: 0 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); font-size: 12px; }
.c3tools .c3qi { width: 32px; height: 32px; min-width: 32px; border: 1px solid var(--line); border-radius: 50%; }
.c3tools .c3qi svg { width: 17px; height: 17px; }
.c3bb.sun { display: inline-flex; align-items: center; gap: 3px; font: 600 11px var(--mono); color: var(--warn); background: var(--card); padding: 2px 6px 2px 4px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.c3bb.sun svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c3stage .c3bb.sun svg { position: static; }
/* The 2D/? line sits right under the title; in 3D each chart gives back that height from the empty space above it */
.c3hl { gap: 2px; }
.c3wrap[data-mode="3d"] .c3scene { margin-top: -34px; }
.c3head { position: relative; z-index: 2; }
.c3floor .c3sunline { position: absolute; top: 0; width: 2px; margin-left: -1px; background: var(--warn); opacity: .7; }
.c3bb.sunl { display: inline-flex; align-items: center; gap: 3px; font: 600 11px var(--mono); color: var(--warn); }
/* 0.87: the daylight strip on the 3D Timeline's floor, as on the Dots */
.c3floor .c3tw { position: absolute; background: linear-gradient(90deg, color-mix(in srgb, var(--muted) 45%, transparent), transparent); }
.c3floor .c3tw.e { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--muted) 45%, transparent)); }
.c3floor .c3twline { position: absolute; width: 0; border-left: .8px dashed color-mix(in srgb, var(--muted) 50%, transparent); }
.c3floor .c3sunline.dk { background: var(--cksun); opacity: 1; width: 1.6px; margin-left: -.8px; }
.c3bb.sunt { font: 500 10px var(--mono); color: var(--cksun); white-space: nowrap; }
.c3bb.sunt span { color: var(--muted); }
.c3stage .c3bb.sunl svg { position: static; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* map chips in wave-energy mode */
.mspot .sc { white-space: nowrap; }
.mspot .sc small { font-size: 9px; font-weight: 500; margin-left: 2px; opacity: .8; }
.mapbtn[hidden] { display: none; }

/* one spot's week, hour by hour: 15 daylight hours a row, a day a row */
.hwgrid { display: grid; grid-template-columns: 40px repeat(15, minmax(0, 1fr)); gap: 3px; align-items: center; }
.hwh { font: 10px var(--mono); color: var(--muted); text-align: center; white-space: nowrap; overflow: visible; padding-bottom: 2px; }
.hwday { font-size: 13px; font-weight: 600; }
.hwc { aspect-ratio: 1; border: 0; border-radius: 4px; padding: 0; min-width: 0; cursor: pointer; display: block; width: 100%; }
.hwc { background: var(--night); }
.hwc.dark { opacity: .55; }
.hwc.flat { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }
.hwk { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.hwk.flat { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }
.hwk.dark { background: var(--night); opacity: .55; }
.hwk.best { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); }
.hwc.past { opacity: .35; }
.hwc.none { background: transparent; }
.hwc.best { box-shadow: 0 0 0 1.5px var(--card), 0 0 0 3px var(--accent); }
.hwc.flat.best { box-shadow: inset 0 0 0 1.5px var(--line), 0 0 0 1.5px var(--card), 0 0 0 3px var(--accent); }
.hwc:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

/* the day chart chooser on the card's title (Timeline, Clock) */
.c3pickw { position: relative; display: inline-block; }
.c3pick { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; min-height: 32px; }
.c3pick svg { fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; width: 18px; height: 18px; }
.c3pick[aria-expanded="true"] svg { stroke: var(--accent); transform: rotate(180deg); }
.c3menu { position: absolute; z-index: 6; top: 36px; left: 0; min-width: 150px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.16); padding: 4px; display: grid; }
.c3menu[hidden] { display: none; }
.c3menu button { text-align: left; border: 0; background: none; font: 600 15px var(--body); color: var(--ink); padding: 0 12px; min-height: 44px; border-radius: 9px; cursor: pointer; }
.c3menu button[aria-checked="true"] { color: var(--accent); background: var(--accent-soft); }

/* the clock (clock.js). Its size and place are fixed and the same flat and in 3D: a 376-unit square (dial radius 184)
   across the card's width. Things around it lie over empty space or sit in fixed-height strips, so nothing moves it. */
:root { --ckface: #fbfbf9; --ckhand: #16181d; --cksun: #c98a12; --ckred: #d2462f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ckface: #16181d; --ckhand: #eceef1; --cksun: #f0b04a; --ckred: #ff7a66; } }
:root[data-theme="dark"] { --ckface: #16181d; --ckhand: #eceef1; --cksun: #f0b04a; --ckred: #ff7a66; }
.ckwrap { position: relative; margin-top: 8px; }
.ckline { overflow: hidden; white-space: nowrap; font: 500 13px var(--mono); line-height: 18px; height: 28px; padding: 5px 0 0; margin: 0 -14px 6px; text-align: center; background: color-mix(in srgb, var(--accent) 10%, var(--card)); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.ckline.run { text-align: left; cursor: pointer; }
.cktk { display: inline-block; }
.cktk b { font-weight: 500; }
.cktk i { font-style: normal; color: var(--muted); padding: 0 8px; }
.cktk.run { animation: cktk 14s linear infinite; }
.ckline.paused .cktk { animation-play-state: paused; }
.ckwx { position: absolute; left: -8px; top: 34px; z-index: 2; font: 500 10px/1.5 var(--mono); color: var(--ink); pointer-events: none; white-space: nowrap; }
.ckwx.r { left: auto; right: -8px; text-align: right; }
.cardon .ckwx { top: 4px; }
/* the water temperature under the chart's title: the drop and its number centred on one line, about 2 px apart (3 Dec 2026) */
.ckwrap > .ckwx:not(.r) { top: -6px; left: 0; }   /* 0.91 (Tomek, 4 Dec): the water temperature right under the title row, clear of its text */
/* 0.89: the surf Timeline shows the water temperature where the Dots have it (Tomek, 4 Dec); a zero-height holder, so the chart does not move */
.c3wt { position: relative; height: 0; }
.c3wt > .ckwx { top: 2px; left: 0; }
.ckdrop { display: inline-flex; align-items: center; gap: 0; height: 15px; vertical-align: top; }   /* the drop and the 7 carry about 2 px of clear space between them already */
.ckdrop svg, .windui #w-chart .ckdrop svg { display: block; flex: none; width: 11px; height: 15px; position: relative; top: -1px; }   /* the digits then sit on the middle of the drop; the wind chart sizes its svgs to full width, not this one */
.ckcard { position: absolute; top: 0; right: -8px; z-index: 3; width: 96px; padding: 6px 4px 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-align: center; font: 500 9.5px/1.45 var(--mono); }
.c3wrap[data-mode="3d"] .ckcard { border-color: transparent; box-shadow: 0 2px 6px rgba(0,0,0,.14), 0 0 0 1px var(--line); }
.ckcard .sc { display: block; width: 100%; border: 0; background: none; padding: 0; margin: 0 0 2px; font: 600 20px/1.2 var(--mono); color: var(--ink); cursor: pointer; }
.ckwrap .c3v2 { padding: 0; }
.ckwrap .c3v2 svg { width: 100%; height: auto; }
.c3wrap[data-mode="3d"] .ckscene, .ckscene { margin: 0; aspect-ratio: 376 / 398; height: auto; perspective: none; }
.ckscene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* 0.93 (Tomek, 4 Dec): the 3D clock was squeezed into an oval: its canvas is drawn EXTRA (28) px taller than the scene, so it
   must also stand 28 px taller, reaching up above the scene, or the picture is squashed to fit */
.ckscene { overflow: visible; }
.ckscene canvas { top: -28px; height: calc(100% + 28px); }
/* 0.93: the Clock starts on the same line as the Dots pills and the Timeline weather, flat and 3D */
.ckwrap:not(.dkwrap) > .c3v2, .ckwrap:not(.dkwrap) > .c3v3 { margin-top: 17px; }
.ckload { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 20px; }
.ckfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 2px; }
.ckcbs { display: inline-flex; align-items: center; gap: 14px; }
.ckcb { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); color: var(--tide); cursor: pointer; min-height: 36px; }
.ckcb.card { color: var(--ink); }
.ckcb input { width: 18px; height: 18px; margin: 0; accent-color: var(--tide); }
.ckcb.card input { accent-color: var(--accent); }
.c3menu.right { left: auto; right: 0; top: 46px; }
.c3flipbtn svg:last-child { width: 14px; height: 14px; margin-left: -1px; }
.c3choose { gap: 3px; padding: 0 10px 0 14px; }
.c3choose svg { width: 16px !important; height: 16px !important; stroke-width: 2.4; }
/* the chart menu opens over everything on the card (the clock's facts card and weather included) */
.c3head { z-index: 10; }

/* the dots (clock.js). Fixed size and place, the same flat and in 3D: 340 units across, from y 22 to 322. */
:root { --dkoff: #e2e3de; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --dkoff: #2c3038; } }
:root[data-theme="dark"] { --dkoff: #2c3038; }
.dkwrap .c3v2 svg { display: block; }
.dkscene { position: relative; margin: -34px -14px 0; height: auto; perspective: none; }
.dkscene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.c3wrap[data-mode="3d"] .dkwrap:not(.cardon) .ckline { visibility: hidden; }   /* 3D: the line is the glass pipe instead */
.dkcard { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; right: auto; }
.dkcard.drag { cursor: grabbing; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.dkfoot { align-items: center; }
.ckwx2 { font: 500 10px/1.5 var(--mono); color: var(--ink); white-space: nowrap; }
.ckwx2 i { font-style: normal; color: var(--muted); }
/* the ? help button right of the card's title */
.c3title .c3qi, .c3step .c3qi { width: 28px; height: 28px; min-width: 28px; margin-left: 6px; border: 1px solid var(--line); border-radius: 50%; display: inline-grid; place-items: center; flex: none; }
.c3title .c3qi svg, .c3step .c3qi svg { width: 15px; height: 15px; }
/* the view button beside 2D/3D: steps Front → Tilt → Side → Top (3D only) */
.c3tools .c3vbtn { height: 32px; display: inline-flex; align-items: center; gap: 5px; padding: 0 11px 0 9px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 12px var(--body); cursor: pointer; }
.c3tools .c3vbtn svg { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.c3wrap[data-mode="2d"] .c3vbtn { display: none; }

/* 0.45: one header row — title (tap to go back to now) · ? … cube · chart menu */
.c3head { align-items: center; flex-wrap: nowrap; }
.c3head .c3title { flex: 1 1 auto; min-width: 0; }
.c3home { font: 700 17px var(--display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.c3home { border: 0; background: none; padding: 0; cursor: pointer; }
.c3home.away { color: var(--accent); }
.c3cube { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.c3cube svg { width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.c3cube[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.c3cube[aria-pressed="true"] svg { stroke: var(--accent); }
/* the 2D/3D cube sits in the chart's bottom right corner (the colour key, on the wind charts, sits bottom left) */
.c3cube.corner { position: absolute; right: 4px; bottom: 6px; width: 26px; height: 26px; border-radius: 9px; z-index: 3; }
.c3cube.corner svg { width: 15px; height: 15px; }
.c3face.padc { padding-bottom: 38px; }   /* the compass and the weather card: room under the last row for the cube */
.c3face .ckfoot { padding-right: 30px; }
.windui .c3cube.corner { right: -10px; bottom: -4px; }
/* the compass hour: one pill, small arrows inside, swipe it sideways */
.c3hr { display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--line); border-radius: 20px; padding: 0 2px; touch-action: pan-y; user-select: none; -webkit-user-select: none; flex: none; }
.c3hr h3 { margin: 0; min-width: 3.6em; text-align: center; }
.c3hr button[data-dir] { width: 26px; height: 38px; border: 0; background: none; color: var(--muted); font-size: 17px; line-height: 1; padding: 0; cursor: pointer; }
.c3hr button[data-dir]:disabled { opacity: .3; cursor: default; }
/* views at the bottom of the chart menu, 3D only */
.c3wrap[data-mode="2d"] .c3views { display: none; }
.c3hr h3 { font: 700 17px var(--display); min-width: 3.3em; }
.c3hr h3 .c3home { font: inherit; }
.c3head .c3btns { gap: 6px; }
.c3hr button[data-dir] { width: 22px; }
.c3hr h3 { min-width: 3em; }
/* 0.46: a star beside each day chart in the menu makes it your chart */
.c3mrow { display: flex; align-items: center; }
.c3mrow > button[data-c3="chart"] { flex: 1; }
.c3menu .c3fav { flex: none; width: 44px; padding: 0; display: grid; place-items: center; }
.c3fav svg { fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linejoin: round; }
.c3menu { min-width: 190px; }

/* 0.47: colour themes (Settings → Colour). Plumeria (violet) is the default; the rest swap only the accent and the score colours.
   The colours that mean something (wave height, energy, tide, good/warn/bad) never change. --accent-d is the dark accent, for the dark toast. */
:root { --accent-d:#a891ff; }
:root[data-accent="hibiscus"] { --accent:#a8235f; --accent-soft:#fbe3ee; --on-accent:#ffffff; --s1:#f8e6ee; --s2:#f3bfd5; --s3:#e27fab; --s4:#c2417f; --s5:#8c1a52; --c3win:#f8e1ec; --c3go:rgba(168,35,95,.13); --accent-d:#ff86bd; }
@media (prefers-color-scheme: dark) { :root[data-accent="hibiscus"]:not([data-theme="light"]) { --accent:#ff86bd; --accent-soft:#3a1f2c; --on-accent:#1f0f17; --s1:#4a2a39; --s2:#74345a; --s3:#a8457b; --s4:#cf5a96; --s5:#e77fb2; --c3win:#3d2030; --c3go:rgba(255,134,189,.18); } }
:root[data-accent="hibiscus"][data-theme="dark"] { --accent:#ff86bd; --accent-soft:#3a1f2c; --on-accent:#1f0f17; --s1:#4a2a39; --s2:#74345a; --s3:#a8457b; --s4:#cf5a96; --s5:#e77fb2; --c3win:#3d2030; --c3go:rgba(255,134,189,.18); }
:root[data-accent="lagoon"] { --accent:#1f4fc4; --accent-soft:#e4ebfb; --on-accent:#ffffff; --s1:#e6ecf9; --s2:#bccbf2; --s3:#829ee6; --s4:#4469d6; --s5:#1d3f9e; --c3win:#e1e8f8; --c3go:rgba(31,79,196,.13); --accent-d:#86a2ff; }
@media (prefers-color-scheme: dark) { :root[data-accent="lagoon"]:not([data-theme="light"]) { --accent:#86a2ff; --accent-soft:#1e2640; --on-accent:#0f1424; --s1:#2b3352; --s2:#36478a; --s3:#4a63c2; --s4:#6181e6; --s5:#8aa3f5; --c3win:#222c4a; --c3go:rgba(134,162,255,.18); } }
:root[data-accent="lagoon"][data-theme="dark"] { --accent:#86a2ff; --accent-soft:#1e2640; --on-accent:#0f1424; --s1:#2b3352; --s2:#36478a; --s3:#4a63c2; --s4:#6181e6; --s5:#8aa3f5; --c3win:#222c4a; --c3go:rgba(134,162,255,.18); }
:root[data-accent="koa"] { --accent:#8a4b1f; --accent-soft:#f5e9dd; --on-accent:#ffffff; --s1:#f4ebe1; --s2:#e6cdb0; --s3:#cfa070; --s4:#a96c35; --s5:#73400f; --c3win:#f2e6d8; --c3go:rgba(138,75,31,.13); --accent-d:#e3a56b; }
@media (prefers-color-scheme: dark) { :root[data-accent="koa"]:not([data-theme="light"]) { --accent:#e3a56b; --accent-soft:#33261b; --on-accent:#1e140b; --s1:#3d3127; --s2:#5f4530; --s3:#8a6038; --s4:#b0733f; --s5:#cf9258; --c3win:#3a2c1f; --c3go:rgba(227,165,107,.18); } }
:root[data-accent="koa"][data-theme="dark"] { --accent:#e3a56b; --accent-soft:#33261b; --on-accent:#1e140b; --s1:#3d3127; --s2:#5f4530; --s3:#8a6038; --s4:#b0733f; --s5:#cf9258; --c3win:#3a2c1f; --c3go:rgba(227,165,107,.18); }
:root[data-accent="graphite"] { --accent:#2f3542; --accent-soft:#e6e8ec; --on-accent:#ffffff; --s1:#eceef1; --s2:#c9ced6; --s3:#9aa1ac; --s4:#5d6472; --s5:#2a2f3a; --c3win:#e4e6ea; --c3go:rgba(47,53,66,.12); --accent-d:#cfd5df; }
@media (prefers-color-scheme: dark) { :root[data-accent="graphite"]:not([data-theme="light"]) { --accent:#cfd5df; --accent-soft:#2a2e36; --on-accent:#14161a; --s1:#30343c; --s2:#474d58; --s3:#5f6776; --s4:#7a8393; --s5:#99a2b1; --c3win:#2c3038; --c3go:rgba(207,213,223,.15); } }
:root[data-accent="graphite"][data-theme="dark"] { --accent:#cfd5df; --accent-soft:#2a2e36; --on-accent:#14161a; --s1:#30343c; --s2:#474d58; --s3:#5f6776; --s4:#7a8393; --s5:#99a2b1; --c3win:#2c3038; --c3go:rgba(207,213,223,.15); }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.swatches button { border: 1px solid var(--line); background: var(--card); border-radius: 12px; min-height: 64px; display: grid; justify-items: center; align-content: center; gap: 5px; padding: 6px 2px; font: 600 12px var(--body); color: var(--muted); cursor: pointer; }
.swatches button i { width: 24px; height: 24px; border-radius: 50%; display: block; }
.swatches button[aria-pressed="true"] { border: 2px solid var(--ink); color: var(--ink); }
.swatches button i { background: var(--swl); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .swatches button i { background: var(--swd); } }
:root[data-theme="dark"] .swatches button i { background: var(--swd); }

/* wind charts (wind.js): colours the app doesn't have yet, light and dark */
.windui { --off: #e3e4e0; --tidestrip: #7b8ba3; --wave: #0b7f86; --sun: #c98a12; --face: #fbfbf9; --tidepipe: #1e6fe0; --energy: #b26b00; --good: #1f7a4c; position: relative; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .windui { --off: #2a2e36; --tidestrip: #8796ad; --wave: #4fd1c5; --sun: #f0b04a; --face: #16181d; --tidepipe: #4f9bff; --energy: #f0b04a; --good: #5fd39a; } }
:root[data-theme="dark"] .windui { --off: #2a2e36; --tidestrip: #8796ad; --wave: #4fd1c5; --sun: #f0b04a; --face: #16181d; --tidepipe: #4f9bff; --energy: #f0b04a; --good: #5fd39a; }
.windui .seg{ display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--line); border-radius: 12px; padding: 3px; gap: 3px; margin-bottom: 8px; }
.windui .seg button{ border: 0; background: transparent; color: var(--muted); font: 600 14px var(--body); padding: 8px 2px; border-radius: 9px; cursor: pointer; min-height: 40px; }
.windui .seg button[aria-pressed="true"]{ background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.windui .head{ display: flex; align-items: center; gap: 2px; margin-bottom: 4px; min-height: 34px; }
.windui .head h2{ font: 700 17px/1.2 var(--display); margin: 0; }
.windui .head span{ font: 12px var(--mono); color: var(--muted); }
.windui .head{ flex-wrap: wrap; row-gap: 2px; }
.windui .head h2{ white-space: nowrap; }
.windui .head h2.away{ color: var(--accent); cursor: pointer; }
.windui .head #w-selt{ margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font: 500 14px var(--mono); flex: none; color: var(--ink); white-space: nowrap; }   /* 0.95: 14 px numbers, 12 px units (Tomek, 4 Dec) */
.windui .head #w-selt em{ font-style: normal; color: var(--accent); }
.windui .head #w-selt span{ font: inherit; color: var(--ink); }
.windui .head #w-selt .sc{ padding: 2px 7px; border-radius: 99px; border: 0; font: inherit; cursor: pointer; }
.windui .head #w-selt svg{ display: block; }
.windui .head #w-selt.pill{ gap: 4.5px; padding: 2px 2px 2px 9px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 11%, var(--card)); }
.windui .head #w-selt .sep{ width: 1px; height: 15px; margin: 0 1px; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.windui .head #w-selt .wv{ font-weight: 600; } .head #w-selt .wv .g { font-weight: 500; color: var(--muted); }
.windui .head #w-selt.flash{ animation: seltflash .7s ease-out; }
@keyframes seltflash { 0% { background: color-mix(in srgb, var(--accent) 38%, var(--card)); } 100% { background: color-mix(in srgb, var(--accent) 11%, var(--card)); } }
@media (prefers-reduced-motion: reduce) { .head #w-selt.flash { animation: none; } }
.windui #w-chart svg{ display: block; width: 100%; height: auto; -webkit-user-select: none; user-select: none; }
.c3wrap[data-mode="2d"] .c3v2 svg, .c3wrap[data-mode="2d"] svg.dksvg { touch-action: pan-y; user-select: none; -webkit-user-select: none; }   /* sideways drags scrub the hours */
.windui #w-chart.scrub{ touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.windui .hit{ cursor: pointer; }
.windui .chartw{ position: relative; }
.windui .keyb{ position: absolute; left: -10px; bottom: -4px; width: 26px; height: 26px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; padding: 0; }
.windui .keyb[aria-expanded="true"]{ border-color: var(--accent); }
.windui .pop{ position: absolute; z-index: 5; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 10px 12px; font-size: 13px; }
.windui .chartw .pop{ left: 0; bottom: 34px; max-width: 290px; }
.windui .pop.help{ left: 10px; right: 10px; top: 44px; }
.windui .pop .legend{ margin: 0; }
.windui .pop p{ margin: 0 0 6px; color: var(--ink); line-height: 1.4; }
.windui .pop p:last-child{ margin: 0; }
.windui .pop table.parts{ width: 100%; border-collapse: collapse; margin: 2px 0 8px; font: 12px var(--mono); }
.windui .pop table.parts td{ padding: 4px 0; border-top: 1px solid var(--line); vertical-align: top; }
.windui .pop table.parts td:first-child{ font: 600 12.5px var(--body); padding-right: 8px; white-space: nowrap; }
.windui .pop table.parts td:last-child{ text-align: right; padding-left: 8px; white-space: nowrap; font-weight: 600; }
.windui .pop table.parts tr.tot td{ font-weight: 700; }
.windui .pop p.d{ color: var(--muted); font-size: 12px; }
.windui .pop h3{ font: 700 14px var(--display); margin: 0 0 6px; }
.windui .legend{ display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font: 11px var(--mono); color: var(--muted); }
.windui .legend i{ display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.windui .views3, .c3views{ position: absolute; right: 0; top: 50%; transform: translate(50%, -50%); display: none; flex-direction: column; gap: 2px; padding: 3px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); z-index: 4; }
.windui .views3.on, .c3views{ display: inline-flex; }
.windui .views3 button, .c3views button{ border: 0; background: none; color: var(--muted); font: 600 12.5px var(--body); padding: 12px 5px; writing-mode: vertical-rl; border-radius: 99px; cursor: pointer; }
.windui .views3 button[aria-pressed="true"], .c3views button[aria-pressed="true"]{ background: var(--accent-soft); color: var(--accent); }
.c3views { right: -2px; top: var(--vt, 50%); }   /* the surf charts: the same tab on the card's right edge, centred on the chart */
.windui .fig3{ position: relative; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.windui .fig3 canvas{ position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.windui .fig3 .gnote{ position: absolute; left: 22px; bottom: 15px; white-space: nowrap; font: 9.5px/1.3 var(--mono); color: var(--muted); pointer-events: none; padding: 0 3px; margin-left: -3px; border-radius: 4px; background: color-mix(in srgb, var(--card) 85%, transparent); }   /* what the kite boxes are, beside the legend button */
.windui .fig3 .hint{ position: absolute; right: 22px; bottom: 2px; font: 10px var(--mono); color: var(--muted); pointer-events: none; }
.windui .cardon .ckwx{ top: 4px; }
.windui .chartw.ck{ padding-bottom: 30px; }
.windui .chartw.ck.wind .ckline, .windui .chartw.ck.wind .ckcard, .windui .chartw.ck.wind .ckcb.card{ display: none; }
.windui .chartw.ck.wind .ckwx{ top: -16px; left: 0; }   /* 0.120 (Tomek): up 8 px, where the Compasses have their weather row */
.windui .seg { grid-template-columns: none; margin: 8px 0 0; }
.windui .head { justify-content: flex-end; margin: -2px 0 4px; min-height: 0; }
.windui .views3 { right: -16px; }
.windui .views3.ranges { right: auto; left: -16px; transform: translate(-50%, -50%) rotate(180deg); }   /* 0.119: the period (Day … Week) on the left edge, wind Timeline and Dots; turned so the text's base faces the chart, like the other edge tabs */
.windui .views3.ranges button{ padding: 9px 5px; }
.kgseg .kgv{font-family:var(--mono);font-variant-numeric:tabular-nums;color:var(--ink);opacity:1}

/* Welcome page: first open, and from the menu */
.welcome .inner { padding-top: calc(env(safe-area-inset-top) + 28px); padding-bottom: 0; }
.welcome .wicon { display: block; width: 64px; height: 64px; }
.welcome .ptitle { margin: 14px 0 6px; }
.welcome .lead { color: var(--muted); margin: 0 0 18px; }
.wcards { display: grid; gap: 10px; }
.wcard { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; background: var(--card); border-radius: 14px; padding: 14px 16px; }
.wcard svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.wcard .t { font-weight: 600; }
.wcard p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.wfoot { position: sticky; bottom: 0; background: var(--paper); padding: 12px 0 calc(env(safe-area-inset-bottom) + 12px); margin-top: 14px; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Settings (0.59): a list of rows showing each setting's value; each opens its own page */
.setrow { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 0; }
.setrow .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--accent); flex: none; }
.setrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.setrow .t { flex: 1 0 auto; font-weight: 600; white-space: nowrap; }
.setrow .v { flex: 0 1 auto; color: var(--muted); font-size: 14px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setrow .chev { color: var(--muted); display: grid; flex: none; }
.setrow .chev svg { width: 18px; height: 18px; }
.setrow .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--swl); vertical-align: -1px; margin-right: 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .setrow .dot { background: var(--swd); } }
:root[data-theme="dark"] .setrow .dot { background: var(--swd); }
.setpage { padding-top: 12px; }
.setpage .lead { margin: 0 2px 12px; }
.setpage > .note { margin: 10px 2px 0; }
.swrow { display: flex; align-items: center; gap: 14px; }
.swrow .t { flex: 1; font-weight: 600; }
.swrow .t .note { display: block; font-weight: 400; margin-top: 2px; }
.tog { width: 51px; height: 31px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background .15s; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 25px; height: 25px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.swrow[aria-checked="true"] .tog { background: var(--accent); }
.swrow[aria-checked="true"] .tog::after { transform: translateX(20px); }
.rng { padding: 12px 0; }
.rng .t { font-weight: 600; }
.rbar { position: relative; height: 26px; margin: 10px 0 4px; border-radius: 8px; background: var(--line); overflow: hidden; }
.rbar i { position: absolute; top: 0; bottom: 0; }
.rbar .ok { background: color-mix(in srgb, var(--accent) 30%, var(--card)); }
.rbar .best { background: var(--accent); }
.rticks { position: relative; height: 16px; font-size: 11px; color: var(--muted); margin: 0 8px 8px; }
.rticks span { position: absolute; transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) { .tog, .tog::after { transition: none; } }
/* 0.63: the chart types in a tab on the card's top edge (like the 3D views on its right edge); the title and the hour pill share the line under it */
.c3wrap:has(.c3types) { margin-top: 26px; }
.c3types { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); z-index: 12; white-space: nowrap; }
.c3types button { border: 0; background: none; color: var(--muted); font: 600 12.5px var(--body); padding: 6px 11px; border-radius: 99px; cursor: pointer; }
.c3types button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.c3face:has(> .c3types) { padding-top: 20px; }
.c3head .wsel { flex: none; margin-left: auto; min-width: 0; }
.c3head .wsel .head { margin: 0; min-height: 0; }
/* the wind charts: a short row under the chart for the colour key and the 2D/3D cube, so the cube never covers the last time on the axis */
.windui .chartw:not(.ck) { padding-bottom: 24px; }
/* the wind compass: room between the ring and the title line above it, taken from the row under the hours */
.windui .chartw.cp { padding-top: 18px; padding-bottom: 6px; }
/* the tide pipe colour on the surf charts, as on the wind Dots */
:root { --tidepipe: #1e6fe0; }   /* on :root so the 3D charts can read it too */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tidepipe: #4f9bff; } }
:root[data-theme="dark"] { --tidepipe: #4f9bff; }
/* the wave Dots and Clock show the chosen hour in a pill beside the title (like the wind charts) instead of the running line */
.c3pill { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 11%, var(--card)); font: 500 14px var(--mono); white-space: nowrap; color: var(--ink); }
.c3pill em { font-style: normal; color: var(--accent); }
.c3pill b { font-weight: 600; }
.c3pill .sep { width: 1px; height: 15px; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.c3face:not(:has(.windhost)) .ckline { display: none; }
/* a unit reads 2 px smaller than its number, same baseline (TF.shrinkUnits wraps it; see "Units and times" in CLAUDE.md) */
sw-u { font-size: calc(1em - 2px); }
/* the colour key on the wave charts, bottom left, as on the wind charts */
.c3keyb { position: absolute; left: 4px; bottom: 6px; width: 26px; height: 26px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; padding: 0; z-index: 3; }
.c3keyb[aria-expanded="true"] { border-color: var(--accent); }
.c3keypop { position: absolute; z-index: 6; left: 8px; right: 8px; bottom: 40px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 10px 12px; font-size: 13px; }
.c3keypop h3 { font: 700 14px var(--display); margin: 0 0 6px; }
.c3keypop .legend { margin: 0; }
.legend i.ln { width: 14px; height: 3px; border-radius: 2px; }

/* Wave colours (0.70): surf hours are coloured by how good they are, earthy "clay and moss" (Tomek, 3 Dec): terracotta, ochre, olive, moss, dusty plum.
   The score itself is no longer shown for surf; the colour carries it and the wave size is the number. */
:root { --w1:#a04a35; --w2:#d8a843; --w3:#98a848; --w4:#3f6b47; --w5:#6a5a8c; --w1i:#fff; --w2i:#16181d; --w3i:#16181d; --w4i:#fff; --w5i:#fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --w1:#c66d55; --w2:#e8c068; --w3:#b2c46c; --w4:#5f9668; --w5:#9c8cc0; --w1i:#16181d; --w2i:#16181d; --w3i:#16181d; --w4i:#16181d; --w5i:#16181d; } }
:root[data-theme="dark"] { --w1:#c66d55; --w2:#e8c068; --w3:#b2c46c; --w4:#5f9668; --w5:#9c8cc0; --w1i:#16181d; --w2i:#16181d; --w3i:#16181d; --w4i:#16181d; --w5i:#16181d; }
/* inside a surf chart the score colours are the wave colours */
.wavecols { --s1:var(--w1); --s2:var(--w2); --s3:var(--w3); --s4:var(--w4); --s5:var(--w5); }
.days button i.split { display: flex; gap: 2px; background: none !important; }
.days button i.split b { flex: 1; border-radius: 2px; }
.qdot { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 50%; margin: 0 4px 0 2px; vertical-align: middle; }

/* 0.76: the surf Glow Timeline: how strong the soft glow on its dotted lines is */
/* 0.89 (Tomek, 4 Dec): softer in dark: the stems, the badge halos and the tide and energy glow at about half */
:root { --gstem: .3; --ghalo: .75; --gpipe: .45; --gbadge: 70%; --gbfill: 100%; }   /* 0.94: --gbfill: how much quality colour fills a wave badge; dark mixes in the card colour */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --gstem: .2; --ghalo: .32; --gpipe: .2; --gbadge: 32%; --gbfill: 62%; } }
:root[data-theme="dark"] { --gstem: .2; --ghalo: .32; --gpipe: .2; --gbadge: 32%; --gbfill: 62%; }
/* 0.76: the 3D Glow Timeline: dotted stems and glowing wave badges that always face you */
.c3stage .c3stem { transform-origin: 2px 0; }
.c3stem { width: 4px; background: radial-gradient(circle at 50% 50%, var(--c) 0 1.7px, color-mix(in srgb, var(--c) 55%, transparent) 1.8px 2px, transparent 2.1px) 0 0 / 4px 6px repeat-y; filter: drop-shadow(0 0 2.5px color-mix(in srgb, var(--c) var(--gbadge), transparent)); pointer-events: none; }   /* 0.87: round 4 px beads, 6 px apart, so the stem stays visible when tilted */
.c3bb.c3badge { pointer-events: auto; cursor: pointer; outline: none; }
.c3badge span { display: block; position: relative; width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%; background: color-mix(in srgb, var(--c) var(--gbfill), var(--card));
  box-shadow: inset 0 0 0 1.1px #fff, 0 0 12px 2px color-mix(in srgb, var(--c) var(--gbadge), transparent); }
.c3badge span::after { content: ""; position: absolute; left: -14%; top: 3%; width: 128%; height: 84%; background: #fff; transform: rotate(-10deg);
  -webkit-mask: url(icons/wave.png) center / contain no-repeat; mask: url(icons/wave.png) center / contain no-repeat; }
.c3badge.sel span { box-shadow: inset 0 0 0 1.1px #fff, 0 0 0 2.6px var(--ink), 0 0 12px 2px color-mix(in srgb, var(--c) var(--gbadge), transparent); }
.c3badge:focus-visible span { box-shadow: 0 0 0 2.6px var(--accent); }
.c3bb.ln.en.gl { color: var(--c3line); }   /* 0.77: the Glow Timeline energy line is teal */
.c3face > .c3head { margin-top: 10px; }   /* 0.81: 10 px more room under the chart switch (surf and wind) */

/* 0.96: the favorite star beside the ? (Timeline, Dots, Clock) and its popup */
.c3title .c3fav svg { stroke-width: 1.8; }
.c3title .c3fav[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.c3title .c3fav[aria-pressed="true"] svg { fill: currentColor; }
.c3title .c3fav[aria-expanded="true"] { color: var(--accent); }
.c3favpop { z-index: 14; }
.c3favpop::before { right: var(--arrow, 132px); }
.c3favpop b { font-weight: 700; }
.c3favbtns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.c3favbtns button { font: 600 14px var(--body); padding: 8px 14px; border-radius: 99px; border: 1px solid currentColor; background: none; color: inherit; cursor: pointer; opacity: .85; }
.c3favbtns button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); opacity: 1; }
.c3dialbox .c3v2 { padding: 0; }
.c3dialbox .c3v2 svg { max-width: 336px !important; width: 336px; margin: 0 -50px -17px; align-self: center; overflow: visible; }   /* 0.111 (Tomek): the dial 20% bigger (was 280 px; 3D: chart3d.js scales by 1.2 too); it may run past the box's sides and ends, the box keeps its size */
/* 0.107: the second pill under the hour pill on the surf Compass: the other swells and the wind (no corner boxes) */
.c3legend.c3pill2 { position: absolute; z-index: 3; top: 2px; right: 0; display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 0 2px; max-width: 100%; padding: 1px 4px; border-radius: 99px; white-space: nowrap; background: color-mix(in srgb, var(--accent) 11%, var(--card)); }
.c3pill2 .sep { width: 1px; height: 15px; flex: none; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.c3legend.c3pill2 button { display: inline-flex; align-items: baseline; gap: 5px; min-height: 28px; padding: 3px 6px 3px 11px; border-radius: 99px; background: transparent; white-space: nowrap; align-items: center; }
.c3legend.c3pill2 .c3key { left: 4px; top: 8px; bottom: 8px; }
.c3legend.c3pill2 b { display: inline; font: 600 13px var(--mono); color: var(--ink); }
.c3legend.c3pill2 span { display: inline; font-size: 12px; color: var(--muted); }
.c3pill2 .c3wpart { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; color: var(--ink); }   /* 0.108: the wind, not tappable */
.c3pill2 .c3wpart svg { flex: none; }
.c3legend.c3pill2 b { overflow: visible; }
.c3legend.c3pill2.tight b { font-size: 12px; } .c3legend.c3pill2.tight button { padding: 3px 4px 3px 9px; } .c3legend.c3pill2.tight .c3key { left: 3px; } .c3pill2.tight .c3wpart { padding: 3px 5px 3px 4px; gap: 3px; }   /* three parts still fit one row at 375 px */
.c3legend.c3pill2 button[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }

/* 0.114 (Tomek): the hour's sky, air and water temperature in one row right under the title on both Compasses, placed as the
   surf Timeline and Dots place their water temperature */
.cpwx { position: absolute; z-index: 3; left: 0; top: 0; display: flex; align-items: center; gap: 8px; font: 500 10px/1.5 var(--mono); color: var(--ink); pointer-events: none; white-space: nowrap; }
.cpwx .cpwxi { display: inline-flex; align-items: center; gap: 2px; }
.cpwx .cpwxi svg, .windui #w-chart .cpwx .cpwxi svg { display: block; width: 16px; height: 16px; flex: none; }
.windui #w-chart { position: relative; }
.c3dialbox > .cpwx { top: 1px; }   /* 26 px under the title's top, as on the Timeline and Dots */
.windui #w-chart > .cpwx { top: -16px; }
.windui #w-chart > .cpwx.tw { top: 2px; }   /* 0.121: water under the title on the wind Timeline and Dots */

/* 0.130: favorite tiles look ahead: a quality strip in each tile, a slider under them */
.fwhenrow { display: flex; align-items: center; justify-content: space-between; margin: -6px 0 4px; gap: 8px; }
#fwhen { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fwt { font-weight: 600; font-size: 15px; }
.fgrid.fscrubbable .ftile { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.fstrip { display: flex; gap: 1px; height: 8px; margin-top: 8px; align-items: center; }
.fstrip i { flex: 1; height: 8px; border-radius: 1.5px; }
.fstrip i.on { height: 16px; border-radius: 2px; box-shadow: 0 0 0 1.5px var(--ink); }
.fscrub { margin: 6px 12px 0; padding: 30px 0 4px; touch-action: none; user-select: none; -webkit-user-select: none; }
.fstrack { position: relative; height: 6px; border-radius: 3px; background: var(--line); }
.fstrack b { position: absolute; top: -3px; width: 1.5px; height: 12px; margin-left: -1px; background: var(--muted); opacity: .5; }
.fsfill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--accent); }
.fsthumb { position: absolute; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.35); border: 2px solid var(--accent); box-sizing: border-box; }
.fsthumb em { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font: 600 12px var(--mono); font-style: normal; white-space: nowrap; background: var(--accent); color: var(--on-accent); padding: 3px 8px; border-radius: 999px; }
.fsdays { position: relative; height: 16px; margin-top: 10px; font: 500 11px var(--mono); color: var(--muted); }
.fsdays span { position: absolute; white-space: nowrap; }

/* ---------- New UI (0.131, newui.js): flat and monochrome; colour only for how good it is ----------
   Settings > Look > Style. Greys replace the theme colour; the quality colours (--w1…--w5) stay. */
html:root[data-ui="new"][data-ui] {
  --paper:#efefec; --card:#ffffff; --group:#ffffff; --ink:#17181b; --muted:#6c6f76; --line:#e4e4e0; --night:#e9e9e5; --nfill:#ececE8;
  --accent:#17181b; --accent-soft:#e9e9e5; --on-accent:#ffffff;
  --s1:#ececE8; --s2:#d4d4cf; --s3:#a9abb0; --s4:#6c6f76; --s5:#17181b; --c3win:#ececE8; --c3go:rgba(23,24,27,.08);
}
@media (prefers-color-scheme: dark) { html:root[data-ui="new"][data-ui]:not([data-theme="light"]) {
  --paper:#0f1012; --card:#1a1b1e; --group:#1a1b1e; --ink:#ededee; --muted:#8f929a; --line:#2a2b2f; --night:#26272b; --nfill:#232427;
  --accent:#ededee; --accent-soft:#26272b; --on-accent:#0f1012;
  --s1:#26272b; --s2:#3a3b40; --s3:#55585f; --s4:#8f929a; --s5:#ededee; --c3win:#232427; --c3go:rgba(237,237,238,.1); } }
html:root[data-ui="new"][data-ui][data-theme="dark"] {
  --paper:#0f1012; --card:#1a1b1e; --group:#1a1b1e; --ink:#ededee; --muted:#8f929a; --line:#2a2b2f; --night:#26272b; --nfill:#232427;
  --accent:#ededee; --accent-soft:#26272b; --on-accent:#0f1012;
  --s1:#26272b; --s2:#3a3b40; --s3:#55585f; --s4:#8f929a; --s5:#ededee; --c3win:#232427; --c3go:rgba(237,237,238,.1);
}
[data-ui="new"] .tab[aria-current="page"] { color: var(--ink); }
[data-ui="new"] .seg button[aria-pressed="true"] { box-shadow: none; }
.ncard { background: var(--card); border-radius: 18px; padding: 16px; }
.ngrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nftile { display: flex; flex-direction: column; align-items: stretch; text-align: left; border: 0; color: var(--ink); font: inherit; padding: 14px 14px 12px; cursor: pointer; }
.nftile:active { opacity: .85; }
.nft { font-weight: 600; font-size: 15px; line-height: 1.2; }
.nfs { font-size: 12px; color: var(--muted); }
.nbig { font-family: var(--mono); font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 14px 0 2px; white-space: nowrap; }
.nfsub { font-size: 11px; color: var(--muted); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nqword { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.nqword i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.nstrip { display: flex; gap: 2px; margin-top: 12px; height: 8px; }
.nstrip i { flex: 1; border-radius: 2px; }
.nstrip i.on { outline: 1.5px solid var(--ink); outline-offset: 1px; }
.naxis { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 4px; }
.narrow { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; margin-right: 2px; }
.nweek .nwrow { display: flex; align-items: flex-end; gap: 6px; }
.nweek .nwrow + .nwrow { margin-top: 10px; }
.nwlab { width: 38px; flex: none; font-size: 12px; color: var(--muted); align-self: center; }
.nwcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nwcol small { font-size: 11px; color: var(--muted); }
.nwbar { width: 100%; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.nwbar i { flex: 1; }
.nspot .nnow { margin-top: 16px; }
.nrow { display: flex; align-items: center; justify-content: space-between; }
.nherorow { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 10px; flex-wrap: wrap; }
.nhero { font-size: 48px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.nkj { display: inline-flex; flex-direction: column; align-items: flex-end; text-align: right; margin-left: auto; line-height: 1.1; }   /* 0.150: right edge of the card (Tomek) */
.nkj b { font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.nkj small { font-size: 11px; color: var(--muted); margin-top: 2px; }
.nhero2 { font-size: 15px; color: var(--muted); }
.nstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 12px; gap: 8px; }
.nstats small { display: block; font-size: 12px; color: var(--muted); }
.nstats b { display: block; font-size: 17px; font-weight: 600; white-space: nowrap; }
.nstats span { display: block; font-size: 11px; color: var(--muted); }
.nchart { display: block; overflow: visible; }
.nchart text { font-family: var(--mono); }
.nchart [data-act] { cursor: pointer; }
.nspot .nchart { touch-action: pan-y; user-select: none; -webkit-user-select: none; }   /* 0.146: sideways drags scrub the hours */
.nsub { font-size: 12px; color: var(--muted); margin: 16px 0 4px; }
.nlegend { display: flex; gap: 14px; font-size: 11px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.nlegend span { display: inline-flex; align-items: center; gap: 5px; }
.nlegend .ln { width: 16px; height: 0; border-top: 2px solid var(--ink); }
.nlegend .ln.dash { border-top: 2px dashed var(--muted); }
.nsun { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ngrid7 { display: flex; flex-direction: column; gap: 3px; }
.ngrow { display: flex; align-items: center; gap: 2px; border: 0; background: none; padding: 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; border-radius: 4px; }
.ngrow.head { cursor: default; }
.ngrow.head .ngcell { height: auto; font: 10px var(--mono); color: var(--muted); }
.ngday { width: 46px; flex: none; font-size: 12px; font-weight: 500; }
.ngrow.on .ngday { font-weight: 700; }
.ngrow.on .ngday::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); margin: 0 4px 2px 0; }
.ngcell { flex: 1; height: 30px; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.ngcell.now { outline: 2px solid var(--ink); outline-offset: 1px; }
.nspot .sbar h2:empty { visibility: hidden; }
.nspot .foot, .nspot + .foot { margin-top: 20px; }
[data-ui="new"] .brand img { filter: grayscale(1); }
/* New UI Week tab (0.132) */
.nwhead { margin-top: 2px; }
.nwwhere { font: 600 15px var(--display); }
.nwminis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.nwmini { background: var(--paper); border-radius: 12px; padding: 8px 10px; }
.nwmini small { display: block; font-size: 11px; color: var(--muted); }
.nwmini svg { display: block; width: 100%; height: 30px; margin-top: 4px; }
.nwmini b { display: block; font-size: 12px; font-weight: 600; margin-top: 4px; white-space: nowrap; }
.nwmini.faded svg { opacity: .35; }
.nwtable { padding: 12px 12px 14px; }
.nwgrow { display: flex; align-items: center; gap: 3px; margin-top: 3px; }
.nwgrow.head { margin: 0 0 4px; }
.nwgrow.head .ngcell { height: auto; font: 10px var(--mono); color: var(--muted); }
.nwname { width: 92px; flex: none; border: 0; background: none; padding: 0; text-align: left; font: 600 13px/1.15 var(--body); color: var(--ink); cursor: pointer; }
.nwgrow .ngcell { height: 34px; border: 0; padding: 0; font-size: 13px; cursor: pointer; }
.nwgrow:not(.head) .ngcell:nth-child(2) { border-radius: 6px 0 0 6px; }
.nwgrow:not(.head) .ngcell:last-child { border-radius: 0 6px 6px 0; }
.nqlegend { justify-content: space-between; margin-top: 12px; }
.nqlegend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* New UI spot page tabs (0.133) */
.nspot .ntitle { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.nspot .ntitle .favstar { font-size: 22px; }
.nspot .nnear { margin-top: 4px; }
.ndays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 14px 0 12px; }
.ndays button { border: 0; background: var(--card); border-radius: 12px; padding: 7px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 1px; font: 600 12px var(--body); color: var(--muted); cursor: pointer; }
.ndays button small { font-size: 11px; font-weight: 500; }
.ndays button i { display: flex; gap: 2px; width: 70%; margin-top: 4px; }
.ndays button i b { flex: 1; height: 4px; border-radius: 2px; }
.ndays button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.nhours { padding: 4px 8px; }
.nhrow { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 9px 6px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; border-radius: 10px; }
.nhrow + .nhrow { border-top: 1px solid var(--line); }
.nhrow.on { background: var(--nfill); }
.nhrow.dark { color: var(--muted); }
.nht { width: 34px; flex: none; font-size: 13px; color: var(--muted); }
.nhq { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.nhm { flex: 1; display: flex; flex-direction: column; }
.nhm b { font-size: 15px; font-weight: 600; }
.nhm small, .nhr small { font-size: 11px; color: var(--muted); }
.nhr { text-align: right; font-size: 13px; display: flex; flex-direction: column; align-items: flex-end; }
.nqkey { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--muted); margin-top: 10px; }
.nqkey span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.nqkey i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.nlegend .blk { width: 10px; height: 10px; border-radius: 2px; background: var(--muted); opacity: .7; }
.nstats6 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; border-top: 0; padding-top: 0; }
.nlist { padding: 4px 16px; }
.ntrow { display: grid; grid-template-columns: 1fr auto 70px; gap: 10px; padding: 10px 0; font-size: 15px; }
.ntrow + .ntrow { border-top: 1px solid var(--line); }
.ntrow span:last-child { text-align: right; color: var(--muted); }
.nhr span, .nhr small { white-space: nowrap; }
.nhrow { border-radius: 0; } .nhrow.on { border-radius: 10px; } .nhrow.on + .nhrow, .nhrow + .nhrow.on { border-top-color: transparent; }

/* New UI Favorites (0.134): look-ahead strip with day marks, edit and empty tiles, flat messages */
.naxis2 { position: relative; height: 14px; margin-top: 4px; font-size: 10px; color: var(--muted); }
.naxis2 span { position: absolute; white-space: nowrap; }
.naxis2 span:first-child { left: 0 !important; }
.nftile { position: relative; }
.nfrm { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 18px; line-height: 1; cursor: pointer; }
.nfadd { align-items: flex-start; justify-content: center; gap: 4px; min-height: 172px; border: 1.5px dashed var(--line); background: transparent; }
.nficon svg { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[data-ui="new"] .alertbar { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 14px; }
[data-ui="new"] .infobar { border-radius: 14px; }
[data-ui="new"] .infobar svg { stroke: var(--ink); }
[data-ui="new"] .msgs { border-radius: 14px; }
/* flat messages: no icon, tighter text so a message fits the 84 px box */
[data-ui="new"] .infobar > svg { display: none; }
[data-ui="new"] .infobar span { line-height: 1.35; }
[data-ui="new"] .msgs > div { padding: 10px 26px 10px 14px; }
/* 0.135: New UI Map and Edit a spot. No 3D map; the spot dial is drawn in greys (colour stays for quality only) */
[data-ui="new"] .mapbtn[data-m=tilt] { display: none; }
html:root[data-ui="new"][data-ui] .edial { --lk-grass:#d6d7d2; --lk-sea:#c4c7ca; --lk-seawin:#e6e8ea; --lk-sand:#b4b5af; --lk-foam:#ffffff; }
@media (prefers-color-scheme: dark) { html:root[data-ui="new"][data-ui]:not([data-theme="light"]) .edial { --lk-grass:#3b3d41; --lk-sea:#232529; --lk-seawin:#2f3136; --lk-sand:#5a5c61; --lk-foam:#8c8f95; } }
html:root[data-ui="new"][data-theme="dark"] .edial { --lk-grass:#3b3d41; --lk-sea:#232529; --lk-seawin:#2f3136; --lk-sand:#5a5c61; --lk-foam:#8c8f95; }
/* 0.135: a single spot's chip keeps its size and unit on one line (the grid put the shrunk unit on a second row: "2–3 / ft") */
.mspot:not(.many) .sc { display: flex; align-items: center; justify-content: center; }
/* 0.139 New UI: Log a session and Your sessions */
.nlog .h2:first-child { margin-top: 14px; }
.nlf { display: block; margin: 0; }
.nlf + .nlf { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.nlf > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.nlf select, .nlf input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: 15px var(--body); padding: 0 12px; }
.nseg { display: grid; gap: 4px; background: var(--paper); padding: 4px; border-radius: 12px; }
.nseg button { border: 0; background: none; min-height: 40px; border-radius: 9px; font: 500 13px var(--body); color: var(--ink); cursor: pointer; padding: 2px 2px; line-height: 1.15; }
.nseg button[aria-pressed="true"] { background: var(--ink); color: var(--card); font-weight: 600; }
.nlends { display: flex; justify-content: space-between; margin-top: 4px; }
.nlends small, .nlsaid { font-size: 12px; color: var(--muted); }
.nlsaid { display: block; margin: -4px 0 8px; }
.nlrow { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.nlrow .mono { color: var(--muted); font-weight: 500; }
.nslist { padding: 4px 16px; }
.nsess { position: relative; padding: 12px 0 10px; display: flex; flex-direction: column; gap: 3px; }
.nsess + .nsess { border-top: 1px solid var(--line); }
.nsbig { font: 600 15px var(--mono); }
.nsnote { font-size: 13px; margin-top: 2px; }
.nsdel { position: absolute; right: 0; bottom: 4px; font-size: 13px; color: var(--muted); min-height: 32px; padding: 0 0 0 12px; }
.nsess > .nfs:last-of-type, .nsnote { padding-right: 60px; }
.nrate { display: inline-flex; gap: 3px; }
.nrate i { width: 7px; height: 7px; border-radius: 50%; border: 1.25px solid var(--muted); box-sizing: border-box; }
.nrate i.on { background: var(--ink); border-color: var(--ink); }
/* 0.140 New UI batch 5: menu, Go to a spot, Settings, Welcome, About, toasts */
.wq { display: flex; gap: 3px; margin-top: 8px; }
.wq i { width: 22px; height: 8px; border-radius: 2px; }
.ngo { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font: 500 14px var(--body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ngo i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
[data-ui="new"] .group, [data-ui="new"] .wcard { border-radius: 18px; }
[data-ui="new"] .wcard svg { stroke: var(--ink); }
[data-ui="new"] .wicon, [data-ui="new"] .sheet .inner > img[src$="icon.svg"] { filter: grayscale(1); }
[data-ui="new"] .setrow .ic { background: none; }
[data-ui="new"] .gohead { font: 600 13px var(--body); }
[data-ui="new"] { --accent-d: #ffffff; }
[data-ui="new"] .toast #undoBtn { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
[data-ui="new"] .sheet .inner p a { color: var(--ink); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { html:root[data-ui="new"]:not([data-theme="light"]) .toast { border: 1px solid #3a3b40; } }
html:root[data-ui="new"][data-theme="dark"] .toast { border: 1px solid #3a3b40; }

/* 0.143: the look switch beside the Favorites title (Tomek picked B) */
.ptitlerow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ptitlerow .ptitle { margin-bottom: 0; }
.lookseg { display: inline-grid; grid-auto-flow: column; gap: 2px; background: var(--line); padding: 3px; border-radius: 999px; flex: none; }
.lookseg button { border: 0; background: none; border-radius: 999px; min-height: 30px; padding: 0 11px; font: 600 12px var(--body); color: var(--muted); cursor: pointer; }
.lookseg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
[data-ui="new"] .lookseg button[aria-pressed="true"] { box-shadow: none; }
.ptitlerow { margin: 6px 0 0; }
.ptitlerow + .psub { margin-top: 4px; }

/* 0.149: Simple Compass tab (B Ring) */
.ncmp { padding:12px 14px 10px; }
.ncmp svg text { font-family: var(--mono); }
.ncmprow span:first-child { display:flex; align-items:center; gap:8px; }
.ncmprow { grid-template-columns: 1fr auto auto; font-size:14px; }
.ncs { width:16px; height:6px; border-radius:2px; background:var(--ink); }
.ncs.sub { background:var(--muted); }
.ncs.blk { background:none; border:1.5px dashed var(--muted); height:5px; }
.ncw { width:16px; border-top:2px solid var(--ink); }
.ncw.dash { border-top-style:dashed; border-color:var(--muted); }
