:root {
  --bg: #101614; --surface: #1A2320; --surface-2: #2B413C; --line: #3A4A45;
  --text: #EEF2EE; --muted: #A9B5AE; --soft: #C4CEC8;
  --accent: #FF8A3D; --accent-ink: #101614;
  --typ: #6F8C85; --curve: #8FB0A8; --band: #2B413C; --grid: #24302C;
  --exp-bg: #3A3326; --exp-fg: #FFC58A; --ok-bg: #20352C; --ok-fg: #9FD8B5; --cold: #9FC3DA; --live: #F5676B;
  --body: 'Barlow', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --stack-gap: 22px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101614; --surface: #1A2320; --surface-2: #2B413C; --line: #3A4A45;
    --text: #EEF2EE; --muted: #A9B5AE; --soft: #C4CEC8;
    --accent: #FF8A3D; --accent-ink: #101614;
    --typ: #6F8C85; --curve: #8FB0A8; --band: #2B413C; --grid: #24302C;
    --exp-bg: #3A3326; --exp-fg: #FFC58A; --ok-bg: #20352C; --ok-fg: #9FD8B5; --cold: #9FC3DA; --live: #F5676B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101614; --surface: #1A2320; --surface-2: #2B413C; --line: #3A4A45;
  --text: #EEF2EE; --muted: #A9B5AE; --soft: #C4CEC8;
  --accent: #FF8A3D; --accent-ink: #101614;
  --typ: #6F8C85; --curve: #8FB0A8; --band: #2B413C; --grid: #24302C;
  --exp-bg: #3A3326; --exp-fg: #FFC58A; --ok-bg: #20352C; --ok-fg: #9FD8B5; --cold: #9FC3DA; --live: #F5676B;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F1F4F2; --surface: #FFFFFF; --surface-2: #DCE6E2; --line: #C6D2CD;
  --text: #13201C; --muted: #56655F; --soft: #37443F;
  --accent: #B8500C; --accent-ink: #FFFFFF;
  --typ: #7D958E; --curve: #4F7068; --band: #DCE6E2; --grid: #E6ECE9;
  --exp-bg: #FBE7CF; --exp-fg: #7A4308; --ok-bg: #DDF0E5; --ok-fg: #1E5A38; --cold: #2F6F95; --live: #B91C22;
  color-scheme: light;
}
html { height: 100%; scroll-padding-top: env(safe-area-inset-top, 0px); touch-action: manipulation; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; touch-action: manipulation; }
/* touch-action: manipulation suppresses the double-tap-to-zoom gesture (and its ~300ms tap
   delay) on buttons/links/inputs, without disabling pinch-to-zoom (no user-scalable=no). */
button, input, textarea, a { font: inherit; color: inherit; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.app { max-width: 440px; margin: 0 auto; padding: 16px 22px 40px; }
.screen { display: none; flex-direction: column; gap: var(--stack-gap); }
.screen.active { display: flex; }
/* Layout lives in the class (not an inline style) so toggling .style.display via JS (setShown)
   to show/hide this block can't blow away its flex-direction/gap (BACKLOG Q16: the home-page
   gap between the day strip and season cards was collapsing to 0 because clearing an inline
   `display:flex` falls back to block, not the class). */
.fc-parts { display: flex; flex-direction: column; gap: var(--stack-gap); }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: 0.02em; white-space: nowrap; flex: none; } /* "Duck Boss" stays on one line; the place pill shrinks instead */
.topbar-right { display: flex; gap: 8px; align-items: center; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 22px; border: none; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 500; max-width: 230px; min-width: 0; }
.pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 22px; border: none; background: var(--surface); color: var(--text); }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: none; background: none; color: var(--soft); font-size: 16px; }
.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.card { background: var(--surface); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); }
.card-heading { margin: 0; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1; text-align: center; color: var(--text); }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.display { font-family: var(--display); font-weight: 700; }
.divider { border-top: 1px solid var(--line); padding-top: 12px; }
.fine { font-size: 12px; color: var(--muted); }

