/* Bite Window — NOAA chart world.
   Deep-water white paper, buff land, two shoal tints, black linework, chart magenta for NOW / selection / cautions.
   Hydrographic convention: anything about water (scores, tides, soundings) is set in italic. */

:root {
  --paper: #fdfdfb;          /* deep water */
  --land: #f4e5bd;           /* buff land tint */
  --land-2: #ebd29b;         /* built-up area */
  --drying: #c5d9a4;         /* intertidal green */
  --shoal-1: #d7e8f3;        /* 18–30 ft tint */
  --shoal-2: #a9cbe3;        /* 0–18 ft tint */
  --shoal-3: #6f9fc6;        /* score 8+ */
  --shoal-4: #2f5f8f;
  --ink: #111417;
  --ink-2: #3c4349;
  --ink-3: #5f676e;
  --rule: #111417;
  --hair: #c9ced2;
  --magenta: #b8166f;
  --magenta-soft: #f3d7e7;
  --magenta-ink: #8c0f53;
  --caution: #b8166f;
  --ok: #3f7d3a;
  --focus: #b8166f;
  --shadow: 0 1px 0 rgba(17, 20, 23, .06), 0 8px 24px -12px rgba(17, 20, 23, .28);

  --f: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.2, 0, 0, 1);           /* signature: decisive, settles */
  --ease-water: cubic-bezier(.4, 0, .2, 1);    /* fluid, for drawn water & data */
  --ease-in: cubic-bezier(.3, 0, 1, 1);
  --t-quick: 150ms;
  --t-std: 280ms;
  --t-draw: 760ms;

  --gutter: clamp(16px, 3.2vw, 40px);
  --maxw: 1320px;
  --tabh: 0px;
  color-scheme: light;
}

/* Night chart (ECDIS night palette): dim, low-glare, magenta stays the NOW signal. */
:root[data-theme="night"] {
  --paper: #08121c;
  --land: #2a2616;
  --land-2: #3a331c;
  --drying: #243322;
  --shoal-1: #0f2536;
  --shoal-2: #16395a;
  --shoal-3: #2f6a9e;
  --shoal-4: #7fb2dd;
  --ink: #d5dde3;
  --ink-2: #aab5bd;
  --ink-3: #85919a;
  --rule: #6d7a84;
  --hair: #22313d;
  --magenta: #ff5fb0;
  --magenta-soft: #3a1330;
  --magenta-ink: #ff8cc6;
  --caution: #ff5fb0;
  --ok: #8ccf84;
  --focus: #ff5fb0;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 12px 28px -12px rgba(0,0,0,.7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="day"]) {
    --paper: #08121c; --land: #2a2616; --land-2: #3a331c; --drying: #243322;
    --shoal-1: #0f2536; --shoal-2: #16395a; --shoal-3: #2f6a9e; --shoal-4: #7fb2dd;
    --ink: #d5dde3; --ink-2: #aab5bd; --ink-3: #85919a; --rule: #6d7a84; --hair: #22313d;
    --magenta: #ff5fb0; --magenta-soft: #3a1330; --magenta-ink: #ff8cc6; --caution: #ff5fb0; --ok: #8ccf84; --focus: #ff5fb0;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 12px 28px -12px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}

/* Archivo (SIL OFL), self-hosted so the installed app keeps its type offline */
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo.woff2') format('woff2'); font-style: normal; font-weight: 300 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-italic.woff2') format('woff2'); font-style: italic; font-weight: 300 900; font-stretch: 62% 125%; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink-3) var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.45;
  font-variation-settings: 'wdth' 100;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
::selection { background: var(--magenta); color: var(--paper); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--hair); border: 3px solid var(--paper); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
input { font: inherit; color: inherit; caret-color: var(--magenta); }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.chip__x { width: 12px !important; height: 12px !important; vertical-align: -1px; margin-left: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Type roles */
.cap { font-variation-settings: 'wdth' 72; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 600; }
.sounding { font-style: italic; font-variation-settings: 'wdth' 88; font-weight: 500; }
.h2 { font-size: clamp(22px, 2.3vw, 28px); font-weight: 700; font-variation-settings: 'wdth' 90; letter-spacing: -.01em; line-height: 1.1; margin: 0; text-wrap: balance; }
.h3 { font-size: 13px; font-weight: 700; font-variation-settings: 'wdth' 72; text-transform: uppercase; letter-spacing: .09em; margin: 0; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }

/* ───────── Title block (chart cartouche) ───────── */
.titleblock { position: sticky; top: 0; z-index: 30; background: var(--paper); }
.titleblock__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gutter) 10px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.place {
  all: unset; cursor: pointer; display: grid; gap: 1px; min-width: 0;
  grid-template-columns: auto; padding: 2px 0;
}
.place__name {
  font-size: clamp(26px, 4.2vw, 44px); font-weight: 800; line-height: .95; letter-spacing: -.02em;
  font-variation-settings: 'wdth' 112; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70vw;
}
.place__meta { font-size: 12px; font-style: italic; color: var(--ink-2); font-variation-settings: 'wdth' 90; margin-top: 3px; }
.place__change {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; font-weight: 600;
  color: var(--ink); font-variation-settings: 'wdth' 80; text-transform: uppercase; letter-spacing: .08em;
  text-decoration: underline; text-decoration-color: var(--magenta); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.place__change svg.i { width: 15px; height: 15px; }
.place:hover .place__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.place:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.titleblock__tools { display: flex; gap: 8px; align-items: center; }

/* Graduated neatline: the chart border's alternating minute bars */
.neatline {
  height: 7px; margin: 0 auto; max-width: calc(var(--maxw) - 2 * var(--gutter));
  border: 1px solid var(--rule);
  background: repeating-linear-gradient(90deg, var(--ink) 0 24px, var(--paper) 24px 48px);
  width: calc(100% - 2 * var(--gutter));
}

/* Tabs */
.tabs {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; gap: 0; border-bottom: 1px solid var(--hair);
}
.tabs a {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 11px 0; margin-right: 22px;
  text-decoration: none; font-weight: 600; font-size: 13px; letter-spacing: .09em; text-transform: uppercase;
  font-variation-settings: 'wdth' 75; color: var(--ink-2);
  transition: color var(--t-quick) var(--ease);
}
.tabs a svg.i { width: 18px; height: 18px; }
.tabs a::after {
  content: ''; position: absolute; left: 0; right: 18px; bottom: -1px; height: 3px; background: var(--magenta);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-std) var(--ease);
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"]::after { transform: scaleX(1); }

/* Segmented control, rule-drawn like a chart legend box */
.seg { display: inline-flex; border: 1px solid var(--rule); }
.seg button {
  appearance: none; border: 0; background: transparent; padding: 7px 10px; min-height: 34px; cursor: pointer;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-variation-settings: 'wdth' 75;
  color: var(--ink-2); transition: background var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}
.seg button + button { border-left: 1px solid var(--rule); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.seg button:hover:not([aria-pressed="true"]):not([aria-selected="true"]) { background: var(--shoal-1); color: var(--ink); }
.seg--wide { display: flex; }
.seg--wide button { flex: 1; min-height: 40px; }

.iconbtn {
  appearance: none; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; cursor: pointer;
  border: 1px solid var(--rule); background: transparent; color: var(--ink);
  transition: background var(--t-quick) var(--ease), transform var(--t-quick) var(--ease);
}
.iconbtn:hover { background: var(--shoal-1); }
.iconbtn:active { transform: scale(.95); }

.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: 'wdth' 78;
  transition: background var(--t-quick) var(--ease), transform var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}
.btn:hover { background: var(--shoal-1); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--shoal-4); border-color: var(--shoal-4); color: var(--paper); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 12px; }

