/* GarDone — design system (hand-written, zero dependencies).
   Palette, type, spacing, radius, and shadows come straight from the GarDone brand package
   (see ../../brand/BRAND_SPEC.md). Change tokens here to restyle the whole app. */

:root {
  /* ---- Brand palette (16-color system) ---- */
  --primary:        #2C5F2E;  /* Forest Green — brand, CTAs, active states */
  --primary-press:  #244F26;  /* pressed/hover forest */
  --accent:         #87A96B;  /* Sage Green — accents, icons */
  --accent-soft:    #E9EEE2;  /* sage wash — thumbnails, soft fills */
  --bg:             #F4EFE6;  /* Warm Cream — app canvas */
  --surface:        #F9F7F3;  /* Off-White — cards, sheets, inputs */
  --surface-2:      #FFFFFF;  /* pure white for elevated bits */
  --ink:            #1C1C1E;  /* Charcoal — primary text, headings */
  --ink-soft:       #5A5A5E;  /* Muted Slate — secondary text, meta */
  --line:           #E2DDD5;  /* Warm Border — borders, dividers */
  --sow:            #4A9B5F;  /* Sprout Green — sow */
  --transplant:     #E8934A;  /* Terra Amber — transplant */
  --harvest:        #C8973A;  /* Harvest Gold — harvest-ready */
  --water:          #4A90C4;  /* Rain Blue — watering, rainfall */
  --warn:           #D94F3D;  /* Alert Red — alerts, overdue */
  --warn-soft:      #FBEAE6;  /* alert wash */
  --overlay:        rgba(28,28,30,.15);

  /* ---- Accessible "ink" variants (WCAG AA: ≥4.5:1 as text, white-on-fill) ----
     Use these wherever a state color carries TEXT or white-on-color. Keep the
     brighter base tokens above for fills, dots, soft tints, and borders. */
  --sow-ink:        #39784A;  /* was #4A9B5F */
  --transplant-ink: #965F30;  /* was #E8934A */
  --harvest-ink:    #876627;  /* was #C8973A */
  --water-ink:      #3A7099;  /* was #4A90C4 */
  --warn-ink:       #BB4434;  /* was #D94F3D */
  --earth-ink:      #975A27;  /* was #B26A2E */

  /* ---- Type ---- */
  --font-head: 'Jost', 'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
  --font-body: 'DM Sans', 'Inter', -apple-system, system-ui, 'Segoe UI', sans-serif;

  /* ---- Spacing ---- */
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 32px;

  /* ---- Radius ---- */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

  /* ---- Elevation ---- */
  --shadow-card:  0 2px 12px rgba(28,28,30,.08);
  --shadow-pop:   0 8px 32px rgba(28,28,30,.18);
  --maxw: 720px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 88px; /* room for bottom nav */
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.2px; }

/* ---------- Accessibility ---------- */
/* Visually-hidden but available to screen readers (headings, labels). */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
/* Visible keyboard focus on every interactive element (links, buttons, chips). */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
/* The main region is focused programmatically on route change — suppress its ring. */
#view:focus { outline: none; }
/* Honor the OS "reduce motion" setting. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- Header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.app-header .bar {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
}
.app-header img { height: 30px; display: block; }
.app-header .zone-chip {
  margin-left: auto; font-family: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--primary); background: color-mix(in srgb, var(--accent) 22%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 6px 12px; border-radius: var(--r-pill); cursor: pointer; white-space: nowrap; position: relative;
}
/* hitSlop: ~44px tap target without bulking up the header visually. */
.app-header .zone-chip::after { content: ""; position: absolute; inset: -9px; }
main { max-width: var(--maxw); margin: 0 auto; padding: 20px 16px 28px; }

