/* Hallmark · redesign (in place) · genre: modern-minimal · theme: custom — Niyami Neural (Neural Dark paper · Neural Blue accent · Neural Gray muted · SF system UI)
 * pre-emit critique: P4 H4 E4 S4 R5 V4
 * kept: Liquid Glass on navigation + controls only (tab bar, map buttons, popups); content surfaces are flat
 * removed: glows / radial blooms, gradient fills, mono-caps eyebrows, overshoot easing, rainbow icon tiles, emoji, side-stripe cards
 * every colour references a token in :root (OKLCH); map-drawing colours in app.js are data, not UI chrome */
:root {
  /* Hallmark · locked palette — Neural Dark #121728 (paper) · Neural Gray #97a3b5 (muted) · accent #3F81DF (Fishing Points blue) for fills, lines and rings · accent-soft #5B98E8 for blue text/icons on dark.
     accent-soft is Neural Blue lifted for text/icons on dark (≥4.5:1); every colour below references one of these. */
  --bg: oklch(20.9% 0.035 271);
  --panel: oklch(23.8% 0.038 271);
  --panel-2: oklch(28.5% 0.042 270);
  --line: oklch(33.5% 0.040 268);
  --line-strong: oklch(42% 0.040 265);
  --text: oklch(95% 0.010 260);
  --text-hi: oklch(97.8% 0.006 260);
  --muted: oklch(71.2% 0.030 258);
  --idle: oklch(38% 0.035 262);
  --white: oklch(100.0% 0 0);
  --black: oklch(0.0% 0 0);
  --accent: oklch(60.7% 0.158 258);
  --accent-bright: oklch(60.7% 0.158 258);
  --accent-soft: oklch(67.4% 0.135 256);
  --accent-ink: oklch(100% 0 0);
  --accent-2: oklch(76% 0.095 235);
  --accent-2-soft: oklch(85% 0.065 235);
  --sun: oklch(87.5% 0.143 87);
  --sun-soft: oklch(92.4% 0.089 88);
  --sun-low: oklch(75.8% 0.159 56);
  --warn: oklch(76.9% 0.165 70);
  --warn-soft: oklch(87.9% 0.153 92);
  --danger: oklch(63.7% 0.208 25);
  --danger-soft: oklch(80.8% 0.103 20);
  --cloud: oklch(96.2% 0.009 248);
  --moon-dark: oklch(31% 0.040 268);
  --moon-lit: oklch(96.0% 0.038 113);
  --map-sea: oklch(24% 0.040 268);
  --chart-sea: oklch(17% 0.030 271);
  --onemap-sea: oklch(43.5% 0.054 259);
  --sky-day-1: oklch(52.7% 0.127 248);
  --sky-day-2: oklch(60.6% 0.118 238);
  --sky-day-3: oklch(44.5% 0.083 238);
  --sky-gold-1: oklch(37.2% 0.107 271);
  --sky-gold-2: oklch(48.0% 0.091 307);
  --sky-gold-3: oklch(61.1% 0.103 32);
  --sky-night-1: oklch(19% 0.050 271);
  --sky-night-2: oklch(24% 0.060 270);
  --sky-night-3: oklch(22% 0.040 271);
  /* semantic aliases */
  --major: var(--accent-bright); --minor: var(--accent-2); --tide: var(--sun); --fc-tide: var(--accent-2-soft); --fc-sun: var(--sun);
  --fc-ink: var(--text-hi); --fc-ink-2: color-mix(in oklch, var(--text) 66%, transparent);
  --fc-glass: color-mix(in oklch, var(--bg) 46%, transparent); --fc-glass-line: color-mix(in oklch, var(--white) 9%, transparent);
  --night: color-mix(in oklch, var(--black) 28%, transparent);
  /* easing — no overshoot on UI state */
  --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-in: cubic-bezier(.4, 0, 1, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --radius: 14px;
  --tabs-h: 62px;
  --sab: env(safe-area-inset-bottom);
  --tabs-gap: max(10px, calc(var(--sab) - 12px));
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter Variable", Inter, system-ui, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 var(--font-ui); -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
/* UI icons only — never the map's own drawing layer */
:is(button svg, .nav-arrow svg, .fish svg, .thumb-ph svg) { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:is(button svg, .nav-arrow svg, .fish svg, .thumb-ph svg) .fill { fill: currentColor; stroke: none; }

#app { position: fixed; inset: 0; display: flex; flex-direction: column; }
#map { flex: 1; background: var(--map-sea); }
.leaflet-container { font: inherit; }
.leaflet-control-attribution { background: color-mix(in oklch, var(--bg) 70%, transparent) !important; color: var(--muted) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--accent-2) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel); color: var(--text); }

/* tabs */
#tabs { display: flex; z-index: 1200; }
#tabs button { flex: 1; background: none; border: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; color: var(--muted); font-size: 11px; cursor: pointer; }
#tabs button.active { color: var(--accent-soft); }

/* panels */
.panel { position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  background: var(--bg); overflow: auto; z-index: 1100; padding: 16px; padding-top: calc(16px + env(safe-area-inset-top)); }
@media (min-width: 900px) { .panel { right: auto; width: 440px; border-right: 1px solid var(--line); box-shadow: 8px 0 24px color-mix(in oklch, var(--black) 30%, transparent); } }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }

/* hud */
#hud { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 70px; z-index: 1000;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
#hud > * { pointer-events: auto; }
.hud-row { display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none !important; }
.pill { background: color-mix(in oklch, var(--panel) 88%, transparent); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
  font-size: 12px; font-variant-numeric: tabular-nums; backdrop-filter: blur(6px); }
.pill.ok { color: var(--accent-soft); } .pill.bad { color: var(--warn); }
.card { background: color-mix(in oklch, var(--panel) 94%, transparent); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px;
  backdrop-filter: blur(8px); max-width: 420px; }
#navHud { display: flex; align-items: center; gap: 12px; }
.nav-arrow { width: 52px; height: 52px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; flex: none; }
.nav-arrow svg { width: 34px; height: 34px; fill: var(--accent-bright); stroke: none; transition: transform .25s; }
.nav-info { flex: 1; min-width: 0; }
.nav-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.big { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: 12.5px; }
#toolText { font-variant-numeric: tabular-nums; margin-bottom: 8px; }

/* fabs */
#fabs { position: absolute; right: 10px; top: calc(10px + env(safe-area-inset-top)); z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.fab { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in oklch, var(--panel) 92%, transparent);
  color: var(--text); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.fab.active { color: var(--accent-soft); border-color: var(--accent-bright); }
.fab.recording { color: var(--danger); border-color: var(--danger); animation: pulse 1.4s infinite; }
.fab.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in oklch, var(--danger) 25%, transparent); } }

#crosshair { position: absolute; left: 50%; top: 50%;
  width: 40px; height: 40px; margin: -20px 0 0 -20px; z-index: 900; pointer-events: none; }
#crosshair::before, #crosshair::after { content: ""; position: absolute; background: var(--accent); }
#crosshair::before { left: 19px; top: 0; width: 2px; height: 40px; }
#crosshair::after { top: 19px; left: 0; height: 2px; width: 40px; }

/* anchor alarm */
#anchorAlarm { position: absolute; left: 10px; right: 10px; top: 30%; z-index: 1500; background: var(--danger); color: var(--white);
  border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: 0 10px 40px color-mix(in oklch, var(--black) 50%, transparent); max-width: 420px; margin: 0 auto; }
.alarm-title { font-size: 22px; font-weight: 800; }
#anchorAlarm .row { justify-content: center; margin-top: 12px; }
#anchorAlarm .btn { background: color-mix(in oklch, var(--black) 25%, transparent); border-color: color-mix(in oklch, var(--white) 40%, transparent); color: var(--white); }