.toolbtn {
  appearance: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; cursor: pointer;
  border: 1px solid var(--rule); background: var(--paper);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: 'wdth' 78;
}
.toolbtn svg.i { width: 17px; height: 17px; }
.toolbtn[aria-pressed="true"] { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.toolbtn:hover:not([aria-pressed="true"]) { background: var(--shoal-1); }

/* ───────── Layout ───────── */
main { flex: 1; width: 100%; }
main:focus { outline: none; }
.view { max-width: var(--maxw); margin: 0 auto; padding: 28px var(--gutter) 56px; }
.view.is-entering { animation: view-in var(--t-std) var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }
.view--map { max-width: none; padding: 0; position: relative; }

.margin {
  max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 14px var(--gutter) 28px;
  border-top: 1px solid var(--hair); display: grid; gap: 4px;
  font-size: 12px; color: var(--ink-3); font-style: italic; font-variation-settings: 'wdth' 85;
}
.margin p { margin: 0; max-width: 90ch; }
body.is-map .margin { display: none; }

/* Section heads: a rule then the head, chart-legend style */
.sect { margin-top: 44px; }
.sect__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule); padding-top: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.sect__head .aside { font-size: 13px; color: var(--ink-2); font-style: italic; }

/* ───────── BITE ───────── */
.bite { display: grid; grid-template-columns: minmax(320px, 520px) 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.rose-wrap { position: relative; container-type: inline-size; }
.rose { width: 100%; height: auto; display: block; overflow: visible; }
.rose text { font-family: var(--f); fill: var(--ink); }
.rose .ring { fill: none; stroke: var(--ink); }
.rose .tick { stroke: var(--ink); }
.rose .hourlbl { font-size: 11px; font-weight: 600; font-variation-settings: 'wdth' 72; text-anchor: middle; dominant-baseline: middle; fill: var(--ink-2); }
.rose .bar { transform-box: fill-box; transform-origin: 50% 100%; }
.rose .bar--sel { stroke: var(--magenta); stroke-width: 2.6; }
.rose .hit { fill: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rose .hit:hover { fill: color-mix(in srgb, var(--magenta) 7%, transparent); }
.rose .hit[aria-pressed="true"] { fill: color-mix(in srgb, var(--magenta) 10%, transparent); }
.rose .hit:focus-visible { outline: none; stroke: var(--focus); stroke-width: 2; }
.rose-center .rose-back { pointer-events: auto; font-size: 12px; margin: 6px 0 0; padding: 2px 4px; min-height: 0; line-height: 1.2; }
.rose.is-drawing .bar { animation: bar-grow 520ms var(--ease-water) both; animation-delay: calc(var(--i) * 14ms); }
@keyframes bar-grow { from { transform: scaleY(.04); opacity: .2; } }
.rose .night { fill: color-mix(in srgb, var(--ink) 7%, var(--paper)); }
.rose .needle { stroke: var(--magenta); stroke-width: 2.5; stroke-linecap: round; }
.rose .needle-dot { fill: var(--magenta); }
.rose .needle-g { transition: transform 900ms var(--ease-water); }
.rose .sunmark { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.rose .tidemark { font-size: 10px; font-style: italic; font-weight: 700; text-anchor: middle; dominant-baseline: middle; fill: var(--shoal-4); }
.rose .major { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 3; }
.rose-center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.rose-center__in { text-align: center; display: grid; justify-items: center; gap: 2px; transform: translateY(-2%); }
.score-big {
  font-size: clamp(44px, 22cqw, 128px); line-height: .82; font-style: italic; font-weight: 800; letter-spacing: -.045em;
  font-variation-settings: 'wdth' 82; color: var(--ink);
}
.score-big small { font-size: .36em; font-weight: 600; letter-spacing: -.01em; color: var(--ink-2); margin-left: .06em; }
.verdict { font-size: clamp(11px, 2.7cqw, 14px); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-variation-settings: 'wdth' 80; }
.rose-when { font-size: clamp(10px, 2.4cqw, 12px); font-style: italic; color: var(--ink-2); }
.rose-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12px; color: var(--ink-2); justify-content: center; }
.rose-key span { display: inline-flex; align-items: center; gap: 6px; }
.rose-key i { display: inline-block; width: 14px; height: 10px; border: 1px solid var(--ink); }

.bite__side { display: grid; gap: 28px; min-width: 0; }
.dayhead { display: grid; gap: 6px; }
.dayhead .h2 { font-size: clamp(26px, 3vw, 36px); }
.dayhead p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.conf { display: block; font-size: 12px; line-height: 1.6; font-style: italic; color: var(--ink-2); }
.linkbtn { all: unset; cursor: pointer; font-style: normal; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--magenta); text-underline-offset: 3px; text-decoration-thickness: 2px; margin-left: 4px; }
.linkbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.biting { font-size: 14px; }
.biting a { font-weight: 700; font-style: italic; text-decoration-color: var(--magenta); text-decoration-thickness: 2px; }
.conf b { font-style: normal; font-weight: 700; color: var(--ink); }

.windows { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--hair); }
.window { padding: 12px 14px 14px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: grid; gap: 2px; }
.window .h3 { color: var(--ink-2); }
.window__time { font-size: 22px; font-weight: 700; font-variation-settings: 'wdth' 85; letter-spacing: -.01em; }
.window__why { font-size: 13px; color: var(--ink-2); font-style: italic; }
.window--top .window__time { color: var(--magenta-ink); }
.window--none { color: var(--ink-2); font-style: italic; }

/* Factor legend: reads like a chart's symbol table */
.legend { border-top: 1px solid var(--rule); }
.factor { border-bottom: 1px solid var(--hair); }
.factor > button {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; align-items: center; gap: 4px 14px;
  grid-template-columns: minmax(110px, 1.1fr) minmax(90px, 1.4fr) 88px 36px; padding: 11px 0;
}
.factor > button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.factor__name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.factor__name svg.i { width: 14px; height: 14px; color: var(--ink-3); transition: transform var(--t-std) var(--ease); }
.factor[data-open="true"] .factor__name svg.i { transform: rotate(90deg); }
.factor__note { font-size: 14px; color: var(--ink-2); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter { height: 10px; border: 1px solid var(--ink); background: var(--paper); position: relative; overflow: hidden; }
.meter i { position: absolute; inset: 0; background: var(--shoal-2); transform-origin: left; transform: scaleX(var(--v, 0)); transition: transform var(--t-draw) var(--ease-water); }
.meter i[data-tier="3"] { background: var(--shoal-3); }
.meter i[data-tier="0"] { background: var(--land-2); }
.factor__val { font-style: italic; font-weight: 700; text-align: right; font-size: 15px; }
.factor__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-std) var(--ease); }
.factor[data-open="true"] .factor__body { grid-template-rows: 1fr; }
.factor__body > div { overflow: hidden; }
.factor__body p { margin: 0 0 8px; max-width: 68ch; font-size: 14px; }
.factor__body .cite { font-size: 12px; color: var(--ink-3); font-style: italic; margin-bottom: 14px; }
.evid { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-variation-settings: 'wdth' 72; padding: 1px 6px; border: 1px solid currentColor; font-style: normal; }
.evid[data-e="Weak"] { color: var(--ink-3); }
.evid[data-e="Moderate"] { color: var(--ink-2); }
.evid[data-e="Strong"] { color: var(--ink); background: var(--shoal-1); }
.weight { font-size: 12px; color: var(--ink-3); font-style: italic; }