/* ---------- Titles / sections ---------- */
.screen-title { font-size: 30px; font-weight: 600; margin: 2px 0 2px; letter-spacing: -.6px; }
.screen-sub { color: var(--ink-soft); margin: 0 0 18px; font-size: 14px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 12px; gap: 12px; }
.section-head h2 { font-size: 17px; font-weight: 600; margin: 0; }
.section-head .more { font-size: 13px; color: var(--primary); font-weight: 600; text-decoration: none; }
/* Premium uppercase eyebrow label (used for section labels matching the brand mockups) */
.eyebrow { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary); margin: 26px 0 12px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 560px){ .grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 14px; text-decoration: none; color: inherit; display: block;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:active { transform: scale(.985); }
.card .name { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.card .emoji { line-height: 1; }

/* Thumbnail tile that holds a crop emoji (placeholder until food-crop photos drop in) */
.thumb {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent-soft), #DCE6D2);
  border-radius: var(--r-md); line-height: 1;
}
.thumb .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .thumb-emoji { display: none; }
.thumb .thumb-emoji.show { display: block; }
.plant-card { padding: 0; overflow: hidden; }
.plant-card .thumb { width: 100%; height: 116px; font-size: 40px; border-radius: 0; }
.plant-card .pc-body { padding: 10px 12px 12px; }
.plant-card .name { font-family: var(--font-head); font-weight: 600; font-size: 15.5px; }
.plant-card .meta { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }

/* Seasonal pick card — uniform / equal height, action-led */
.picks-grid .pick-card { min-height: 168px; display: flex; flex-direction: column; position: relative; }
.pick-card { padding: 0; overflow: hidden; }
.pick-card .pc-media { position: relative; }
.pick-card .thumb { width: 100%; height: 108px; font-size: 36px; border-radius: 0; }
.pick-card .pc-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.pick-card .name { font-family: var(--font-head); font-weight: 600; font-size: 15.5px; }
.pick-card .meta { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.pick-card .meta.late { color: var(--warn-ink); font-weight: 700; margin-top: auto; padding-top: 6px; }
.pick-card .meta.ideal { color: var(--sow-ink); font-weight: 700; margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 4px; }
.pick-card .badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 11px; font-weight: 700; color: #fff; background: var(--sow-ink);
  padding: 3px 9px; border-radius: var(--r-pill); letter-spacing: .02em;
}
.pick-card .badge.transplant { background: var(--transplant-ink); }
.pick-card .badge.sow { background: var(--sow-ink); }

/* ---------- Status pills (solid) + soft tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: #fff; background: var(--primary);
  padding: 4px 11px; border-radius: var(--r-pill); letter-spacing: .01em; white-space: nowrap;
}
.pill.sow { background: var(--sow-ink); }
.pill.transplant { background: var(--transplant-ink); }
.pill.harvest { background: var(--harvest-ink); }
.pill.growing { background: var(--primary); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.tag.earth { background: #F7E9DA; color: var(--earth-ink); border-color: color-mix(in srgb, var(--transplant) 38%, transparent); }
.tag.muted { background: #EEEBE4; color: var(--ink-soft); border-color: var(--line); }

/* ---------- Buttons / inputs ---------- */
.btn {
  font: inherit; font-weight: 600; border: none; cursor: pointer;
  background: var(--primary); color: #fff;
  padding: 13px 18px; border-radius: var(--r-md); width: 100%;
  transition: background .12s ease, transform .12s ease;
}
.btn:hover { background: var(--primary-press); }
.btn:active { transform: scale(.99); }
.btn.secondary { background: var(--accent-soft); color: var(--primary); }
.btn.secondary:hover { background: color-mix(in srgb, var(--accent) 30%, var(--surface)); }
.btn.ghost { background: transparent; color: var(--primary); padding: 11px 14px; width: auto; font-weight: 600; min-height: 44px; }
.btn:disabled { opacity: .5; cursor: default; }

input, select {
  font: inherit; width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink);
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
label.field { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }

/* ---------- Stat chips (My Garden header summary) ---------- */
.statchips { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 4px 0 8px; }
.statchip {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-card); padding: 12px; display: flex; flex-direction: column; gap: 2px;
}
.statchip .num { font-family: var(--font-head); font-weight: 600; font-size: 24px; line-height: 1.05; }
.statchip .lbl { font-size: 12px; color: var(--ink-soft); line-height: 1.2; }
.statchip.alert { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.statchip.alert .num { color: var(--warn-ink); }

/* ---------- Detail ---------- */
.detail-hero { display: flex; align-items: center; gap: 14px; margin: 6px 0 6px; }
.detail-hero .thumb { width: 64px; height: 64px; font-size: 40px; flex: none; }
.detail-hero h1 { font-size: 26px; margin: 0; font-weight: 600; letter-spacing: -.5px; }
.detail-hero .sub { color: var(--ink-soft); font-size: 14px; }

.block {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 15px 16px; margin: 12px 0; box-shadow: var(--shadow-card);
}
.block h2, .block h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.block p { margin: 6px 0; }
.kv { display: flex; gap: 8px; font-size: 14px; padding: 4px 0; }
.kv .k { color: var(--ink-soft); min-width: 120px; font-weight: 600; }
ul.clean { margin: 6px 0; padding-left: 18px; }
ul.clean li { margin: 3px 0; }

.note { font-size: 13px; color: var(--ink); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--r-md); padding: 11px 13px; }
/* Error variant — an error should read as an error (danger color), not a calm note. */
.note.error { color: var(--warn-ink); background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.organic-flag { font-size: 12.5px; font-weight: 700; color: var(--primary); margin: 4px 0 2px; display: flex; align-items: center; gap: 5px; }

/* ---------- My Garden plantings ---------- */
.planting { display: flex; align-items: center; gap: 12px; }
.planting .thumb { width: 52px; height: 52px; font-size: 30px; flex: none; }
.planting .info { flex: 1; min-width: 0; }
.planting .info .name { font-family: var(--font-head); font-weight: 600; }
.planting .info .meta { font-size: 13px; color: var(--ink-soft); }
.planting .water-due { font-weight: 700; color: var(--warn-ink); font-size: 13px; }
.planting .water-ok  { font-weight: 700; color: var(--water-ink); font-size: 13px; }
.del { background: none; border: none; color: var(--ink-soft); font-size: 18px; cursor: pointer;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; flex: none; }
.del:hover { background: var(--warn-soft); color: var(--warn); }
.garden-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }

/* ---------- Late-to-plant warning ---------- */
.late-box { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 28%, transparent);
  border-left: 4px solid var(--warn); border-radius: var(--r-md); padding: 11px 13px; margin: 0 0 14px; }
.late-title { font-weight: 700; color: var(--warn-ink); display: flex; align-items: center; gap: 5px; }
.late-effect { font-size: 13.5px; margin: 6px 0; }
.late-fix { background: var(--surface-2); border-radius: var(--r-sm); padding: 9px 11px; margin-top: 8px; }
.late-fix-h { font-weight: 700; color: var(--primary); font-size: 13px; margin-bottom: 2px; display: flex; align-items: center; gap: 5px; }
.late-fix ul.clean { margin: 4px 0; padding-left: 18px; }
.late-fix li { font-size: 13px; margin: 4px 0; }

/* ---------- Inline term help (beginner definitions) ---------- */
.term-btn { border: none; background: none; color: var(--primary); font-weight: 700; cursor: pointer;
  font-size: 12px; padding: 0 3px; line-height: 1; position: relative; }
/* Expand the tap area to ~44px without changing the visual size (web "hitSlop"). */
.term-btn::after { content: ""; position: absolute; inset: -16px; }
.term-note { display: block; font-size: 12.5px; color: var(--ink); background: var(--accent-soft);
  border-radius: var(--r-sm); padding: 8px 11px; margin-top: 6px; font-weight: 500; }
.term-note.hidden { display: none; }

