:root {
  color-scheme: light;
  --bg: #f3f4ef;
  --surface-1: #fcfcfb;
  --surface-2: #f0efeb;
  --border: #e3e2dc;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #7c7b76;
  --accent: #2f7d4f;
  --accent-ink: #ffffff;
  --water: #2a78d6;
  --water-soft: #e3eefb;
  --accent-soft: #e2f0e6;
  --series-1: #2f7d4f;
  --series-1-soft: #b9dcc4;
  --good: #1f8a3a;
  --warn: #b26b00;
  --bad: #c62f2f;
  --bad-soft: #fbe5e4;
  --good-soft: #e2f3e6;
  --warn-soft: #fbefd8;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
  --radius: 14px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f110f; --surface-1: #181b18; --surface-2: #232321; --border: #33332f;
    --text-primary: #f0efec; --text-secondary: #c3c2b7; --text-muted: #8f8e86;
    --accent: #5bb27c; --accent-soft: #1a3324; --series-1: #5bb27c; --series-1-soft: #24533a;
    --good: #43b562; --warn: #e0a028; --bad: #ef6b6b; --bad-soft: #3a1f1f; --good-soft: #17301e; --warn-soft: #3a2d14;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f110f; --surface-1: #181b18; --surface-2: #232321; --border: #33332f;
  --text-primary: #f0efec; --text-secondary: #c3c2b7; --text-muted: #8f8e86;
  --accent: #5bb27c; --accent-soft: #1a3324; --series-1: #5bb27c; --series-1-soft: #24533a;
  --good: #43b562; --warn: #e0a028; --bad: #ef6b6b; --bad-soft: #3a1f1f; --good-soft: #17301e; --warn-soft: #3a2d14;
  --shadow: 0 1px 2px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text-primary); -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; font-size: 15px; line-height: 1.4; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
.secondary { color: var(--text-secondary); }
.neg { color: var(--text-primary); }
.pos { color: var(--good); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
h1 { font-size: 26px; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: 17px; margin: 0 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 15px; margin: 0 0 6px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 14px 0; }

/* Layout */
.app { display: flex; min-height: 100vh; }
.sidebar { display: none; }
.main { flex: 1; min-width: 0; padding: calc(16px + var(--safe-t)) 16px calc(var(--nav-h) + 24px + var(--safe-b)); max-width: 1180px; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; }
.grid.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 10px; }
.spacer { flex: 1; }

/* Bottom nav (phone) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background: color-mix(in srgb, var(--surface-1) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); padding-bottom: var(--safe-b); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--nav-h); text-decoration: none; color: var(--text-muted); font-size: 11px; font-weight: 500; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.active { color: var(--accent); }

@media (min-width: 900px) {
  .tabbar { display: none; }
  .sidebar { display: flex; flex-direction: column; gap: 2px; width: 232px; flex-shrink: 0; padding: 22px 14px; border-right: 1px solid var(--border); background: var(--surface-1); position: sticky; top: 0; height: 100vh; }
  .sidebar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; padding: 4px 10px 18px; letter-spacing: -0.01em; }
  .sidebar a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--text-secondary); font-weight: 500; }
  .sidebar a svg { width: 20px; height: 20px; }
  .sidebar a:hover { background: var(--surface-2); }
  .sidebar a.active { background: var(--accent-soft); color: var(--accent); }
  .sidebar .foot { margin-top: auto; padding: 10px 12px; font-size: 12px; color: var(--text-muted); }
  .main { padding: 28px 32px 48px; }
  .grid.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid.two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .grid.halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-1); color: var(--text-primary); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { min-height: 32px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-1); cursor: pointer; }
input[type=text], input[type=number], input[type=search], input[type=password], input[type=date], input[type=month], select, textarea {
  min-height: 40px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-1); width: 100%; font-size: 16px; /* 16px stops iOS zoom */
}
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
label.field { display: block; }
label.field > span { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; font-weight: 500; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.seg button.on { background: var(--surface-1); color: var(--text-primary); box-shadow: var(--shadow); }
.month-picker { display: inline-flex; align-items: center; gap: 4px; }
.month-picker .label { min-width: 120px; text-align: center; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-secondary); white-space: nowrap; }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.accent { background: var(--accent-soft); color: var(--accent); }

/* KPI tiles */
.kpi .label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.kpi .value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.kpi .delta { font-size: 12px; margin-top: 4px; color: var(--text-muted); }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); cursor: pointer; }
.list > li:first-child { border-top: 0; }
.list > li:hover { background: var(--surface-2); }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .sub { font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .amt { font-weight: 600; text-align: right; white-space: nowrap; }
.day-head { padding: 8px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); background: var(--surface-2); border-top: 1px solid var(--border); }
.cat-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }

/* Ranked bars */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; cursor: default; }
.bar-row .name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .val { font-size: 14px; font-weight: 600; text-align: right; }
.bar-track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--surface-2); position: relative; overflow: visible; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--series-1); }
.bar-fill.over { background: var(--bad); }
.bar-fill.near { background: var(--warn); }
.bar-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text-secondary); border-radius: 1px; }