/* NOTE boxes: chart cautionary notes, magenta */
.note {
  border: 1px solid var(--caution); color: var(--ink); padding: 10px 14px 11px; display: grid; gap: 2px; background: var(--paper);
}
.note b { color: var(--magenta-ink); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-variation-settings: 'wdth' 72; }
.note p { margin: 0; font-size: 14px; }
.notes { display: grid; gap: 8px; }

/* 15-day sounding strip */
.strip {
  display: grid; grid-template-columns: repeat(15, minmax(64px, 1fr)); overflow-x: auto; scroll-snap-type: x proximity;
  border: 1px solid var(--rule); background: var(--paper); scrollbar-width: thin;
}
.day {
  all: unset; box-sizing: border-box; position: relative; cursor: pointer; scroll-snap-align: start;
  display: grid; grid-template-rows: auto auto 1fr auto; min-height: 188px; padding: 10px 8px 8px; gap: 2px;
  border-right: 1px solid var(--hair); isolation: isolate; text-align: center;
}
.day:last-child { border-right: 0; }
.day__tint {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 100%; background: var(--tint);
  transform-origin: bottom;
  border-top: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
}
.strip.is-drawing .day__tint { animation: tint-rise 620ms var(--ease-water) both; animation-delay: calc(var(--i) * 32ms); }
@keyframes tint-rise { from { transform: scaleY(0); } }
.day__dow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-variation-settings: 'wdth' 72; }
.day__date { font-size: 12px; color: var(--ink); }
.day__score { align-self: center; font-size: 30px; font-style: italic; font-weight: 800; letter-spacing: -.03em; font-variation-settings: 'wdth' 82; line-height: 1; }
.day__best { font-size: 11px; font-style: italic; font-weight: 600; color: var(--ink); line-height: 1.2; }
.day__flag { position: absolute; top: 8px; right: 6px; width: 7px; height: 7px; border: 1.5px solid var(--caution); transform: rotate(45deg); }
.day__flag[data-level="3"] { background: var(--caution); }
.day:hover { background: color-mix(in srgb, var(--shoal-1) 45%, transparent); }
.day[aria-pressed="true"] { outline: 3px solid var(--magenta); outline-offset: -3px; z-index: 1; }
.day[aria-pressed="true"] .day__dow { color: var(--magenta-ink); }
.day:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; }

.strip-key { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--ink-2); align-items: center; }
.strip-key .sw { display: inline-block; width: 18px; height: 10px; border: 1px solid var(--ink); vertical-align: -1px; margin-right: 6px; }

/* ───────── Reports ───────── */
.reports { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.board { border-top: 1px solid var(--rule); }
.sp { display: grid; grid-template-columns: 22px 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.sp__rank { font-style: italic; font-weight: 800; font-size: 18px; font-variation-settings: 'wdth' 82; color: var(--ink-3); }
.sp:first-child .sp__rank { color: var(--magenta-ink); }
.sp__name { font-weight: 700; font-size: 16px; }
.sp__count { font-size: 13px; color: var(--ink-2); font-style: italic; text-align: right; }
.sp__bar { grid-column: 2 / 4; height: 6px; background: var(--shoal-1); position: relative; }
.sp__bar i { position: absolute; inset: 0 auto 0 0; background: var(--shoal-3); }
.sp__mood { grid-column: 2 / 4; font-size: 12px; color: var(--ink-2); }
.mood { display: grid; gap: 6px; padding: 14px 0 4px; }
.mood__scale { position: relative; height: 12px; border: 1px solid var(--ink); background: linear-gradient(90deg, var(--land-2), var(--paper) 50%, var(--shoal-3)); }
.mood__scale i { position: absolute; top: -5px; bottom: -5px; width: 3px; background: var(--magenta); transform: translateX(-50%); transition: left var(--t-draw) var(--ease-water); }
.mood__labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-variation-settings: 'wdth' 72; font-weight: 600; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.feed { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.post { padding: 14px 0 16px; border-bottom: 1px solid var(--hair); display: grid; gap: 6px; }
.feed.is-entering .post { animation: post-in 360ms var(--ease) both; animation-delay: calc(min(var(--i), 8) * 28ms); }
@keyframes post-in { from { opacity: 0; transform: translateY(8px); } }
.post__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12px; color: var(--ink-2); }
.post__kind { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-variation-settings: 'wdth' 72; font-size: 11px; padding: 1px 6px; border: 1px solid var(--ink); color: var(--ink); }
.post__kind[data-k="forum"] { border-color: var(--ink-3); color: var(--ink-2); }
.post__kind[data-k="notice"] { border-color: var(--caution); color: var(--magenta-ink); }
.post__title { font-weight: 700; font-size: 17px; line-height: 1.25; margin: 0; max-width: 70ch; text-wrap: pretty; }
.post__title a { text-decoration: none; }
.post__title a:hover { text-decoration: underline; }
.post__title svg.i { width: 14px; height: 14px; vertical-align: -1px; margin-left: 4px; color: var(--ink-3); }
.post__text { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 72ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  appearance: none; font-size: 12px; padding: 3px 8px; border: 1px solid var(--hair); background: var(--paper); cursor: pointer;
  font-style: italic; color: var(--ink); transition: background var(--t-quick) var(--ease), border-color var(--t-quick) var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); font-style: normal; }
.pill-hot { color: var(--ok); font-weight: 700; font-style: normal; }
.pill-cold { color: var(--magenta-ink); font-weight: 700; font-style: normal; }

/* ───────── Weather ───────── */
.now { display: grid; grid-template-columns: auto 1fr; gap: 10px 32px; align-items: end; }
.now__temp { font-size: clamp(64px, 9vw, 104px); font-weight: 800; line-height: .85; letter-spacing: -.04em; font-variation-settings: 'wdth' 88; }
.now__temp small { font-size: .35em; font-weight: 600; color: var(--ink-2); vertical-align: top; margin-left: 4px; }
.now__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--hair); }
.fact { padding: 8px 12px 10px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: grid; gap: 1px; }
.fact .h3 { color: var(--ink-2); font-size: 11px; }
.fact b { font-size: 20px; font-weight: 700; font-variation-settings: 'wdth' 88; }
.fact span { font-size: 12px; color: var(--ink-2); font-style: italic; }
.fact--water b { font-style: italic; }

.hourly { overflow-x: auto; border: 1px solid var(--rule); scrollbar-width: thin; }
.hourly__grid { display: grid; grid-auto-flow: column; grid-auto-columns: 62px; min-width: max-content; position: relative; }
.hr { display: grid; grid-template-rows: 26px 28px 26px 70px 24px 46px 22px 22px 22px; justify-items: center; align-items: center; border-right: 1px solid var(--hair); font-size: 13px; padding-bottom: 6px; }
.hr--day { border-left: 1px solid var(--rule); }
.hr--now { background: color-mix(in srgb, var(--magenta-soft) 60%, transparent); }
.hr__t { font-weight: 700; font-size: 12px; font-variation-settings: 'wdth' 75; }
.hr__temp { font-weight: 700; }
.hr__plot { width: 100%; height: 70px; }
.hr__wind { display: grid; justify-items: center; line-height: 1.1; gap: 1px; }
.hr__wind b { font-weight: 700; }
.hr__wind small { font-size: 11px; color: var(--ink-2); }
.warrow { width: 18px; height: 18px; transition: transform var(--t-std) var(--ease); }
.hr__rain { color: var(--shoal-4); font-style: italic; font-weight: 600; }
.hr__rain--0 { color: var(--ink-3); font-weight: 400; }
.hr__wave { font-style: italic; color: var(--ink-2); }
.hourly__rows { display: grid; grid-template-rows: 26px 28px 26px 70px 24px 46px 22px 22px 22px; line-height: 1.15; position: sticky; left: 0; z-index: 2; background: var(--paper); border-right: 1px solid var(--rule); padding: 0 10px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-variation-settings: 'wdth' 72; color: var(--ink-2); align-items: center; padding-bottom: 6px; }
.hourly__wrap { display: flex; }