/* ---------- Bottom nav ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-around;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none; color: var(--ink-soft);
  font-size: 11px; font-weight: 600; padding: 4px 0; position: relative;
}
.tabbar a .ico { display: grid; place-items: center; height: 24px; }
.tabbar a .ico svg { width: 24px; height: 24px; display: block; }
.tabbar a.active { color: var(--primary); }
.tabbar a.active .ico::after {
  content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--primary);
}

/* ---------- Misc ---------- */
.empty { text-align: center; color: var(--ink-soft); padding: 48px 16px; }
.empty .emoji { font-size: 44px; color: var(--ink-soft); }
.brandline { text-align: center; color: var(--ink-soft); font-size: 12px; margin-top: 28px; }
.offline-banner { background: var(--warn-soft); color: var(--warn-ink); text-align: center; font-size: 12px; font-weight: 700; padding: 6px; }
.hidden { display: none !important; }
.spinner { text-align: center; color: var(--ink-soft); padding: 40px; }

/* ============================================================
   Home — mockup rebuild: weather strip + Today's Tasks + Progress
   ============================================================ */
.i { display: inline-flex; align-items: center; }
.i svg { width: 16px; height: 16px; }
/* Context sizes / colors for SVG icons that replaced emoji */
.block h2 .i, .block h3 .i { color: var(--primary); }
.block h2 .i svg, .block h3 .i svg { width: 18px; height: 18px; }
.wx-icon .i svg { width: 34px; height: 34px; }
.task-ico { color: var(--primary); }
.task-ico.pest { color: var(--harvest-ink); }
.task-ico .i svg { width: 26px; height: 26px; }
.del .i svg { width: 20px; height: 20px; }
.empty .emoji .i svg { width: 44px; height: 44px; }
.pe-emoji .i svg { width: 32px; height: 32px; }
.organic-flag .i svg, .late-fix-h .i svg { width: 15px; height: 15px; }
.late-title .i svg { width: 16px; height: 16px; }
.note .i { vertical-align: -2px; }
.note .i svg { width: 15px; height: 15px; }
.water-due, .water-ok, .hv-line { display: inline-flex; align-items: center; gap: 4px; }
.water-due .i svg, .water-ok .i svg, .hv-line .i svg { width: 14px; height: 14px; }
.pick-card .meta.ideal .i svg { width: 14px; height: 14px; }
.pill.water { background: var(--water-ink); }

/* Weather strip */
.weather-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: 14px 16px; margin: 2px 0 6px; }
.wx-loc { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; }
.wx-loc .i { color: var(--primary); }
.wx-main { display: flex; align-items: center; gap: 16px; }
.wx-temp { display: flex; align-items: center; gap: 12px; flex: 1; }
.wx-icon { line-height: 1; color: var(--ink); display: inline-flex; }
.wx-deg { font-family: var(--font-head); font-weight: 600; font-size: 29px; line-height: 1; color: var(--ink); letter-spacing: -.5px; }
.wx-cond { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.wx-div { width: 1px; align-self: stretch; background: var(--line); }
.wx-rain { text-align: right; min-width: 96px; }
.wx-rain-lbl { font-size: 13px; font-weight: 600; color: var(--ink); }
.wx-rain-sub { font-size: 12px; color: var(--ink-soft); }
.wx-rain-val { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--water-ink); margin-top: 3px; }
.wx-rec { display: flex; align-items: center; gap: 7px; margin-top: 13px; padding-top: 13px;
  border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.wx-rec.on { color: var(--water-ink); }
.wx-rec.warn { color: var(--warn-ink); }

/* Today's Tasks */
.task-list { display: flex; flex-direction: column; gap: 10px; }
.task { display: flex; align-items: center; gap: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 10px 12px; text-decoration: none; color: inherit; transition: transform .12s ease; }
.task:active { transform: scale(.99); }
.task .thumb { width: 54px; height: 54px; flex: none; border-radius: var(--r-md); font-size: 26px; }
.task-body { flex: 1; min-width: 0; }
.task-name { font-family: var(--font-head); font-weight: 600; font-size: 15.5px; }
.task-desc { font-size: 12.5px; color: var(--ink-soft); margin: 2px 0 7px; }
.task-check { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--primary); }
.task-check .i svg { width: 17px; height: 17px; }
.task-check.harvest { background: color-mix(in srgb, var(--harvest) 18%, var(--surface)); color: var(--harvest-ink); }
.task-check.water { background: color-mix(in srgb, var(--water) 16%, var(--surface)); color: var(--water-ink); }
.task-check.transplant { background: color-mix(in srgb, var(--transplant) 18%, var(--surface)); color: var(--transplant-ink); }