.exp { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; color: var(--soft); }
.tag { flex-shrink: 0; padding: 2px 8px; border-radius: 6px; background: var(--exp-bg); color: var(--exp-fg); font-size: 12px; font-weight: 600; }
.tag.ok { background: var(--ok-bg); color: var(--ok-fg); }

.why { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.why .icon { margin-top: 3px; color: var(--accent); }
.why.cold .icon { color: var(--cold); }
.linkish { border: none; background: none; padding: 0; min-height: 36px; color: var(--accent); font-weight: 600; font-size: 15px; }

.season-wrap { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.season-wrap svg { display: block; width: 100%; height: auto; pointer-events: none; }
.season-touch { position: absolute; inset: 0; z-index: 2; touch-action: pan-y; -webkit-touch-callout: none; }
.zoom-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px; }
.zoom-btns { display: flex; gap: 6px; }
.zoom-btns button { min-width: 44px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--soft); font-size: 15px; padding: 0 10px; }
.zoom-btns button:disabled { opacity: 0.4; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border-radius: 14px; border: none; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 17px; width: 100%; }
.btn:disabled { background: var(--surface); color: var(--muted); }
.btn.secondary { background: none; border: 1px solid var(--line); color: var(--text); }
.btn.dashed { background: none; border: 1px dashed var(--line); color: var(--soft); font-weight: 500; font-size: 15px; min-height: 48px; }

.bar { position: relative; height: 10px; border-radius: 5px; background: var(--band); }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--accent); }
.bar .tick { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--text); }
h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.02; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > .label, .field > label { font-size: 14px; font-weight: 600; color: var(--soft); }
.seg { display: grid; gap: 8px; }
.seg button { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 15px; font-weight: 500; padding: 0 4px; }
.seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.input { min-height: 52px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 17px; width: 100%; }
textarea.input { padding: 12px 14px; min-height: 88px; resize: vertical; font-size: 16px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 4px; border-radius: 12px; background: var(--surface); }
.stepper.readonly { background: none; border: 1px dashed var(--line); }
.stepper button { width: 44px; height: 44px; border-radius: 10px; border: none; background: var(--surface-2); color: var(--text); font-size: 22px; line-height: 1; }
.stepper button:disabled { opacity: 0.3; }
.stepper output { font-family: var(--display); font-weight: 700; font-size: 28px; }
.stepper.readonly output { color: var(--muted); }
.hint { font-size: 12px; color: var(--muted); }
.species { display: flex; flex-direction: column; gap: 4px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.species-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 0 16px; border: none; background: none; color: var(--text); text-align: left; width: 100%; }
.species-toggle .chev { transition: transform 0.15s; }
.species-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.species-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 4px; }
/* Weather cards (day detail, "More details"), mockup variant B: public/mockups/day-weather.html */
.wx-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 6px; }
.wx-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.wx-card .top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.wx-card .val { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; }
.wx-card .val small { font-family: var(--body); font-weight: 500; font-size: 14px; color: var(--muted); margin-left: 4px; }
.wicon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.species-body h3 { margin: 10px 0 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sp-row { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.sp-row .name { flex-grow: 1; font-size: 16px; }
.sp-row.zero .name, .sp-row.zero output { color: var(--muted); }
.sp-row button { width: 44px; height: 44px; border-radius: 10px; border: none; background: var(--surface); color: var(--text); font-size: 22px; line-height: 1; }
.sp-row button:disabled { opacity: 0.35; }
.sp-row button.plus { background: var(--surface-2); }
.sp-row output { width: 28px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 24px; }

.loc-item { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--surface); min-height: 64px; }
.loc-item.active { outline: 1.5px solid var(--accent); }
.loc-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; border: none; background: none; text-align: left; padding: 6px 0; color: var(--text); }
.loc-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.loc-main .row { gap: 6px; }
.in-use { font-size: 12px; font-weight: 600; color: var(--accent); }