.daily { border-top: 1px solid var(--rule); }
.drow {
  display: grid; grid-template-columns: 92px 32px minmax(160px, 1.6fr) minmax(120px, 1fr) minmax(96px, .8fr) minmax(90px, .7fr) minmax(110px, .9fr);
  gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 14px;
}
.drow__day b { display: block; font-weight: 700; }
.drow--tap { width: 100%; font: inherit; color: inherit; text-align: inherit; background: none; border: 0; border-bottom: 1px solid var(--hair); cursor: pointer; }
.drow--tap:hover { background: color-mix(in srgb, var(--shoal-1) 45%, transparent); }
.drow--tap[aria-expanded="true"] { background: color-mix(in srgb, var(--shoal-1) 70%, transparent); border-bottom-color: transparent; }
.drow__day .drow__more { display: flex; width: max-content; align-items: center; gap: 2px; margin-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: 'wdth' 72; color: var(--shoal-4); }
.drow__more svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .2s ease; }
.drow--tap[aria-expanded="true"] .drow__more svg { transform: rotate(90deg); }
.dhours { padding: 8px 0 14px; border-bottom: 1px solid var(--hair); }
.dhours__none { padding: 6px 0; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .drow__more svg { transition: none; } }
.drow__day span { font-size: 12px; color: var(--ink-2); }
.range { position: relative; height: 8px; background: var(--shoal-1); }
.range i { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--shoal-2), var(--land-2)); border: 1px solid var(--ink); }
.range-row { display: grid; grid-template-columns: 34px 1fr 34px; gap: 8px; align-items: center; font-weight: 700; }
.range-row span:first-child { color: var(--ink-2); text-align: right; font-weight: 600; }
.drow__wind { display: flex; align-items: center; gap: 8px; }
.drow__wind small { color: var(--ink-2); display: block; font-size: 12px; }
.drow__rain b { color: var(--shoal-4); font-style: italic; }
.drow__rain small, .drow__sun small { display: block; font-size: 12px; color: var(--ink-2); }
.drow--head { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: 'wdth' 72; color: var(--ink-2); padding: 6px 0; }

/* ───────── Tides ───────── */
.tidetop { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: end; }
.stage { display: grid; gap: 4px; }
.stage__big { font-size: clamp(44px, 6.4vw, 80px); line-height: .9; font-style: italic; font-weight: 800; letter-spacing: -.035em; font-variation-settings: 'wdth' 84; }
.stage__big small { font-size: .4em; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.stage p { margin: 0; color: var(--ink-2); font-style: italic; }
.station { display: grid; gap: 4px; justify-items: end; text-align: right; font-size: 13px; color: var(--ink-2); }
.station b { color: var(--ink); font-style: normal; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.station select { font: inherit; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); padding: 6px 8px; min-height: 36px; }
.tidechart { width: 100%; height: auto; display: block; overflow: visible; }
.tidechart text { font-family: var(--f); fill: var(--ink); }
.tidechart .curve { fill: none; stroke: var(--ink); stroke-width: 2; }
.tidechart .fill { fill: var(--shoal-2); opacity: .55; }
.tidechart .nightband { fill: color-mix(in srgb, var(--ink) 6%, var(--paper)); }
.tidechart .grid { stroke: var(--hair); }
.tidechart .axis { font-size: 11px; fill: var(--ink-2); font-variation-settings: 'wdth' 75; }
.tidechart .ex { font-size: 13px; font-weight: 700; font-style: italic; text-anchor: middle; }
.tidechart .ext { font-size: 11px; fill: var(--ink-2); text-anchor: middle; }
.tidechart .ex, .tidechart .ext { paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
.tidechart .now { stroke: var(--magenta); stroke-width: 2; }
.tidechart .nowdot { fill: var(--magenta); }
.tidechart .nowring { fill: none; stroke: var(--magenta); animation: ring 2.4s var(--ease-water) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }
.tidechart.is-drawing .curve { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw var(--t-draw) var(--ease-water) forwards; }
.tidechart.is-drawing .fill, .tidechart.is-drawing .exg { animation: fade-in 420ms var(--ease) both; animation-delay: 380ms; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.daypick { display: flex; gap: 0; overflow-x: auto; border: 1px solid var(--rule); scrollbar-width: thin; }
.daypick button {
  all: unset; cursor: pointer; flex: 1 0 64px; text-align: center; padding: 8px 4px; border-right: 1px solid var(--hair); display: grid; gap: 1px;
}
.daypick button:last-child { border-right: 0; }
.daypick b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-variation-settings: 'wdth' 72; }
.daypick span { font-size: 12px; color: var(--ink-2); }
.daypick i { font-size: 11px; color: var(--shoal-4); font-weight: 600; }
.daypick button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.daypick button[aria-pressed="true"] span, .daypick button[aria-pressed="true"] i { color: var(--paper); }
.daypick button:hover:not([aria-pressed="true"]) { background: var(--shoal-1); }
.daypick button:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }
.hilo { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--hair); }
.hilo__day { border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 10px 12px 12px; }
.hilo__day .h3 { margin-bottom: 6px; }
.hilo__row { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; font-size: 14px; padding: 2px 0; }
.hilo__row b { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-variation-settings: 'wdth' 72; color: var(--ink-2); padding-top: 2px; }
.hilo__row em { font-weight: 700; }
.moonrow { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); align-items: center; }
.moonrow b { color: var(--ink); font-weight: 700; }
.moonglyph { width: 30px; height: 30px; }