/* My Garden Progress */
.progress-strip { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 6px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.progress-strip::-webkit-scrollbar { display: none; }
.progress-card { flex: 0 0 132px; scroll-snap-align: start; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  overflow: hidden; text-decoration: none; color: inherit; }
.progress-card .thumb { width: 100%; height: 98px; border-radius: 0; font-size: 34px; }
.pg-name { font-family: var(--font-head); font-weight: 600; font-size: 14px; padding: 8px 10px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-days { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-soft); padding: 3px 10px 10px; }
.pg-days .i svg { width: 13px; height: 13px; }
.progress-empty { display: flex; align-items: center; gap: 12px; padding: 16px; }
.progress-empty .pe-emoji { font-size: 32px; color: var(--accent); }
.empty-note { padding: 16px; }
.empty-note p { color: var(--ink-soft); font-size: 14px; }
.task-ico { width: 54px; height: 54px; flex: none; border-radius: var(--r-md); display: grid; place-items: center; font-size: 26px; background: var(--accent-soft); }
.task-ico.cta { background: color-mix(in srgb, var(--primary) 15%, var(--surface)); }
.task-ico.pest { background: color-mix(in srgb, var(--harvest) 17%, var(--surface)); }

/* ============================================================
   Dark mode — follows the OS setting (prefers-color-scheme).
   Surfaces/text/borders remap via tokens; brand + state colors used as
   TEXT switch to lighter AA-verified variants (>=5:1 on dark surfaces).
   White-on-color pills keep their --*-ink fills (>=5:1 on their own chip).
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0D150D;
    --surface:     #162016;
    --surface-2:   #1E2A1E;
    --ink:         #F0EDE6;
    --ink-soft:    #AAB1A6;
    --line:        #33422F;
    --accent-soft: #1F2C1E;
    --warn-soft:   #2E1714;
    --shadow-card: 0 2px 12px rgba(0,0,0,.45);
    /* light-on-dark variants for brand/state colors used as text/icons */
    --primary-light:    #85A286;
    --sow-light:        #67AB79;
    --transplant-light: #E8934A;
    --harvest-light:    #C8973A;
    --water-light:      #67A2CD;
    --warn-light:       #E48073;
    --earth-light:      #C69164;
  }

  /* Brand color as text/icon → lighten for dark surfaces */
  .section-head .more, .eyebrow, .tag, .btn.secondary, .btn.ghost,
  .organic-flag, .late-fix-h, .term-btn, .app-header .zone-chip,
  .tabbar a.active, .wx-loc .i, .block h2 .i, .block h3 .i,
  .task-ico, .task-check { color: var(--primary-light); }
  .tabbar a.active .ico::after { background: var(--primary-light); }
  a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline-color: var(--primary-light); }
  input:focus, select:focus { border-color: var(--primary-light); }
  /* Resting input border + zone-chip fill need stronger values on dark (WCAG 1.4.11 / AA) */
  input, select { border-color: color-mix(in srgb, var(--ink-soft) 65%, var(--surface-2)); }
  .app-header .zone-chip { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }

  /* State color as text → lighten */
  .pick-card .meta.ideal { color: var(--sow-light); }
  .pick-card .meta.late, .planting .water-due, .late-title,
  .statchip.alert .num, .wx-rec.warn, .offline-banner { color: var(--warn-light); }
  .planting .water-ok, .wx-rec.on, .wx-rain-val { color: var(--water-light); }
  .tag.earth { color: var(--earth-light); }
  .task-check.harvest, .task-ico.pest { color: var(--harvest-light); }
  .task-check.water { color: var(--water-light); }
  .task-check.transplant { color: var(--transplant-light); }
  .note .i { color: var(--harvest-light); }

  /* Hardcoded light backgrounds → dark equivalents */
  .tag.earth { background: #2A2016; }
  .tag.muted { background: #20251F; }
  .thumb { background: linear-gradient(140deg, #20301F, #182617); }
}