.hunt { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; background: var(--surface); border: none; color: var(--text); text-align: left; width: 100%; }
.hunt:hover { background: var(--surface-2); }
.hunt .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.totals { display: flex; flex-wrap: wrap; gap: 8px; }
.totals span { padding: 4px 10px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.empty { padding: 28px 18px; border-radius: 14px; border: 1px dashed var(--line); color: var(--soft); text-align: center; }
.proto-note { font-size: 12px; color: var(--muted); text-align: center; margin: 0; }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 10px 14px 10px 16px; border-radius: 14px; background: var(--surface); border: none; color: var(--text); text-align: left; width: 100%; }
.switch-row .sub { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.switch { position: relative; flex-shrink: 0; width: 52px; height: 32px; border-radius: 16px; background: var(--surface-2); transition: background 0.15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 13px; background: var(--muted); transition: transform 0.15s, background 0.15s; }
.switch-row[aria-checked="true"] .switch { background: var(--accent); }
.switch-row[aria-checked="true"] .switch::after { transform: translateX(20px); background: var(--accent-ink); }
.code { font-family: var(--display); font-weight: 700; font-size: 46px; letter-spacing: 0.06em; line-height: 1; }
.gday { display: flex; flex-direction: column; gap: 8px; }
.gday-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 4px 0; }
.gentry { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: none; color: var(--text); text-align: left; width: 100%; font-size: 15px; }
button.gentry:hover { background: var(--surface-2); }
.gentry .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.gtag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--soft); font-size: 12px; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 20px); max-width: 90vw; padding: 12px 18px; margin-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast, .species-toggle .chev, .switch, .switch::after { transition: none; } }

/* ---- additions for the real app (prototype look kept) ---- */
.sample-banner { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px; text-align: center; line-height: 1.25; }
.sample-banner .icon { width: 16px; height: 16px; }
.notice { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--accent); font-size: 14px; color: var(--soft); }
.notice strong { color: var(--text); }
.updated { font-size: 12px; color: var(--muted); }
.tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sync-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--exp-bg); color: var(--exp-fg); font-size: 12px; font-weight: 600; }
.choices { display: flex; flex-direction: column; gap: 6px; }
.choices:empty { display: none; }
.choices button { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; padding: 0 14px; font-size: 16px; }
.choices button.active, .choices button:hover { background: var(--surface-2); border-color: var(--accent); }
.limit-note { margin: 4px 0 0; text-align: center; font-size: inherit; color: inherit; font-weight: 400; }
#d-fine.limit-note { text-align: left; }
.btn.danger { background: none; border: 1px solid var(--line); color: var(--soft); font-weight: 500; }
.btn.danger.armed { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.code-input { text-transform: uppercase; letter-spacing: 0.08em; }
.empty.area { display: flex; flex-direction: column; gap: 8px; align-items: center; }

/* ---- Q28 hunt rating (design: public/mockups/q28-examples.html, conditions-ab.html layout A) ---- */
.updated-foot { margin: 0; text-align: center; }
.offline-note { margin: 0; }
.word { font-family: var(--display); font-weight: 700; }
.w-hot { color: var(--accent); } .w-good { color: var(--ok-fg); } .w-fair { color: var(--soft); } .w-slow { color: var(--muted); }
.compared { font-size: 13px; color: var(--muted); }
.closed-text { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1; color: var(--muted); text-align: center; }
.closed-text small { display: block; font-family: var(--body); font-weight: 500; font-size: 14px; }
.cond-list { display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); border-radius: 14px; padding: 14px; margin-top: 6px; }
.cond-list .row { align-items: flex-start; font-size: 15px; }
.cond-list .wicon { margin-top: 2px; }
.ask-card { gap: 10px; }
.ask-card .ask-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ask-card .ask-btns .btn { min-height: 46px; font-size: 15px; }
.app-said { font-size: 15px; font-weight: 600; }
.app-said .word { font-size: 17px; }