/* ───────── Wind map ───────── */
.windmap { position: relative; height: calc(100dvh - var(--hdr, 150px)); min-height: 440px; }
.windmap .map { position: absolute; inset: 0; }
.wind-canvas { position: absolute; left: 0; top: 0; pointer-events: none; transition: opacity 200ms var(--ease); }
.mapctl { position: absolute; z-index: 800; }
.mapctl--top { top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; }
.mapctl--top > * { pointer-events: auto; }
.mapctl--bottom { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
.panel { background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.timebar { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; }
.timebar__label { font-weight: 700; font-size: 14px; min-width: 128px; font-variation-settings: 'wdth' 85; }
.timebar__label small { display: block; font-weight: 400; font-style: italic; color: var(--ink-2); font-size: 12px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; background: transparent; height: 32px; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, var(--shoal-1) 1px calc(100% / 48)); border: 1px solid var(--ink); }
input[type="range"]::-moz-range-track { height: 6px; background: var(--shoal-1); border: 1px solid var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 22px; margin-top: -9px; background: var(--magenta); border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--magenta); clip-path: polygon(50% 0, 100% 30%, 100% 100%, 0 100%, 0 30%); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 20px; background: var(--magenta); border: 2px solid var(--paper); border-radius: 0; }
.windlegend { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 11px; font-weight: 600; font-variation-settings: 'wdth' 75; text-transform: uppercase; letter-spacing: .06em; }
.windlegend .ramp { width: 150px; height: 8px; border: 1px solid var(--ink); }
.mapctl__right { display: grid; justify-items: end; gap: 10px; }
.maprose { width: 84px; height: 84px; fill: none; stroke: var(--ink); stroke-width: 1; filter: drop-shadow(0 2px 6px rgba(17,20,23,.18)); }
.savedbar { display: flex; gap: 6px; flex-wrap: wrap; max-width: 60%; }
.leaflet-container { font-family: var(--f); background: var(--shoal-1); }
.leaflet-bar a, .leaflet-bar a:hover { background: var(--paper); color: var(--ink); border-bottom-color: var(--hair); }
.leaflet-bar { border: 1px solid var(--rule) !important; border-radius: 0 !important; box-shadow: var(--shadow) !important; }
.leaflet-bar a { border-radius: 0 !important; }
.leaflet-control-attribution { background: color-mix(in srgb, var(--paper) 85%, transparent) !important; color: var(--ink-2) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--ink-2) !important; }
.leaflet-popup-content-wrapper { border-radius: 0; border: 1px solid var(--rule); box-shadow: var(--shadow); background: var(--paper); color: var(--ink); }
.leaflet-popup-tip { background: var(--paper); border: 1px solid var(--rule); box-shadow: none; }
.leaflet-popup-content { margin: 14px 16px; font-size: 14px; line-height: 1.4; min-width: 230px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink); font-size: 20px; width: 28px; height: 28px; }
.spotpop { display: grid; gap: 8px; }
.spotpop__name { font-weight: 800; font-size: 17px; text-transform: uppercase; font-variation-settings: 'wdth' 100; letter-spacing: -.01em; line-height: 1.05; }
.spotpop__coord { font-size: 12px; color: var(--ink-2); font-style: italic; }
.spotpop__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; border-top: 1px solid var(--rule); padding-top: 8px; }
.spotpop__grid div { display: grid; }
.spotpop__grid small { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-variation-settings: 'wdth' 72; color: var(--ink-2); }
.spotpop__grid b { font-size: 15px; }
.spotpop__actions { display: flex; gap: 6px; }
.spotpop__actions .btn { flex: 1; min-height: 36px; padding: 0 10px; font-size: 11px; }
.pinmark { width: 22px; height: 22px; }
.pinmark svg { width: 22px; height: 22px; display: block; overflow: visible; }
.pin-drop { animation: pin-drop 380ms var(--ease) both; }
@keyframes pin-drop { from { transform: translateY(-14px); opacity: 0; } }
.measure-label { background: var(--paper); border: 1px solid var(--magenta); color: var(--magenta-ink); font-size: 12px; font-weight: 700; font-style: italic; padding: 2px 6px; white-space: nowrap; box-shadow: var(--shadow); }
.measure-vertex { width: 12px; height: 12px; background: var(--paper); border: 2px solid var(--magenta); border-radius: 50%; margin: -6px 0 0 -6px; }

/* ───────── Location sheet ───────── */
.sheet {
  padding: 0; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); box-shadow: var(--shadow);
  width: min(640px, calc(100vw - 24px)); max-height: min(820px, calc(100dvh - 32px)); overflow: hidden;
  display: none; flex-direction: column;
}
.sheet[open] { display: flex; animation: sheet-in var(--t-std) var(--ease) both; }
.sheet.is-closing { animation: sheet-out 180ms var(--ease-in) both; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(10px) scale(.99); } }
.sheet::backdrop { background: color-mix(in srgb, var(--ink) 38%, transparent); animation: fade-in var(--t-std) var(--ease) both; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px; border-bottom: 1px solid var(--rule); }
.sheet__head h2 { margin: 0; font-size: 20px; font-weight: 800; text-transform: uppercase; font-variation-settings: 'wdth' 100; letter-spacing: -.005em; }
.sheet__modes { margin: 14px 18px 0; }
.sheet__body { padding: 14px 18px 18px; overflow: auto; display: grid; gap: 12px; align-content: start; }
.sheet__body--map { padding: 12px 0 0; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0; }
.search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--rule); padding: 0 12px; min-height: 48px; }
.search input { border: 0; background: transparent; flex: 1; min-width: 0; font-size: 16px; outline: none; padding: 12px 0; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search input::placeholder { color: var(--ink-3); font-style: italic; }
.search:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.rowbtn { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 10px 12px; border: 1px solid var(--hair); }
.rowbtn:hover { border-color: var(--ink); background: var(--shoal-1); }
.rowbtn:focus-visible { outline: 2px solid var(--focus); }
.rowbtn span { display: grid; }
.rowbtn small { color: var(--ink-2); font-style: italic; font-size: 13px; }
.results { list-style: none; margin: 0; padding: 0; display: grid; }
.results li { display: flex; align-items: stretch; border-bottom: 1px solid var(--hair); }
.results li button.pick { all: unset; box-sizing: border-box; cursor: pointer; flex: 1; display: grid; padding: 10px 4px; }
.results li button.pick:hover { background: var(--shoal-1); }
.results li button.pick:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.results li b { font-weight: 700; }
.results li small { color: var(--ink-2); font-size: 13px; font-style: italic; }
.results li .iconbtn { align-self: center; border-color: transparent; }
.results li .iconbtn:hover { border-color: var(--rule); }
.results .empty { color: var(--ink-3); font-style: italic; padding: 8px 0; border: 0; font-size: 14px; }
.legend-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-variation-settings: 'wdth' 72; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--rule); }
.pickmap { flex: 1; min-height: 340px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pickbar { padding: 12px 18px 16px; display: grid; gap: 10px; }
.pickbar__row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pickbar__row .layers { margin-left: auto; }
.pickbar__read { margin: 0; font-size: 14px; color: var(--ink-2); font-style: italic; min-height: 20px; }
.pickbar__read b { color: var(--magenta-ink); font-style: normal; }

/* ───────── Loading / empty / error ───────── */
.loading { display: grid; gap: 14px; padding: 40px 0; }
.loading p { margin: 0; color: var(--ink-2); font-style: italic; }
.plumb { width: 100%; max-width: 420px; height: 4px; background: var(--shoal-1); overflow: hidden; position: relative; }
.plumb::after { content: ''; position: absolute; inset: 0; width: 34%; background: var(--ink); animation: plumb 1.1s var(--ease-water) infinite; }
@keyframes plumb { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.empty-state { padding: 28px 0; display: grid; gap: 10px; justify-items: start; max-width: 60ch; }
.empty-state p { margin: 0; color: var(--ink-2); }
.err { border: 1px solid var(--caution); padding: 14px 16px; display: grid; gap: 8px; justify-items: start; max-width: 70ch; }
.err b { color: var(--magenta-ink); }
.err p { margin: 0; }
.skel { background: linear-gradient(90deg, var(--shoal-1), color-mix(in srgb, var(--shoal-1) 40%, var(--paper)), var(--shoal-1)); background-size: 200% 100%; animation: skel 1.4s linear infinite; height: 16px; }
@keyframes skel { to { background-position: -200% 0; } }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--tabh) + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; z-index: 1000;
  transition: opacity var(--t-std) var(--ease), transform var(--t-std) var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .bite { grid-template-columns: 1fr; }
  .rose-wrap { max-width: 500px; margin: 0 auto; width: 100%; }
  .reports { grid-template-columns: 1fr; }
  .drow { grid-template-columns: 78px 28px minmax(120px, 1.4fr) minmax(110px, 1fr) minmax(76px, .7fr) minmax(76px, .7fr); }
  .drow > :nth-child(7) { display: none; }
}
@media (max-width: 720px) {
  :root { --tabh: 62px; }
  body { font-size: 15px; }
  .titleblock__inner { padding-top: 10px; padding-bottom: 8px; align-items: center; }
  .place__name { font-size: clamp(20px, 6.2vw, 24px); max-width: 64vw; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1; text-wrap: balance; overflow-wrap: anywhere; }
  .place__extra { display: none; }
  .place__change { margin-top: 2px; }
  .titleblock__tools .seg button { padding: 6px 8px; }
  .neatline { height: 5px; background: repeating-linear-gradient(90deg, var(--ink) 0 16px, var(--paper) 16px 32px); }
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 0;
    padding: 0 0 env(safe-area-inset-bottom); justify-content: space-around; max-width: none;
  }
  .tabs a { flex-direction: column; gap: 3px; margin: 0; padding: 9px 4px 8px; font-size: 10px; flex: 1; justify-content: center; }
  .tabs a svg.i { width: 22px; height: 22px; }
  .tabs a::after { left: 22%; right: 22%; top: -1px; bottom: auto; }
  main { padding-bottom: calc(var(--tabh) + env(safe-area-inset-bottom)); }
  .margin { padding-bottom: calc(var(--tabh) + 24px + env(safe-area-inset-bottom)); }
  .view { padding-top: 20px; }
  .factor > button { grid-template-columns: 1fr 70px 30px; }
  .factor__note { grid-column: 1 / -1; grid-row: 2; }
  .strip { grid-template-columns: repeat(15, 70px); }
  .day { min-height: 168px; }
  .now { grid-template-columns: 1fr; }
  .tidetop { grid-template-columns: 1fr; }
  .station { justify-items: start; text-align: left; }
  .drow { grid-template-columns: 56px 22px minmax(0, 1fr) 76px 50px; gap: 8px; font-size: 13px; }
  .drow > :nth-child(6), .drow > :nth-child(7) { display: none; }
  .range-row { grid-template-columns: 28px 1fr 28px; gap: 4px; }
  .drow__wind { gap: 4px; }
  .drow__wind small { display: none; }
  .windmap { height: calc(100dvh - var(--hdr, 110px) - var(--tabh) - env(safe-area-inset-bottom)); }
  .mapctl--bottom { bottom: 10px; }
  .timebar { grid-template-columns: auto 1fr; }
  .timebar .windlegend { display: none; }
  .savedbar { max-width: 55%; }
  .maprose { width: 60px; height: 60px; }
  .sheet { width: 100vw; max-width: 100vw; max-height: 94dvh; margin: auto 0 0; border-left: 0; border-right: 0; border-bottom: 0; }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
  .sheet[open] { height: 94dvh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .tidechart .nowring { display: none; }
  .plumb::after { animation: none; width: 100%; opacity: .3; }
}

