:root {
  --ink: #eaf4fb;
  --ink-dim: #a4c0d4;
  --ink-faint: #7793a8;
  --accent: #45cfe0;
  --accent-2: #2f86d6;
  --good: #43e08a;
  --caution: #f4cf52;
  --marginal: #ef9a45;
  --nogo: #ef5b6b;
  --glass: rgba(255,255,255,0.06);
  --glass-line: rgba(255,255,255,0.13);
  --radius: 22px;
  --ease: cubic-bezier(.22,.61,.36,1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overscroll-behavior-y: contain; }
html { touch-action: manipulation; } /* kill double-tap zoom delay (iOS+Android) */
input, textarea, .search { -webkit-user-select: text; user-select: text; }
.views { touch-action: pan-y; } /* vertical scroll stays native; JS owns horizontal swipe */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: #051a30; min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; user-select: none;
}

/* ---- Ambient ocean background + bubbles (shifts mood with conditions) ---- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background-image: linear-gradient(180deg, rgba(6,30,54,0.58) 0%, rgba(5,22,42,0.84) 55%, rgba(4,17,34,0.96) 100%), url('img/ocean-bg.jpg');
  background-size: cover; background-position: center; transition: opacity .6s ease; }
.bg::before { content: ""; position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s ease; }
body[data-band="good"]     .bg::before { opacity: 1; background-image: linear-gradient(180deg, rgba(6,30,54,0.5) 0%, rgba(5,22,42,0.82) 60%, rgba(4,17,34,0.96) 100%), url('img/good-bg.jpg'); }
body[data-band="caution"]  .bg::before,
body[data-band="marginal"] .bg::before { opacity: 1; background-image: linear-gradient(180deg, rgba(6,30,54,0.5) 0%, rgba(5,22,42,0.84) 60%, rgba(4,17,34,0.96) 100%), url('img/caution-bg.jpg'); }
body[data-band="no-go"]    .bg::before { opacity: 1; background-image: linear-gradient(180deg, rgba(6,24,44,0.45) 0%, rgba(4,16,32,0.84) 60%, rgba(3,12,26,0.97) 100%), url('img/nogo-bg.jpg'); }
/* slow caustic light sweep */
.bg::after { content: ""; position: absolute; inset: -20%; opacity: 0.5; mix-blend-mode: screen;
  background: radial-gradient(40% 30% at 30% 25%, rgba(69,207,224,0.18), transparent 60%),
              radial-gradient(35% 28% at 75% 70%, rgba(47,134,214,0.16), transparent 60%);
  animation: caustic 26s ease-in-out infinite alternate; }
@keyframes caustic { to { transform: translate(6%, 4%) scale(1.12); } }
.blob { position: absolute; border-radius: 50%; filter: blur(72px); opacity: 0.42; }
.b1 { width: 60vw; height: 60vw; background: #1c84c0; top: -12vw; right: -16vw; animation: drift 18s var(--ease) infinite alternate; }
.b2 { width: 55vw; height: 55vw; background: #115e93; bottom: 2vw; left: -18vw; animation: drift 22s var(--ease) infinite alternate-reverse; }
@keyframes drift { to { transform: translate(4vw, 3vw) scale(1.08); } }
.bubble { position: fixed; bottom: -40px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), rgba(120,220,220,0.05));
  border: 1px solid rgba(255,255,255,0.12); animation: rise linear infinite; }
@keyframes rise {
  0% { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-112vh) translateX(var(--bx, 20px)) scale(1); opacity: 0; }
}

/* ============ SPLASH ============ */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background-image: linear-gradient(180deg, rgba(15,79,118,0.55), rgba(5,26,48,0.92)), url('img/ocean-bg.jpg');
  background-size: cover; background-position: center; transition: opacity .6s ease, visibility .6s; }
