/* Bottom inset (v1.97). --safe-b: the home-indicator space. --gap: how far an installed iPhone app's viewport stops short of the
   screen bottom (an iOS 26 home-screen app bug; measured in js/app.js, 0 elsewhere). --sb: what bottom-anchored things add. */
:root { --safe-b: env(safe-area-inset-bottom, 0px); --gap: 0px; --sb: calc(var(--safe-b) - var(--gap)); }
/* Layout: full-bleed globe, floating chart-room controls, right-hand spot panel (bottom sheet on phones) */
:root {
  --ink: #e8eef2;
  --ink-dim: #9fb2bf;
  --ink-faint: #6c8292;
  --hull: #0c1820;
  --hull-2: #12232e;
  --hull-3: #1a3140;
  --line: #24404f;
  --accent: #f2a33a;      /* buoy amber */
  --accent-ink: #1c1206;
  --sea: #5fc4c0;         /* sea glass */
  --good: #6fcf8a;
  --warn: #f2c94c;
  --bad: #ef6b5b;
  /* v1.90: one font for everything (owner picked Manrope); numbers use its tabular figures so columns line up */
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--hull); color: var(--ink); font: 15px/1.5 var(--font-body); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow: hidden; }
#map { position: fixed; inset: 0; bottom: calc(-1 * var(--gap)); }
button, input, select, textarea { font: inherit; color: inherit; }
h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.num, .mono { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Top bar */
.topbar {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px));
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-shadow: 0 1px 8px #0009; white-space: nowrap; }
.search { position: relative; flex: 1; max-width: 520px; }
.search input { width: 100%; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--hull) 88%, transparent); backdrop-filter: blur(8px); }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none; background: var(--hull-2); border: 1px solid var(--line); border-radius: var(--r); max-height: 320px; overflow: auto; }
.search-results li button { width: 100%; text-align: left; padding: 8px 10px; background: none; border: 0; border-radius: 6px; cursor: pointer; }
.search-results li button:hover, .search-results li button:focus-visible { background: var(--hull-3); }
.search-results small { color: var(--ink-faint); display: block; }
.top-actions { display: flex; gap: 8px; margin-left: auto; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 600; cursor: pointer; }
.chip.ghost { background: color-mix(in srgb, var(--hull) 85%, transparent); color: var(--ink); border-color: var(--line); }
.count { font-family: var(--font-data); font-size: 12px; background: var(--accent-ink); color: var(--accent); border-radius: 999px; padding: 0 7px; }

/* Layer switch */
.layer-switch {
  position: fixed; z-index: 4; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + var(--sb));
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px; border-radius: 12px;
  background: color-mix(in srgb, var(--hull) 88%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); max-width: calc(100vw - 32px);
}
.layer-switch button { padding: 6px 12px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-dim); cursor: pointer; font-weight: 600; }
.layer-switch button.on { background: var(--hull-3); color: var(--ink); }
.layer-switch label { display: inline-flex; gap: 5px; align-items: center; padding: 0 8px; color: var(--ink-dim); font-size: 13px; cursor: pointer; }
.hint { position: fixed; z-index: 3; left: 50%; bottom: calc(76px + var(--sb)); transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: #0008; color: var(--ink); font-size: 13px; pointer-events: none; white-space: nowrap; }

/* Panels */
.panel {
  position: fixed; z-index: 6; top: calc(68px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + var(--sb));
  width: min(440px, calc(100vw - 32px)); display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--hull) 94%, transparent); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(10px); box-shadow: 0 20px 50px #0008;
}
.panel-head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 16px 10px; }
.panel-head h2 { font-size: 26px; line-height: 1.1; letter-spacing: -.02em; }
.eyebrow { font-family: var(--font-data); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sea); }
.spot-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pill { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--hull-3); color: var(--ink-dim); border: 1px solid var(--line); }
.pill.sea { color: var(--sea); border-color: color-mix(in srgb, var(--sea) 40%, var(--line)); }
.pill.amber { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--hull-2); font-size: 20px; line-height: 1; cursor: pointer; flex: none; }
.tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { padding: 9px 10px; border: 0; background: none; color: var(--ink-faint); font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 0; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.panel-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.pane { display: none; flex-direction: column; gap: 16px; }
.pane.on { display: flex; }
.panel-foot { padding: 12px 16px; border-top: 1px solid var(--line); }

.block { display: flex; flex-direction: column; gap: 8px; }
.block h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-dim); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.kv > div { background: var(--hull-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.kv .k { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; }
.kv .v { font-family: var(--font-data); font-size: 18px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kv .s { font-size: 12px; color: var(--ink-dim); }
.windows { display: flex; flex-direction: column; gap: 6px; }
.window { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--hull-2); border: 1px solid var(--line); }
.window .when { font-family: var(--font-data); font-size: 13px; }
.window .why { font-size: 13px; color: var(--ink-dim); }
.score { font-family: var(--font-data); font-size: 12px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--good) 20%, transparent); color: var(--good); }
.score.mid { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--ink-faint); font: 10px var(--font-data); }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--ink-dim); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 3px; vertical-align: middle; margin-right: 4px; }
.list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--hull-2); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.list li .t { min-width: 0; }
.list li .t b { display: block; font-weight: 600; }
.list li .t small { color: var(--ink-faint); font-style: italic; }
.list li a { color: var(--sea); }
.badge { font-family: var(--font-data); font-size: 11px; color: var(--ink-faint); white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--hull-2); color: var(--ink-dim); cursor: pointer; font-size: 13px; }
.filters button.on { border-color: var(--accent); color: var(--accent); }
.muted { color: var(--ink-dim); }
.fine { font-size: 12px; color: var(--ink-faint); margin: 0; }
.prose p { margin: 0 0 8px; }
.prose ul { margin: 0 0 8px; padding-left: 18px; }
.loading { color: var(--ink-faint); font-size: 13px; }
.loading::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; border: 2px solid var(--sea); border-right-color: transparent; animation: spin .8s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { color: var(--bad); font-size: 13px; }
a { color: var(--sea); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--hull-2); cursor: pointer; font-weight: 600; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); width: auto; }
.panel-foot .btn.primary { width: 100%; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }

/* Log */
.log-tools { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 12px; border-bottom: 1px solid var(--line); }
.log-tools input { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--hull-2); }
.log-list { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.catch { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 10px; background: var(--hull-2); border: 1px solid var(--line); border-radius: 10px; }
.catch img, .catch .noimg { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--hull-3); }
.catch h4 { margin: 0; font-family: var(--font-display); font-size: 19px; }
.catch .meta { font-size: 12px; color: var(--ink-dim); }
.catch .acts { display: flex; gap: 10px; margin-top: 4px; font-size: 13px; }
.catch .acts button { background: none; border: 0; padding: 0; color: var(--sea); cursor: pointer; }
.catch .acts button.del { color: var(--bad); }
.empty { padding: 20px; text-align: center; color: var(--ink-dim); border: 1px dashed var(--line); border-radius: 10px; }

/* Dialogs */
dialog { width: min(560px, calc(100vw - 32px)); background: var(--hull); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
dialog::backdrop { background: #000a; }
dialog form { display: flex; flex-direction: column; gap: 12px; }
dialog h3 { font-size: 24px; }
dialog label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-dim); }
dialog input, dialog select, dialog textarea { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--hull-2); color: var(--ink); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }

.toast { position: fixed; z-index: 20; left: 50%; top: calc(76px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; pointer-events: none; max-width: calc(100vw - 32px); width: max-content; text-align: center; }

/* Map overrides */
.maplibregl-ctrl-attrib { font-size: 11px; background: #0009 !important; color: var(--ink-dim); }
.maplibregl-ctrl-attrib a { color: var(--ink-dim); }
.maplibregl-ctrl-group { background: var(--hull-2) !important; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); }
.maplibregl-popup-content { background: var(--hull-2); color: var(--ink); border: 1px solid var(--line); }
.maplibregl-popup-tip { border-top-color: var(--hull-2) !important; border-bottom-color: var(--hull-2) !important; }

@media (max-width: 720px) {
  .brand span { display: none; }
  .topbar { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .panel { top: auto; left: max(8px, env(safe-area-inset-left, 0px)); right: max(8px, env(safe-area-inset-right, 0px)); width: auto; height: 62vh; bottom: calc(8px + var(--sb)); }
  .grid2 { grid-template-columns: 1fr; }
  .layer-switch { bottom: auto; top: calc(116px + env(safe-area-inset-top, 0px)); }
  .hint { bottom: calc(20px + var(--sb)); }
}
@media (prefers-reduced-motion: reduce) { .loading::before { animation: none; } }

/* Dates and day table */
.datebar label { display: inline-flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; }
.datebar input[type=date] { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--hull-2); font-family: var(--font-data); font-size: 13px; text-transform: none; letter-spacing: 0; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table.days { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
table.days th { text-align: left; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); padding: 7px 8px; background: var(--hull-2); position: sticky; top: 0; }
table.days td { padding: 7px 8px; border-top: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
table.days tr.best td { background: color-mix(in srgb, var(--good) 9%, transparent); }
table.days tr.best td:first-child { box-shadow: inset 3px 0 0 var(--good); }
.tag { display: block; width: fit-content; margin-top: 2px; font-size: 11px; padding: 0 6px; border-radius: 999px; }
.tag.typ { color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); }

/* Fish cards */
.list li .t { display: flex; flex-direction: column; gap: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chips .pill { font-size: 11px; padding: 1px 7px; }
li.fish .badge { text-align: right; line-height: 1.7; }

/* Seasons layer */
.mig-bar {
  position: fixed; z-index: 4; left: 50%; transform: translateX(-50%); bottom: calc(84px + var(--sb));
  width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 240px); overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px;
  background: color-mix(in srgb, var(--hull) 92%, transparent); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(10px);
}
.mig-top { display: flex; align-items: center; gap: 12px; }
.mig-month { display: flex; flex-direction: column; min-width: 120px; }
.mig-month b { font-family: var(--font-display); font-size: 24px; line-height: 1; }
.mig-top input[type=range] { flex: 1; accent-color: var(--accent); }
.mig-tool { flex: none; width: 32px; height: 32px; padding: 0; font-size: 12px; }
.mig-drag { cursor: grab; touch-action: none; font-size: 16px; letter-spacing: -2px; }
.mig-drag:active { cursor: grabbing; }
.mig-bar.min > :not(.mig-top) { display: none !important; }
.mig-bar.min { width: min(440px, calc(100vw - 32px)); padding: 8px 10px; }
.mig-bar.min .mig-month .eyebrow { display: none; }
/* A side panel is open on a wide screen: sit the seasons bar in the free space to its left (unless you moved it) */
@media (min-width: 900px) {
  .mig-bar.beside:not(.moved) { left: calc((100vw - 472px) / 2); width: min(640px, calc(100vw - 520px)); }
}
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
li.season.out { opacity: .6; }
.icon-btn.on { color: var(--accent); border-color: var(--accent); }
.catch.saved { grid-template-columns: 1fr; }
textarea.note { width: 100%; margin-top: 6px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--hull); color: var(--ink); font: inherit; font-size: 13px; resize: vertical; }
@media (max-width: 720px) {
  .mig-bar { bottom: calc(80px + var(--sb)); padding: 10px 12px; gap: 6px; }
  .mig-bar #mig-groups { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .mig-bar #mig-groups button { white-space: nowrap; flex: none; }
  .mig-bar > p.fine:not(#mig-note) { display: none; }
  .mig-month { min-width: 80px; }
}
.mig-filter { gap: 12px; }
.mig-filter select { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--hull-2); color: var(--ink); max-width: 60%; }
.mig-filter label { display: inline-flex; gap: 5px; align-items: center; }

/* Fish search and fish card */
.search-results .sr-head { padding: 8px 10px 2px; font-family: var(--font-data); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.search-results .sr-fish b { display: block; }
.search-results .sr-fish small { font-style: italic; }
.search-results .sr-fish .sr-tag { float: right; font-style: normal; font-size: 11px; color: var(--sea); }
.fd-hero { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: start; }
.fd-hero img { width: 112px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--hull-2); }
.fd-hero.noimg { grid-template-columns: 1fr; }
.fd-hero p { margin: 0; font-size: 14px; color: var(--ink-dim); }
.fd-layers { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--hull-2); }
.fd-layers label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.fd-layers .st { margin-left: auto; font-size: 12px; color: var(--ink-faint); }
.fd-layers .st.ok { color: var(--good); }
.fd-layers .st.warn { color: var(--warn); }
.fd-layers .sw { width: 14px; height: 10px; border-radius: 3px; flex: none; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.months span { text-align: center; font-family: var(--font-data); font-size: 11px; padding: 6px 0 4px; border-radius: 4px; background: var(--hull-2); color: var(--ink-faint); border: 1px solid var(--line); }
.months span.around { background: color-mix(in srgb, var(--fc) 22%, var(--hull-2)); color: var(--ink-dim); }
.months span.peak { background: color-mix(in srgb, var(--fc) 55%, var(--hull-2)); color: var(--ink); border-color: var(--fc); }
.months span.now { outline: 1px solid var(--ink); outline-offset: 1px; }
.months button { font: inherit; text-align: center; font-family: var(--font-data); font-size: 11px; padding: 6px 0 4px; border-radius: 4px; background: var(--hull-2); color: var(--ink-faint); border: 1px solid var(--line); cursor: pointer; min-width: 0; }
.months button.around { background: color-mix(in srgb, var(--fc) 22%, var(--hull-2)); color: var(--ink-dim); }
.months button.peak { background: color-mix(in srgb, var(--fc) 55%, var(--hull-2)); color: var(--ink); border-color: var(--fc); }
.months button.now { outline: 1px dashed var(--ink-dim); outline-offset: 1px; }
.months button.sel { outline: 2px solid var(--ink); outline-offset: 1px; font-weight: 700; }
.mstrip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; width: 132px; max-width: 100%; margin: 4px 0 2px; }
.mstrip i { height: 5px; border-radius: 2px; background: var(--line); }
.mstrip i.a { background: color-mix(in srgb, var(--fc) 40%, var(--hull-2)); }
.mstrip i.p { background: var(--fc); }
.mstrip i.sel { box-shadow: 0 0 0 1px var(--ink); }
.mstrip i.x { background-image: linear-gradient(to top, var(--bad) 0 2px, transparent 2px); height: 7px; }
.mstrip i.x:not(.p):not(.a) { background-color: color-mix(in srgb, var(--bad) 25%, var(--line)); }
.pill.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.f-closed { color: color-mix(in srgb, var(--bad) 70%, var(--ink-dim)); }
.closed-cal { margin: 4px 0 12px; }
.closed-cal h4 { margin: 0 0 6px; }
.cal-grid { display: grid; grid-template-columns: minmax(0, max-content) 132px; gap: 2px 10px; align-items: center; }
.cal-grid .mstrip { margin: 0; }
.cal-grid .cal-dates { grid-column: 1 / -1; margin: 0 0 6px; }
.cal-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; width: 132px; font-size: 11px; color: var(--ink-faint); text-align: center; }
.cal-months i { font-style: normal; }
.cal-now { color: var(--bad); }
.c-closed { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#mig-avail { display: flex; flex-direction: column; gap: 6px; }
#mig-avail[hidden] { display: none; }
.mig-months button { padding: 4px 0 3px; }
.mig-places { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; color: var(--ink-dim); }
.chip-btn { font: inherit; font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--hull-2); color: var(--ink); cursor: pointer; }
.chip-btn:hover { border-color: var(--accent); }
#mig-card { align-self: flex-start; }
@media (max-width: 640px) {
  .mig-places { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .mig-places > * { flex: none; }
}
.list li.zone { cursor: pointer; }
.list li.zone:hover { border-color: var(--sea); }
.fd-section { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.focus-chip {
  position: fixed; z-index: 4; top: calc(66px + env(safe-area-inset-top, 0px)); left: max(16px, env(safe-area-inset-left, 0px));
  display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 999px; max-width: calc(100vw - 32px);
  background: color-mix(in srgb, var(--hull) 90%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.focus-chip .focus-name { background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.focus-chip .focus-keys { font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.focus-chip .icon-btn { width: 28px; height: 28px; font-size: 17px; border-radius: 999px; }
@media (max-width: 720px) { .focus-chip .focus-keys { display: none; } }
.fish-link { cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--sea) 45%, transparent); text-underline-offset: 3px; }
.fish-link:hover { color: var(--sea); }
@media (max-width: 720px) { .focus-chip { top: auto; bottom: calc(16px + var(--sb)); } }

/* Fish log v2: catch form, pick mode, history, patterns */
dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.c-fishid { margin: -6px 0 0; min-height: 1em; }
.c-fishid b { color: var(--sea); font-weight: 600; }
.c-rules { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; }
.c-rules.warn { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.c-rules .w { color: var(--bad); font-weight: 600; }
.c-rules a { color: var(--sea); }
.btn.del { color: var(--bad); }
.pick-bar {
  position: fixed; z-index: 12; left: 50%; transform: translateX(-50%); top: calc(76px + env(safe-area-inset-top, 0px));
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; padding: 10px 12px 10px 18px; border-radius: 16px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; box-shadow: 0 10px 30px #0008; max-width: calc(100vw - 24px);
}
.pick-bar .pick-acts { gap: 6px; flex-wrap: nowrap; }
.pick-bar .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.pick-bar .btn.primary { background: #fff; color: var(--accent-ink); border-color: #fff; }
.pick-bar .btn.ghost { background: transparent; color: var(--accent-ink); border-color: var(--accent-ink); }
.fab {
  position: fixed; z-index: 4; right: calc(64px + env(safe-area-inset-right, 0px)); bottom: calc(88px + var(--sb));
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; box-shadow: 0 10px 28px #0009;
}
.fab span { font-size: 20px; line-height: 1; }
@media (max-width: 720px) { .fab { right: calc(56px + env(safe-area-inset-right, 0px)); bottom: calc(88px + var(--sb)); } }
.catch-pin { width: 30px; height: 40px; cursor: grab; filter: drop-shadow(0 3px 4px #000a); }
.c-spot { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--hull-2); }
.c-spot .c-pin { width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); flex: none; }
.c-spot .c-spottxt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.c-spot .c-spottxt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-spot.unset { border-color: var(--accent); }
.c-more { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.c-more summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.c-more .c-moreinner { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
body.picking #map canvas { cursor: crosshair !important; }
.log-tools select { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--hull-2); color: var(--ink); flex: 1; min-width: 0; }
#logdrawer .tabs, #watchdrawer .tabs { margin-bottom: 10px; }
.catch .who { font-size: 12px; color: var(--accent); font-weight: 600; }
.catch .coords { font-family: var(--font-data); font-size: 11px; color: var(--ink-faint); }
.catch .cond { font-size: 12px; color: var(--ink-dim); border-left: 2px solid var(--line); padding-left: 6px; }
.catch .warnline { font-size: 12px; color: var(--bad); }
.catch h4 .fish-link { text-decoration-thickness: 1px; }
.pat-block { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--hull-2); border: 1px solid var(--line); border-radius: 10px; }
.pat-block h4 { margin: 0; font-family: var(--font-display); font-size: 17px; }
.pat-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 28px; gap: 8px; align-items: center; font-size: 13px; }
.pat-row .bar { height: 8px; border-radius: 4px; background: var(--hull-3); overflow: hidden; }
.pat-row .bar i { display: block; height: 100%; background: var(--sea); }
.pat-row .k { text-align: right; font-family: var(--font-data); font-size: 12px; color: var(--ink-dim); }
.insights { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.watch { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: var(--hull-2); border: 1px solid var(--line); border-radius: 10px; }
.watch h4 { margin: 0; font-family: var(--font-display); font-size: 19px; }
.watch .days { display: flex; flex-wrap: wrap; gap: 4px; }
.watch .day { font-size: 12px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--hull); color: var(--ink-faint); }
.watch .day.ok { border-color: var(--good); color: var(--good); background: color-mix(in srgb, var(--good) 10%, var(--hull)); }
.watch .day.pending { border-style: dashed; }
.watch .acts { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.watch .acts button { background: none; border: 0; padding: 0; color: var(--sea); cursor: pointer; }
.watch .acts button.del { color: var(--bad); }
.count.hot { background: var(--good); color: var(--accent-ink); }
.rules-list { display: flex; flex-direction: column; gap: 6px; }
.rule { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--hull-2); font-size: 13px; }
.rule b { display: block; }
.rule .src { font-size: 11px; color: var(--ink-faint); }
.rule .src a { color: var(--sea); }
.rule.note { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
/* Phones: compact top bar so all buttons fit; pin bar at the bottom, full width, big buttons */
@media (max-width: 720px) {
  .top-actions { gap: 5px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1 1 0; min-width: 0; margin-left: 0; }
  .top-actions > :first-child { margin-left: auto; }
  .top-actions .chip { padding: 6px 10px; font-size: 13px; white-space: nowrap; gap: 4px; }
  .top-actions .count { font-size: 11px; padding: 0 5px; }
  .pick-bar { top: auto; bottom: calc(80px + var(--sb)); left: 12px; right: 12px; transform: none; max-width: none; flex-direction: column; align-items: stretch; padding: 12px; border-radius: 16px; }
  .pick-bar .pick-step { text-align: center; }
  .pick-bar .pick-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pick-bar .pick-acts .btn { padding: 11px 8px; font-size: 14px; white-space: nowrap; }
  .pick-bar .pick-acts #pick-ok { grid-column: 1 / -1; order: -1; padding: 13px; font-size: 16px; }
}

.mig-routes-line { gap: 8px; justify-content: space-between; }
.mig-routes-line .fine { flex: 1; min-width: 0; color: var(--ink-dim); }

/* River state pills and per-fish water notes */
.river-st { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--hull-3); color: var(--ink-dim); white-space: nowrap; }
.river-st.rising, .river-st.high, .river-st.dropping { color: #e8b26a; border-color: color-mix(in srgb, #e8b26a 45%, var(--line)); background: color-mix(in srgb, #8a5a22 25%, var(--hull-3)); }
.river-st.clearing { color: var(--sea); border-color: color-mix(in srgb, var(--sea) 45%, var(--line)); }
.river-st.flood { color: #ff8b7b; border-color: color-mix(in srgb, #ff8b7b 55%, var(--line)); background: color-mix(in srgb, #7a2a22 30%, var(--hull-3)); }
.river-st.low { color: #9cc8ec; }
.fine.flow { display: block; padding-left: 8px; border-left: 2px solid var(--line); }
.fine.flow.good { border-color: var(--sea); color: var(--ink); }
.fine.flow.bad { border-color: #ff8b7b; }
.water-box { border-left: 3px solid #e8b26a; padding-left: 12px; }

/* NASA daily satellite: date stepper */
.gibs-chip { position: fixed; z-index: 4; left: max(16px, env(safe-area-inset-left, 0px)); top: calc(124px + env(safe-area-inset-top, 0px)); display: flex; align-items: center; gap: 8px; max-width: min(360px, calc(100vw - 32px));
  padding: 6px 8px; background: color-mix(in srgb, var(--hull) 92%, transparent); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(10px); }
.gibs-chip { flex-direction: column; align-items: stretch; max-width: min(420px, calc(100vw - 32px)); }
.gibs-row { display: flex; align-items: center; gap: 6px; }
.gibs-row b { min-width: 86px; text-align: center; }
.gibs-row select { flex: 1; min-width: 0; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--hull-2); color: var(--ink); font: inherit; font-size: 12px; }
#gibs-clouds:empty { display: none; }
.gibs-chip small { font-size: 11px; color: var(--ink-dim); line-height: 1.3; }
.gibs-chip .icon-btn { flex: none; width: 30px; height: 30px; padding: 0; font-size: 11px; }
@media (max-width: 720px) { .gibs-chip .gibs-help { display: none; } }

.gibs-chip.live #gibs-prev, .gibs-chip.live #gibs-next { display: none; }
#gibs-when { color: var(--ink); }

/* ===================== Redesign (Nov 2026) =====================
   Readable text (13 px floor, lighter greys), sentence-case headings, amber only for actions and selection,
   teal for data and status, three radii (6 / 12 / round), one Layers control, phone bottom bar. */
:root { --ink-dim: #b4c4ce; --ink-faint: #a9bcc8; --r-s: 6px; --r: 12px; }
.brand { text-transform: none; letter-spacing: .02em; }
.block h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink); }
.fine, .chips .pill, .pill { font-size: 13px; }
.kv .k, .datebar label, table.days th { text-transform: none; letter-spacing: 0; font-size: 13px; }
table.days { font-size: 13.5px; }
.tag { font-size: 11px; }
.river-st { font-size: 12px; }
.search-results .sr-head { font-size: 11px; }
.count { font-size: 12px; background: var(--sea); color: #06201f; }
.count[data-zero] { display: none; }
.chip { min-height: 44px; padding: 0 16px; font-weight: 500; }
.chip.icon-chip { width: 44px; padding: 0; justify-content: center; }
.search input { min-height: 44px; }
/* One meaning per colour */
.pill.amber { color: var(--ink); border-color: var(--line); }
.score { background: color-mix(in srgb, var(--sea) 18%, transparent); color: var(--sea); border-radius: var(--r-s); }
.score.mid { background: var(--hull-3); color: var(--ink-dim); }
table.days tr.best td { background: color-mix(in srgb, var(--sea) 8%, transparent); }
table.days tr.best td:first-child { box-shadow: inset 3px 0 0 var(--sea); }
.who, .catch .who { color: var(--sea); }
/* Three radii */
.panel, .mig-bar, .gibs-chip, .search-results, .tbl-wrap, .c-spot, dialog { border-radius: var(--r); }
.btn, .btn.small { border-radius: 999px; }
.datebar input[type=date], .gibs-row select, .mig-filter select { border-radius: var(--r-s); }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: transparent; border-color: #2c4b5c; font-size: 18px; }
.icon-btn.on { color: var(--accent); }
/* Panel: five short tabs that fit */
#panel .tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 0; overflow: visible; }
#panel .tabs button, #logdrawer .tabs button, #watchdrawer .tabs button { font-family: var(--font-body); font-size: 15px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-faint); min-height: 44px; padding: 8px 6px; }
#panel .tabs button.on, #logdrawer .tabs button.on, #watchdrawer .tabs button.on { color: var(--ink); font-weight: 600; }
.panel-foot { display: flex; gap: 8px; }
.panel-foot .btn.primary { flex: 1; min-height: 48px; font-size: 16px; }
.panel-foot #btn-follow { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; gap: 6px; }
.follow-wrap { position: relative; }
.follow-menu { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5; width: 290px; padding: 6px; border-radius: var(--r); background: var(--hull); border: 1px solid var(--line); box-shadow: 0 16px 40px #0008; display: flex; flex-direction: column; gap: 2px; }
.follow-menu button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; min-height: 44px; border: 0; border-radius: 6px; background: none; color: var(--ink); cursor: pointer; font: inherit; }
.follow-menu button:hover, .follow-menu button:focus-visible { background: var(--hull-3); }
.follow-menu small { font-size: 13px; color: var(--ink-faint); }
body.spot-open .fab { display: none; }
/* Layers: base switch plus one button */
.layer-switch { padding: 0; gap: 8px; background: none; border: 0; backdrop-filter: none; border-radius: 0; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--hull) 92%, transparent); border: 1px solid #2c4b5c; backdrop-filter: blur(8px); }
.seg button, .layer-switch .seg button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-dim); font-weight: 500; cursor: pointer; }
.seg button.on, .layer-switch .seg button.on { background: var(--hull-3); color: var(--ink); font-weight: 600; }
.layer-switch .layers-btn, .layers-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid #2c4b5c; background: color-mix(in srgb, var(--hull) 92%, transparent); backdrop-filter: blur(8px); color: var(--ink); font-weight: 600; cursor: pointer; }
.layer-switch .layers-btn[aria-expanded="true"] { border-color: var(--accent); }
.layers-on { color: var(--ink-faint); font-weight: 500; }
.layers-pop { position: fixed; z-index: 7; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(76px + var(--sb)); width: min(340px, calc(100vw - 32px)); padding: 12px 16px 6px; border-radius: var(--r); background: color-mix(in srgb, var(--hull) 97%, transparent); border: 1px solid var(--line); box-shadow: 0 20px 50px #0008; }
.lp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.lp-head b { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.lp-base { display: flex; }
.sw { display: flex; align-items: center; gap: 12px; min-height: 58px; border-top: 1px solid #1d3542; cursor: pointer; }
.sw > span { flex: 1; display: flex; flex-direction: column; }
.sw b { font-weight: 600; }
.sw small { font-size: 13px; color: var(--ink-faint); }
.sw input { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--hull-3); border: 1px solid #2c4b5c; position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.sw input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: var(--ink-dim); transition: transform .15s; }
.sw input:checked { background: var(--accent); border-color: var(--accent); }
.sw input:checked::after { transform: translateX(18px); background: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .sw input, .sw input::after { transition: none; } }
/* Bottom bar: phones only */
.bottom-nav { display: none; }
@media (max-width: 720px) {
  .topbar { flex-wrap: nowrap; gap: 8px; }
  .brand { display: none; }
  .search { order: 0; flex: 1 1 auto; max-width: none; }
  .top-actions { flex: 0 0 auto; margin-left: 0; overflow: visible; }
  .top-actions .chip:not(.icon-chip) { display: none; }
  .bottom-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; position: fixed; z-index: 8; left: 0; right: 0; bottom: calc(-1 * var(--gap)); height: calc(68px + var(--safe-b)); padding: 0 max(4px, env(safe-area-inset-right, 0px)) var(--safe-b) max(4px, env(safe-area-inset-left, 0px)); background: var(--hull); border-top: 1px solid var(--line); }
  .bottom-nav button { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; color: var(--ink-faint); font-size: 12px; font-weight: 500; cursor: pointer; }
  .bottom-nav button.on { color: var(--ink); font-weight: 600; }
  .fab { right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(84px + var(--sb)); width: 56px; height: 56px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .fab span { font-size: 30px; font-weight: 600; }
  body.view-open .fab, body.view-open .angler-ctrl { display: none; }
  .panel { bottom: calc(68px + var(--sb)); left: 0; right: 0; border-radius: 16px 16px 0 0; height: 58vh; }
  #panel .tabs { display: flex; gap: 5px; padding: 0 12px 10px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  #panel .tabs button { flex: 1 1 auto; min-height: 40px; padding: 0 8px; border-radius: 999px; border: 1px solid #2c4b5c; }
  #panel .tabs button.on { background: var(--hull-3); border-color: var(--hull-3); }
  .layer-switch { top: calc(70px + env(safe-area-inset-top, 0px)); bottom: auto; left: auto; right: max(16px, env(safe-area-inset-right, 0px)); }
  .layer-switch .seg { display: none; }
  .layer-switch .layers-btn { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .layers-btn span { display: none; }
  .layers-pop { left: 0; right: 0; width: auto; bottom: calc(68px + var(--sb)); border-radius: 16px 16px 0 0; max-height: 75vh; overflow-y: auto; }
  .lp-base { display: flex; margin: 6px 0 10px; }
  .lp-base button { flex: 1; }
  .mig-bar { bottom: calc(80px + var(--sb)); }
  .hint { bottom: calc(84px + var(--sb)); }
  .focus-chip { bottom: calc(80px + var(--sb)); }
  .gibs-chip { top: calc(130px + env(safe-area-inset-top, 0px)); }
  .maplibregl-ctrl-bottom-right { bottom: calc(148px + var(--sb)); }
}

/* Catch form: when */
.c-when { display: flex; flex-direction: column; gap: 6px; }
.c-when label { display: flex; flex-direction: column; gap: 4px; }
.c-when input { font-family: var(--font-data); }
.c-when-quick { display: flex; flex-wrap: wrap; gap: 6px; }

/* Import preview */
#import-dialog { width: min(760px, calc(100vw - 32px)); }
#import-form { display: flex; flex-direction: column; gap: 12px; }
.imp-table { max-height: 46vh; overflow: auto; border: 1px solid var(--line, #24404f); border-radius: 6px; }
.imp-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.imp-table th, .imp-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--line, #24404f); white-space: nowrap; }
.imp-table th { position: sticky; top: 0; background: var(--panel, #0c1820); font-weight: 600; }
.imp-table td.dup { color: var(--ink-faint); text-decoration: line-through; }
#imp-probs { max-height: 160px; overflow: auto; margin: 6px 0 0; padding-left: 18px; }

/* Sync */
.sync-box { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: var(--panel2, #12232e); }
.sync-box h4 { margin: 0; font-size: 15px; }
.sync-box #sync-out, .sync-box #sync-in, .sync-box #sync-codewrap { display: flex; flex-direction: column; gap: 8px; }
.sync-box [hidden] { display: none !important; }
#sync-line button { background: none; border: 0; padding: 0; color: var(--accent, #f2a33a); cursor: pointer; font: inherit; text-decoration: underline; }

/* Sharing */
.share-badge { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; font-size: 12px; font-weight: 500; vertical-align: 2px; border: 1px solid var(--line, #2c4b5c); color: var(--ink-dim); }
.share-badge.pub { border-color: #5fc4c0; color: #5fc4c0; }
#log-share { height: 30px; border-radius: 999px; padding: 0 8px; }

/* Weekly reports */
.report { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: var(--panel2, #12232e); }
.report h4 { margin: 0; font-size: 17px; }
.report h5 { margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.rep-lines { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.rep-lines li.best { color: var(--good, #5fc4c0); font-weight: 600; }
.rep-lines li.warn { color: #f2a33a; }
.rep-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.rep-list li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.rep-list .when, .rep-table td.n { font-family: var(--font-data); font-size: 13px; }
.rep-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rep-table th, .rep-table td { padding: 4px 6px; text-align: left; border-bottom: 1px solid var(--line, #24404f); }
.rep-wrap { overflow-x: auto; }

/* Conditions: answer first, details folded */
.best-card { padding: 14px; border-radius: var(--r); background: var(--hull-2); display: flex; flex-direction: column; gap: 6px; }
.best-card .bc-top { display: flex; align-items: baseline; }
.best-card .k { font-size: 14px; color: var(--ink-faint); }
.best-card .score { margin-left: auto; font-family: var(--font-data); font-size: 14px; color: var(--sea); }
.best-card .score.mid { color: var(--ink-dim); }
.best-card .bc-day { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; line-height: 1; }
.best-card p { margin: 0; color: var(--ink-dim); }
.best-card .bc-more { display: flex; gap: 6px; flex-wrap: wrap; }
.best-card .bc-chip { padding: 4px 10px; border-radius: 999px; border: 1px solid #2c4b5c; font-size: 13px; color: var(--ink); }
.best-card .mono { font-family: var(--font-data); color: var(--ink-faint); }
details.fold { border: 1px solid var(--line); border-radius: var(--r); padding: 0 14px; }
details.fold > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 10px 0; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.8px solid var(--ink-faint); border-bottom: 1.8px solid var(--ink-faint); transform: rotate(45deg) translateY(-3px); flex: none; }
details.fold[open] > summary::after { transform: rotate(-135deg); }
details.fold > summary .sub { display: block; font-size: 14px; color: var(--ink-dim); }
details.fold > :not(summary) { margin: 0 0 12px; }
.block details.fold { border: 0; padding: 0; margin-top: 6px; }
div.fold.river-block { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.info-chip { display: inline-block; }
.info-chip > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid #2c4b5c; font-size: 13px; color: var(--ink-dim); }
.info-chip > summary::-webkit-details-marker { display: none; }
.info-chip[open] > p { margin: 8px 0 0; }
table.days th.num, table.days td.num { text-align: right; font-family: var(--font-data); }
.elsewhere { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
/* Fish: one row per fish */
.fish-list li.fish { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.fish-list .f-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fish-list .f-head .pill { margin-left: auto; }
.fish-list .f-season { display: flex; align-items: center; gap: 10px; }
.fish-list .f-season .mstrip { flex: 0 0 132px; }
.fish-list .f-why { color: var(--ink-dim); }
.fish-list .f-meta { color: var(--ink-faint); }
.fish-list .f-more > summary { cursor: pointer; font-size: 13px; color: var(--ink-faint); min-height: 28px; display: inline-flex; align-items: center; }
.fish-list .f-more p { margin: 4px 0 0; }
/* Rules: grouped by source */
.rule-group { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; margin-top: 10px; border-top: 1px solid #1d3542; }
.rule-group h4 { margin: 0; font-size: 15px; font-weight: 600; }
.rule-group .src { font-size: 13px; color: var(--ink-faint); }
.rule-rows { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rule-rows li { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 14px; }
.rule-rows li b { font-weight: 600; }
.rule-rows li .fine { flex-basis: 100%; }
.rules-find { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-faint); margin-top: 8px; }
.rules-find input { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid #2c4b5c; background: var(--hull-2); color: var(--ink); font: inherit; }

/* Catch form: sharing as one line */
.c-share-wrap > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line); }
.c-share-wrap > summary::-webkit-details-marker { display: none; }
.c-share-wrap .c-share-chg { margin-left: auto; color: var(--sea); font-weight: 600; }
.c-share-wrap[open] > summary { margin-bottom: 8px; }
table.days td, table.days th { padding-left: 6px; padding-right: 6px; }
table.days td:first-child, table.days th:first-child { padding-left: 0; white-space: nowrap; }
/* Angler profile */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.profile { position: fixed; inset: 0; z-index: 9; overflow-y: auto; background: #0b161d; color: var(--ink); }
/* The profile opens under the top bar (and above the bottom bar on phones), so you can jump straight to another section */
@media (min-width: 721px) { .profile { top: calc(60px + env(safe-area-inset-top, 0px)); z-index: 4; } .pf-bar { padding-top: 12px; } body.profile-open .layer-switch { display: none; } }
@media (max-width: 720px) { .profile { bottom: calc(68px + var(--sb)); z-index: 7; } }
.top-actions .chip.on { border-color: var(--accent); color: var(--ink); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.pf-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); padding-top: calc(12px + env(safe-area-inset-top, 0px)); background: color-mix(in srgb, #0b161d 94%, transparent); border-bottom: 1px solid #1d3542; }
.pf-bar .btn { display: inline-flex; align-items: center; gap: 6px; }
.pf-body { max-width: 1200px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 24px; }
.pf-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pf-head h1, .pf-empty h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -.02em; line-height: 1; }
.pf-anglers { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-anglers button, .pf-gaptabs button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #2c4b5c; background: transparent; color: var(--ink); cursor: pointer; font: inherit; }
.pf-anglers button[aria-pressed="true"], .pf-gaptabs button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); font-weight: 600; }
.pf-anglers .n, .pf-gaptabs .n, .pf-pb .n { font-family: var(--font-data); font-size: 13px; color: var(--ink-faint); }
.pf-anglers select { min-height: 36px; border-radius: 999px; border: 1px solid #2c4b5c; background: var(--hull-2); color: var(--ink); padding: 0 10px; }
.pf-acts { margin-left: auto; display: flex; gap: 10px; }
.pf-nums { margin: 0; display: flex; gap: 40px; flex-wrap: wrap; }
.pf-nums dt { font-size: 14px; color: var(--ink-faint); }
.pf-nums dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; }
.pf-nums small { font-size: 18px; color: var(--ink-faint); }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; }
.pf-col { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.pf-col section { display: flex; flex-direction: column; gap: 10px; }
.pf-col h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.pf-col p { margin: 0; }
.pf-pbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pf-pb { padding: 14px 16px; border-radius: var(--r); background: var(--hull-2); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pf-pb .k { font-size: 14px; color: var(--ink-faint); }
.pf-pb b { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.linklike { border: 0; background: none; padding: 0; color: var(--sea); font: inherit; text-decoration: underline; cursor: pointer; }
.pf-bars { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr) 40px; gap: 10px 12px; align-items: center; }
.pf-bars i { height: 10px; border-radius: 3px; background: var(--sea); }
.pf-bars .n, .pf-cols .n { font-family: var(--font-data); font-size: 13px; text-align: right; }
.pf-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: end; }
.pf-cols > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.pf-cols i { width: 100%; border-radius: 3px 3px 0 0; background: var(--sea); }
.pf-cols i.zero { background: var(--line); border-radius: 0; }
.pf-cols .n { text-align: center; font-size: 12px; min-height: 15px; }
.pf-cols .l { font-size: 12px; color: var(--ink-faint); }
.pf-missing { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-missing button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px dashed #3a5a6b; background: transparent; color: var(--ink); cursor: pointer; font: inherit; }
.pf-missing button:hover { border-color: var(--accent); }
.pf-gaps { padding: 16px; border-radius: var(--r); background: var(--hull-2); }
.pf-gaptabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-gap { display: flex; flex-direction: column; gap: 8px; }
.pf-gap b { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.pf-gap label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-faint); }
.pf-gap input, .pf-gap select { min-height: 44px; }
.pf-gap .row { align-items: center; }
.pf-empty { display: flex; flex-direction: column; gap: 14px; max-width: 60ch; }
body.profile-open .fab, body.profile-open #mig-bar { display: none !important; }
@media (max-width: 860px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } .pf-acts { margin-left: 0; } }
@media (max-width: 720px) {
  .profile { bottom: calc(68px + var(--sb)); }
  .pf-head h1 { font-size: 32px; }
  .pf-nums { gap: 20px; } .pf-nums dd { font-size: 26px; }
  .pf-pbs { grid-template-columns: minmax(0, 1fr); }
}
/* Add catches sheet */
#addmany-dialog { width: min(1100px, calc(100vw - 32px)); }
#addmany-form { display: flex; flex-direction: column; gap: 12px; }
.am-top { display: flex; gap: 12px; flex-wrap: wrap; }
.am-top label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-faint); }
.am-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.am-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14px; }
.am-table th { text-align: left; font-weight: 500; color: var(--ink-faint); padding: 8px 6px; background: var(--hull-2); }
.am-table td { padding: 4px; border-top: 1px solid #1d3542; }
.am-table input, .am-table select { width: 100%; box-sizing: border-box; min-height: 36px; padding: 0 8px; border-radius: 6px; border: 1px solid #2c4b5c; background: #0b161d; color: var(--ink); font: inherit; }
.am-table input.bad { border-color: #e0795e; }
.am-table td:nth-child(2), .am-table td:nth-child(3) { width: 64px; }
.am-table td:last-child { width: 40px; }
.am-del { width: 36px; height: 36px; font-size: 20px; }
.pf-gap input, .pf-gap select { padding: 0 12px; border-radius: 6px; border: 1px solid #2c4b5c; background: #0b161d; color: var(--ink); font: inherit; }
.pf-gap input::placeholder, .am-table input::placeholder { color: var(--ink-faint); }
.fish-list .f-zone { color: var(--warn); }
.water-zone b { font-weight: 600; color: var(--ink); }
.elsewhere-fish { margin-top: 10px; }

/* Shore spots */
.shore-list li { align-items: flex-start; }
.shore-list .shore-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; white-space: nowrap; }

/* Drop the angler */
.angler-ctrl button { color: var(--accent); }
body.angler-armed .angler-ctrl button { color: var(--accent-ink); }
.angler-ctrl button svg { display: block; margin: auto; }
body.angler-armed .angler-ctrl button { background: var(--accent); }
body.angler-armed #map canvas { cursor: crosshair; }
.angler-ghost { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; color: var(--accent); filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.angler-ghost svg { width: 28px; height: 28px; }
body.profile-open .topbar { background: #0b161d; }

/* Phone sheets (v1.52): a real grip, full-screen size, faded tab edge */
.sheet-grip { display: none; }
@media (max-width: 720px) {
  .sheet-grip { display: block; flex: none; width: 100%; height: 22px; padding: 0; border: 0; background: none; cursor: grab; touch-action: none; position: relative; }
  .sheet-grip::after { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px; border-radius: 999px; background: #3a5a6b; }
  .sheet-grip:focus-visible::after { background: var(--accent); }
  .panel .panel-head { touch-action: none; padding-top: 4px; }
  .panel { transition: height .2s ease; }
  .panel.dragging { transition: none; }
  .panel.full { height: calc(100dvh - 134px - env(safe-area-inset-top, 0px) - var(--sb)); }
  .panel .tabs { position: relative; }
  .panel .tabs.more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
  .log-tools .row { flex-wrap: wrap; }
  #log-share { flex: none; max-width: 170px; }
  .hint { bottom: calc(152px + var(--sb)); white-space: normal; width: max-content; max-width: calc(100vw - 32px); text-align: center; border-radius: 14px; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) { .panel { transition: none; } }

/* Accounts and anglers (v1.54) */
.sync-box #sync-user, .sync-box #sync-emailwrap, .sync-box #sync-resetwrap, .sync-box .acct-set, .sync-box .acct-more { display: flex; flex-direction: column; gap: 8px; }
.sync-mode { align-self: flex-start; }
.sync-box .row .linklike { margin-left: auto; font-size: 13px; }
.acct-more summary { cursor: pointer; color: var(--sea); font-size: 14px; }
.links-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.link-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.link-row .link-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.link-row .link-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-row .link-user { width: 120px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--hull-2); color: var(--ink); font: inherit; font-size: 14px; }
.link-row .link-to { color: var(--sea); font-family: var(--font-data); font-size: 13px; }
.c-crew { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .c-crew { grid-template-columns: 1fr; } }
.chip-input { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 40px; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--hull-2); cursor: text; }
.chip-input input { flex: 1; min-width: 120px; border: 0 !important; background: transparent !important; padding: 4px !important; outline: none; }
.chip-input #c-crew-chips { display: contents; }
.name-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; border-radius: 999px; background: var(--hull-3); color: var(--ink); font-size: 13px; }
.name-chip button { border: 0; background: none; color: var(--ink-faint); font-size: 16px; line-height: 1; padding: 0 4px; cursor: pointer; }
.shared-by { color: var(--sea); }

/* Voice catch log (v1.55) */
.voice-btn { display: inline-flex; align-items: center; gap: 6px; }
.voice-btn svg { flex: none; }
#log-voice { padding: 0 10px; margin-right: 6px; }
.fab-voice { width: 52px; height: 52px; padding: 0; justify-content: center; right: calc(220px + env(safe-area-inset-right, 0px)); background: var(--hull-2); color: var(--accent); border: 1px solid var(--accent); }
body.spot-open .fab-voice { display: none; }
@media (max-width: 720px) {
  .fab-voice { right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(150px + var(--sb)); width: 48px; height: 48px; }
  .hint { bottom: calc(216px + var(--sb)); }
  body.view-open .fab-voice { display: none; }
  .maplibregl-ctrl-bottom-right { bottom: calc(206px + var(--sb)); }
}
.voice-dialog { width: min(460px, calc(100vw - 24px)); box-sizing: border-box; }
.voice-dialog form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.voice-dialog .row { flex-wrap: wrap; gap: 8px; }
.voice-mic { align-self: center; width: 96px; height: 96px; border-radius: 999px; border: 0; background: var(--hull-3); color: var(--ink-dim); cursor: pointer; display: grid; place-items: center; }
.voice-mic.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: voice-pulse 1.4s infinite; }
@keyframes voice-pulse { 70% { box-shadow: 0 0 0 18px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .voice-mic.on { animation: none; } }
.voice-state { text-align: center; margin: 0; min-height: 1.2em; }
.voice-dialog textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--hull-2); color: var(--ink); font: inherit; resize: vertical; }
.voice-got b { color: var(--sea); font-weight: 600; }

/* Phone and desktop check (v1.56) */
.mig-top input[type=range] { min-width: 0; height: 28px; }
/* The start hint never sits on top of the seasons bar or the round buttons */
body:has(#mig-bar:not([hidden])) .hint { display: none; }
/* Desktop too: a side panel has its own log and microphone buttons, so the floating ones step aside */
body.view-open .fab, body.view-open .fab-voice { display: none; }
@media (max-width: 720px) {
  .mig-top { gap: 6px; }
  .mig-month { min-width: 56px; }
  .mig-bar .mig-drag { display: none; }
  .sheet-grip { height: 30px; }
  .sheet-grip::after { top: 12px; }
  #log-voice { min-height: 36px; }
  #sync-line #sync-line-btn, #sync-box #sync-forgot { display: inline-block; padding: 8px 4px; margin: -8px -4px; }
  .focus-chip .icon-btn { width: 36px; height: 36px; }
  .focus-chip .focus-name { min-height: 36px; }
  /* The layers sheet covers the bottom of the screen: the round buttons wait until it closes */
  body:has(#layers-pop:not([hidden])) .fab, body:has(#layers-pop:not([hidden])) .fab-voice, body:has(#layers-pop:not([hidden])) .angler-ctrl { display: none; }
}

/* Stats box on the map (v1.58) */
.statsbox { position: fixed; z-index: 4; top: calc(68px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: 286px; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px;
  background: color-mix(in srgb, var(--hull) 92%, transparent); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(8px); box-shadow: 0 12px 30px #0008; }
.statsbox .k { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; }
.statsbox .v { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.05; }
.statsbox .v small { font-size: 14px; color: var(--ink-dim); font-weight: 600; }
.statsbox .v.sb-text { font-size: 18px; padding-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.statsbox .s { font-size: 12px; color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.statsbox .s.up { color: var(--good); }
.sb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.sb-head .who { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sb-head .who span { color: var(--sea); font-family: var(--font-data); font-size: 12px; font-weight: 400; }
.sb-area { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.sb-period, .sb-modes { display: inline-flex; gap: 4px; flex: none; }
.sb-period button, .sb-modes button { min-height: 26px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink-dim); font: inherit; font-size: 12px; cursor: pointer; }
.sb-period button.on, .sb-modes button.on { border-color: var(--accent); color: var(--ink); }
.sb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sb-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.statsbox .tile { background: var(--hull-2); border-radius: 8px; padding: 7px 9px; min-width: 0; }
.sb-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.sb-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; align-items: end; height: 28px; }
.sb-bars i { background: var(--sea); opacity: .55; border-radius: 2px 2px 0 0; }
.sb-bars i.hi { background: var(--accent); opacity: 1; }
.sb-mlab { display: grid; grid-template-columns: repeat(12, 1fr); font-size: 11px; color: var(--ink-faint); text-align: center; font-family: var(--font-data); }
/* One line */
.statsbox.sb-strip { width: auto; flex-direction: row; align-items: center; padding: 0 6px 0 0; border-radius: 999px; gap: 0; }
.sb-line { display: flex; align-items: center; gap: 14px; padding: 6px 4px 6px 16px; border: 0; background: none; color: var(--ink-dim); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.sb-line b { font-family: var(--font-display); font-size: 20px; color: var(--ink); font-weight: 700; }
.sb-line .sb-more { color: var(--sea); font-size: 18px; }
.sb-x { width: 28px; height: 28px; border-radius: 999px; border: 0; background: none; color: var(--ink-faint); font-size: 18px; cursor: pointer; }
/* Back button when the box is closed */
.stats-open { position: fixed; z-index: 4; top: calc(68px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--hull) 92%, transparent); color: var(--ink-dim); display: grid; place-items: center; cursor: pointer; }
/* Out of the way while a panel, the profile or a pin pick is up */
body.view-open .statsbox, body.view-open .stats-open, body.picking .statsbox, body.picking .stats-open { display: none !important; }
@media (max-width: 720px) {
  .statsbox { top: calc(66px + env(safe-area-inset-top, 0px)); left: max(16px, env(safe-area-inset-left, 0px)); right: auto; width: auto; max-width: calc(100vw - 88px); }
  .stats-open { top: calc(128px + env(safe-area-inset-top, 0px)); width: 44px; height: 44px; }
  /* Chip, and the scorecard it opens */
  .statsbox.sb-chip { padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
  .sb-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--hull) 92%, transparent); color: var(--ink-dim); font: inherit; font-size: 13px; cursor: pointer; backdrop-filter: blur(8px); }
  .sb-chip b { font-family: var(--font-display); font-size: 19px; color: var(--ink); }
  .sb-card { margin-top: 8px; width: calc(100vw - 88px); display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: color-mix(in srgb, var(--hull) 94%, transparent); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px #0008; }
  .sb-card .sb-foot { flex-wrap: wrap; }
  /* Low card with what the map shows */
  .statsbox.sb-peek { top: auto; bottom: calc(80px + var(--sb)); left: 12px; right: 12px; max-width: none; gap: 6px; padding: 9px 12px; }
  .sb-peek .sb-head .who { display: flex; flex-direction: column; line-height: 1.2; }
  .sb-peek .sb-head .who span { overflow: hidden; text-overflow: ellipsis; }
  body.stats-peek .fab { bottom: calc(196px + var(--sb)); }
  body.stats-peek .fab-voice { bottom: calc(262px + var(--sb)); }
  body.stats-peek .maplibregl-ctrl-bottom-right { bottom: calc(318px + var(--sb)); }
  body.stats-peek .hint { display: none; }
  /* The seasons bar takes the bottom of the screen: the low card waits */
  body:has(#mig-bar:not([hidden])) .statsbox.sb-peek { display: none; }
}
@media (max-width: 720px) {
  /* Small text links get a full finger-sized tap area */
  .sb-foot .linklike, .pf-body .linklike { display: inline-block; padding: 8px 2px; margin: -8px -2px; }
}
@media (max-width: 720px) {
  /* Full-screen sheet: a compact header leaves the room to the content */
  .panel.full .panel-head { padding-top: 0; padding-bottom: 6px; }
  .panel.full .panel-head h2 { font-size: 22px; }
  .panel.full .panel-head .eyebrow, .panel.full .panel-head .spot-meta { display: none; }
}

/* Species collection (v1.61) */
.pf-views { display: flex; gap: 6px; }
.pf-views button { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid #2c4b5c; background: transparent; color: var(--ink); cursor: pointer; font: inherit; font-weight: 600; }
.pf-views button[aria-selected="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.pf-views .n { font-family: var(--font-data); font-size: 13px; color: var(--ink-faint); font-weight: 400; }
.pf-coll-sec { display: flex; flex-direction: column; gap: 10px; }
.pf-coll-sec h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; }
.pf-waters { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pf-water { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 10px 12px; border-radius: var(--r); background: var(--hull-2); }
.pf-water .n { font-family: var(--font-data); font-size: 13px; color: var(--ink-dim); }
.pf-prog { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--hull-3); overflow: hidden; }
.pf-prog i { display: block; height: 100%; background: var(--sea); border-radius: 999px; }
.pf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pf-card { display: flex; flex-direction: column; gap: 3px; padding: 8px; border-radius: var(--r); border: 1px solid var(--line); background: var(--hull-2); color: var(--ink); text-align: left; font: inherit; cursor: pointer; min-width: 0; }
.pf-card:hover { border-color: var(--sea); }
.pf-card b { font-size: 15px; line-height: 1.2; }
.pf-card .fine { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-ph { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--hull-3); display: grid; place-items: center; margin-bottom: 4px; }
.pf-ph img { width: 100%; height: 100%; object-fit: cover; }
.pf-initial { font-family: var(--font-display); font-weight: 700; font-size: 40px; color: var(--ink-faint); }
.pf-count { position: absolute; right: 6px; bottom: 6px; padding: 1px 7px; border-radius: 999px; background: #000a; font-family: var(--font-data); font-size: 12px; }
.pf-card.todo { opacity: .7; border-style: dashed; }
.pf-card.todo .pf-initial { font-size: 32px; }
.pf-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.pf-badges i { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-dim); }
.pf-badges i.gold { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); color: var(--accent); }
.pf-badges i.new { border-color: color-mix(in srgb, var(--good) 60%, var(--line)); color: var(--good); }
@media (max-width: 720px) { .pf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* What you need to fish here (v1.62) */
.lic-box h3 { margin: 0; }
.lic-who button { min-height: 32px; padding: 0 10px; font-size: 13px; }
.lic-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lic-doc { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px; border-radius: var(--r); background: var(--hull-2); }
.lic-doc.opt { background: none; border: 1px dashed var(--line); }
.lic-n { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.lic-doc.opt .lic-n { background: var(--hull-3); color: var(--ink-dim); }
.lic-doc p { margin: 4px 0 0; }
.lic-doc .btn { margin-top: 6px; }
.lic-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.lic-facts span { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.lic-note { padding-left: 8px; border-left: 2px solid var(--sea); }

/* Wind on the map (v1.65) */
.wind-canvas { position: fixed; z-index: 1; pointer-events: none; }
.wind-bar { position: fixed; z-index: 4; left: 50%; transform: translateX(-50%); bottom: calc(16px + var(--sb)); width: min(520px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--hull); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.wind-row { display: flex; align-items: center; gap: 10px; }
.wind-row input[type=range] { flex: 1; min-width: 0; min-height: 32px; accent-color: var(--accent); }
.wind-row .icon-btn { flex: none; width: 34px; height: 34px; padding: 0; }
.wind-when { display: flex; flex-direction: column; min-width: 118px; line-height: 1.2; }
.wind-when b { font-size: 14px; white-space: nowrap; }
.wind-legend { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; }
.wind-legend i { height: 8px; border-radius: 999px; }
.wind-legend span { grid-column: 1; display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-dim); }
.wind-legend em { font-style: normal; }
.wind-legend small { grid-row: 1 / span 2; grid-column: 2; font-size: 11px; color: var(--ink-dim); }
.wind-bar .fine { margin: 0; font-size: 11px; }
@media (max-width: 720px) {
  .wind-bar { bottom: auto; top: calc(130px + env(safe-area-inset-top, 0px)); }
  .wind-when { min-width: 96px; }
}
.wind-bg { z-index: 1; image-rendering: auto; transition: opacity .2s; }
.wind-pick { display: flex; gap: 6px; }
.wind-pick select { flex: 1; min-width: 0; min-height: 32px; padding: 4px 6px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--hull-2); color: var(--ink); font: inherit; font-size: 12px; }
#wind-here:empty { display: none; }
@media (max-width: 720px) { #wind-here { display: none; } }
.wind-lines { z-index: 2; }

/* Frosted glass on desktop (v1.67): every floating panel shows the map through a blur.
   One recipe; inside a glass panel the inner surfaces turn see-through too. Phones keep the solid look (battery, legibility in sun). */
@media (min-width: 721px) and (hover: hover) {
  :root { --glass: color-mix(in srgb, var(--hull) 58%, transparent); --glass-edge: rgba(255, 255, 255, .09); --glass-blur: blur(22px) saturate(1.5); }
  .panel, .profile, dialog, .layers-pop, .mig-bar, .gibs-chip, .wind-bar, .statsbox, .follow-menu, .search-results, .focus-chip, .seg, .layers-btn, .search input, .stats-open {
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), transparent 90px), var(--glass) !important;
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border-color: var(--glass-edge) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 44px rgba(0, 0, 0, .38);
  }
  .panel, .profile, dialog, .layers-pop, .mig-bar, .gibs-chip, .wind-bar, .statsbox, .follow-menu, .search-results {
    --hull-2: color-mix(in srgb, #12232e 55%, transparent);
    --hull-3: color-mix(in srgb, #1a3140 62%, transparent);
    --line: rgba(255, 255, 255, .1);
  }
  dialog::backdrop { background: rgba(4, 12, 16, .35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
  .profile { background: color-mix(in srgb, #0b161d 72%, transparent) !important; }
  .seg button.on, .layer-switch button.on { background: rgba(255, 255, 255, .12); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (min-width: 721px) { :root { --glass: color-mix(in srgb, var(--hull) 94%, transparent); } }
}

.wind-pick { flex-wrap: wrap; }
.wind-style { flex: none; }
.wind-style button { min-height: 30px; padding: 0 10px; font-size: 12px; }

/* Bite outlook (v1.71) */
.outlook { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--r); background: var(--hull-2); }
.ol-bars { display: flex; align-items: flex-end; gap: 1px; height: 54px; }
.ol-bars i { flex: 1; min-width: 0; border-radius: 2px 2px 0 0; background: var(--hull-3); }
.ol-bars i.mid { background: var(--sea); }
.ol-bars i.hi { background: var(--accent); }
.ol-days { position: relative; height: 14px; font-size: 11px; color: var(--ink-faint); }
.ol-days span { position: absolute; top: 0; white-space: nowrap; }
.ol-why summary { cursor: pointer; font-weight: 600; min-height: 28px; display: flex; align-items: center; }
.ol-why ul { margin: 4px 0 6px; padding-left: 18px; font-size: 13px; }
.ol-why li.bad b { color: var(--bad); }

/* Photo catch, catch heatmap, currents switch (v1.71) */
.fab-photo { right: calc(284px + env(safe-area-inset-right, 0px)); color: var(--sea); border-color: var(--sea); }
.heat-chip { position: fixed; z-index: 4; left: max(16px, env(safe-area-inset-left, 0px)); top: calc(124px + env(safe-area-inset-top, 0px)); width: min(340px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; background: color-mix(in srgb, var(--hull) 92%, transparent); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(10px); }
.heat-chip .icon-btn { flex: none; width: 30px; height: 30px; padding: 0; }
.heat-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.heat-pick select { flex: 1; min-width: 90px; min-height: 32px; padding: 4px 6px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--hull-2); color: var(--ink); font: inherit; font-size: 12px; }
.heat-chip .fine { margin: 0; font-size: 11px; }
.wind-what { flex: none; }
.wind-what button { min-height: 30px; padding: 0 10px; font-size: 12px; }
@media (max-width: 720px) {
  .fab-photo { right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(206px + var(--sb)); }
  .heat-chip { top: calc(130px + env(safe-area-inset-top, 0px)); }
}
@media (min-width: 721px) and (hover: hover) { .heat-chip { background: var(--glass) !important; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-color: var(--glass-edge) !important; } }
@media (max-width: 720px) { body.stats-peek .fab-photo { bottom: calc(318px + var(--sb)); } }

/* 3D button (v1.72) */
.btn-3d { min-width: 46px; justify-content: center; padding: 0 12px; font-family: var(--font-display); font-size: 16px; letter-spacing: .04em; }
.btn-3d.on { background: var(--accent) !important; color: var(--accent-ink); border-color: var(--accent) !important; }

/* Wind bar pickers: on a narrow bar they take their own row instead of squeezing (v1.73) */
.wind-pick select { flex: 1 1 150px; }

/* UX pass (v1.83) */
/* Spot panel tabs: all six on one row on a computer */
@media (min-width: 721px) {
  #panel .tabs { display: flex; justify-content: space-between; padding: 0 6px; }
  #panel .tabs button { flex: 1 1 auto; }
}
/* Credits fold into the small "i" button instead of covering the map */
.maplibregl-ctrl-attrib.maplibregl-compact:not([open]) .maplibregl-ctrl-attrib-inner { display: none; }
/* Computer: an open side panel would hide the map buttons, so they move to its left */
@media (min-width: 721px) {
  body.view-open .maplibregl-ctrl-bottom-right { right: calc(460px + env(safe-area-inset-right, 0px)); }
}
/* Date pickers fold under the quick choices; the best day comes first */
.date-pick summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; color: var(--ink-dim); }
.date-pick summary b { color: var(--ink); font-weight: 600; margin-left: 6px; }
.date-pick[open] summary { margin-bottom: 6px; }
/* Catch log: backup, import and sharing tools behind one button */
.log-more summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--ink-dim); list-style: none; }
.log-more summary::-webkit-details-marker { display: none; }
.log-more[open] summary { color: var(--ink); border-color: var(--accent); margin-bottom: 8px; }
@media (max-width: 720px) {
  /* Phone: pinch zooms, so no + and - buttons; the compass and the angler get finger-sized */
  .maplibregl-ctrl-zoom-in, .maplibregl-ctrl-zoom-out { display: none !important; }
  .maplibregl-ctrl-group:has(> .maplibregl-ctrl-zoom-in) { display: none !important; }
  .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button { width: 44px; height: 44px; }
  .maplibregl-ctrl-bottom-right { bottom: calc(262px + var(--sb)); }
  body.stats-peek .maplibregl-ctrl-bottom-right { bottom: calc(374px + var(--sb)); }
  /* Map pin coordinates on a catch card get a finger-sized tap area */
  #log-list button.coords { padding: 14px 0 !important; margin: -14px 0; }
  /* The first tip sits left of the round buttons, never under them */
  .hint { left: max(16px, env(safe-area-inset-left, 0px)); right: calc(88px + env(safe-area-inset-right, 0px)); bottom: calc(84px + var(--sb)); transform: none; width: auto; max-width: none; text-align: left; }
}

/* Rankings (v1.84) */
#log-tools.ranks > input, #log-tools.ranks > .row, #log-tools.ranks > .log-more { display: none; }
.rk-controls { display: flex; flex-direction: column; gap: 8px; }
.rk-controls .seg { align-self: flex-start; max-width: 100%; overflow-x: auto; }
.rk-controls .seg button { min-height: 40px; white-space: nowrap; }
.rk-controls .row { display: flex; flex-wrap: wrap; gap: 8px; }
.rk-controls select { flex: 1 1 140px; min-height: 44px; min-width: 0; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--hull-2); color: var(--ink); }
.rk-head { margin: 6px 0 0; font-size: 15px; }
.rk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rk-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--hull-2); border: 1px solid var(--line); border-radius: 10px; min-height: 56px; }
.rk-row.me { border-color: #5fc4c0; }
.rk-n { flex: none; width: 26px; text-align: center; font-weight: 700; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.rk-row:nth-child(-n+3) .rk-n { color: var(--ink); }
.rk-img { flex: none; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--hull-3); display: grid; place-items: center; color: #5fc4c0; position: relative; }
.rk-img.none { background: transparent; }
.rk-img .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rk-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rk-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-main .fine { margin: 0; }
.rk-val { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.rk-foot { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.rk-foot .fine { margin: 0; }

/* Four places (v1.87): Account and settings live in Me; Patterns is a Me view */
.pf-bar { justify-content: space-between; gap: 10px; }
.pf-pat { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.pf-patfish { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.pf-patfish select { min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--hull-2); color: var(--ink); font: inherit; font-weight: 400; min-width: 0; flex: 0 1 280px; }
.pf-patterns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.pf-patterns .pat-block:first-child { grid-column: 1 / -1; }
#rk-retry { min-height: 44px; padding: 0 6px; }

/* Map menu (v1.88): base map and 3D inside, switches in groups; reset view button */
@media (min-width: 721px) { .layers-pop { max-height: calc(100vh - 150px); overflow-y: auto; } }
@media (max-width: 720px) { .layers-pop { max-height: calc(100dvh - 250px - env(safe-area-inset-top, 0px) - var(--sb)); } }
.lp-group { margin: 14px 0 2px; font-family: var(--font-data); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--sea); }
.lp-base-row { display: flex; align-items: center; gap: 8px; margin: 6px 0 8px; }
.lp-base-row .lp-base { flex: 1; margin: 0; }
.lp-base-row .lp-base button { flex: 1; }
.lp-base-row .btn-3d { min-height: 44px; }
.reset-ctrl button { display: grid; place-items: center; }
/* v1.90: map buttons 40 px on computers (MapLibre default 29 px was hard to hit) */
@media (min-width: 721px) { .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button { width: 40px; height: 40px; } }
.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group { border-radius: 10px; overflow: hidden; }
.reset-ctrl svg { transition: transform .2s; }
@media (prefers-reduced-motion: reduce) { .reset-ctrl svg { transition: none; } }
@media (max-width: 720px) { .reset-ctrl button { width: 44px !important; height: 44px !important; } }
body.menu-open .hint { display: none; }

/* Spot panel (v1.89): five tabs; the Area guide's parts sit under the tab they belong to; one bottom bar */
.guide-slot { display: none; flex-direction: column; gap: 16px; margin-top: 16px; }
.guide-slot:empty { margin: 0; }
.pane.on + .guide-slot { display: flex; }
.guide-from { margin-top: 8px; }
.panel-foot { align-items: center; }
.panel-foot .foot-icon { flex: none; width: 48px; height: 48px; }
.panel-foot { position: relative; }
.panel-foot .follow-wrap { position: static; }
.panel-foot .follow-menu { right: 16px; max-width: calc(100% - 32px); }

/* Type and polish (v1.90): Manrope everywhere; buttons never break onto two lines */
.panel-head .btn, .panel-foot .btn { white-space: nowrap; }
.btn, .chip, .tabs button { letter-spacing: -.005em; }

/* ================= Past catches by voice or from a file (v1.91, direction "Open water") =================
   Tokens first: dark is what the app uses today; light is ready for when the whole app gets a light mode. */
.vi, .vi-entry, .vi-onb {
  --vi-bg: #0a1821; --vi-card: #11242f; --vi-card-2: #17303d; --vi-line: rgba(150, 200, 220, .14); --vi-ink: #eef4f7; --vi-ink-2: #b4c7d2; --vi-ink-3: #8aa3b1;
  --vi-brand: #ffb347; --vi-brand-2: #f28c28; --vi-on-brand: #1d1003; --vi-glow: rgba(255, 179, 71, .26); --vi-tok: rgba(255, 255, 255, .08); --vi-ok: #5fd39a; --vi-warn: #f2c94c;
  --vi-r-chip: 999px; --vi-r-field: 14px; --vi-r-card: 20px; --vi-r-sheet: 28px; --vi-ease: cubic-bezier(.2, .8, .2, 1);
}
.vi[data-theme="light"], [data-theme="light"] .vi-entry, [data-theme="light"] .vi-onb {
  --vi-bg: #e9f0f3; --vi-card: #ffffff; --vi-card-2: #f2f6f8; --vi-line: rgba(13, 40, 55, .12); --vi-ink: #0b1f2b; --vi-ink-2: #38505e; --vi-ink-3: #566d7c;
  --vi-brand: #c96a0c; --vi-brand-2: #a85508; --vi-on-brand: #ffffff; --vi-glow: rgba(201, 106, 12, .2); --vi-tok: rgba(11, 31, 43, .07); --vi-ok: #13864f; --vi-warn: #8a5a00;
}
.vi-i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#vi-dialog { padding: 0; border: 1px solid var(--vi-line); background: var(--vi-bg); color: var(--vi-ink); width: min(460px, calc(100vw - 32px)); height: min(800px, calc(100dvh - 48px)); max-height: none; overflow: hidden; border-radius: var(--vi-r-sheet); box-shadow: 0 30px 80px #000a; }
#vi-dialog::backdrop { background: rgba(3, 10, 14, .72); backdrop-filter: blur(6px); }
.vi-body { display: flex; flex-direction: column; height: 100%; }
.vi-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 6px; }
.vi-head h2 { flex: 1; margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.vi-round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; background: var(--vi-tok); color: var(--vi-ink-2); cursor: pointer; flex: none; }
.vi-round.sm { width: 44px; height: 44px; background: transparent; }
.vi-round:hover { color: var(--vi-ink); }
.vi-scroll { flex: 1; overflow-y: auto; padding: 4px 16px 16px; overscroll-behavior: contain; }
.vi-foot, .vi-ctl { flex: none; padding: 12px 16px calc(16px + var(--sb)); display: flex; gap: 10px; border-top: 1px solid var(--vi-line); background: var(--vi-bg); }
.vi-btn { min-height: 52px; padding: 0 20px; border-radius: var(--vi-r-chip); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 16px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform 120ms var(--vi-ease), filter 120ms; }
.vi-btn:active { transform: scale(.98); }
.vi-btn.pri { flex: 1; background: linear-gradient(180deg, var(--vi-brand), var(--vi-brand-2)); color: var(--vi-on-brand); box-shadow: 0 8px 20px var(--vi-glow); }
.vi-btn.sec { background: var(--vi-card); border-color: var(--vi-line); color: var(--vi-ink); }
.vi-btn.wide { width: 100%; margin-top: 10px; }
.vi-btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.vi-btn:focus-visible, .vi-round:focus-visible, .vi-li:focus-visible, .vi-stat:focus-visible, .vi-card-main:focus-visible { outline: 2px solid var(--vi-brand); outline-offset: 2px; }
/* Recording */
.vi-meter-wrap { padding: 18px 0 4px; }
.vi-meter { height: 96px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.vi-meter i { width: 5px; height: 100%; border-radius: 3px; background: linear-gradient(var(--vi-brand), var(--vi-brand-2)); transform: scaleY(.08); transform-origin: center; transition: transform 90ms linear; }
.vi-status { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--vi-ink-3); text-transform: uppercase; margin-top: 8px; }
.vi-rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5d5d; box-shadow: 0 0 0 4px rgba(255, 93, 93, .18); }
.vi-lang { min-width: 44px; height: 32px; margin-left: 6px; border-radius: 999px; border: 1px solid var(--vi-line); background: var(--vi-tok); color: var(--vi-ink); font-weight: 800; font-size: 12px; letter-spacing: .06em; cursor: pointer; position: relative; }
.vi-lang::after { content: ""; position: absolute; inset: -6px; }
.vi-tx { margin: 18px 0 0; font-size: 21px; line-height: 1.7; font-weight: 500; color: var(--vi-ink-2); letter-spacing: -.01em; min-height: 120px; }
.vi-ph { color: var(--vi-ink-3); font-size: 17px; line-height: 1.55; }
.vi-tok { padding: 3px 8px; border-radius: 10px; background: var(--vi-tok); color: var(--vi-ink); font-weight: 750; -webkit-box-decoration-break: clone; box-decoration-break: clone; box-shadow: inset 0 -2px 0 var(--vi-brand); }
.vi-tok-k { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--vi-ink-3); margin-left: 6px; vertical-align: 4px; }
.vi-caret { display: inline-block; width: 2px; height: 22px; margin-left: 3px; background: var(--vi-brand); vertical-align: -4px; animation: vi-blink 1s steps(2) infinite; }
@keyframes vi-blink { 50% { opacity: 0; } }
.vi-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.vi-chip { min-height: 36px; padding: 0 12px; border-radius: var(--vi-r-chip); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; background: var(--vi-tok); color: var(--vi-ink-2); border: 1.5px solid transparent; }
.vi-chip .vi-i { width: 16px; height: 16px; }
.vi-chip.ok .vi-i { color: var(--vi-ok); }
.vi-chip.miss { background: transparent; border-color: var(--vi-brand); color: var(--vi-brand); }
.vi-chip.opt { background: transparent; border-color: var(--vi-line); color: var(--vi-ink-3); }
.vi-chip.opt small { font-weight: 600; }
.vi-chip.count { background: var(--vi-card-2); color: var(--vi-ink); }
.vi-chip.pick { cursor: pointer; min-height: 44px; }
.vi-hint { color: var(--vi-ink-3); font-size: 14px; line-height: 1.5; margin: 16px 0 0; }
.vi-hint.top { margin: 0 0 12px; }
.vi-ctl { justify-content: space-between; align-items: center; border-top: 0; padding-top: 4px; }
.vi-ghost { width: 96px; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: none; color: var(--vi-ink-2); font-size: 12px; font-weight: 700; cursor: pointer; border-radius: 16px; }
.vi-ghost .vi-i { width: 22px; height: 22px; padding: 0; }
.vi-ghost:hover { color: var(--vi-ink); background: var(--vi-tok); }
.vi-stop { width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--vi-brand), var(--vi-brand-2)); box-shadow: 0 0 0 10px var(--vi-glow), 0 12px 30px var(--vi-glow); }
.vi-stop span { width: 26px; height: 26px; border-radius: 7px; background: var(--vi-on-brand); }
/* States */
.vi-state { text-align: center; padding: 28px 8px 8px; }
.vi-state-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: var(--vi-card-2); color: var(--vi-brand); }
.vi-state-ic .vi-i { width: 28px; height: 28px; }
.vi-state.ok .vi-state-ic { color: var(--vi-ok); }
.vi-state h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.vi-state p { margin: 8px auto 0; max-width: 34ch; color: var(--vi-ink-2); line-height: 1.5; }
.vi-state p.vi-err-detail { margin-top: 14px; font-size: 13px; color: var(--vi-ink-2); overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.vi-field { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--vi-ink-2); }
#vi-dialog .vi-field input, #vi-dialog .vi-field textarea, #vi-dialog .vi-col select { font: inherit; font-size: 16px; font-weight: 500; color: var(--vi-ink); background: var(--vi-card); border: 1px solid var(--vi-line); border-radius: var(--vi-r-field); padding: 12px 14px; min-height: 48px; }
#vi-dialog .vi-field textarea { resize: vertical; line-height: 1.5; }
.vi-err { color: #ff8f7a; font-size: 14px; margin: 8px 0 0; }
.vi-banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; margin-bottom: 12px; background: var(--vi-card-2); color: var(--vi-ink); }
.vi-banner .vi-i { margin-top: 1px; }
.vi-banner.dup { box-shadow: inset 3px 0 0 var(--vi-warn); }
.vi-banner.dup .vi-i { color: var(--vi-warn); }
.vi-banner.off .vi-i { color: var(--vi-ink-2); }
/* Confirm: the catch as a card, details as a list */
.vi-hero { border-radius: 22px; background: var(--vi-card); border: 1px solid var(--vi-line); overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.vi-hero-map { height: 132px; position: relative; overflow: hidden; background: #0d2a3a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='132' viewBox='0 0 240 132'%3E%3Cg fill='none' stroke='%232a5a73' stroke-width='1'%3E%3Cpath d='M-10 80C40 50 80 100 130 72S210 30 250 52'/%3E%3Cpath d='M-10 92C40 62 80 112 130 84S210 42 250 64' opacity='.7'/%3E%3Cpath d='M-10 104C40 74 80 124 130 96S210 54 250 76' opacity='.5'/%3E%3Cpath d='M-10 68C40 38 80 88 130 60S210 18 250 40' opacity='.5'/%3E%3C/g%3E%3C/svg%3E") center / cover; }
.vi-map { position: absolute; inset: 0; }
.vi-map img { position: absolute; width: 256px; height: 256px; max-width: none; }
.vi-pin { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--vi-brand); border: 3px solid #fff; box-shadow: 0 0 0 8px var(--vi-glow), 0 2px 8px #0008; }
.vi-map-note { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(6, 18, 26, .78); color: #eef4f7; font-size: 13px; font-weight: 700; }
.vi-map-note .vi-i { width: 16px; height: 16px; color: var(--vi-brand); }
.vi-hero-body { padding: 14px 16px 16px; }
.vi-sp { font-size: 24px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.vi-sci { font-size: 13px; font-style: italic; color: var(--vi-ink-3); margin-top: 3px; }
.vi-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vi-choice { min-height: 48px; padding: 6px 14px; border-radius: 14px; border: 1px solid var(--vi-line); background: var(--vi-card-2); color: var(--vi-ink); font-weight: 700; text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: center; }
.vi-choice small { font-weight: 500; font-style: italic; color: var(--vi-ink-3); font-size: 12px; }
.vi-choice.other { background: transparent; color: var(--vi-brand); border-color: var(--vi-brand); }
.vi-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.vi-stat { min-height: 64px; padding: 10px 12px; border-radius: 14px; background: var(--vi-card-2); border: 0; text-align: left; color: var(--vi-ink); cursor: pointer; display: flex; flex-direction: column; justify-content: center; }
.vi-stat small { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--vi-ink-3); }
.vi-stat b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.vi-stat em { font-style: normal; font-size: 11px; color: var(--vi-ink-3); font-weight: 600; }
.vi-stat.add { background: transparent; box-shadow: inset 0 0 0 1.5px var(--vi-line); color: var(--vi-brand); align-items: center; }
.vi-stat.add b { font-size: 14px; }
.vi-note { color: var(--vi-ink-3); font-size: 13px; line-height: 1.45; margin: 10px 4px 0; }
.vi-list { margin-top: 12px; border-radius: 18px; background: var(--vi-card); border: 1px solid var(--vi-line); overflow: hidden; }
.vi-li { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--vi-line); background: none; color: var(--vi-ink); text-align: left; cursor: pointer; }
.vi-li:last-child { border-bottom: 0; }
.vi-li:hover { background: var(--vi-tok); }
.vi-li-v { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.vi-li-v small { display: block; font-size: 12px; font-weight: 600; color: var(--vi-ink-3); }
.vi-li .add { color: var(--vi-brand); }
.vi-li .chev { color: var(--vi-ink-3); }
.vi-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, #6d5bd0, #a58cf5); color: #fff; flex: none; }
.vi-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--vi-card-2); color: var(--vi-ink-2); flex: none; overflow: hidden; }
.vi-thumb { width: 100%; height: 100%; object-fit: cover; }
.vi-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 16px; margin-top: 12px; }
/* Review list */
.vi-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vi-card { display: flex; align-items: center; gap: 4px; border-radius: 18px; background: var(--vi-card); border: 1px solid var(--vi-line); padding-right: 4px; }
.vi-card.dup { box-shadow: inset 3px 0 0 var(--vi-warn); }
.vi-card-main { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 0; background: none; color: var(--vi-ink); text-align: left; cursor: pointer; border-radius: 18px; }
.vi-card-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--vi-card-2); color: var(--vi-brand); flex: none; }
.vi-card-v { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vi-card-v b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.vi-card-v span, .vi-card-v small { font-size: 13px; color: var(--vi-ink-2); }
.vi-card-v small { color: var(--vi-ink-3); }
.vi-card-miss { color: var(--vi-brand) !important; font-weight: 700; font-size: 12px !important; }
.vi-card-miss.dup { color: var(--vi-warn) !important; }
/* Edit */
.vi-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vi-results { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.vi-res { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--vi-line); background: var(--vi-card); color: var(--vi-ink); text-align: left; cursor: pointer; font-weight: 700; }
.vi-res small { display: block; font-weight: 500; font-size: 12px; color: var(--vi-ink-3); }
.vi-res .vi-i { color: var(--vi-brand); }
/* File */
.vi-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; margin-top: 6px; border-radius: 22px; background: var(--vi-card); border: 1px solid var(--vi-line); text-align: center; cursor: pointer; transition: border-color 150ms, background 150ms; }
.vi-drop.over, .vi-drop:hover { border-color: var(--vi-brand); background: var(--vi-card-2); }
.vi-drop-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--vi-card-2); color: var(--vi-brand); margin-bottom: 6px; }
.vi-drop b { font-size: 17px; }
.vi-drop small { color: var(--vi-ink-3); font-size: 13px; max-width: 30ch; line-height: 1.45; }
.vi-cols { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.vi-col { flex: 0 0 168px; border-radius: 16px; background: var(--vi-card); border: 1px solid var(--vi-line); overflow: hidden; }
.vi-col-h { padding: 10px; display: flex; flex-direction: column; gap: 6px; background: var(--vi-card-2); }
.vi-col-h small { font-size: 12px; font-weight: 800; color: var(--vi-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#vi-dialog .vi-col select { min-height: 44px; padding: 8px 10px; font-size: 14px; }
.vi-col-c { padding: 8px 10px; font-size: 13px; border-top: 1px solid var(--vi-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 34px; }
/* Entry points: the bar at the bottom of the catch log, and the first-time card */
.vi-entry { display: flex; gap: 8px; padding: 10px 14px calc(12px + var(--sb)); border-top: 1px solid var(--line); }
/* v1.96: three ways in (voice, file, photos), icon over label so all three fit a phone */
.vi-entry .vi-btn { flex: 1 1 0; min-width: 0; min-height: 56px; padding: 6px 8px; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.2; border-radius: 16px; }
.vi-entry .vi-btn span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vi-entry .vi-btn .vi-i { width: 20px; height: 20px; }
#logdrawer:has(#log-list[hidden]) .vi-entry { display: none; }
.vi-onb { margin: 4px 0 12px; padding: 20px 18px 14px; border-radius: 22px; background: linear-gradient(160deg, var(--vi-card-2), var(--vi-card)); border: 1px solid var(--vi-line); color: var(--vi-ink); }
.vi-onb-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--vi-bg); color: var(--vi-brand); margin-bottom: 12px; }
.vi-onb h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.vi-onb p { margin: 6px 0 14px; color: var(--vi-ink-2); line-height: 1.5; }
.vi-onb-row { display: flex; gap: 8px; flex-wrap: wrap; }
.vi-onb-row .vi-btn { flex: 1; min-height: 48px; font-size: 15px; }
.vi-later { display: block; margin: 8px auto 0; min-height: 44px; padding: 0 16px; border: 0; background: none; color: var(--vi-ink-3); font: inherit; font-weight: 700; cursor: pointer; }
.via-badge { margin-left: 8px; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--hull-3); color: var(--ink-dim); vertical-align: 1px; }
@media (max-width: 720px) {
  #vi-dialog { width: 100vw; height: 100dvh; max-width: none; margin: 0; border-radius: 0; border: 0; }
  .vi-head { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .vi-meter i, .vi-btn, .vi-drop { transition: none; }
  .vi-caret { animation: none; }
}

/* Rain on the map (v1.92): one time bar for radar (past 2 h) and forecast (next 48 h), like rainviewer.com */
.rain-bar { position: fixed; z-index: 4; left: 50%; transform: translateX(-50%); bottom: calc(16px + var(--sb)); width: min(560px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 10px; background: color-mix(in srgb, var(--hull) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 40px #0008; }
.rain-row { display: flex; align-items: center; gap: 12px; }
.rain-play { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: linear-gradient(180deg, #ffb347, #f28c28); color: #1d1003; box-shadow: 0 6px 16px rgba(255, 179, 71, .28); }
.rain-play svg { width: 20px; height: 20px; fill: currentColor; }
.rain-play:disabled { opacity: .45; box-shadow: none; }
.rain-when { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.rain-when b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.rain-when small { font-size: 13px; color: var(--ink-dim); }
.rain-bar[data-kind="forecast"] .rain-when small { color: #8fd6ff; }
.rain-x { width: 44px !important; height: 44px !important; border-radius: 50% !important; }
.rain-track { position: relative; }
.rain-track input[type=range] { --cut: 30%; width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.rain-track input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #5fc4c0 0 var(--cut), rgba(143, 214, 255, .35) var(--cut) 100%); }
.rain-track input[type=range]::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #5fc4c0 0 var(--cut), rgba(143, 214, 255, .35) var(--cut) 100%); }
.rain-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: #fff; border: 3px solid #f28c28; box-shadow: 0 2px 6px #0007; }
.rain-track input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #f28c28; }
.rain-now { position: absolute; top: 12px; width: 2px; height: 20px; margin-left: -1px; background: #fff; border-radius: 1px; pointer-events: none; opacity: .8; }
.rain-now::after { content: "Now"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); }
.rain-legend { display: flex; flex-direction: column; gap: 4px; }
.rain-legend i { height: 8px; border-radius: 999px; }
.rain-legend span { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-dim); }
.rain-legend b { font-weight: 700; }
.rain-bar .fine { margin: 0; font-size: 11px; color: var(--ink-dim); }
.rain-bar .fine a { color: var(--ink); }
.rain-note { color: var(--warn) !important; }
@media (max-width: 720px) {
  .rain-bar { bottom: auto; top: calc(130px + env(safe-area-inset-top, 0px)); padding: 10px 12px 8px; }
  .rain-when b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .rain-play { box-shadow: none; } }
/* v1.92 fix: the catch log's header, tabs and the voice bar keep their size; the tools scroll when the sheet is short
   (since v1.91 the voice bar left the phone's half-height sheet too small and the tab row was squeezed to nothing) */
#logdrawer > .panel-head, #logdrawer > .tabs, #logdrawer > .vi-entry { flex: none; }
#logdrawer > .log-tools { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
#logdrawer > .log-list { min-height: 96px; }

/* Hour by hour (v1.93): one forecast for the spot, the same as the wind and rain maps */
.hs-strip { display: flex; gap: 2px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.hs-cell { flex: 0 0 44px; min-height: 112px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 6px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; scroll-snap-align: start; position: relative; }
.hs-cell:hover { background: var(--hull-2); }
.hs-cell.on { background: var(--hull-3); box-shadow: inset 0 0 0 1.5px var(--accent); }
.hs-cell.nd::before { content: ""; position: absolute; left: -2px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.hs-t { font-size: 12px; font-weight: 700; color: var(--ink-dim); }
.hs-cell.nd .hs-t { color: var(--sea); }
.hs-arrow { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hs-w { font-size: 14px; font-weight: 700; }
.hs-rbox { width: 14px; height: 30px; display: flex; align-items: flex-end; border-radius: 4px; background: var(--hull-2); overflow: hidden; }
.hs-rain { display: block; width: 100%; border-radius: 3px 3px 0 0; }
.hs-clar { width: 10px; height: 10px; border-radius: 50%; }
.hs-clar.clear { background: #5fc4c0; }
.hs-clar.tinted { background: #a9b86a; }
.hs-clar.coloured { background: #c99a4a; }
.hs-clar.muddy { background: #8a5a2b; }
.hs-tide { font-size: 12px; color: var(--sea); line-height: 1; }
.hs-detail { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
.hs-src { margin: 6px 0 0; }

/* Who bites when (v1.94): a 48-hour activity curve per fish */
.who-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.who-list > li > b { font-size: 15px; cursor: pointer; }
.act-row { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.act-bars { display: flex; align-items: flex-end; gap: 1px; height: 28px; }
.act-bars i { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: var(--hull-3); }
.act-bars i.mid { background: color-mix(in srgb, var(--sea) 65%, var(--hull-3)); }
.act-bars i.hi { background: var(--sea); }
.act-bars i.sel { box-shadow: 0 0 0 1.5px var(--accent); }
.act-win b { color: var(--ink); }
.hs-top { color: var(--sea); font-weight: 700; }

/* ---------- Add from photos (v1.96) ---------- */
.vi-tips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vi-tips li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--vi-card); border: 1px solid var(--vi-line); color: var(--vi-ink-2); font-size: 14px; line-height: 1.45; }
.vi-tips .vi-i { width: 20px; height: 20px; flex: none; color: var(--vi-brand); margin-top: 1px; }
.vi-bar { height: 8px; border-radius: 999px; background: var(--vi-tok); overflow: hidden; max-width: 280px; margin: 16px auto 0; }
.vi-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--vi-brand), var(--vi-brand-2)); transition: width 200ms linear; }
.vi-ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; margin-top: 18px; }
.vi-ph-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--vi-card-2); }
.vi-ph-hero { margin: 0 0 12px; position: relative; border-radius: 22px; overflow: hidden; background: var(--vi-card-2); }
.vi-ph-hero img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.vi-ph-hero figcaption { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 700; }
.vi-card-ic img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.vi-card:has(.vi-card-pick) { flex-wrap: wrap; }
.vi-card-pick { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; }
.vi-chip.pick.other { background: transparent; border-color: var(--vi-line); color: var(--vi-ink-2); }
@media (prefers-reduced-motion: reduce) { .vi-bar i { transition: none; } }
.vi-card-ic:has(img) { width: 56px; height: 56px; }

/* ---------- Spot sheet sizes (v1.97): peek, half, full ---------- */
.spot-key { font-size: 13px; font-weight: 600; color: var(--ink-dim, #b9cad3); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-key:empty { display: none; }
.spot-fishhere { display: flex; align-items: center; gap: 8px; max-width: 100%; min-height: 36px; margin-top: 8px; padding: 0 14px 0 4px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-fishhere span { flex: none; padding: 5px 10px; border-radius: 999px; background: rgba(255, 179, 71, .2); color: #ffd18f; font-weight: 800; font-size: 12px; }
.spot-fishhere[hidden] { display: none; }
@media (max-width: 720px) {
  #panel.peek { height: 172px; }
  #panel.peek .tabs, #panel.peek .panel-body, #panel.peek .panel-foot, #panel.peek .spot-meta, #panel.peek .eyebrow { display: none; }
  #panel.peek .panel-head h2 { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #panel.peek .panel-head > div:first-child { min-width: 0; }
}
/* Shore spots: depth out from the shore (v1.97) */
.cast-prof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 6px 0 2px; }
.cast-prof span { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 10px; background: rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08); min-width: 0; }
.cast-prof small { font-size: 11px; font-weight: 700; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cast-prof b { font-size: 15px; font-weight: 800; color: var(--ink); }
.cast-prof .boat b { color: var(--ink-dim, #b9cad3); }
/* Stats chip (v1.97): one spacing, thin separators */
.sb-chip { gap: 10px; }
.sb-chip > span { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.sb-chip > i { width: 1px; height: 16px; background: rgba(255, 255, 255, .2); flex: none; }
.sb-chip b { font-size: 17px; }
/* Map credit (v1.97): small, always visible, bottom left; above any open sheet on a phone */
.map-credit { position: fixed; z-index: 4; left: max(10px, env(safe-area-inset-left, 0px)); bottom: calc(10px + var(--sb)); max-width: calc(100vw - 120px); height: 22px; padding: 0 9px; border: 0; border-radius: 11px; font: 600 11px/22px var(--font-body); color: var(--ink-dim, #b9cad3); background: rgba(14, 24, 31, .45); -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.map-credit:empty { display: none; }
@media (max-width: 720px) { .map-credit { bottom: calc(68px + var(--sb) + 8px + var(--sheet-h, 0px)); } }
.lp-credits { line-height: 1.6; }

/* ==========================================================================================================================
   Clear glass (v1.97, owner 1 Dec: direction A). One material for everything that floats over the map, on every screen size:
   frosted see-through fill, a light top edge, a soft shadow instead of a hard border. Text-bearing pieces get a denser fill
   so text stays readable (WCAG AA) over bright imagery; sheets denser still. Solid fallback without backdrop-filter or when
   the system asks for less transparency.
   ========================================================================================================================== */
:root {
  --g-blur: blur(22px) saturate(180%);
  --g-icon: rgba(18, 30, 38, .52);        /* icon-only buttons */
  --g-text: rgba(16, 27, 35, .70);        /* search, chips, credit, hints: text over the map */
  --g-sheet: rgba(13, 23, 30, .86);       /* sheets and menus: long text */
  --g-edge: inset 0 1px 0 rgba(255, 255, 255, .20), inset 0 0 0 .5px rgba(255, 255, 255, .12);
  --g-shadow: 0 10px 30px rgba(0, 0, 0, .32);
  --r-chip: 999px; --r-btn: 14px; --r-card: 16px; --r-sheet: 24px;
  --amber-hi: #ffc56b; --amber: #ffb347; --amber-lo: #f28c28;
}
.search input, .layers-btn, .sb-chip, .maplibregl-ctrl-group, .fab-voice, .hint, .map-credit, .focus-chip, .heat-chip, .gibs-chip {
  -webkit-backdrop-filter: var(--g-blur) !important; backdrop-filter: var(--g-blur) !important;
  border: 0 !important; box-shadow: var(--g-edge), var(--g-shadow) !important;
}
.layers-btn, .maplibregl-ctrl-group, .fab-voice { background: var(--g-icon) !important; }
.search input, .sb-chip, .hint, .map-credit, .focus-chip, .heat-chip, .gibs-chip { background: var(--g-text) !important; }
.search input::placeholder { color: #c3d3dc; }
.maplibregl-ctrl-group { border-radius: 24px !important; overflow: hidden; }
.maplibregl-ctrl-group button + button { border-top: 0 !important; box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .12); }
.maplibregl-ctrl-group button { background: transparent !important; }
.fab-voice svg, .layers-btn svg { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
/* Sheets and menus */
.panel, .layers-pop, .profile, .follow-menu, .search-results {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 120px), var(--g-sheet) !important;
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  border: 0 !important; box-shadow: var(--g-edge), 0 -10px 40px rgba(0, 0, 0, .35) !important;
}
.panel, .layers-pop, .profile, .follow-menu, .search-results { --hull-2: rgba(255, 255, 255, .05); --hull-3: rgba(255, 255, 255, .10); --line: rgba(255, 255, 255, .10); }
@media (max-width: 720px) { .panel, .layers-pop { border-radius: var(--r-sheet) var(--r-sheet) 0 0 !important; } }
.bottom-nav { background: rgba(10, 19, 25, .78) !important; -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); border-top: 0 !important; box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .16); }
.bottom-nav button.on { color: #fff; } .bottom-nav button.on svg { color: var(--amber); }
.sheet-grip::after { background: rgba(255, 255, 255, .32) !important; }
/* Chips: tinted glass; the chosen one amber-tinted, never just an outline */
#panel .tabs button, .filters button, .pill {
  border: 0 !important; background: rgba(255, 255, 255, .08) !important; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14); color: var(--ink-dim);
}
#panel .tabs button { min-height: 40px; border-radius: var(--r-chip); font-weight: 700; }
.filters button { min-height: 36px; padding: 0 14px; border-radius: var(--r-chip); font-weight: 600; }
#panel .tabs button.on, .filters button.on { background: rgba(255, 179, 71, .20) !important; box-shadow: inset 0 0 0 1px rgba(255, 179, 71, .55); color: #ffd18f !important; }
#panel .tabs { border-bottom: 0 !important; }
/* Buttons: primary (amber with depth), secondary (glass), tertiary (text). One radius scale, 44 px targets */
.btn { min-height: 44px; border-radius: var(--r-btn); border: 0 !important; background: rgba(255, 255, 255, .09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 .5px rgba(255, 255, 255, .12); font-weight: 700; transition: transform 120ms ease, filter 120ms ease; }
.btn.small { min-height: 36px; border-radius: 12px; }
@media (pointer: coarse) { .btn.small { min-height: 44px; } }
.btn.primary, .fab:not(.fab-voice) {
  background: linear-gradient(180deg, var(--amber-hi), var(--amber) 45%, var(--amber-lo)) !important; color: #2a1503 !important;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .55), inset 0 -2px 4px rgba(150, 70, 0, .30), 0 8px 22px rgba(242, 140, 40, .38), 0 2px 6px rgba(0, 0, 0, .3) !important;
}
.btn:active, .fab:active, .layers-btn:active, .maplibregl-ctrl-group button:active { transform: scale(.97); filter: brightness(.94); }
.btn.link, .btn.tertiary { background: none; box-shadow: none; color: var(--sea); }
.icon-btn { border: 0 !important; border-radius: 50% !important; background: rgba(255, 255, 255, .10) !important; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12); }
.list li, .kv > div, .window { border: 0 !important; border-radius: 14px; background: rgba(255, 255, 255, .05) !important; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .10); }
.toast { background: linear-gradient(180deg, var(--amber-hi), var(--amber)) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), var(--g-shadow); }
/* The chosen spot: an amber ring with a soft halo */
.spot-marker, .maplibregl-marker.spot { filter: drop-shadow(0 0 6px rgba(255, 179, 71, .6)); }
/* No glass where it cannot work or is not wanted */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --g-icon: #12232e; --g-text: #12232e; --g-sheet: #0c1820; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --g-icon: #12232e; --g-text: #12232e; --g-sheet: #0c1820; --g-blur: none; }
}
@media (prefers-reduced-motion: reduce) { .btn, .fab { transition: none; } .btn:active, .fab:active { transform: none; } }
@media (max-width: 720px) {
  /* The hint sits above the credit line, and is a glass card, not a squeezed pill (v1.97) */
  .hint { bottom: calc(110px + var(--sb)) !important; padding: 10px 14px !important; border-radius: 16px !important; line-height: 1.4; }
}

/* v1.97 fixes: depth profile labels short, values never wrap; "Fish here" only at peek */
.cast-cap { display: block; font-size: 11px; font-weight: 700; color: var(--ink-faint); margin-top: 6px; letter-spacing: .02em; }
.cast-prof b { white-space: nowrap; }
.cast-prof small { text-overflow: clip; }
.spot-fishhere { display: none !important; }
@media (max-width: 720px) { #panel.peek .spot-fishhere:not([hidden]) { display: flex !important; } }
/* The spot name block shrinks so the close button always stays in view (v1.97: the key line never wraps) */
.panel-head > div:first-child { min-width: 0; flex: 1 1 auto; }

/* ==========================================================================================================================
   v1.98 fixes after the owner's iPhone check
   ========================================================================================================================== */
/* One column of round buttons on the right, centred on one line, never on top of each other (bottom up): log a catch (56),
   say a catch (48), photo catch (48), then the angler and the compass (48 each), the scale bar above them */
@media (max-width: 720px) {
  .fab:not(.fab-voice) { right: max(16px, env(safe-area-inset-right, 0px)) !important; bottom: calc(84px + var(--sb)) !important; width: 56px; height: 56px; }
  #fab-voice { right: calc(max(16px, env(safe-area-inset-right, 0px)) + 4px) !important; bottom: calc(152px + var(--sb)) !important; width: 48px !important; height: 48px !important; }
  #fab-photo { right: calc(max(16px, env(safe-area-inset-right, 0px)) + 4px) !important; bottom: calc(212px + var(--sb)) !important; width: 48px !important; height: 48px !important; }
  .maplibregl-ctrl-bottom-right { right: calc(max(16px, env(safe-area-inset-right, 0px)) + 4px) !important; bottom: calc(272px + var(--sb)) !important; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 12px; }
  .maplibregl-ctrl-bottom-right .maplibregl-ctrl { margin: 0 !important; }
  /* The layers button (48) at the top sits on the same centre line as the column (v1.102) */
  .layer-switch { right: calc(max(16px, env(safe-area-inset-right, 0px)) + 4px) !important; }
  .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button { width: 48px !important; height: 48px !important; }
  .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group { border-radius: 24px !important; }
  body.stats-peek #fab-voice { bottom: calc(264px + var(--sb)) !important; }
  body.stats-peek #fab-photo { bottom: calc(324px + var(--sb)) !important; }
  body.stats-peek .maplibregl-ctrl-bottom-right { bottom: calc(384px + var(--sb)) !important; }
}
/* Glossier glass: a lighter see-through tint, a bright top edge and a soft sheen, like light on wet glass */
:root {
  --g-gloss: linear-gradient(180deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .08) 46%, rgba(255, 255, 255, .02) 54%, rgba(255, 255, 255, .06) 100%);
  --g-icon: rgba(24, 40, 50, .34);
  --g-blur: blur(18px) saturate(200%) brightness(1.05);
  --g-edge: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(255, 255, 255, .08);
  --g-shadow: 0 8px 24px rgba(0, 0, 0, .30), 0 1px 3px rgba(0, 0, 0, .25);
}
.layers-btn, .maplibregl-ctrl-group, .fab-voice, .sb-chip, .search input, .map-credit, .hint {
  background-image: var(--g-gloss) !important;
}
.layers-btn, .maplibregl-ctrl-group, .fab-voice { background-color: var(--g-icon) !important; }
.search input, .sb-chip, .map-credit, .hint { background-color: var(--g-text) !important; }
.fab:not(.fab-voice) {
  background: radial-gradient(120% 90% at 30% 12%, #ffe0a8 0%, #ffc56b 30%, var(--amber) 55%, var(--amber-lo) 100%) !important;
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .7), inset 0 -3px 6px rgba(150, 70, 0, .35), 0 10px 26px rgba(242, 140, 40, .45), 0 2px 6px rgba(0, 0, 0, .3) !important;
}
.bottom-nav { background-image: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0)) !important; }
@media (prefers-reduced-transparency: reduce) { :root { --g-gloss: none; --g-icon: #12232e; } }
@media (max-width: 720px) { .maplibregl-ctrl-bottom-right .maplibregl-ctrl-scale { order: 2; } } /* the scale bar on top of the column, not between buttons */
@media (max-width: 720px) { body.stats-peek .fab:not(.fab-voice) { bottom: calc(196px + var(--sb)) !important; } } /* above the low stats card */