/* Keep Leaflet's zoom buttons clear of the wind time bar */
.windmap .leaflet-bottom.leaflet-right { bottom: 84px; }
@media (max-width: 720px) { .windmap .leaflet-bottom.leaflet-right { bottom: 112px; } }

/* ───────── Target: zone + species ───────── */
.targetbar { display: grid; gap: 12px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--hair); }
.targetbar__zone { justify-self: start; }
.targetbar__zone .auto { font-style: normal; color: var(--magenta); font-weight: 900; margin-left: 3px; }
.targetbar__zone button[aria-pressed="true"] .auto { color: var(--paper); }
.targetbar__species { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.targetbar__species .h3 { color: var(--ink-2); margin-right: 4px; white-space: nowrap; flex: none; }
.targetbar__species .chip { font-size: 13px; padding: 5px 10px; font-style: normal; font-weight: 600; display: inline-flex; gap: 6px; align-items: baseline; min-height: 32px; }
.targetbar__species .chip small { font-size: 11px; font-weight: 500; font-style: italic; color: var(--ink-3); }
.targetbar__species .chip[aria-pressed="true"] small { color: var(--paper); opacity: .8; }

/* ───────── Best bets board ───────── */
.bets { border-top: 1px solid var(--rule); }
.bet {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; align-items: center; gap: 4px 18px;
  grid-template-columns: 28px minmax(200px, 2.4fr) minmax(120px, 1fr) minmax(140px, 1.1fr) 76px 110px;
  padding: 12px 0; border-bottom: 1px solid var(--hair); transition: background var(--t-quick) var(--ease);
}
.bet:hover { background: color-mix(in srgb, var(--shoal-1) 45%, transparent); }
.bet:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.bet.is-target { outline: 3px solid var(--magenta); outline-offset: -3px; }
.bet.is-target .bet__name b { color: var(--magenta-ink); }
.bet--head { cursor: default; padding: 8px 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: 'wdth' 72; color: var(--ink-2); }
.bet--head:hover { background: none; }
.bet__rank { font-style: italic; font-weight: 800; font-size: 20px; font-variation-settings: 'wdth' 82; color: var(--ink-3); text-align: center; }
.bet:nth-child(2) .bet__rank { color: var(--ink); }
.bet__name { display: grid; gap: 2px; min-width: 0; }
.bet__name b { font-size: 16px; font-weight: 700; }
.bet__name small { font-size: 13px; color: var(--ink-2); font-style: italic; line-height: 1.35; }
.bet__season { display: grid; gap: 4px; }
.bet__season em { font-size: 12px; font-weight: 700; font-style: normal; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: 'wdth' 72; }
.bet__bar { height: 8px; border: 1px solid var(--ink); position: relative; overflow: hidden; }
.bet__bar i { position: absolute; inset: 0; background: var(--shoal-3); transform-origin: left; transform: scaleX(var(--v)); }
.bet__rep { font-size: 13px; color: var(--ink-2); }
.bet__today { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; }
.bet__sw { width: 14px; height: 14px; border: 1px solid var(--ink); flex: none; }
.bet__best { font-size: 14px; font-weight: 600; }
.bet__best em { font-weight: 800; margin-left: 4px; }
.bets__note { font-size: 12px; font-style: italic; margin: 10px 0 0; max-width: 90ch; }

@media (max-width: 1080px) {
  .bet { grid-template-columns: 28px minmax(0, 2fr) minmax(100px, 1fr) 64px 96px; }
  .bet > :nth-child(4) { display: none; }
}
@media (max-width: 720px) {
  .targetbar__zone { justify-self: stretch; display: flex; }
  .targetbar__zone button { flex: 1; padding: 7px 4px; }
  .targetbar__species { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .targetbar__species .chip { flex: none; }
  .bet { grid-template-columns: 24px minmax(0, 1fr) 62px 52px; gap: 4px 10px; }
  .bet > :nth-child(4), .bet > :nth-child(6) { display: none; }
  .bet__bar { display: none; }
  .bet__name small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .bet__today { font-size: 18px; }
}

/* ───────── Bite consensus ───────── */
.verdict-panel { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.1fr); gap: 20px 48px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 18px 0 22px; margin-top: 12px; }
.verdict-panel__main { display: grid; gap: 6px; align-content: start; }
.verdict-panel__main .h3 { color: var(--ink-2); }
.verdict-panel__word { font-size: clamp(56px, 8vw, 96px); line-height: .9; font-style: italic; font-weight: 800; letter-spacing: -.04em; font-variation-settings: 'wdth' 84; }
.verdict-panel__word[data-w="Good"] { color: var(--shoal-4); }
.verdict-panel__word[data-w="Slow"] { color: var(--magenta-ink); }
.verdict-panel__word[data-w="No reports"], .verdict-panel__word[data-w="Quiet"] { color: var(--ink-3); font-size: clamp(40px, 5vw, 60px); }
.verdict-panel__main p { margin: 0; font-size: 16px; max-width: 48ch; }
.verdict-panel__who { font-size: 13px !important; font-style: italic; }
.verdict-panel__bar { display: flex; height: 10px; border: 1px solid var(--ink); margin-top: 8px; max-width: 360px; }
.verdict-panel__bar i { display: block; min-width: 0; }
.verdict-panel__bar .g { background: var(--shoal-3); }
.verdict-panel__bar .n { background: var(--paper); }
.verdict-panel__bar .s { background: var(--land-2); }
.verdict-panel__catch { display: grid; gap: 8px; align-content: start; }
.verdict-panel__catch .h3 { color: var(--ink-2); }
.catchlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.catchlist li { border-bottom: 1px solid var(--hair); }
.catchlist button { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: minmax(130px, 1fr) minmax(80px, 1.2fr) auto; gap: 12px; align-items: center; padding: 8px 4px; }
.catchlist button:hover { background: color-mix(in srgb, var(--shoal-1) 45%, transparent); }
.catchlist button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.catchlist button[aria-pressed="true"] { outline: 2px solid var(--magenta); outline-offset: -2px; }
.catchlist b { font-weight: 700; }
.catchlist em { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.catchlist__bar { height: 8px; background: var(--shoal-1); position: relative; overflow: hidden; }
.catchlist__bar i { position: absolute; inset: 0; background: var(--shoal-3); transform-origin: left; transform: scaleX(var(--v)); }
.post__who { font-weight: 700; color: var(--ink); font-size: 13px; }
.post__quote { margin: 0; font-size: 15px; line-height: 1.5; max-width: 76ch; font-style: italic; color: var(--ink); }
.post__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.post__src { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: 'wdth' 75; text-decoration-color: var(--magenta); text-decoration-thickness: 2px; display: inline-flex; gap: 4px; align-items: center; }
.post__src svg.i { width: 14px; height: 14px; }
.older { margin-top: 12px; }
.older summary { cursor: pointer; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: 'wdth' 75; padding: 10px 0; color: var(--ink-2); }
.older summary:hover { color: var(--ink); }
@media (max-width: 900px) { .verdict-panel { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .catchlist button { grid-template-columns: 1fr auto; } .catchlist__bar { display: none; } }
.legend-note { font-size: 13px; font-style: italic; color: var(--ink-2); margin: 12px 0 0; max-width: 70ch; }
.evid[data-e="Unproven"] { color: var(--magenta-ink); border-style: dashed; }
.evid[data-e="None"] { color: var(--ink-3); border-style: dotted; }
.evid[data-e="Practical"], .evid[data-e="Medium"] { color: var(--ink-2); }
.rose-trip { font-size: clamp(10px, 2.4cqw, 12px); color: var(--ink-2); margin-top: 2px; }
.rose-trip b { font-style: italic; color: var(--ink); }
.tripline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 2px 0 0; padding: 8px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); font-size: 14px; }
.tripline .h3 { color: var(--ink-2); }
.tripline b { font-size: 22px; font-weight: 800; }
.caps-head { margin-top: 22px; margin-bottom: 0; }
.evid[data-e="Captain lore"] { color: var(--magenta-ink); border-style: dashed; }
.evid[data-e="Not studied"], .evid[data-e="Mixed"], .evid[data-e="Small"] { color: var(--ink-2); border-style: dotted; }
.day--partial { background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--hair) 45%, transparent) 6px 7px); }
.day--partial .day__score { color: var(--ink-3); }
.day--partial .day__tint { opacity: .5; } /* rough guide: the colour still reads, just fainter */
.score-big--none { color: var(--ink-3); }