/* ---- Home redesign (Daniel 2026-10-04): day card with arc meter, week bars, season card, explainer sheet ---- */
.day-card { gap: 10px; padding: 18px 20px 16px; position: relative; }
.today-btn { align-self: flex-start; min-height: 32px; padding: 0 12px; border-radius: 16px; background: var(--surface-2); color: var(--text); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.today-btn::before { content: '‹'; font-size: 18px; line-height: 1; }
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.day-date { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.day-date .display { font-size: 28px; line-height: 1; }
.day-date .muted { font-size: 15px; }
.best-tag { background: var(--exp-bg); color: var(--exp-fg); }
.meter { position: relative; width: 220px; max-width: 100%; margin: 2px auto 0; }
.meter-svg { display: block; width: 100%; height: auto; }
.meter-num { position: absolute; left: 0; right: 0; top: 36%; text-align: center; font-size: 84px; line-height: 1; color: var(--text); }
.meter-num.tiny { font-size: 28px; top: 42%; color: var(--muted); }
.rating-label { align-self: center; display: inline-flex; align-items: center; gap: 6px; border: none; background: none; padding: 0 6px; min-height: 36px; margin-top: -8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.info-i { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 9px; border: 1.5px solid var(--muted); font-family: var(--body); font-size: 11px; font-weight: 700; font-style: normal; line-height: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.why-wrap:empty { display: none; }
.why-wrap .why { font-size: 15px; }
/* Day-card tiles (redesign with Daniel 2026-10-06; public/mockups/wind-compass.html; home-ui.js dayTiles): label
   top left, value bottom left (one display size across a row, smaller units), and a graphic only where it carries
   information: a 34px corner graphic (sun, compass, sun-and-cloud) or full-height bars on the right edge
   (temperature range, rain/snow gauges). Rows stretch to the tallest tile, so values share one baseline.
   Width budget (measured in Barlow 11px): "Shooting" is 47px and "Temperature" 69px, so the row reaches 10px into
   the card's side padding and the corner graphic is 28px; that fits from a 360px-wide phone up. Labels wrap only
   between words. Below 350px the corner graphics drop out (the words say the same). */
.wx-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 2px -10px 0; }
.wx-cards.three .wx-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  min-height: 92px; padding: 10px 8px; min-width: 0; }
.wx-cards.three .wx-card .lab { font-size: 11px; line-height: 13px; font-weight: 600; color: var(--muted); }
.wx-cards.three .wx-card.graphic .lab { max-width: calc(100% - 32px); }
.wx-cards.three .wx-card.barred { padding-right: 20px; }
.wx-cards.three .wx-card.barred.two { padding-right: 28px; }
/* the bars start under the label, so the label may use the bar column's width too */
.wx-cards.three .wx-card.barred .lab { margin-right: -12px; }
.wx-cards.three .wx-card.barred.two .lab { margin-right: -20px; }
.wx-cards.three .wx-card .val { display: block; font-size: 22px; line-height: 1; white-space: nowrap; min-width: 0; }
.wx-cards.three .wx-card .val small, .wx-card .hl small { font-family: var(--body); font-weight: 500; font-size: 11px; color: var(--muted); margin-left: 2px; }
.wx-cards.three .wx-card .val.none { color: var(--muted); font-size: 20px; }
.wx-card .sub { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.wx-card .hl { display: flex; flex-direction: column; gap: 3px; }
.wx-card .hl div { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1; white-space: nowrap; }
.wx-card.two .hl div { font-size: 18px; }
.wx-card .gfx { position: absolute; top: 8px; right: 8px; line-height: 0; }
/* bars start under the one-line label, so the label gets the tile's full width */
.wx-card .bars { position: absolute; right: 8px; top: 30px; height: calc(100% - 40px); display: flex; gap: 4px; }
.wxg, .wxbar { display: block; overflow: visible; }
.wxbar { width: 6px; height: 100%; }
.wx-card.two .wxbar { width: 5px; }
.wxi { width: 12px; height: 12px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -1px; margin-right: 3px; }
.wxi.rain { stroke: var(--curve); } .wxi.snow { stroke: var(--text); } .wxi.dim { stroke: var(--muted); }
.g-ring { fill: none; stroke: var(--muted); stroke-width: 1.6; }
.g-tick { stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; }
.g-n { fill: var(--muted); font: 600 5px var(--body); text-anchor: middle; }
.g-wedge, .g-sun, .g-sundisc, .g-warm { fill: var(--accent); }
.g-ray { stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.g-path { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 1.5 2; }
.g-horizon { stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; }
.g-track { fill: var(--line); }
.g-cold { fill: var(--cold); }
.g-rain { fill: var(--curve); }
.g-snow { fill: var(--text); }
.g-frz { stroke: var(--text); stroke-width: 1.2; stroke-linecap: round; }
.g-gtick { stroke: var(--muted); stroke-width: 1; }
.g-cloud { fill: var(--soft); stroke: var(--surface-2); stroke-width: 1.4; vector-effect: non-scaling-stroke; paint-order: stroke; }
/* Narrow phones (under 350px): no corner graphics, slightly smaller small text, and "in" dropped on mixed days. */
@media (max-width: 349px) {
  .wx-card .gfx { display: none; }
  .wx-cards.three .wx-card.graphic .lab { max-width: none; }
  .wx-cards.three .wx-card .lab, .wx-card .sub { font-size: 10px; }
  .wx-card .u { display: none; }
}
.live-row { min-height: 0; margin-top: -4px; }
/* "LIVE · updated <time>" (item 7): the badge in --live (checked: 5.4:1 on the dark surface, 6.5:1 on white). */
.live-badge { display: inline-flex; align-items: center; gap: 4px; color: var(--live); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 0; }
.live-dot { width: 6px; height: 6px; border-radius: 3px; background: var(--live); }
.changed-note { margin: 0; font-size: 14px; color: var(--exp-fg); display: flex; gap: 8px; align-items: flex-start; }
.more-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: none; background: none; color: var(--accent); font-weight: 600; font-size: 15px; width: 100%; }
.more-toggle .chev { transition: transform 0.15s; }
.more-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.more-body { display: flex; flex-direction: column; gap: 14px; margin-top: -6px; }
.closed-text { padding: 10px 0; }

.week-card { gap: 10px; padding: 16px 16px 12px; }
.week-title { font-size: 17px; font-weight: 600; }
.week-title.none { color: var(--muted); font-weight: 500; }
/* Week bars (items 3-4): each column is bottom-aligned, so BEST and the score ride on top of the bar; the column
   height (--colh, set per render) is the week's tallest bar plus room for the two labels, nothing more, so a quiet
   week has no empty band above it while bars keep the absolute 0.8 px per point scale. */
/* The strip scrolls sideways (Daniel 2026-10-06): seven columns fill the card, later days (forecast, then the
   typical-only tail) scroll in from the right, snapping to whole columns. */
/* The strip's return button floats at the right of the title row, so showing it never moves the bars. */
.week-head { position: relative; }
.week-head .today-btn { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.week-head:has(.today-btn:not([hidden])) .week-title { padding-right: 104px; }
.week-bars { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 6 * 4px) / 7); gap: 4px; align-items: end;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.week-bars::-webkit-scrollbar { display: none; }
.week-bars .wbar { scroll-snap-align: start; }
.wbar { display: flex; flex-direction: column; align-items: center; gap: 4px; border: none; background: none; padding: 6px 2px 4px; border-radius: 12px; color: var(--muted); }
.wbar.best { background: var(--surface-2); }
.wbar .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; width: 100%; height: var(--colh, 116px); }
.wbar .bestlab { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); line-height: 12px; }
.wbar .num { font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1; color: var(--text); }
.wbar .fill { width: 100%; max-width: 26px; border-radius: 6px 6px 3px 3px; background: var(--accent); min-height: 3px; flex-shrink: 0; }
.wbar.past .fill { background: var(--line); }
.wbar.past .num { color: var(--muted); }
.wbar.closed .fill { background: var(--line); opacity: 0.5; }
/* Typical-only days: an outlined bar and a muted score, so they read as "usual for the date", not a forecast. */
.wbar.typ .fill { background: none; box-shadow: inset 0 0 0 1.5px var(--line); }
.wbar.typ .num { color: var(--muted); font-weight: 500; }
.why.typ { color: var(--muted); }
.wbar .closedlab { font-size: 10px; font-weight: 600; color: var(--muted); line-height: 1; }
.wbar .wd { position: relative; display: flex; flex-direction: column; align-items: center; font-size: 12px; font-weight: 500; padding-bottom: 5px; }
.wbar .wd .md { font-size: 11px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.wbar[aria-pressed="true"] .wd { color: var(--text); font-weight: 700; }
.wbar[aria-pressed="true"] .wd::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 14px; height: 2px; margin-left: -7px; border-radius: 1px; background: var(--text); }
.wbar.today .wd { color: var(--text); }
/* "Hunting this day" marker: a 5px accent dot in its own row under the weekday label (below the selected-day
   underline, clear of the BEST shading); the row is always there so columns stay the same height. */
.wbar .plan { display: block; width: 5px; height: 5px; border-radius: 3px; margin-top: -2px; }
.wbar .plan.on { background: var(--accent); }

.season-card { padding: 18px 16px 14px; }
.season-title { font-size: 20px; line-height: 1.1; }
.species-list { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.sp-mix { display: grid; grid-template-columns: minmax(0, 1fr) 44px 42px 76px; align-items: center; gap: 8px; font-size: 14px; }
.sp-mix .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-mix .bar { height: 8px; border-radius: 4px; background: var(--grid); overflow: hidden; }
.sp-mix .bar i { display: block; height: 100%; background: var(--curve); border-radius: 4px; }
.sp-mix .pct { text-align: right; font-family: var(--display); font-weight: 700; font-size: 16px; }
.sp-mix .tr { font-size: 12px; text-align: right; color: var(--muted); white-space: nowrap; }
.sp-mix .tr.up { color: var(--ok-fg); } .sp-mix .tr.down { color: var(--exp-fg); }

.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 440px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 22px 22px calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }
.sheet h2 { margin: 0; font-size: 28px; line-height: 1; }
/* Sheet header with a close (X) at top right; sticky so it stays reachable while a long sheet scrolls. */
.sheet-head { position: sticky; top: -22px; z-index: 1; margin: -22px -22px 0; padding: 22px 14px 8px 22px; background: var(--surface); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-head h2 { padding-top: 6px; }
.sheet-x { flex-shrink: 0; width: 44px; height: 44px; margin-top: -4px; display: grid; place-items: center; border: none; border-radius: 50%; background: transparent; color: var(--muted); }
.sheet-x:hover, .sheet-x:focus-visible { background: var(--line); color: var(--text); }
.sheet-x .icon { width: 22px; height: 22px; }
.sheet-body { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--soft); }
.sheet-body p { margin: 0; }
/* Explainer sections (item 6): icon + heading, one short paragraph, a small figure; the region note as a footer. */
.xsec { display: flex; flex-direction: column; gap: 6px; }
.xhead { display: flex; align-items: center; gap: 8px; }
.xhead h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); }
.xicon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xfig { margin-top: 2px; }
.xscale { position: relative; padding: 22px 0 12px; }
.xtrack { position: relative; height: 8px; border-radius: 4px; background: var(--surface-2); }
.xfill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--accent); }
.xmark { position: absolute; top: -4px; width: 2px; height: 16px; margin-left: -1px; background: var(--text); border-radius: 1px; }
.xends { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.xmarklab { position: absolute; top: 0; transform: translateX(-50%); font-size: 12px; line-height: 14px; color: var(--text); white-space: nowrap; }
.xbars { display: block; height: 44px; width: auto; }
/* Regulations row + sheet (public/js/regs.js): a single tappable row under the season card; the sheet lists the
   state's rules in short headed sections and ends with "Last checked" + the agency link. */
.regs-row { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; border-radius: 14px; border: none; background: var(--surface); color: var(--text); text-align: left; width: 100%; font-size: 16px; font-weight: 600; }
.regs-row .icon { color: var(--accent); }
.regs-row .regs-label { flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.regs-row .chev { color: var(--muted); }
.regs-body { gap: 14px; }
.regs-body .rsub { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: -6px; }
.rsec { display: flex; flex-direction: column; gap: 4px; }
.rsec h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.rsec p { color: var(--text); }
.rlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.rzone { color: var(--exp-fg); font-size: 14px; }
.runit { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); margin-top: 4px; }
.runit .rname { font-weight: 600; margin-bottom: 2px; }
.regs-foot { margin: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
/* Town search: extra room below the active screen while a town input has focus, so the input can be scrolled to
   the top of the visible area above the keyboard (item 1). */
.screen.kb-pin { padding-bottom: var(--kb-pad, 100vh); }
@media (prefers-reduced-motion: reduce) { .more-toggle .chev { transition: none; } }