.splash.gone { opacity: 0; visibility: hidden; }
.splash-inner { text-align: center; transform: translateY(-6vh); animation: pop .7s var(--ease) both; }
.splash-mark { width: 116px; height: 116px; margin: 0 auto; animation: bob 2.6s ease-in-out infinite; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4)); }
.splash-mark img, .splash-mark svg { width: 100%; height: 100%; }
.splash-title { font-size: 2.2rem; font-weight: 800; letter-spacing: 0.02em; margin-top: 10px; }
.splash-title .z, .ob-kicker .z { color: var(--accent); }
.splash-tag { color: var(--accent); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.74rem; margin-top: 4px; }
.splash-dots { display: flex; gap: 7px; justify-content: center; margin-top: 22px; }
.splash-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0.4; animation: blink 1.1s infinite; }
.splash-dots span:nth-child(2) { animation-delay: .18s; } .splash-dots span:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%,100% { opacity: 0.3; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(-6vh) scale(.94); } to { opacity: 1; } }
.splash-waves, .loader-waves { position: absolute; bottom: 0; left: 0; width: 200%; height: 44vh;
  animation: swell 6s ease-in-out infinite alternate; }
@keyframes swell { from { transform: translateY(6px); } to { transform: translateY(-10px); } }
.wv { fill: rgba(69,207,224,0.14); will-change: transform; }
.wv1 { animation: wave 7s linear infinite; }
.wv2 { fill: rgba(47,134,214,0.13); animation: wave 11s linear infinite reverse; opacity: 0.9; }
.wv3 { fill: rgba(255,255,255,0.06); animation: wave 9s linear infinite; }
.wv4 { fill: rgba(120,230,240,0.10); animation: wave 14s linear infinite reverse; }
@keyframes wave { to { transform: translateX(-50%); } }

/* ============ LOADER OVERLAY ============ */
.loader { position: fixed; inset: 0; z-index: 90; display: grid; place-items: end center;
  background: rgba(5,26,48,0.85); backdrop-filter: blur(4px); transition: opacity .4s; }
.loader.hidden { opacity: 0; pointer-events: none; }
.loader-text { position: absolute; top: 46%; width: 100%; text-align: center; color: var(--ink-dim);
  letter-spacing: 0.04em; animation: blink 1.4s infinite; }

/* ============ SCREENS + TRANSITIONS ============ */
.screen { position: relative; min-height: 100vh; transition: transform .42s var(--ease), opacity .42s var(--ease); }
.screen.hidden { display: none; }
.screen.enter-right { animation: enterRight .42s var(--ease) both; }
.screen.enter-left { animation: enterLeft .42s var(--ease) both; }
.screen.enter-fade { animation: enterFade .5s var(--ease) both; }
@keyframes enterRight { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes enterLeft  { from { transform: translateX(-28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes enterFade  { from { transform: scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============ ONBOARDING ============ */
.onboard { max-width: 560px; margin: 0 auto; padding: calc(34px + env(safe-area-inset-top)) 18px 40px; }
.ob-brand { display: flex; align-items: center; gap: 9px; }
.ob-logo { width: 30px; height: 30px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.ob-kicker { color: var(--accent); letter-spacing: 0.26em; font-size: 0.72rem; font-weight: 700; }
.ob-head h1 { font-size: 1.95rem; line-height: 1.12; margin: 10px 0 8px; letter-spacing: -0.02em; }
.ob-sub { color: var(--ink-dim); font-size: 0.92rem; margin: 0; }
.search-wrap { position: relative; margin: 20px 0 8px; }
.search-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); font-size: 1.1rem; }
.search { width: 100%; padding: 14px 14px 14px 40px; border-radius: 14px; border: 1px solid var(--glass-line);
  background: var(--glass); color: var(--ink); font-size: 1rem; outline: none; }
.search:focus { border-color: var(--accent); }
.spot-list { margin-top: 12px; }
.cat-head { display: flex; align-items: center; gap: 8px; margin: 18px 4px 10px; font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-dim); }
.spot-card { display: flex; align-items: center; gap: 14px; padding: 15px 16px; margin-bottom: 10px;
  border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); cursor: pointer;
  position: relative; overflow: hidden; transition: transform .12s ease, border-color .2s; }
.spot-card:active { transform: scale(.985); }
.spot-card .sc-emoji { font-size: 1.5rem; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 13px; background: rgba(79,227,200,0.12); flex: none; }
.spot-card .sc-body { flex: 1; min-width: 0; }
.spot-card .sc-name { font-weight: 700; font-size: 1.02rem; }
.spot-card .sc-meta { color: var(--ink-dim); font-size: 0.78rem; margin-top: 2px; }
.spot-card .sc-tag { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 8px;
  border-radius: 20px; background: rgba(255,255,255,0.06); color: var(--ink-dim); }
.spot-card .sc-tag.tidal { color: var(--accent-2); background: rgba(56,182,255,0.12); }
.spot-card .sc-tag.river { color: var(--good); background: rgba(67,224,138,0.12); }
.spot-card .sc-tag.coast { color: var(--caution); background: rgba(244,207,82,0.12); }
.spot-card .sc-chevron { color: var(--ink-faint); font-size: 1.3rem; }
.ob-foot { text-align: center; color: var(--ink-faint); font-size: 0.78rem; margin-top: 18px; }

/* ============ GLASS / APP CHROME ============ */
.app { max-width: 560px; margin: 0 auto; padding: env(safe-area-inset-top) 16px calc(98px + env(safe-area-inset-bottom)); }
.glass { background: var(--glass); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-line); border-radius: var(--radius); box-shadow: 0 10px 34px rgba(0,0,0,0.28); }
.topbar { display: flex; align-items: center; gap: 8px; padding: 16px 2px 12px; position: sticky; top: 0; z-index: 8; }
.topbar-title { flex: 1; text-align: center; }
.topbar-title h1 { margin: 0; font-size: 1.12rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.topbar-title .sub { margin: 1px 0 0; font-size: 0.7rem; color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; }
.icon-btn { width: 40px; height: 40px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink);
  font-size: 1.3rem; cursor: pointer; border-radius: 13px; position: relative; overflow: hidden; }

/* ---- Ripple ---- */
.ripple { position: relative; overflow: hidden; }
.ripple .rp { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,0.35);
  animation: ripple .6s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ============ VIEWS ============ */
.views { display: block; }
.view { display: flex; flex-direction: column; gap: 14px; }
.view.hidden { display: none; }
.view:not(.hidden) { animation: enterFade .35s var(--ease) both; }

/* ---- Hero ring ---- */
.hero { position: relative; display: grid; place-items: center; padding: 24px; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 18%, rgba(79,227,200,0.10), transparent 70%); pointer-events: none; }
.ring-wrap { position: relative; display: grid; place-items: center; }
.ring { width: min(64vw, 264px); height: min(64vw, 264px); transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255,255,255,0.10); stroke-width: 14; }
.ring-prog { fill: none; stroke: var(--accent); stroke-width: 14; stroke-linecap: round;
  stroke-dasharray: 603; stroke-dashoffset: 603; transition: stroke-dashoffset 1s var(--ease), stroke .4s;
  filter: drop-shadow(0 0 6px rgba(79,227,200,0.5)); }