/* ───────── Catch log ───────── */
.logwrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
.logform { display: grid; gap: 18px; border-top: 1px solid var(--rule); padding-top: 14px; }
.logform fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.logform legend { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; font-variation-settings: 'wdth' 72; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.logform__row { display: flex; flex-wrap: wrap; gap: 12px; }
.logform label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-variation-settings: 'wdth' 75; color: var(--ink-2); min-width: 140px; flex: 1; }
.logform label.grow { flex: 3; }
.logform label { align-content: start; grid-template-columns: minmax(0, 1fr); }
.logform label.logform__when { min-width: 240px; }
.logform label b { font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink); font-variation-settings: 'wdth' 100; }
.logform label small { text-transform: none; letter-spacing: 0; font-weight: 400; font-style: italic; font-size: 12px; }
.logform input, .logform select { font: inherit; font-size: 16px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); padding: 8px 10px; min-height: 42px; width: 100%; font-variation-settings: 'wdth' 100; }
.logform input:focus-visible, .logform select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
/* Save stays in reach while scrolling the form: tap a bite rating, then Save. */
.logform__actions { display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; position: sticky; bottom: calc(var(--tabh) + env(safe-area-inset-bottom)); z-index: 5; background: var(--paper); border-top: 1px solid var(--hair); padding: 10px 0; }
.logside { border-top: 1px solid var(--rule); padding-top: 14px; display: grid; gap: 10px; }
.logtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.logtable th, .logtable td { text-align: left; padding: 7px 6px 7px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.logtable thead th { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: 'wdth' 72; color: var(--ink-2); }
.logtable tbody th { font-weight: 700; }
@media (max-width: 900px) { .logwrap { grid-template-columns: 1fr; } }
.logsync { display: inline-flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.logsync .btn svg.i { width: 16px; height: 16px; }
.logside p { margin: 0; }
.logsum { font-size: 14px; color: var(--ink-2); }
.logsect { display: grid; gap: 6px; border-top: 1px solid var(--hair); padding-top: 10px; }
.logsect .h3 { color: var(--ink-2); font-size: 12px; }
.lognote { font-size: 12px; font-style: italic; color: var(--ink-3); }
.logprog { display: grid; grid-template-columns: minmax(80px, 160px) auto; gap: 10px; align-items: center; font-size: 13px; }
.bitemarks { display: inline-flex; gap: 2px; }
.bitemarks i { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--ink); }
.visits { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.visit { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.visit small { font-size: 12px; color: var(--ink-2); }

/* Offshore: where reef fish are likely feeding this season (tracking studies, not in the score) */
.feedtip { display: grid; gap: 4px; border-top: 1px solid var(--hair); padding-top: 10px; }
.feedtip .h3 { color: var(--ink-2); }
.feedtip p { margin: 0; font-size: 14px; max-width: 70ch; }
.feedtip .cite { font-size: 12px; color: var(--ink-3); font-style: italic; }
@media (max-width: 720px) { .tabs a { padding-left: 2px; padding-right: 2px; font-size: 9.5px; } }

/* ───────── Regs: FWC's text in a legend table ───────── */
.regs-disclaimer { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 78ch; }
.regs-disclaimer a, .sect__head .aside a, .rrow a, .note a { text-decoration-color: var(--magenta); text-decoration-thickness: 2px; text-underline-offset: 3px; font-style: normal; font-weight: 600; color: var(--ink); }
.regs-where { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.regs-where .window { align-content: start; gap: 4px; }
.regs-where .window__time { font-size: 20px; }
.note__title { font-weight: 700; }
.reg { border-top: 1px solid var(--rule); padding: 12px 0 4px; }
.reg + .reg { margin-top: 18px; }
.reg__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.reg__name { margin: 0; font-size: 18px; font-weight: 700; font-variation-settings: 'wdth' 90; letter-spacing: -.005em; }
.reg__sub { font-size: 13px; color: var(--ink-2); font-style: italic; }
.reg__src { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; min-height: 34px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: 'wdth' 78; text-decoration: underline; text-decoration-color: var(--magenta); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.reg__src svg.i { width: 14px; height: 14px; }
.rrow { border-top: 1px solid var(--hair); padding: 10px 0 12px; display: grid; gap: 8px; }
.reg__head + .rrow { margin-top: 6px; }
.rrow__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rrow__sec { font-size: 13px; color: var(--ink-2); font-style: italic; max-width: 80ch; flex: 1 1 280px; }
.rrow__badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.rtag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: 'wdth' 72; color: var(--ink-2); border: 1px solid var(--hair); padding: 1px 6px; }
.rtag--off { color: var(--ink-3); border-style: dashed; }
/* Season badge on the depth scale: open is deep water, closed is dry land, unsure is a bare outline. */
.rbadge { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-variation-settings: 'wdth' 74; padding: 3px 8px; border: 1px solid var(--ink); color: var(--ink); white-space: nowrap; }
.rbadge[data-s="open"] { background: var(--shoal-2); }
.rbadge[data-s="closed"], .rbadge[data-s="noharvest"] { background: var(--land-2); }
.rbadge[data-s="check"] { border-color: var(--ink-3); color: var(--ink-2); }
.rbadge__why { font-size: 12px; color: var(--ink-3); font-style: italic; max-width: 46ch; }
.rfields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--hair); }
.rf { padding: 2px 12px 2px; border-right: 1px solid var(--hair); min-width: 0; }
.rf--wide { grid-column: 1 / -1; }
.rf h4 { margin: 0 0 3px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-variation-settings: 'wdth' 72; color: var(--ink-2); }
.rf p, .rmore p, .rtext p { margin: 0; font-size: 14px; display: grid; gap: 2px; overflow-wrap: anywhere; }
.rl b { font-weight: 700; margin-right: 3px; }
.rl--li { padding-left: 12px; position: relative; }
.rl--li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 4px; height: 4px; background: currentColor; }
.rl--here { color: var(--ink); }
.rl--here b { box-shadow: inset 0 -3px 0 var(--shoal-2); }
.rl--other { color: var(--ink-3); }
.rnote { margin: 0; font-size: 13px; color: var(--ink-2); max-width: 90ch; }
.rnote b { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-variation-settings: 'wdth' 72; margin-right: 6px; color: var(--ink); }
.rnone { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); font-style: italic; }
.reg--none .rnone { margin-bottom: 8px; }
.rmore > summary, .rgroup > summary { cursor: pointer; list-style: none; }
.rmore > summary::-webkit-details-marker, .rgroup > summary::-webkit-details-marker { display: none; }
.rmore > summary { display: inline-flex; min-height: 34px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: 'wdth' 78; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.rmore > summary:hover { color: var(--ink); text-decoration-color: var(--ink); }
.rmore[open] > summary { margin-bottom: 6px; }
.rmore--alerts { margin-top: 8px; }
.regs-search { margin-bottom: 12px; max-width: 560px; }
.rgroups { border-top: 1px solid var(--rule); }
.rgroup { border-bottom: 1px solid var(--hair); }
.rgroup > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 0; }
.rgroup > summary:hover { background: color-mix(in srgb, var(--shoal-1) 45%, transparent); }
.rgroup > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.rgroup__name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.rgroup__name svg.i { width: 14px; height: 14px; color: var(--ink-3); transition: transform var(--t-std) var(--ease); }
.rgroup[open] .rgroup__name svg.i { transform: rotate(90deg); }
.rgroup__n { font-size: 13px; color: var(--ink-2); font-style: italic; }
.rgroup__body { padding: 0 0 16px 22px; }
.rgroup__body .reg:first-child { border-top-color: var(--hair); }
.rtexts { display: grid; gap: 12px; }
.rtext { border-top: 1px solid var(--hair); padding-top: 8px; max-width: 90ch; }
.rtext h4 { margin: 0 0 4px; font-size: 13px; font-weight: 700; }
@media (max-width: 720px) {
  .rfields { grid-template-columns: 1fr; border-left: 0; }
  .rf { border-right: 0; border-top: 1px solid var(--hair); padding: 6px 0; }
  .rf:first-child { border-top: 0; }
  .rgroup__body { padding-left: 0; }
  .reg__src { margin-left: 0; }
  .tabs a { padding-left: 2px; padding-right: 2px; }
}
.rrow--fold { padding: 0; gap: 0; }
.rrow--fold > summary { cursor: pointer; list-style: none; min-height: 44px; padding: 8px 0; }
.rrow--fold > summary::-webkit-details-marker { display: none; }
.rrow--fold > summary:hover { background: color-mix(in srgb, var(--shoal-1) 45%, transparent); }
.rrow--fold > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.rrow--fold .rrow__sec { display: inline-flex; align-items: center; gap: 8px; font-style: normal; font-weight: 700; color: var(--ink); font-size: 14px; }
.rrow--fold .rrow__sec svg.i { width: 14px; height: 14px; color: var(--ink-3); transition: transform var(--t-std) var(--ease); }
.rrow--fold[open] .rrow__sec svg.i { transform: rotate(90deg); }
.rrow__body { display: grid; gap: 8px; padding: 0 0 12px 22px; }
.reg > .rnote { margin: 6px 0 4px; }
@media (max-width: 720px) { .rrow__body { padding-left: 0; } }