/* Charts */
.chart { width: 100%; display: block; overflow: visible; }
.chart text { fill: var(--text-muted); font-size: 11px; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .bar { fill: var(--series-1); }
.chart .bar.dim { fill: var(--series-1-soft); }
.chart .line { fill: none; stroke: var(--series-1); stroke-width: 2; }
.chart .area { fill: var(--series-1); opacity: .10; }
.chart .dot { fill: var(--series-1); stroke: var(--surface-1); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .cross { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.tooltip { position: fixed; z-index: 50; pointer-events: none; background: var(--surface-1); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 10px; padding: 8px 10px; font-size: 13px; min-width: 120px; }
.tooltip .t-head { font-weight: 700; margin-bottom: 2px; }

/* Sheet / modal */
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface-1); width: 100%; max-width: 720px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + var(--safe-b)); box-shadow: 0 -8px 30px rgba(0,0,0,.2); }
@media (min-width: 900px) { .backdrop { align-items: center; } .sheet { border-radius: 18px; max-height: 86vh; padding: 22px 24px; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sheet-head h2 { margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-muted); padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t td { padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t td.r, table.t th.r { text-align: right; }
table.t select, table.t input { min-height: 34px; padding: 4px 8px; font-size: 14px; }
@media (max-width: 600px) { table.t select, table.t input { font-size: 16px; } }

.empty { text-align: center; padding: 32px 16px; color: var(--text-secondary); }
.empty .big { font-size: 40px; margin-bottom: 8px; }
.notice { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.notice.warn { background: var(--warn-soft); }
.notice.bad { background: var(--bad-soft); }
.notice.good { background: var(--good-soft); }
.notice.accent { background: var(--accent-soft); }
.progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); transition: width .2s; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 16px + var(--safe-b)); background: var(--text-primary); color: var(--surface-1); padding: 10px 16px; border-radius: 12px; z-index: 60; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
@media (min-width: 900px) { .toast { bottom: 24px; } }
.split-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; background: var(--surface-1); }
.split-bar > div { background: var(--series-1); }
.split-bar > div:nth-child(2n) { background: var(--series-1-soft); }
.receipt-img { max-width: 100%; border-radius: 10px; border: 1px solid var(--border); }
.dropzone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 24px; text-align: center; cursor: pointer; background: var(--surface-1); }
.dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
details summary { cursor: pointer; font-weight: 600; }
.hide-phone { display: none; }
@media (min-width: 900px) { .hide-phone { display: initial; } th.hide-phone, td.hide-phone { display: table-cell; } .hide-desktop { display: none !important; } }
.center { text-align: center; }


/* ---------- Verdance ---------- */
.brand-mark { color: var(--accent); width: 26px; height: 26px; display: inline-flex; }
.sub-h { margin: 4px 0 0; font-size: 14px; }
.mt6 { margin-top: 6px; } .mt12 { margin-top: 12px; } .mt14 { margin-top: 14px; } .mt20 { margin-top: 22px; } .mb14 { margin-bottom: 14px; }
.gap6 { gap: 6px; } .row.end { justify-content: flex-end; } .grow { flex: 1; min-width: 0; } .full { width: 100%; } .pre { white-space: pre-wrap; }
.btn.big { min-height: 50px; font-size: 16px; border-radius: 13px; padding: 0 18px; }
.btn svg, .seg button svg { width: 18px; height: 18px; }
.btn.big svg { width: 22px; height: 22px; }
.inline-ic { width: 16px; height: 16px; vertical-align: -3px; }
.h-ic { width: 20px; height: 20px; vertical-align: -3px; color: var(--accent); margin-right: 2px; }
.chip-ic { width: 13px; height: 13px; vertical-align: -2px; margin-right: 2px; }
.muted-ic { width: 18px; color: var(--text-muted); }
.bad-t { color: var(--bad); font-weight: 600; }
.lead { font-size: 15px; color: var(--text-secondary); margin: 0 0 12px; }
.seg.wide { display: flex; width: 100%; }
.seg.wide button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 8px; font-size: 14px; }
.seg.wide button svg { width: 17px; height: 17px; }