.hero-center { position: absolute; text-align: center; }
.hero-icon { width: 46px; height: 46px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.5rem; color: #06242b; background: var(--accent); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(79,227,200,0.45); } 50% { box-shadow: 0 0 0 12px rgba(79,227,200,0); } }
.hero-verdict { font-size: 1.85rem; font-weight: 800; line-height: 1; letter-spacing: -0.01em; }
.hero-band { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); margin-top: 6px; }
.hero-score { margin-top: 8px; color: var(--ink-dim); font-size: 0.88rem; }
.hero-score b { font-size: 1.3rem; color: var(--ink); }
.hero-source { text-align: center; font-size: 0.72rem; color: var(--ink-faint); margin: -4px 0 0; }
.hero[data-band="good"]     .ring-prog { stroke: var(--good); filter: drop-shadow(0 0 6px rgba(67,224,138,0.5)); }
.hero[data-band="good"]     .hero-icon, .hero[data-band="good"] .hero-verdict { color: var(--good); }
.hero[data-band="good"]     .hero-icon { background: var(--good); color: #06242b; }
.hero[data-band="caution"]  .ring-prog { stroke: var(--caution); } .hero[data-band="caution"] .hero-icon { background: var(--caution); } .hero[data-band="caution"] .hero-verdict { color: var(--caution); }
.hero[data-band="marginal"] .ring-prog { stroke: var(--marginal); } .hero[data-band="marginal"] .hero-icon { background: var(--marginal); } .hero[data-band="marginal"] .hero-verdict { color: var(--marginal); }
.hero[data-band="no-go"]    .ring-prog { stroke: var(--nogo); } .hero[data-band="no-go"] .hero-icon { background: var(--nogo); } .hero[data-band="no-go"] .hero-verdict { color: var(--nogo); }

/* ---- Cards ---- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { padding: 15px 16px 16px; position: relative; overflow: hidden; }
.card.wide { grid-column: 1 / -1; }
.card-head { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-dim); display: flex; align-items: center; gap: 7px; }
.card-ico { font-size: 0.95rem; }
.card-main { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.big { font-size: 2rem; font-weight: 750; line-height: 1; }
.unit { font-size: 0.9rem; color: var(--ink-dim); }
.dir { width: 20px; height: 20px; margin-left: auto; fill: var(--accent); transition: transform .5s var(--ease); }
.card-sub { font-size: 0.78rem; color: var(--ink-dim); margin-top: 4px; }
.spark { width: 100%; height: 34px; margin-top: 8px; display: block; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark.area path.fill { fill: rgba(79,227,200,0.16); stroke: none; }
.spark.area path.line { fill: none; stroke: var(--accent); stroke-width: 2; }

/* ---- Best time ---- */
.best { background: linear-gradient(135deg, rgba(79,227,200,0.10), rgba(56,182,255,0.06)); }
.best-window { font-size: 1.5rem; font-weight: 800; margin-top: 10px; }
.best-reason { color: var(--ink-dim); font-size: 0.85rem; margin-top: 4px; }
.best-track { display: flex; gap: 3px; margin-top: 12px; height: 26px; align-items: flex-end; }
.best-track .bt { flex: 1; border-radius: 4px 4px 2px 2px; background: rgba(255,255,255,0.08); transition: height .5s var(--ease); }
.best-track .bt.good { background: var(--good); } .best-track .bt.ok { background: var(--caution); } .best-track .bt.bad { background: rgba(239,91,107,0.5); }
.best-track .bt.now { outline: 2px solid var(--ink); outline-offset: 1px; }

/* ---- Live tracker ---- */
.tracker-main { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; gap: 10px; }
.tracker-state { font-size: 1.15rem; font-weight: 700; }
.tracker-count { font-size: 1.4rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.tide-station { margin-left: auto; color: var(--ink-faint); text-transform: none; letter-spacing: 0; font-size: 0.7rem; }
.tide-curve { width: 100%; height: 80px; margin: 8px 0 4px; display: block; }
.tide-curve path.fill { fill: rgba(79,227,200,0.12); stroke: none; }
.tide-curve path.line { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.tide-curve circle.now { fill: var(--ink); }
.tide-curve circle.pulse { fill: rgba(79,227,200,0.4); animation: nowpulse 2s ease-out infinite; }
@keyframes nowpulse { 0% { r: 4; opacity: .7; } 100% { r: 13; opacity: 0; } }
.tide-times { display: flex; gap: 6px; margin-top: 6px; }
.tide-times .tt { flex: 1; text-align: center; background: rgba(255,255,255,0.05); border-radius: 11px; padding: 8px 4px; }
.tide-times .tt.next { background: rgba(79,227,200,0.14); }
.tide-times .tt .tt-t { font-size: 0.95rem; font-weight: 700; }
.tide-times .tt .tt-l { font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); margin-top: 2px; }

/* ---- Wind vs tide chop ---- */
.chop-badge { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 0.66rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.chop-badge.low { color: var(--good); background: rgba(67,224,138,0.14); }
.chop-badge.moderate { color: var(--caution); background: rgba(244,207,82,0.14); }
.chop-badge.high { color: var(--nogo); background: rgba(239,91,107,0.16); }
.chop-badge.na { color: var(--ink-dim); background: rgba(255,255,255,0.06); }
.chop-body { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.chop-dial { width: 116px; height: 116px; flex: none; }
.chop-ring { fill: rgba(255,255,255,0.03); stroke: rgba(255,255,255,0.12); stroke-width: 1.5; }
.chop-arrow { stroke-width: 5; stroke-linecap: round; }
.chop-arrow.wind { stroke: var(--accent); } .chop-head.wind { fill: var(--accent); }
.chop-arrow.tide { stroke: var(--accent-2); } .chop-head.tide { fill: var(--accent-2); }
#chop-wind, #chop-tide { transform-origin: 60px 60px; transition: transform .6s var(--ease); }
.chop-hub { fill: var(--ink); }
.chop-text { flex: 1; min-width: 0; }
.chop-level { font-size: 1.25rem; font-weight: 800; }
.chop-desc { font-size: 0.84rem; margin-top: 3px; }
.chop-legend { display: flex; gap: 12px; margin-top: 10px; font-size: 0.72rem; }
.chop-legend .lg { display: flex; align-items: center; gap: 5px; color: var(--ink-dim); }
.chop-legend .lg::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.chop-legend .lg.wind::before { background: var(--accent); } .chop-legend .lg.tide::before { background: var(--accent-2); }

/* ---- Alerts / AI ---- */
.alerts { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.alert { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; line-height: 1.35; }
.alert .mk { width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 0.62rem; margin-top: 1px; color: #06242b; }
.alert-info .mk { background: var(--accent); } .alert-warn .mk { background: var(--caution); } .alert-danger .mk { background: var(--nogo); color: #fff; }
.narrative { font-size: 0.98rem; line-height: 1.5; margin: 10px 0 0; }
.narrative.pending { color: var(--ink-dim); font-style: italic; }
.ai-note { font-size: 0.7rem; color: var(--ink-faint); margin: 10px 0 0; }
.updated { text-align: center; font-size: 0.72rem; color: var(--ink-faint); margin: 2px 0 0; }

/* ---- Weather forecast ---- */
.wx { margin-top: 8px; }
.wx-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.wx-row:last-child { border-bottom: none; }
.wx-day { width: 46px; font-weight: 600; font-size: 0.86rem; flex: none; }
.wx-ic { width: 26px; font-size: 1.25rem; text-align: center; flex: none; }
.wx-temp { width: 62px; flex: none; font-size: 0.86rem; }
.wx-temp b { font-weight: 700; } .wx-temp span { color: var(--ink-dim); margin-left: 4px; }
.wx-wind { flex: 1; color: var(--ink-dim); font-size: 0.76rem; } .wx-wind small { font-size: 0.66rem; }
.wx-rain { color: var(--accent); font-size: 0.78rem; flex: none; }

/* ---- Forecast ---- */
.forecast { margin-top: 8px; overflow-x: auto; }
.forecast table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.forecast th { text-align: right; color: var(--ink-dim); padding: 7px 6px; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--glass-line); }
.forecast th:first-child, .forecast td:first-child { text-align: left; }
.forecast td { padding: 8px 6px; text-align: right; border-bottom: 1px solid rgba(255,255,255,0.05); }
.forecast td .h { color: var(--accent); font-weight: 600; }
.forecast .day { font-weight: 600; }
.daylight { margin-top: 10px; display: flex; gap: 14px; }
.daylight .dl { flex: 1; } .daylight .dl b { display: block; font-size: 1.3rem; font-weight: 700; }
.daylight .dl span { font-size: 0.72rem; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- Buttons / settings / log ---- */
.btn { display: block; text-align: center; text-decoration: none; margin-top: 12px; padding: 14px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06242b; font-weight: 700; font-size: 0.96rem; border: none; width: 100%; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--glass-line); }
.btn:active { transform: translateY(1px); }
.muted { color: var(--ink-dim); font-size: 0.85rem; line-height: 1.5; }
.logbook { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.log-row { display: flex; justify-content: space-between; gap: 10px; font-size: 0.85rem; padding: 11px 13px; background: rgba(255,255,255,0.05); border-radius: 12px; }
.log-row .lr-band { font-weight: 700; } .log-row .lr-meta { color: var(--ink-dim); font-size: 0.75rem; }
.set-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.set-title { font-weight: 600; } .set-desc { color: var(--ink-dim); font-size: 0.78rem; margin-top: 2px; }
.set-status { color: var(--ink-faint); font-size: 0.76rem; margin: 10px 0 0; }
.toggle { flex: none; width: 52px; height: 30px; border-radius: 30px; border: 1px solid var(--glass-line); background: rgba(255,255,255,0.08); position: relative; cursor: pointer; transition: background .25s; }
.toggle span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); transition: left .25s var(--ease); }
.toggle[aria-checked="true"] { background: var(--accent); } .toggle[aria-checked="true"] span { left: 25px; background: #06242b; }

/* ---- Bottom nav ---- */
.bottom-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(528px, calc(100% - 24px)); display: flex; padding: 8px; gap: 2px; z-index: 10; }
.nav-item { flex: 1; background: transparent; border: none; color: var(--ink-faint); font-size: 0.66rem; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 13px; cursor: pointer; transition: color .2s; }
.nav-item span { font-size: 1.2rem; transition: transform .2s var(--ease); }
.nav-item.active { color: var(--accent); background: rgba(79,227,200,0.10); }
.nav-item.active span { transform: translateY(-2px) scale(1.1); }