/* ───────── Sign in, account ───────── */
/* The sign-in screen replaces the tabs: title block and neatline stay, like a chart's cartouche. */
body.is-auth .tabs, body.is-auth .titleblock__tools, body.is-auth .place__change, body.is-auth #provenance { display: none; }
body.is-auth .place { cursor: default; }
body.is-auth .place:hover .place__name { text-decoration: none; }
body.is-auth main { padding-bottom: 0; }
.auth { max-width: 480px; display: grid; gap: 20px; }
.auth__head { display: grid; gap: 8px; }
.auth__lede { margin: 0; color: var(--ink-2); max-width: 52ch; }
.authform { gap: 16px; }
.authform label { min-width: 0; }
.authform input::placeholder { color: var(--ink-3); font-style: italic; text-transform: none; letter-spacing: 0; }
.authform__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.authform__actions .btn { min-width: 160px; }
.coordform { padding-top: 4px; }
.coordform input#coordInput { font-variant-numeric: tabular-nums; }
.coordform__read { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--ink-2); }
.coordform__read b { color: var(--ink); font-style: italic; }
.coordform__err { color: var(--magenta); }
.authform .linkbtn { margin-left: 0; font-size: 14px; }
.auth__alt { margin: 0; font-size: 14px; border-top: 1px solid var(--hair); padding-top: 12px; }

.acct { font-size: 13px; color: var(--ink-2); font-style: italic; }
.acct b { font-style: normal; font-weight: 700; color: var(--ink); }
.acct .linkbtn { margin-left: 0; font-size: 13px; }
.logacct { margin: -8px 0 16px; }
.logacct:empty { display: none; }

.invite { display: grid; gap: 8px; border-top: 1px solid var(--rule); padding-top: 10px; }
.invite input { font: inherit; font-size: 15px; width: 100%; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); padding: 10px 12px; min-height: 44px; }
.invite input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.invite__row { display: flex; flex-wrap: wrap; gap: 8px; }
.invite__row .btn svg.i { width: 16px; height: 16px; }
.acctlist li { align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.acctlist li > span { display: grid; min-width: 0; }
.acctlist li.empty { padding: 10px 0; font-style: italic; }
.sheet__body code { font-size: 12px; background: var(--shoal-1); padding: 0 4px; }