/* Capture */
.capture-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.capture-btns .btn { cursor: pointer; }
.draft { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.draft:empty { display: none; }
.draft-item { position: relative; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.draft-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.draft-item select { position: absolute; left: 6px; right: 6px; bottom: 6px; min-height: 32px; padding: 2px 8px; font-size: 14px; background: color-mix(in srgb, var(--surface-1) 88%, transparent); width: calc(100% - 12px); }
.draft-item .x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 15px; border: 0; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.draft-item .x svg { width: 16px; height: 16px; }
.draft-add { border: 2px dashed var(--border); border-radius: 12px; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-muted); cursor: pointer; font-size: 13px; font-weight: 600; }
.draft-add svg { width: 26px; height: 26px; }
.sample-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.sample { flex: 0 0 120px; border: 1px solid var(--border); background: var(--surface-1); border-radius: 12px; padding: 0; overflow: hidden; cursor: pointer; scroll-snap-align: start; text-align: left; }
.sample img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.sample span { display: block; padding: 6px 8px; font-size: 13px; font-weight: 600; }

/* Thumbs in lists */
.thumb { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 22px; }

/* Result */
.hero { display: grid; gap: 6px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.hero img { width: 100%; max-height: 52vh; object-fit: cover; display: block; }
.hero.multi { grid-template-columns: 2fr 1fr; grid-auto-rows: minmax(0, 1fr); max-height: 52vh; }
.hero.multi img:first-child { grid-row: span 3; height: 100%; }
.hero.multi img:not(:first-child) { height: 100%; max-height: none; }
.hero-empty { height: 200px; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.hero-empty svg { width: 60px; }
.plant-name { font-size: 28px; line-height: 1.15; }
.sci { color: var(--text-secondary); margin-top: 2px; }
.agree { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 600; color: var(--good); }
.agree svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.agree.differ, .agree.none { color: var(--warn); }
.agree.claude-only, .agree.plantnet-only { color: var(--text-secondary); }
.alt-list { list-style: none; margin: 0; padding: 0; }
.alt-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.alt-list li:first-child { border-top: 0; padding-top: 0; }
.alt-list .title { font-weight: 600; }
ul.plain { margin: 0; padding-left: 18px; } ul.plain li + li { margin-top: 4px; }

/* Care tiles */
.care-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .care-grid { grid-template-columns: 1fr 1fr; } }
.care-tile { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.care-tile h3 { margin-bottom: 2px; }
.care-tile .secondary { font-size: 14px; }
.care-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.care-ic svg { width: 20px; height: 20px; }
.care-tile.water .care-ic { background: var(--water-soft); color: var(--water); }
.care-tile.sun .care-ic { background: var(--warn-soft); color: var(--warn); }
.care-tile.tox { grid-column: 1 / -1; }

/* Health */
details.issue { border-top: 1px solid var(--border); padding: 10px 0; }
details.issue:first-of-type { border-top: 0; }
details.issue summary { display: flex; align-items: center; gap: 8px; list-style: none; }
details.issue summary::-webkit-details-marker { display: none; }
details.issue summary::before { content: '›'; font-size: 20px; color: var(--text-muted); transition: transform .15s; width: 10px; }
details.issue[open] summary::before { transform: rotate(90deg); }
dl.kv { margin: 10px 0 0; display: grid; grid-template-columns: 1fr; gap: 2px; font-size: 14px; }
dl.kv dt { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-top: 8px; }
dl.kv dd { margin: 0; color: var(--text-secondary); }

/* Garden */
.search { display: flex; align-items: center; gap: 8px; background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px; padding: 0 12px; }
.search svg { width: 18px; color: var(--text-muted); }
.search input { border: 0; background: transparent; padding-left: 0; }
.search input:focus { outline: none; }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.pill { border: 1px solid var(--border); background: var(--surface-1); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 13px; color: var(--text-secondary); white-space: nowrap; cursor: pointer; }
.pill b { color: var(--text-muted); font-weight: 600; margin-left: 2px; }
.pill.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill.on b { color: inherit; opacity: .8; }
.plant-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .plant-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.plant-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pc-img { aspect-ratio: 1; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-img svg { width: 40px; }
.pc-body { padding: 10px 12px 12px; min-width: 0; }
.pc-body .title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-body .sub { font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Plant detail */
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.g-img { flex: 0 0 70%; max-width: 360px; position: relative; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; cursor: pointer; background: var(--surface-2); }
.g-img img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.g-img span { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.g-add { flex: 0 0 120px; border: 2px dashed var(--border); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--text-muted); font-weight: 600; font-size: 13px; cursor: pointer; scroll-snap-align: start; }
.g-add svg { width: 28px; }
.water-card .h-ic { color: var(--water); }
.water-card.overdue { border-color: color-mix(in srgb, var(--bad) 40%, var(--border)); }
.full-img { width: 100%; border-radius: 12px; display: block; }

/* Care screen */
.hero-stat { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-stat .big-num { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; color: var(--water); line-height: 1; min-width: 44px; text-align: center; }
.hero-stat.ok .big-num { color: var(--good); }
.hero-stat .title { font-weight: 700; font-size: 17px; }
.hero-stat > div:nth-child(2) { flex: 1; min-width: 180px; }
.list > li .btn.small { flex-shrink: 0; }
.list > li .icon-btn { width: 36px; height: 36px; flex-shrink: 0; }
.list > li .icon-btn svg { width: 18px; }

/* Settings */
.key-row { display: flex; gap: 8px; }
.key-row input { flex: 1; }
.area-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.area-list li { display: flex; gap: 8px; }
.area-list .icon-btn svg { width: 18px; }
.big-money { font-size: 22px; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.switch input { width: 22px; height: 22px; accent-color: var(--accent); }

/* Busy overlay */
.busy { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; padding: 24px; }
.busy-card { background: var(--surface-1); border-radius: 18px; padding: 26px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 240px; box-shadow: var(--shadow); }
.busy-text { font-weight: 600; text-align: center; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