/* controls */
.row { display: flex; align-items: center; gap: 8px; }
.wrap { flex-wrap: wrap; } .gap { gap: 8px; } .grow { flex: 1; }
.btn { border: 1px solid var(--line); background: var(--panel-2); border-radius: 10px; padding: 8px 14px; cursor: pointer; white-space: nowrap; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-size: 18px; flex: none; }
input, select, textarea { width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-bright); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent-bright); }
.search { margin-bottom: 12px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
label > input, label > select, label > textarea { margin-top: 4px; color: var(--text); }
label.check { display: flex; gap: 8px; align-items: center; color: var(--text); }
.field-label { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }

/* dialogs */
dialog.sheet { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 18px; padding: 18px;
  width: min(480px, calc(100vw - 20px)); max-height: calc(100dvh - 40px); overflow: auto; }
dialog.sheet h3 { margin: 0 0 12px; font-size: 18px; }
dialog::backdrop { background: color-mix(in oklch, var(--black) 55%, transparent); }
.dlg-actions { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.menu { display: flex; flex-direction: column; gap: 6px; }
.menu button { text-align: left; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.menu button:hover { border-color: var(--accent-bright); }
.choice-list { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.choice-list label { display: flex; align-items: center; gap: 10px; color: var(--text); padding: 8px 10px; margin: 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); font-size: 14px; }
.swatches { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.swatches label { margin: 0; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.swatches input:checked + span { border-color: var(--text); }
.swatches input:focus-visible + span { outline: 2px solid var(--accent-bright); }

/* lists */
.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer; text-align: left; width: 100%; }
.item:hover { border-color: var(--line-strong); }
.item .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.item .line-ico { width: 18px; height: 4px; border-radius: 2px; flex: none; }
.item .main { flex: 1; min-width: 0; }
.item .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .sub { color: var(--muted); font-size: 12.5px; }
.item img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }
.item .thumb-ph { width: 56px; height: 56px; border-radius: 10px; background: var(--panel-2); display: grid; place-items: center; color: var(--muted); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.chip { font-size: 11px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 30px 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.stat b { display: block; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { color: var(--muted); font-size: 12px; }
#catchPhotoPreview img { max-width: 100%; max-height: 180px; border-radius: 10px; margin-bottom: 10px; }

/* forecast */
.date-nav { display: flex; gap: 8px; align-items: center; margin: 10px 0 14px; }
.date-nav input { flex: 1; }
.fc-hero { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.fc-hero .rating { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.fish { display: flex; gap: 3px; margin: 2px 0; }
.fish svg { width: 20px; height: 20px; stroke: var(--idle); }
.fish svg.on { stroke: var(--accent-bright); fill: color-mix(in oklch, var(--accent-bright) 25%, transparent); }
.chart-wrap { margin: 14px 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.chart-wrap canvas { width: 100%; height: 190px; display: block; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.section { margin: 16px 0; }
.section h4 { margin: 0 0 8px; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kv > div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; }
.kv b { display: block; font-variant-numeric: tabular-nums; }
.kv span { font-size: 12px; color: var(--muted); }
table.wx { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.wx th { text-align: left; color: var(--muted); font-weight: 500; padding: 4px 6px; border-bottom: 1px solid var(--line); }
table.wx td { padding: 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.warn-box { background: color-mix(in oklch, var(--warn) 10%, transparent); border: 1px solid color-mix(in oklch, var(--warn) 35%, transparent); color: var(--warn-soft); border-radius: 10px; padding: 8px 11px; font-size: 13px; margin: 10px 0; }
.wind-arrow { display: inline-block; width: 12px; text-align: center; }

/* markers */
.spot-pin { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid var(--white); box-shadow: 0 1px 4px color-mix(in oklch, var(--black) 50%, transparent); }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid var(--white); box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent-bright) 30%, transparent); position: relative; }
.me-dot .cone { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin-left: -7px; margin-top: -24px;
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 14px solid var(--accent); transform-origin: 7px 24px; }
.catch-pin { width: 14px; height: 14px; border-radius: 50%; background: var(--tide); border: 2px solid var(--white); }
.measure-label { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 12px; white-space: nowrap; }

/* toast */
#toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--tabs-gap) + 14px); transform: translateX(-50%) translateY(20px);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; z-index: 3000; opacity: 0;
  transition: .25s; pointer-events: none; max-width: calc(100vw - 30px); }
#toast.show { opacity: 1; transform: translateX(-50%); }

/* --- lock page zoom: pinch zooms the map only, buttons stay put --- */
html, body { overscroll-behavior: none; touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
#map, .leaflet-container { touch-action: none; }
/* panels scroll both ways; the phone picks the direction from the finger's movement */
.panel, dialog.sheet { touch-action: manipulation; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#fabs, #hud, #tabs, #anchorAlarm { touch-action: manipulation; user-select: none; -webkit-user-select: none; }
/* iOS zooms into inputs smaller than 16px — keep them at 16px */
input, select, textarea { font-size: 16px; }

/* --- login --- */
.login-body { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background: var(--bg); }
.login-wrap { width: min(380px, 100%); }
.login-brand { text-align: center; margin-bottom: 22px; }
.login-brand img { border-radius: 16px; box-shadow: 0 0 0 1px color-mix(in oklch, var(--white) 10%, transparent); }
.login-brand h1 { margin: 12px 0 4px; font-size: 28px; letter-spacing: -.02em; }
.login-brand p { margin: 0; }
.login-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.login-foot { text-align: center; margin-top: 16px; }
.btn.block { width: 100%; padding: 11px; margin-top: 6px; }
.pw-field { position: relative; display: block; margin-top: 4px; }
.pw-field input { margin-top: 0; padding-right: 84px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 9px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.form-error { background: color-mix(in oklch, var(--danger) 10%, transparent); border: 1px solid color-mix(in oklch, var(--danger) 35%, transparent); color: var(--danger-soft); border-radius: 10px; padding: 8px 11px; font-size: 13px; margin: 6px 0 10px; }

/* --- account --- */
.acct-card { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.acct-card .title { font-weight: 700; font-size: 17px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; text-transform: uppercase; }
.avatar.sm { width: 34px; height: 34px; font-size: 14px; }
.avatar.off { background: var(--idle); color: var(--muted); }
.badge { font-size: 11px; border-radius: 999px; padding: 1px 7px; border: 1px solid var(--line); color: var(--muted); margin-left: 6px; vertical-align: 1px; }
.badge.admin { color: var(--accent-soft); border-color: color-mix(in oklch, var(--accent-bright) 50%, transparent); }
.badge.off { color: var(--danger); border-color: color-mix(in oklch, var(--danger) 50%, transparent); }
.section form, form.section { display: block; }

/* ================= Forecast (sky + glass cards) ================= */
.fc-panel { background: var(--bg); padding-top: calc(12px + env(safe-area-inset-top)); color: var(--fc-ink); }
.fc-panel > *:not(.fc-sky) { position: relative; z-index: 1; }
.fc-sky { position: absolute; left: 0; right: 0; top: 0; height: 620px; z-index: 0; pointer-events: none; transition: background .6s, filter .6s; }
.fc-sky.sky-day { background: linear-gradient(180deg, var(--sky-day-1) 0%, var(--sky-day-2) 32%, var(--sky-day-3) 62%, color-mix(in oklch, var(--bg) 0%, transparent) 100%); }
.fc-sky.sky-golden { background: linear-gradient(180deg, var(--sky-gold-1) 0%, var(--sky-gold-2) 28%, var(--sky-gold-3) 50%, color-mix(in oklch, var(--bg) 0%, transparent) 100%); }
.fc-sky.sky-night { background: linear-gradient(180deg, var(--sky-night-1) 0%, var(--sky-night-2) 38%, var(--sky-night-3) 66%, color-mix(in oklch, var(--bg) 0%, transparent) 100%); }
.fc-sky.sky-overcast { filter: saturate(.45) brightness(.82); }
.fc-sky.sky-wet { filter: saturate(.35) brightness(.7); }

.fc-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.fc-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 7px 12px; border-radius: 999px;
  background: color-mix(in oklch, var(--white) 14%, transparent); border: 1px solid color-mix(in oklch, var(--white) 16%, transparent); color: var(--fc-ink); font-size: 13.5px; font-weight: 600;
  max-width: 62%; min-width: 0; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fc-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-pill svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fc-pill select, .fc-pill input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; font-size: 16px; }
.fc-date { max-width: 40%; }

#fcOut.is-loading { opacity: .55; transition: opacity .2s; }
.fc-loading { text-align: center; padding: 120px 0; color: var(--fc-ink-2); }

.fc-hero2 { text-align: center; padding: 26px 8px 22px; text-shadow: 0 1px 12px color-mix(in oklch, var(--black) 18%, transparent); }
.fc-place { font-size: 26px; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.fc-coords { font-size: 12px; color: var(--fc-ink-2); font-variant-numeric: tabular-nums; margin-top: 2px; }
.fc-temp { font-size: 88px; font-weight: 200; line-height: 1; margin: 8px 0 4px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; padding-left: .12em; }
.fc-cond { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 500; }
.fc-hl { font-size: 16px; font-weight: 500; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: pre; }
.fc-bite { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: color-mix(in oklch, var(--black) 18%, transparent); border: 1px solid color-mix(in oklch, var(--white) 12%, transparent); }
.fc-bite .fish svg { width: 16px; height: 16px; }
.fc-bite .fish svg:not(.on) { stroke: color-mix(in oklch, var(--white) 35%, transparent); }

.fc-warn { background: color-mix(in oklch, var(--warn) 14%, transparent); border: 1px solid color-mix(in oklch, var(--warn) 40%, transparent); color: var(--warn-soft); border-radius: 14px; padding: 10px 12px; font-size: 13px; margin: 0 0 10px; }

.fc-card { background: var(--fc-glass); border: 1px solid var(--fc-glass-line); border-radius: 18px; padding: 12px 14px 14px; margin: 0 0 10px;
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
.fc-card h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--fc-glass-line);
  font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--fc-ink-2); }
.fc-card h3 svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fc-big { font-size: 34px; font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fc-big.sm { font-size: 28px; }
.fc-big small { font-size: 15px; font-weight: 500; color: var(--fc-ink-2); letter-spacing: 0; }
.fc-sub { font-size: 13px; color: var(--fc-ink-2); margin-top: 2px; }
.fc-sub.center { text-align: center; }
.fc-empty, .fc-note { font-size: 12.5px; color: var(--fc-ink-2); margin: 0; }
.fc-note { margin-top: 8px; }
.fc-label { font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--fc-ink-2); margin: 12px 0 6px; }
.fc-axis { fill: var(--fc-ink-2); font-size: 10px; font-family: var(--font-ui); }
.fc-nowline { stroke: color-mix(in oklch, var(--white) 55%, transparent); stroke-width: 1; stroke-dasharray: 2 3; }

/* weather icons */
.wx { flex: none; overflow: visible; }
.wx .wx-sun circle, .wx .wx-sun path:not(.wx-rays) { fill: var(--fc-sun); stroke: none; }
.wx .wx-sun path:first-child { fill: none; stroke: var(--fc-sun); stroke-width: 2; stroke-linecap: round; }
.wx .wx-rays, .wx .wx-rays path { fill: none; stroke: var(--fc-sun); stroke-width: 1.8; stroke-linecap: round; }
.wx .wx-moon { fill: var(--cloud); }
.wx .wx-cloud { fill: var(--cloud); stroke: color-mix(in oklch, var(--black) 8%, transparent); stroke-width: .5; }
.wx .wx-rain { fill: none; stroke: var(--accent-2-soft); stroke-width: 1.8; stroke-linecap: round; }
.wx .wx-snow circle { fill: var(--white); }
.wx .wx-bolt { fill: none; stroke: var(--fc-sun); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wx .wx-fog { fill: none; stroke: var(--cloud); stroke-width: 1.8; stroke-linecap: round; }
.wx .wx-horizon { fill: none; stroke: var(--fc-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wx .wx-tidewave { fill: none; stroke: var(--fc-tide); stroke-width: 2; stroke-linecap: round; }
.wx-blank { width: 24px; flex: none; }

/* hourly */
.fc-summary { margin: 0 0 10px; font-size: 14px; line-height: 1.4; }
.fc-hours { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -6px; padding: 2px 6px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; touch-action: manipulation; }
.fc-hours::-webkit-scrollbar { display: none; }
.fc-hr { flex: none; width: 52px; display: flex; flex-direction: column; align-items: center; gap: 7px; scroll-snap-align: start; font-variant-numeric: tabular-nums; }
.fc-hr-t { font-size: 13px; font-weight: 600; }
.fc-hr-v { font-size: 16px; font-weight: 600; }
.fc-hr.ev .fc-hr-v { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.1; }
.fc-hr-n { font-size: 11px; color: var(--fc-ink-2); }
.fc-hr-bar { width: 6px; height: 34px; border-radius: 3px; background: color-mix(in oklch, var(--white) 10%, transparent); position: relative; overflow: hidden; }
.fc-hr-bar i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 3px; background: var(--muted); }
.fc-hr-bar i.maj { background: var(--major); } .fc-hr-bar i.min { background: var(--minor); }

/* activity */
.fc-act-head, .fc-tide-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.fc-act-head .fish svg { width: 22px; height: 22px; }
.fc-act-head .fish svg:not(.on) { stroke: color-mix(in oklch, var(--white) 30%, transparent); }
.fc-act-svg { width: 100%; height: 96px; display: block; }
.fc-bar.idle { fill: color-mix(in oklch, var(--text) 38%, transparent); } .fc-bar.maj { fill: var(--major); } .fc-bar.min { fill: var(--minor); }
.fc-legend { display: flex; gap: 12px; font-size: 11.5px; color: var(--fc-ink-2); margin-top: 6px; }
.fc-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.fc-legend i.maj { background: var(--major); } .fc-legend i.min { background: var(--minor); } .fc-legend i.idle { background: color-mix(in oklch, var(--text) 50%, transparent); }
.fc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-chip { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: color-mix(in oklch, var(--sun) 16%, transparent); color: var(--sun-soft); border: 1px solid color-mix(in oklch, var(--sun) 35%, transparent); font-variant-numeric: tabular-nums; }
.fc-periods { display: flex; flex-direction: column; gap: 6px; }
.fc-periods > div { display: grid; grid-template-columns: 8px auto 1fr; gap: 8px; align-items: center; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.fc-periods i { width: 8px; height: 8px; border-radius: 50%; background: var(--minor); }
.fc-periods .major i { background: var(--major); }
.fc-periods span { color: var(--fc-ink-2); text-align: right; font-size: 12.5px; }

/* tide */
.fc-tide-next { text-align: right; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.fc-tide-next span { font-size: 12px; color: var(--fc-ink-2); }
.fc-tide-next b { font-size: 20px; }
.fc-tide-svg { width: 100%; height: 140px; display: block; overflow: visible; }
.fc-tide-line { fill: none; stroke: var(--fc-tide); stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fc-night { fill: color-mix(in oklch, var(--black) 22%, transparent); }
.fc-tide-ext { fill: var(--bg); stroke: var(--fc-tide); stroke-width: 2; vector-effect: non-scaling-stroke; }
.fc-tide-lbl { fill: var(--fc-ink); font-size: 10.5px; font-weight: 600; font-family: var(--font-ui); }
.fc-now-halo { fill: color-mix(in oklch, var(--white) 25%, transparent); }
.fc-now-dot { fill: var(--white); }
.fc-tide-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; margin-top: 10px; }
.fc-tide-list > div { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 10px; background: color-mix(in oklch, var(--white) 6%, transparent); font-variant-numeric: tabular-nums; }
.fc-tide-list span { font-size: 11px; color: var(--fc-ink-2); }
.fc-tide-list b { font-size: 15px; }

/* 10-day */
.fc-days { display: flex; flex-direction: column; }
.fc-day { display: grid; grid-template-columns: 74px 26px 32px minmax(30px, 1fr) 34px minmax(40px, 1.2fr) 34px; align-items: center; gap: 8px;
  padding: 9px 4px; background: none; border: 0; border-top: 1px solid var(--fc-glass-line); color: var(--fc-ink); text-align: left; cursor: pointer;
  font-variant-numeric: tabular-nums; border-radius: 10px; width: 100%; }
.fc-day:first-child { border-top: 0; }
.fc-day.sel { background: color-mix(in oklch, var(--white) 10%, transparent); border-top-color: transparent; }
.fc-day.sel + .fc-day { border-top-color: transparent; }
.fc-day-n { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-score { font-size: 13px; font-weight: 700; text-align: center; border-radius: 7px; padding: 2px 0; }
.fc-score.s1 { color: var(--muted); background: color-mix(in oklch, var(--muted) 14%, transparent); }
.fc-score.s2 { color: var(--accent-2-soft); background: color-mix(in oklch, var(--accent-2) 14%, transparent); }
.fc-score.s3 { color: var(--accent-soft); background: color-mix(in oklch, var(--accent-bright) 16%, transparent); }
.fc-score.s4 { color: var(--accent-ink); background: var(--accent); }
.fc-spark { width: 100%; height: 24px; overflow: visible; }
.fc-spark path { fill: none; stroke: color-mix(in oklch, var(--accent-soft) 85%, transparent); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.fc-spark circle { fill: var(--fc-sun); }
.fc-t { font-size: 15px; font-weight: 600; text-align: right; }
.fc-t.lo { color: var(--fc-ink-2); }
.fc-range { position: relative; height: 5px; border-radius: 3px; background: color-mix(in oklch, var(--white) 12%, transparent); }
.fc-range i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, var(--accent-2-soft), var(--sun), var(--sun-low)); }
.fc-range.none { opacity: .4; }
@media (max-width: 380px) { .fc-day { grid-template-columns: 64px 24px 30px minmax(24px, 1fr) 30px minmax(30px, 1fr) 30px; gap: 6px; } }

/* tiles */
.fc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fc-grid .fc-card { margin: 0; min-width: 0; }
.fc-tile-row { display: flex; align-items: center; gap: 10px; }
.fc-dial { width: 78px; height: 78px; flex: none; }
.fc-dial-ticks line { stroke: color-mix(in oklch, var(--white) 35%, transparent); stroke-width: 1; }
.fc-dial text { fill: var(--fc-ink-2); font-size: 9px; font-weight: 700; font-family: var(--font-ui); }
.fc-dial-shaft { stroke: var(--fc-ink); stroke-width: 2.4; stroke-linecap: round; }
.fc-dial-head { fill: var(--fc-ink); }
.fc-dial-tail { fill: none; stroke: var(--fc-ink); stroke-width: 2; }
.fc-gauge svg { width: 100%; max-width: 150px; display: block; margin: 0 auto; }
.fc-gauge-track { fill: none; stroke: url(#none); stroke: color-mix(in oklch, var(--white) 18%, transparent); stroke-width: 6; stroke-linecap: round; }
.fc-gauge-dot { fill: var(--white); stroke: color-mix(in oklch, var(--black) 25%, transparent); stroke-width: 1; }
.fc-gauge-v { fill: var(--fc-ink); font-size: 18px; font-weight: 700; font-family: var(--font-ui); }
.fc-gauge-u { fill: var(--fc-ink-2); font-size: 9.5px; font-family: var(--font-ui); }
.fc-sunarc { width: 100%; height: 56px; display: block; margin: 6px 0 2px; overflow: visible; }
.fc-sun-path { fill: none; stroke: color-mix(in oklch, var(--sun) 55%, transparent); stroke-width: 1.6; stroke-dasharray: 3 3; }
.fc-horizon { stroke: color-mix(in oklch, var(--white) 30%, transparent); stroke-width: 1; }
.fc-sun-dot { fill: var(--fc-sun); }
.fc-kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin-top: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.fc-kv span { color: var(--fc-ink-2); }
.fc-kv b { text-align: right; font-weight: 600; }
.fc-tile .fc-tile-row svg[width] { flex: none; }
.fc-foot { font-size: 11.5px; color: var(--fc-ink-2); line-height: 1.45; margin: 14px 2px 6px; }
@media (min-width: 900px) { .fc-sky { height: 560px; } }
@media (prefers-reduced-motion: reduce) { .fc-sky { transition: none; } }
.fc-hr-sep { flex: none; width: 1px; align-self: stretch; margin: 4px 4px; background: var(--fc-glass-line); }
.fc-dial { width: 64px; height: 64px; }
.fc-wind-v { min-width: 0; }
.fc-wind-v .fc-sub { white-space: nowrap; }
.fc-tile-row > div { min-width: 0; }

/* --- fish mark --- */
.fish-ic path { fill: currentColor; stroke: none; }
.fish .fish-ic { color: color-mix(in oklch, var(--white) 20%, transparent); stroke: none; fill: none; }
.fish .fish-ic.on { color: var(--accent-soft); }
.thumb-ph .fish-ic { color: var(--muted); width: 26px; height: 26px; }
.fc-card h3 svg .solid { fill: currentColor; stroke: none; }

/* --- fish activity card v2 --- */
.fc-act-head2 { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; margin-bottom: 6px; }
.fc-ring { width: 76px; height: 76px; }
.fc-ring-track { fill: none; stroke: color-mix(in oklch, var(--white) 10%, transparent); stroke-width: 7; }
.fc-ring-val { fill: none; stroke-width: 7; stroke-linecap: round; transition: stroke-dasharray .5s; }
.fc-ring.s1 .fc-ring-val { stroke: var(--muted); } .fc-ring.s2 .fc-ring-val { stroke: var(--minor); }
.fc-ring.s3 .fc-ring-val { stroke: var(--accent-bright); } .fc-ring.s4 .fc-ring-val { stroke: var(--fc-sun); }
.fc-ring-n { fill: var(--fc-ink); font-size: 21px; font-weight: 700; font-family: var(--font-ui); font-variant-numeric: tabular-nums; }
.fc-act-words { min-width: 0; }
.fc-act-title { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.fc-meter { align-self: start; gap: 2px; }
.fc-meter .fish-ic { width: 18px; height: 18px; }
.fc-act-svg { height: 142px; overflow: visible; }
.fc-band.maj { fill: color-mix(in oklch, var(--accent-bright) 13%, transparent); } .fc-band.min { fill: color-mix(in oklch, var(--accent-2) 11%, transparent); }
.fc-band-lbl { font-size: 9px; font-weight: 600; letter-spacing: 0; font-family: var(--font-ui); }
.fc-band-lbl.maj { fill: var(--accent-soft); } .fc-band-lbl.min { fill: var(--accent-2-soft); }
.fc-baseline { stroke: color-mix(in oklch, var(--white) 14%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fc-act-line { fill: none; stroke: var(--accent-bright); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fc-peak { fill: var(--fc-sun); stroke: var(--bg); stroke-width: 2; }
.fc-peak-lbl { fill: var(--sun-soft); font-size: 10px; font-weight: 700; font-family: var(--font-ui); }
.fc-legend i.pk { background: var(--fc-sun); border-radius: 50%; }
.fc-best { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.fc-best > div { display: flex; flex-direction: column; align-items: center; padding: 7px 4px; border-radius: 12px; font-variant-numeric: tabular-nums;
  background: color-mix(in oklch, var(--sun) 10%, transparent); border: 1px solid color-mix(in oklch, var(--sun) 28%, transparent); }
.fc-best b { font-size: 14px; color: var(--sun-soft); }
.fc-best span { font-size: 11.5px; color: var(--fc-ink-2); }

/* --- forecast day strip (sticky) --- */
.fc-head { position: sticky; top: calc(-12px - env(safe-area-inset-top)); z-index: 5; margin: calc(-12px - env(safe-area-inset-top)) -16px 0;
  padding: calc(12px + env(safe-area-inset-top)) 16px 18px; background: transparent;
  transition: background-color .25s var(--ease-out); }
/* at rest the sky runs straight through the header; once content scrolls under it, a soft blurred tint
   fades in and dissolves at its lower edge (scroll-edge effect) — no hard line */
.fc-head::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, color-mix(in oklch, var(--bg) 80%, transparent) 0%, color-mix(in oklch, var(--bg) 55%, transparent) 70%, color-mix(in oklch, var(--bg) 0%, transparent) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  -webkit-mask-image: linear-gradient(var(--black) calc(100% - 22px), transparent); mask-image: linear-gradient(var(--black) calc(100% - 22px), transparent);
  transition: opacity .25s var(--ease-out); }
.fc-head.scrolled::before { opacity: 1; }
.fc-head .fc-top { margin-bottom: 10px; }
.fc-head { isolation: isolate; }
.fc-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; scroll-snap-type: x proximity;
  touch-action: manipulation; overscroll-behavior-x: contain; }
.fc-strip::-webkit-scrollbar { display: none; }
.fc-sday { position: relative; flex: none; width: 52px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 8px;
  border-radius: 14px; border: 1px solid color-mix(in oklch, var(--white) 10%, transparent); background: color-mix(in oklch, var(--white) 6%, transparent); color: var(--fc-ink);
  cursor: pointer; scroll-snap-align: start; font-variant-numeric: tabular-nums; transition: background .15s, border-color .15s, transform .15s; }
.fc-sday:active { transform: scale(.96); }
.fc-sday-w { font-size: 11px; font-weight: 600; color: var(--fc-ink-2); text-transform: none; letter-spacing: 0; white-space: nowrap; }
.fc-sday.we .fc-sday-w { color: var(--accent-2-soft); }
.fc-sday-n { font-size: 19px; font-weight: 700; line-height: 1.1; }
.fc-sday-r i { display: block; width: 18px; height: 4px; border-radius: 2px; margin-top: 3px; }
.fc-sday-r i.s0 { background: color-mix(in oklch, var(--white) 15%, transparent); }
.fc-sday-r i.s1 { background: var(--muted); } .fc-sday-r i.s2 { background: var(--minor); }
.fc-sday-r i.s3 { background: var(--accent-bright); } .fc-sday-r i.s4 { background: var(--fc-sun); }
.fc-sday-m { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 600; text-transform: none;
  letter-spacing: 0; padding: 0 5px; border-radius: 6px; background: var(--panel-2); color: var(--fc-ink-2); }
.fc-sday.sel { background: var(--fc-ink); border-color: var(--fc-ink); color: var(--bg); }
.fc-sday.sel .fc-sday-w, .fc-sday.sel.we .fc-sday-w { color: color-mix(in oklch, var(--bg) 65%, transparent); }
.fc-strip { padding-top: 8px; margin-top: -8px; }
.fc-sday:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.fc-panel > .fc-head { position: sticky; z-index: 5; }
.fc-strip { scroll-padding-inline: 16px; }

/* --- forecast calendar --- */
button.fc-pill { font: inherit; font-size: 13.5px; font-weight: 600; }
.cal-sheet { width: min(400px, calc(100vw - 20px)); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cal-head h3 { margin: 0; font-size: 18px; text-align: center; flex: 1; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week span { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-day { position: relative; aspect-ratio: 1 / 1.05; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid transparent; border-radius: 12px; background: var(--panel-2); color: var(--text); cursor: pointer; padding: 0;
  font-variant-numeric: tabular-nums; transition: background .12s, border-color .12s; }
.cal-day:hover { border-color: var(--line-strong); }
.cal-day .n { font-size: 15px; font-weight: 600; line-height: 1; }
.cal-day.past { opacity: .5; }
.cal-day.today { border-color: var(--accent-bright); }
.cal-day.today .n { color: var(--accent-soft); }
.cal-day.sel { background: var(--text); color: var(--bg); border-color: var(--text); opacity: 1; }
.cal-day.sel .n { color: var(--bg); }
.cal-day:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.cal-sheet i.r { display: block; width: 16px; height: 3.5px; border-radius: 2px; }
.cal-sheet i.r.s1 { background: var(--muted); } .cal-sheet i.r.s2 { background: var(--minor); }
.cal-sheet i.r.s3 { background: var(--accent-bright); } .cal-sheet i.r.s4 { background: var(--sun); }
.cal-day i.m { position: absolute; top: 5px; right: 5px; }
.cal-sheet i.m { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.cal-sheet i.m.full { background: var(--moon-lit); }
.cal-sheet i.m.new { border: 1.5px solid var(--muted); box-sizing: border-box; }
.cal-day.sel i.m.new { border-color: var(--bg); }
.cal-blank { aspect-ratio: 1 / 1.05; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }

/* hero: fish score as the headline number */
.fc-score-big { font-size: 92px; font-weight: 200; line-height: 1; margin: 10px 0 0; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.fc-score-of { font-size: 22px; font-weight: 500; letter-spacing: 0; color: var(--fc-ink-2); margin-left: 4px; }
.fc-score-big.s4 { color: var(--sun-soft); } .fc-score-big.s3 { color: var(--accent-soft); }
.fc-score-cap { font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--fc-ink-2); margin: 2px 0 10px; }
.fc-tide-src { font-size: 12px; line-height: 1.45; color: var(--fc-ink-2); margin: 10px 0 0; }
.fc-tide-src.good b { color: var(--accent-soft); }


/* --- Account: My fishing menu + sub-page back button --- */
.head-l { display: flex; align-items: center; gap: 6px; min-width: 0; }
.back-btn { width: 36px; height: 36px; margin-left: -8px; border: 0; background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; border-radius: 10px; flex: none; }
.back-btn:hover { background: var(--panel-2); }
.back-btn svg { width: 24px; height: 24px; }
.acct-menu { margin: 0 0 16px; }
.acct-menu-h { margin: 0 0 8px; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--muted); }
.acct-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 8px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; color: var(--text); text-align: left; cursor: pointer; }
.acct-row:hover { border-color: var(--line-strong); }
.acct-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.acct-ic.spots { background: color-mix(in oklch, var(--accent-2) 14%, transparent); color: var(--accent-2); }
.acct-ic.log { background: color-mix(in oklch, var(--accent-bright) 14%, transparent); color: var(--accent-soft); }
.acct-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acct-txt b { font-size: 15.5px; }
.acct-txt span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-count { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.acct-row .chev { width: 18px; height: 18px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* nautical chart base */
#map.is-chart { background: var(--chart-sea); }
.chart-pop .leaflet-popup-content { margin: 8px 12px; font-size: 13.5px; line-height: 1.35; }
#map.is-onemap { background: var(--onemap-sea); }
.exp-tag { margin-left: auto; font-size: 10.5px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--warn-soft);
  border: 1px solid color-mix(in oklch, var(--warn-soft) 45%, transparent); border-radius: 999px; padding: 1px 7px; }


/* =====================================================================
   Liquid Glass — controls and navigation float on a translucent glass
   layer above edge-to-edge content (map, panels). Applied sparingly:
   tab bar, map buttons, HUD, sheets, toasts. Content stays solid.
   ===================================================================== */
:root {
  --radius: 20px;
  --glass: color-mix(in oklch, var(--panel) 52%, transparent);
  --glass-strong: color-mix(in oklch, var(--panel) 74%, transparent);
  --glass-rim: color-mix(in oklch, var(--white) 16%, transparent);
  --glass-hi: inset 0 1px 0 color-mix(in oklch, var(--white) 24%, transparent), inset 0 -1px 0 color-mix(in oklch, var(--white) 5%, transparent), inset 0 0 0 .5px color-mix(in oklch, var(--white) 8%, transparent);
  --glass-shadow: 0 12px 32px color-mix(in oklch, var(--black) 32%, transparent), 0 2px 6px color-mix(in oklch, var(--black) 22%, transparent);
  --glass-blur: blur(24px) saturate(180%) brightness(1.05);
  --ease-out: cubic-bezier(.32, .72, 0, 1);
}
/* the glass recipe */
#tabs, .fab-group, .fab.primary, #hud .pill, #hud .card, #toast, .leaflet-control-attribution {
  background: var(--glass) !important; border: 1px solid var(--glass-rim) !important;
  box-shadow: var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
/* specular sheen across the top-left of each glass shape */
#tabs::before, .fab-group::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: linear-gradient(160deg, color-mix(in oklch, var(--white) 16%, transparent) 0%, color-mix(in oklch, var(--white) 3%, transparent) 32%, transparent 55%, color-mix(in oklch, var(--white) 5%, transparent) 100%);
}

/* --- tab bar: floating capsule with a sliding selection lozenge --- */
#tabs { position: absolute; left: 50%; bottom: var(--tabs-gap); transform: translateX(-50%);
  width: min(400px, calc(100% - 32px)); height: var(--tabs-h); padding: 5px; border-radius: 999px;
  transition: width .3s var(--ease-out), height .3s var(--ease-out), transform .3s var(--ease-out); }
#tabs button { position: relative; z-index: 2; border-radius: 999px; gap: 1px; font-size: 10.5px; font-weight: 600; color: color-mix(in oklch, var(--text) 78%, transparent);
  transition: color .25s, transform .3s var(--ease-out); }
#tabs button:active { transform: scale(.92); }
#tabs button.active { color: var(--accent-soft); }
#tabs button.active svg { stroke-width: 2.2; }
#tabs button span { transition: opacity .2s, max-height .3s; max-height: 14px; }
.tab-glider { position: absolute; z-index: 1; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 999px;
  background: color-mix(in oklch, var(--white) 13%, transparent); box-shadow: inset 0 1px 0 color-mix(in oklch, var(--white) 18%, transparent), inset 0 0 0 .5px color-mix(in oklch, var(--white) 10%, transparent);
  transition: transform .32s var(--ease-out); pointer-events: none; }
#tabs:has(button:nth-child(2).active) .tab-glider { transform: translateX(100%); }
#tabs:has(button:nth-child(3).active) .tab-glider { transform: translateX(200%); }
/* minimised while scrolling down a panel; scrolling back up restores it */
#tabs.min { width: min(230px, calc(100% - 32px)); height: 46px; }
#tabs.min button span { opacity: 0; max-height: 0; }

/* map content runs edge to edge, under the floating bar */
.leaflet-bottom { bottom: calc(var(--tabs-h) + var(--tabs-gap) + 6px); }
.leaflet-control-attribution { margin: 0 8px 4px 0 !important; border-radius: 999px; padding: 1px 9px !important; font-size: 9px; line-height: 16px;
  max-width: calc(100vw - 110px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: color-mix(in oklch, var(--text) 70%, transparent) !important; cursor: pointer; }
.leaflet-control-attribution.open { white-space: normal; border-radius: 12px; padding: 4px 10px !important; }
.leaflet-control-scale { margin: 0 0 4px 10px !important; }
.leaflet-control-scale-line { background: transparent !important; border: 2px solid color-mix(in oklch, var(--white) 92%, transparent) !important; border-top: 0 !important;
  border-radius: 0 0 3px 3px; box-shadow: 0 1px 2px color-mix(in oklch, var(--black) 45%, transparent); color: var(--white) !important; font-size: 10.5px; font-weight: 600;
  line-height: 14px; padding: 0 5px !important; text-shadow: 0 1px 2px color-mix(in oklch, var(--black) 80%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* --- map buttons: grouped glass capsules (view · tools) + tinted add --- */
#fabs { gap: 12px; align-items: center; }
.fab-group { position: relative; display: flex; flex-direction: column; border-radius: 999px; padding: 3px; }
.fab-group .fab { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none; color: color-mix(in oklch, var(--text-hi) 92%, transparent); transition: transform .3s var(--ease-out), background .2s, color .2s; }
.fab-group .fab + .fab::after { content: ""; position: absolute; top: -.5px; left: 12px; right: 12px; height: 1px; background: color-mix(in oklch, var(--white) 10%, transparent); }
.fab-group .fab:active { transform: scale(.94); background: color-mix(in oklch, var(--white) 12%, transparent); }
.fab-group .fab.active { color: var(--accent-soft); background: transparent; border: 0; }
.fab-group .fab.active svg { stroke-width: 2.2; }
.fab-group .fab.recording { color: var(--danger); background: transparent; border: 0; box-shadow: none; }
.fab.primary { position: relative; width: 52px; height: 52px; border-radius: 999px;
  background: var(--accent) !important; color: var(--accent-ink);
  border-color: color-mix(in oklch, var(--white) 35%, transparent) !important; transition: transform .3s var(--ease-out); }
.fab.primary svg { position: relative; z-index: 1; stroke-width: 2.4; }
.fab.primary:active { transform: scale(.95); }

/* --- HUD --- */
#hud .pill { padding: 4px 11px; color: color-mix(in oklch, var(--text-hi) 92%, transparent); }
#hud .pill.ok { color: var(--accent-soft) !important; } #hud .pill.bad { color: var(--warn) !important; }
#hud .card { position: relative; border-radius: 24px; padding: 12px 14px; }
#hud .card > * { position: relative; z-index: 1; }
.nav-arrow { background: color-mix(in oklch, var(--white) 10%, transparent); }

/* --- toast --- */
#toast { border-radius: 999px; padding: 10px 18px; font-weight: 500; }

/* --- panels: scroll-edge effect behind a sticky header --- */
.panel { padding-bottom: calc(var(--tabs-h) + var(--tabs-gap) + 24px); }
.panel > .panel-head { position: sticky; top: calc(-16px - env(safe-area-inset-top)); z-index: 5;
  margin: calc(-16px - env(safe-area-inset-top)) -16px 12px; padding: calc(16px + env(safe-area-inset-top)) 16px 18px;
  background: linear-gradient(180deg, color-mix(in oklch, var(--bg) 90%, transparent) 0%, color-mix(in oklch, var(--bg) 72%, transparent) 70%, color-mix(in oklch, var(--bg) 0%, transparent) 100%);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(var(--black) calc(100% - 16px), transparent); mask-image: linear-gradient(var(--black) calc(100% - 16px), transparent); }
.panel-head h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
@media (min-width: 900px) { .panel { padding-bottom: 24px; } }

/* --- controls: rounder, capsule buttons --- */
.btn { border-radius: 999px; padding: 9px 16px; background: color-mix(in oklch, var(--white) 9%, transparent); border: 1px solid color-mix(in oklch, var(--white) 10%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in oklch, var(--white) 8%, transparent); transition: transform .25s var(--ease-out), background .2s; }
.btn.small { padding: 6px 12px; }
.btn:not(:disabled):active { transform: scale(.96); }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink);
  box-shadow: inset 0 1px 0 color-mix(in oklch, var(--white) 35%, transparent); }
.btn.danger { background: color-mix(in oklch, var(--danger) 10%, transparent); border-color: color-mix(in oklch, var(--danger) 25%, transparent); }
.icon-btn, .back-btn { border-radius: 999px; }
.icon-btn { background: color-mix(in oklch, var(--white) 9%, transparent); border-color: color-mix(in oklch, var(--white) 10%, transparent); }
.back-btn { background: color-mix(in oklch, var(--white) 8%, transparent); margin-left: 0; }
input, select, textarea { border-radius: 14px; background: color-mix(in oklch, var(--white) 6%, transparent); border-color: color-mix(in oklch, var(--white) 10%, transparent); padding: 10px 13px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-bright); background: color-mix(in oklch, var(--white) 9%, transparent); }
.menu button, .choice-list label { border-radius: 16px; background: color-mix(in oklch, var(--white) 6%, transparent); border-color: color-mix(in oklch, var(--white) 8%, transparent); }

/* --- grouped lists: bigger radius, more breathing room --- */
.item, .acct-row, .acct-card, .stat, .kv > div, .fc-hero, .chart-wrap, .login-card { border-radius: 22px; }
.item, .acct-row { padding: 12px 14px; }
.acct-ic { border-radius: 999px; }
.fc-card { border-radius: 24px; }

/* --- sheets: glass, large corners; inset bottom sheet on phones --- */
dialog.sheet { position: fixed; border-radius: 32px; padding: 22px; background: var(--glass-strong);
  border: 1px solid var(--glass-rim); box-shadow: var(--glass-hi), 0 24px 60px color-mix(in oklch, var(--black) 50%, transparent);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); }
dialog.sheet > * { position: relative; z-index: 1; }
dialog::backdrop { background: color-mix(in oklch, var(--black) 35%, transparent); }
dialog.sheet[open] { animation: sheet-in .42s var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@media (max-width: 640px) {
  dialog.sheet { margin: auto 8px calc(8px + var(--sab)); width: calc(100% - 16px); max-width: none;
    max-height: calc(100dvh - 72px - env(safe-area-inset-top)); border-radius: 36px; padding: 22px 20px calc(20px); }
  dialog.sheet[open] { animation: sheet-up .45s var(--ease-out); }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  /* typing in a popup: sit at the top, above the keyboard, and scroll inside */
  dialog.sheet.kb { margin: calc(env(safe-area-inset-top) + 8px) 8px auto; animation: none !important;
    max-height: calc(var(--vvh, 55dvh) - 16px - env(safe-area-inset-top)); }
  dialog.sheet.kb .dlg-actions { position: sticky; bottom: -20px; z-index: 3; margin: 10px -20px -20px; padding: 12px 20px 16px;
    background: linear-gradient(180deg, color-mix(in oklch, var(--panel) 0%, transparent), color-mix(in oklch, var(--panel) 92%, transparent) 30%); }
}

/* --- login --- */
.login-card { background: var(--glass-strong); border-color: var(--glass-rim); box-shadow: var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }

/* --- accessibility: Reduce Transparency / Reduce Motion / no blur support --- */
@media (prefers-reduced-transparency: reduce) {
  :root { --glass: color-mix(in oklch, var(--panel) 97%, transparent); --glass-strong: color-mix(in oklch, var(--panel) 99%, transparent); }
  #tabs, .fab-group, #hud .pill, #hud .card, #toast, dialog.sheet, .login-card, .panel > .panel-head { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass: color-mix(in oklch, var(--panel) 95%, transparent); --glass-strong: color-mix(in oklch, var(--panel) 98%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  #tabs, .tab-glider, .fab, .btn, #tabs button { transition: none !important; }
  dialog.sheet[open] { animation: none !important; }
}

/* section headers: title-style, not all caps */
.acct-menu-h, .section h4 { text-transform: none; letter-spacing: -.01em; font-size: 17px; font-weight: 700; color: var(--text); }

/* the app itself never scrolls as a page (panels scroll inside), so iOS has nothing to slide */
html:has(#app), html:has(#app) body { overflow: hidden; }

/* =====================================================================
   Account — settings-style layout: centred title, profile card, then
   grouped frosted-glass cards of rows, sign out on its own at the end.
   ===================================================================== */
.acct-panel { background: var(--bg); }
.acct-panel > .panel-head.acct-head { justify-content: center; background: linear-gradient(180deg, color-mix(in oklch, var(--bg) 75%, transparent) 0%, color-mix(in oklch, var(--bg) 45%, transparent) 70%, color-mix(in oklch, var(--bg) 0%, transparent) 100%); }
.acct-head h2 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }

.g-card { display: block; width: 100%; margin: 0 0 18px; padding: 4px 0; border-radius: 26px; color: var(--text); text-align: left;
  background: color-mix(in oklch, var(--white) 6%, transparent);
  border: 1px solid color-mix(in oklch, var(--white) 12%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in oklch, var(--white) 16%, transparent), 0 10px 30px color-mix(in oklch, var(--black) 22%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
.g-label { margin: 0 6px 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.g-note { font-weight: 400; opacity: .8; }

.g-row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 16px;
  background: none; border: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; transition: background .15s; }
button.g-row:active { background: color-mix(in oklch, var(--white) 7%, transparent); }
@media (hover: hover) { button.g-row:hover { background: color-mix(in oklch, var(--white) 4%, transparent); } }
.g-card > .g-row:first-child, #userList > .g-row:first-child { border-top-left-radius: 22px; border-top-right-radius: 22px; }
.g-card > .g-row:last-child { border-bottom-left-radius: 22px; border-bottom-right-radius: 22px; }
/* hairline separators, inset past the icon like iOS */
.g-row + .g-row::before, #userList + .g-row::before { content: ""; position: absolute; top: 0; left: 60px; right: 16px; height: 1px; background: color-mix(in oklch, var(--white) 8%, transparent); }
#userList:empty + .g-row::before { display: none; }
.g-row.static { cursor: default; }

.g-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.g-txt b { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-txt > span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-val { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-card .chev, .profile-card .chev { width: 17px; height: 17px; flex: none; color: color-mix(in oklch, var(--text) 45%, transparent); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.g-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--white);
  }
.g-ic svg { width: 18px !important; height: 18px !important; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-ic svg .fill { fill: currentColor; stroke: none; }
.g-ic.spots, .g-ic.log, .g-ic.key, .g-ic.clock { background: color-mix(in oklch, var(--white) 9%, transparent); color: var(--text); }
.g-ic.add { background: color-mix(in oklch, var(--accent-bright) 18%, transparent); color: var(--accent-soft); box-shadow: none; }
.g-ic.out { background: color-mix(in oklch, var(--danger) 16%, transparent); color: var(--danger); box-shadow: none; }
.g-row.add b { color: var(--accent-soft); }
.g-row.danger b { color: var(--danger-soft); }
.g-row .avatar.sm { width: 32px; height: 32px; font-size: 13px; }

/* profile card */
.profile-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 22px; cursor: pointer; }
.profile-card:active { transform: scale(.985); }
.profile-card { transition: transform .25s var(--ease-out); }
.avatar.lg { width: 60px; height: 60px; font-size: 22px; background: var(--accent); }
.profile-card .g-txt b { font-size: 19px; font-weight: 700; }
.profile-card .g-txt > span { font-size: 13.5px; }

/* sign out sits on its own */
.g-out { margin-top: 6px; }

/* forced password change shows the form right on the page */
.pw-inline { padding: 18px !important; }
.pw-inline h3 { margin: 0 0 12px; font-size: 18px; }
.pw-inline .pw-cancel { display: none; }
#mustChangeSlot:empty { display: none; }
/* label first, value gives way (ellipsis) on narrow phones */
.g-row.static .g-txt { flex: 0 0 auto; }
.g-row.static .g-val { flex: 1 1 auto; min-width: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; }

/* =====================================================================
   Tile menus — Add (actions) and Map layers (base previews + overlay toggles)
   ===================================================================== */
.tile-grid { display: grid; gap: 10px; }
.tile-h { margin: 4px 2px 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tile-h ~ .tile-h { margin-top: 18px; }
.visually-hidden, .lyr-tile > input, .ovl-tile > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

/* Add: icon tiles */
.add-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 96px), 1fr)); }
.add-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 16px 6px 13px; border-radius: 22px; cursor: pointer;
  background: color-mix(in oklch, var(--white) 6%, transparent); border: 1px solid color-mix(in oklch, var(--white) 9%, transparent); color: var(--text);
  transition: transform .2s var(--ease-out), background .15s; }
.add-tile:active { transform: scale(.96); background: color-mix(in oklch, var(--white) 10%, transparent); }
@media (hover: hover) { .add-tile:hover { background: color-mix(in oklch, var(--white) 9%, transparent); } }
.add-tile:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.add-ic { width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center; margin-bottom: 8px;
  background: color-mix(in oklch, var(--accent-bright) 22%, transparent); color: var(--accent-soft); }
.add-ic svg { width: 24px !important; height: 24px !important; stroke-width: 2 !important; }
.add-tile b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.add-tile > span:last-child { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Layers: base-map preview tiles */
.lyr-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 100px), 1fr)); }
.lyr-tile { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; cursor: pointer; color: var(--text); }
.lyr-thumb { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; margin-bottom: 7px;
  background: linear-gradient(160deg, var(--sky-day-3), var(--map-sea)); box-shadow: 0 0 0 1px color-mix(in oklch, var(--white) 10%, transparent);
  transition: box-shadow .15s, transform .2s var(--ease-out); }
.lyr-thumb img, .lyr-thumb svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.lyr-tile b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.lyr-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.lyr-tile.exp .lyr-sub { color: var(--warn-soft); }
.lyr-tile:active .lyr-thumb { transform: scale(.97); }
.lyr-tile:has(input:checked) .lyr-thumb { box-shadow: 0 0 0 2.5px var(--accent-bright), 0 0 0 4.5px color-mix(in oklch, var(--accent-bright) 30%, transparent); }
.lyr-tile:has(input:focus-visible) .lyr-thumb { outline: 2px solid var(--accent-soft); outline-offset: 4px; }
.lyr-check { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); opacity: 0; transform: scale(.8); transition: opacity .15s, transform .2s var(--ease-out); }
.lyr-check svg { width: 14px !important; height: 14px !important; stroke-width: 3 !important; fill: none; stroke: currentColor; }
.lyr-tile:has(input:checked) .lyr-check { opacity: 1; transform: none; }

/* Layers: overlay toggle tiles */
.ovl-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.ovl-tile { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; padding: 10px 10px; border-radius: 18px; cursor: pointer;
  background: color-mix(in oklch, var(--white) 6%, transparent); border: 1px solid color-mix(in oklch, var(--white) 9%, transparent); color: var(--text);
  transition: background .15s, border-color .15s; }
.ovl-ic { width: 34px; height: 34px; flex: none; border-radius: 999px; display: grid; place-items: center;
  background: color-mix(in oklch, var(--white) 9%, transparent); color: var(--muted); transition: background .15s, color .15s; }
.ovl-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ovl-ic svg .fill { fill: currentColor; stroke: none; }
.ovl-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ovl-txt b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovl-txt span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovl-tile:has(input:checked) { background: color-mix(in oklch, var(--accent-bright) 16%, transparent); border-color: color-mix(in oklch, var(--accent-bright) 45%, transparent); }
.ovl-tile:has(input:checked) .ovl-ic { background: var(--accent); color: var(--accent-ink); }
.ovl-tile:has(input:checked) .ovl-tile:has(input:focus-visible) { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.ovl-tile:active { transform: scale(.98); }

/* chart overlays — true-shape dots and time labels over the stretched SVG */
.fc-chart { position: relative; }
.fc-chart svg * { vector-effect: non-scaling-stroke; }
.fc-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; pointer-events: none; }
.fc-dot.peak { background: var(--fc-sun); box-shadow: 0 0 0 2px var(--bg); }
.fc-dot.tide { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--fc-tide); }
.fc-dot.now { width: 9px; height: 9px; background: var(--white); box-shadow: 0 0 0 4px color-mix(in oklch, var(--white) 25%, transparent); }
.fc-lbl { position: absolute; white-space: nowrap; pointer-events: none; font-size: 11.5px; font-weight: 650; letter-spacing: 0;
  font-variant-numeric: tabular-nums; line-height: 1; transform: translate(-50%, calc(-100% - 8px)); }
.fc-lbl.below { transform: translate(-50%, 8px); }
.fc-lbl.l { transform: translate(-4px, calc(-100% - 8px)); } .fc-lbl.below.l { transform: translate(-4px, 8px); }
.fc-lbl.r { transform: translate(calc(-100% + 4px), calc(-100% - 8px)); } .fc-lbl.below.r { transform: translate(calc(-100% + 4px), 8px); }
.fc-lbl.peak { color: var(--sun-soft); }
.fc-lbl.tide { color: var(--fc-ink); }
.fc-axis-row { position: relative; height: 16px; margin-top: 4px; font-size: 11px; color: var(--fc-ink-2); font-variant-numeric: tabular-nums; }
.fc-axis-row span { position: absolute; top: 0; transform: translateX(-50%); }
.fc-axis-row span:nth-child(1) { left: 0; transform: none; } .fc-axis-row span:nth-child(2) { left: 25%; }
.fc-axis-row span:nth-child(3) { left: 50%; } .fc-axis-row span:nth-child(4) { left: 75%; }
.fc-axis-row span:nth-child(5) { left: auto; right: 0; transform: none; }

/* =====================================================================
   Navigation — ETA, heading-up, north reset, place search
   ===================================================================== */
/* north reset: appears only while the map is rotated; the needle shows where north is */
.fab.north-btn { width: 44px; height: 44px; border-radius: 999px; position: relative;
  background: var(--glass) !important; border: 1px solid var(--glass-rim) !important; box-shadow: var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); color: var(--text); }
.fab.north-btn svg { transition: transform .15s linear; }
.fab.north-btn svg .n { fill: var(--danger); stroke: none; }
/* locate button in heading-up mode */
.fab-group .fab#fabLocate.heading, .fab-group .fab#fabCompass.heading { color: var(--white); background: var(--accent); border-radius: 999px; }

/* place search */
.place-sheet input[type=search] { margin: 0 0 8px; }
.place-note { margin: 0 4px 6px; }
.place-list { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: color-mix(in oklch, var(--white) 5%, transparent); border: 1px solid color-mix(in oklch, var(--white) 9%, transparent); }
.place-item + .place-item { border-top: 1px solid color-mix(in oklch, var(--white) 7%, transparent); }
.place-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 9px 14px; background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.place-row:active, .place-item.open .place-row { background: color-mix(in oklch, var(--white) 6%, transparent); }
.place-ic { width: 32px; height: 32px; flex: none; border-radius: 999px; display: grid; place-items: center; background: color-mix(in oklch, var(--white) 9%, transparent); color: var(--text); }
.place-ic.spot { background: color-mix(in oklch, var(--accent-bright) 22%, transparent); color: var(--accent-soft); }
.place-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.place-acts { display: none; gap: 8px; flex-wrap: wrap; padding: 2px 14px 12px 58px; background: color-mix(in oklch, var(--white) 6%, transparent); }
.place-item.open .place-acts { display: flex; }
.place-empty { padding: 22px 14px; text-align: center; }
.place-pin { width: 18px; height: 18px; border-radius: 50%; background: var(--sun); border: 3px solid var(--white); box-shadow: 0 1px 4px color-mix(in oklch, var(--black) 50%, transparent); }

/* navigation dock — bottom, minimal: where to, how far, when; stop on the right */
.nav-dock { position: absolute; z-index: 1050; left: 50%; transform: translateX(-50%); width: min(400px, calc(100% - 32px));
  bottom: calc(var(--tabs-h) + var(--tabs-gap) + 10px); display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 20px; border-radius: 28px;
  color: var(--white); background: color-mix(in oklch, var(--accent) 88%, transparent); border: 1px solid color-mix(in oklch, var(--white) 22%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in oklch, var(--white) 25%, transparent), var(--glass-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); }
.nav-main { flex: 1; min-width: 0; }
.nav-to { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.nav-to .nav-arrow { width: 18px; height: 18px; flex: none; background: none; display: grid; place-items: center; }
.nav-to .nav-arrow svg { width: 16px !important; height: 16px !important; fill: var(--white); stroke: none; transition: transform .25s var(--ease-out); }
#navName { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#navBearing { flex: none; font-weight: 500; color: color-mix(in oklch, var(--white) 72%, transparent); font-variant-numeric: tabular-nums; }
#navBearing::before { content: "· "; }
.nav-dist { font-size: 40px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav-dist small { font-size: 22px; font-weight: 600; letter-spacing: 0; }
.nav-eta { display: flex; gap: 6px; align-items: baseline; max-width: 100%; padding: 0; margin-top: 2px; background: none; border: 0; color: inherit; cursor: pointer; font: inherit; text-align: left; }
#navEtaTime { font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
#navEtaSub { font-size: 13px; color: color-mix(in oklch, var(--white) 72%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#navEtaSub:not(:empty)::before { content: "· "; }
.nav-rot { flex: none; width: 46px; height: 46px; padding: 0; border-radius: 999px; display: grid; place-items: center; cursor: pointer;
  background: color-mix(in oklch, var(--white) 16%, transparent); border: 0; color: var(--white); }
.nav-rot svg { width: 24px !important; height: 24px !important; }
.nav-rot.on { background: var(--white); color: var(--accent); }
.nav-stop { flex: none; width: 64px; height: 64px; border-radius: 999px; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--white); }
.nav-stop i { width: 20px; height: 20px; border-radius: 3px; background: var(--accent); }
.nav-stop:active, .nav-rot:active { transform: scale(.94); }
.nav-stop:focus-visible, .nav-rot:focus-visible, .nav-eta:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
/* lift the map's scale/credits above the dock while navigating */
body.nav-on .leaflet-bottom { bottom: calc(var(--tabs-h) + var(--tabs-gap) + 120px); }
@media (max-width: 360px) { .nav-dist { font-size: 34px; } .nav-stop { width: 56px; height: 56px; } }
body.nav-on #toast { bottom: calc(var(--tabs-h) + var(--tabs-gap) + 124px); }

/* my position — boat */
.me-boat { width: 30px; height: 40px; display: grid; place-items: center; transition: transform .25s var(--ease-out);
  filter: drop-shadow(0 1px 3px color-mix(in oklch, var(--black) 60%, transparent)); }
.me-boat svg { width: 24px; height: 32px; }
.me-boat .hull { fill: var(--accent); stroke: var(--white); stroke-width: 2; stroke-linejoin: round; }
.me-boat .deck { fill: var(--white); }
.me-boat.idle .hull { fill: var(--accent); fill-opacity: .65; }

/* Account · My fishing as tiles */
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 104px), 1fr)); gap: 10px; margin: 0 0 18px; }
.acct-tile { display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 0; padding: 14px 14px 13px; border-radius: 24px; cursor: pointer; text-align: left;
  background: color-mix(in oklch, var(--white) 6%, transparent); border: 1px solid color-mix(in oklch, var(--white) 12%, transparent); color: var(--text);
  box-shadow: inset 0 1px 0 color-mix(in oklch, var(--white) 10%, transparent); transition: transform .2s var(--ease-out), background .15s; }
.acct-tile:active { transform: scale(.97); background: color-mix(in oklch, var(--white) 10%, transparent); }
@media (hover: hover) { .acct-tile:hover { background: color-mix(in oklch, var(--white) 9%, transparent); } }
.acct-tile:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.at-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; margin-bottom: 12px; }
.at-n { font-size: 22px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.at-t { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-ic.places { background: color-mix(in oklch, var(--white) 9%, transparent); color: var(--text); }

/* =====================================================================
   True black — OLED appearance. Same Neural Blue accent and Neural Gray text;
   every surface steps down to pure black with neutral (hue-free) greys.
   ===================================================================== */
html[data-theme="black"] {
  --bg: oklch(0% 0 0);
  --panel: oklch(13% 0.004 270);
  --panel-2: oklch(18% 0.006 270);
  --line: oklch(25% 0.008 270);
  --line-strong: oklch(33% 0.010 270);
  --idle: oklch(30% 0.010 268);
  --moon-dark: oklch(22% 0.010 268);
  --map-sea: oklch(8% 0.010 268);
  --sky-night-1: oklch(6% 0.020 271); --sky-night-2: oklch(10% 0.030 270); --sky-night-3: oklch(8% 0.015 271);
}
/* the Forecast page keeps its Neural Dark look in True black — re-declare the originals (and the tokens derived from them) */
html[data-theme="black"] #panel-forecast { --bg: oklch(20.9% 0.035 271); --panel: oklch(23.8% 0.038 271); --panel-2: oklch(28.5% 0.042 270); --line: oklch(33.5% 0.040 268); --line-strong: oklch(42% 0.040 265); --idle: oklch(38% 0.035 262); --moon-dark: oklch(31% 0.040 268); --map-sea: oklch(24% 0.040 268); --sky-night-1: oklch(19% 0.050 271); --sky-night-2: oklch(24% 0.060 270); --sky-night-3: oklch(22% 0.040 271);
  --fc-glass: color-mix(in oklch, var(--bg) 46%, transparent);
  --glass: color-mix(in oklch, var(--panel) 52%, transparent); --glass-strong: color-mix(in oklch, var(--panel) 74%, transparent); }

/* segmented control */
.seg { display: inline-flex; flex: none; padding: 3px; border-radius: 999px; gap: 2px; background: color-mix(in oklch, var(--white) 8%, transparent); }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s; }
.seg button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }
.seg button:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.g-ic.theme { background: color-mix(in oklch, var(--white) 9%, transparent); color: var(--text); }
.g-row.static:has(.seg) .g-txt { flex: 1 1 auto; }

/* =====================================================================
   Bottom navigation — Map + Forecast capsule on the left, Account as its own
   round button on the right; icons only (labels live in aria-label)
   ===================================================================== */
#tabs { left: 16px; right: 16px; width: auto !important; max-width: 520px; margin: 0 auto; transform: none !important; height: var(--tabs-h); padding: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  pointer-events: none; }
#tabs::before { display: none; }
.tab-pill, .tab-solo { pointer-events: auto; position: relative; height: 100%; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-rim); box-shadow: var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); transition: height .3s var(--ease-out), width .3s var(--ease-out); }
.tab-pill { display: flex; padding: 5px; width: 168px; }
.tab-pill::before, .tab-solo::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, color-mix(in oklch, var(--white) 14%, transparent) 0%, transparent 45%); }
#tabs .tab-pill button { flex: 1; height: 100%; }
#tabs button svg { width: 26px; height: 26px; }
#tabs button span { display: none; }
.tab-glider { top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 2); }
#tabs:has(.tab-pill button:nth-child(2).active) .tab-glider { transform: translateX(100%); }
#tabs:has(.tab-solo.active) .tab-glider { opacity: 0; }
#tabs .tab-solo { flex: none; width: var(--tabs-h); padding: 0; display: grid; place-items: center; color: color-mix(in oklch, var(--text) 82%, transparent); }
#tabs .tab-solo.active { color: var(--accent-soft); background: color-mix(in oklch, var(--white) 16%, var(--glass)); }
#tabs button:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
/* minimised while scrolling a page */
#tabs.min { height: 48px; width: auto !important; }
#tabs.min .tab-pill { width: 128px; }
#tabs.min .tab-solo { width: 48px; }
#tabs.min button svg { width: 22px; height: 22px; }
