/* Colour tokens, fonts and the eight looks come from skins.css, generated from Puffy's Sesh Planner
   (npm run sync-looks). Only grow-specific additions live here. */
:root {
  --good:#5DF2A4; --caution:#FFC24A;
  --radius: 18px;
  --tabs-h: 64px;
}
/* Grow-specific status colours (in range / needs attention), darker on the light skins so they stay readable. */
:root[data-skin="day"],:root[data-skin="lavender"],:root[data-skin="lime"],:root[data-skin="ocean"]{--good:#1F7A45;--caution:#9A5A00}
/* Older names used across this stylesheet. */
:root {
  --text: var(--ink);
  --surface-2: var(--sunk);
  --ok: var(--good);
  --warn: var(--caution);
  --warn-soft: color-mix(in srgb, var(--caution) 16%, var(--surface));
  --bad: var(--danger);
  --bad-soft: color-mix(in srgb, var(--danger) 16%, var(--surface));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(90% 50% at 0% 30%, color-mix(in srgb, var(--cyan) 10%, transparent), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 15px/1.45 var(--f-body);
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 24px);
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; font-family: var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
h1 { font-weight: 800; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; margin-top: 1.5rem; }
h3 { font-size: 1rem; }
p { margin: .4rem 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; min-width: 0; }
.logo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent), 0 0 18px var(--glow); }
.wordmark { font-family: var(--f-brand); font-weight: 400; font-size: 26px; line-height: 1; margin: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: 0; }
.tagline { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--cyan); font-weight: 700; margin-top: 3px; line-height: 1.3; }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; }
.mono, .stat .v, .result, .meter + p b { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.skin { border: 1px solid var(--line); background: var(--sunk); border-radius: 14px; padding: 10px; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; text-align: left; }
.skin i { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.skin[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.skingroup + .skingroup { margin-top: 14px; }
.skingroup .label { display: block; margin-bottom: 8px; }
.sync-pill {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 999px; padding: 4px 10px; font-size: .8rem; cursor: pointer;
}
.sync-pill[data-state="error"] { color: var(--bad); border-color: var(--bad); }

main { max-width: 760px; margin: 0 auto; padding: 16px; outline: none; }
.loading { color: var(--muted); }

.tabs {
  position: fixed; inset: auto 0 0 0; z-index: 5;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabs-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line);
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); text-decoration: none; font-size: .75rem;
}
.tabs a .ico { font-size: 1.25rem; line-height: 1; }
.tabs a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.fab {
  position: fixed; z-index: 6; right: 16px;
  bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 14px);
  background: var(--grad); color: var(--accent-ink); border: 0; border-radius: 18px;
  padding: 14px 20px; font-weight: 700; font-size: 1rem; box-shadow: 0 6px 20px rgb(0 0 0 / 25%); cursor: pointer;
}
.fab[hidden] { display: none; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin: 10px 0;
}
.card > :first-child { margin-top: 0; }
a.card { display: block; color: inherit; text-decoration: none; }
.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid .card { margin: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 8px; }
.spacer { flex: 1; }

a.card.plant-card, .plant-card { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.thumb {
  width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--surface-2);
  display: grid; place-items: center; font-size: 1.6rem;
}
.title { font-weight: 650; }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.badge.green { background: color-mix(in srgb, var(--good) 16%, var(--surface)); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }

.alert { border-radius: 12px; padding: 10px 12px; margin: 8px 0; background: var(--surface-2); }
.alert.warn { background: var(--warn-soft); color: var(--ink); border-left: 4px solid var(--warn); }
.alert.bad { background: var(--bad-soft); border-left: 4px solid var(--bad); }
.alert.ok { background: var(--accent-soft); border-left: 4px solid var(--ok); }

button, .btn {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 14px; padding: 10px 14px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
button.primary, .btn.primary { background: var(--grad); color: var(--accent-ink); border-color: transparent; font-weight: 700; }
button.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
button.ghost { background: transparent; border-color: transparent; color: var(--accent); padding: 6px 8px; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px;
}

label { display: block; font-size: .85rem; color: var(--muted); margin: 10px 0 4px; }
input, select, textarea {
  font: inherit; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); min-width: 0;
}
textarea { min-height: 80px; resize: vertical; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0 10px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: .95rem; margin: 6px 0; }
.check input { width: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--surface);
  font-size: .9rem; cursor: pointer; user-select: none;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked), .chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chip:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); }

.stat { background: var(--surface-2); border-radius: 12px; padding: 10px; }
.stat .v { font-size: 1.4rem; font-weight: 700; }
.stat .k { font-size: .8rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
.timeline .meta { font-size: .8rem; color: var(--muted); }
.kv { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .9rem; }
.kv b { font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.gallery button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-full { width: 100%; border-radius: 12px; display: block; background: var(--surface-2); }

.tasks { list-style: none; padding: 0; margin: 0; }
.tasks li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tasks li input { width: 22px; height: 22px; flex: none; }
.tasks .overdue { color: var(--bad); }

.sheet {
  border: 0; padding: 0; width: min(640px, 100%); max-width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0;
  margin: auto auto 0; background: var(--bg); color: var(--ink);
}
@media (min-width: 700px) { .sheet { border-radius: 24px; margin: auto; } }
.sheet::backdrop { background: rgb(0 0 0 / 45%); }
.sheet form, .sheet .sheet-body { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.sheet .sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--bg); padding: 14px 16px 8px; border-bottom: 1px solid var(--line); z-index: 1; }
.sheet .sheet-head h2 { margin: 0; }
.sheet .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 20;
  bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 80px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: .9rem;
  opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.tool-grid a { margin: 0; }
.tool-grid .ico { font-size: 1.5rem; }
.result { font-size: 1.8rem; font-weight: 750; }
.meter { height: 10px; border-radius: 999px; background: var(--surface-2); position: relative; overflow: hidden; margin: 8px 0; }
.meter > span { position: absolute; top: 0; bottom: 0; background: var(--accent-soft); border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.meter > i { position: absolute; top: -2px; bottom: -2px; width: 4px; border-radius: 2px; background: var(--ink); }

.dx-result h3 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dx-result ol, .dx-result ul { padding-left: 1.2rem; margin: .3rem 0; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }
details summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.code { font: 600 1.05rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; word-break: break-all; background: var(--surface-2); padding: 10px; border-radius: 10px; user-select: all; }
svg.spark { width: 100%; height: 40px; }
svg.spark path { fill: none; stroke: var(--accent); stroke-width: 2; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.empty .big { font-size: 2.4rem; }
table.sched { border-collapse: collapse; min-width: 100%; font-size: .9rem; }
table.sched th, table.sched td { border-bottom: 1px solid var(--line); padding: 4px; text-align: left; white-space: nowrap; }
table.sched td input { width: 76px; padding: 6px 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Icons (icons.js): line icons that take the text colour, with consistent spacing ---------- */
svg.i {
  width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.brand .tagline { display: block; }
button svg.i, .btn svg.i { width: 18px; height: 18px; }
button, .btn { gap: 8px; }
button.ghost { gap: 6px; padding: 6px 10px; }
button.ghost svg.i { width: 16px; height: 16px; stroke-width: 2.2; }

/* Tab bar: icon in a pill that lights up for the current tab. */
.tabs a { gap: 4px; font-weight: 600; font-size: 12px; padding-top: 6px; }
.tabs a .ico { display: grid; place-items: center; width: 54px; height: 30px; border-radius: 999px; transition: background .15s; }
.tabs a .ico svg.i { width: 22px; height: 22px; }
.tabs a[aria-current="page"] .ico { background: var(--accent-soft); }

/* Log button */
.fab { display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px 14px 16px; }
.fab svg.i { width: 18px; height: 18px; stroke-width: 2.4; }

/* Header sync status */
.sync-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; }
.sync-pill svg.i { width: 15px; height: 15px; }
.sync-pill[data-state="idle"] { color: var(--good); }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* Sheet close button (same as the planner's iconbtn) */
.iconbtn { width: 38px; height: 38px; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; flex: none; }
.iconbtn svg.i { width: 18px; height: 18px; }
table.sched th button { padding: 2px; border: 0; background: none; color: var(--muted); }
table.sched th button svg.i { width: 14px; height: 14px; }

/* Back links */
a.back { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; text-decoration: none; margin-left: -4px; padding: 4px 6px 4px 2px; }
a.back svg.i { width: 18px; height: 18px; stroke-width: 2.2; }

/* Headings with a leading icon */
.h-i { display: flex; align-items: center; gap: 10px; }
.h-i svg.i { width: 1em; height: 1em; color: var(--accent); }

/* Journal timeline: round badge per entry type, tinted by kind. */
.timeline li { grid-template-columns: 38px 1fr; gap: 12px; }
.timeline .dot { width: 38px; height: 38px; color: var(--accent); background: color-mix(in srgb, currentColor 14%, transparent); }
.timeline .dot svg.i { width: 19px; height: 19px; }
.timeline .dot[data-t="water"], .timeline .dot[data-t="feed"], .timeline .dot[data-t="env"] { color: var(--cyan); }
.timeline .dot[data-t="issue"], .timeline .dot[data-t="ipm"] { color: var(--danger); }
.timeline .dot[data-t="trichomes"], .timeline .dot[data-t="harvest"], .timeline .dot[data-t="dry"], .timeline .dot[data-t="cure"] { color: var(--yellow); }

/* Entry-type chips in the log sheet */
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip svg.i { width: 16px; height: 16px; }

/* Alerts: icon on the left, text beside it */
.alert { display: flex; gap: 10px; align-items: flex-start; }
.alert > svg.i { width: 20px; height: 20px; margin-top: 1px; }
.alert.ok > svg.i { color: var(--good); }
.alert.warn > svg.i { color: var(--warn); }
.alert.bad > svg.i { color: var(--bad); }

/* Small inline icon + text lines (e.g. "Watered today") */
.icon-line { display: flex; align-items: center; gap: 6px; }
.icon-line svg.i { width: 14px; height: 14px; color: var(--cyan); }

/* Plant photo placeholder */
.thumb svg.i { width: 30px; height: 30px; color: var(--accent); }
.thumb { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--sunk)); }

/* Tools grid: icon tile above the name */
.tool-grid a { display: flex; flex-direction: column; gap: 4px; }
.tool-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.tool-ico svg.i { width: 24px; height: 24px; }

/* Doctor "check these first" list */
.tasks li.is-ok, .tasks li.is-warn { align-items: flex-start; }
.tasks li.is-ok > svg.i, .tasks li.is-warn > svg.i { width: 20px; height: 20px; margin-top: 1px; }
.tasks li.is-ok > svg.i { color: var(--good); }
.tasks li.is-warn > svg.i { color: var(--warn); }

/* Empty states */
.empty .big { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 20px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.empty .big svg.i { width: 32px; height: 32px; }

/* ---------- Plant avatars (plant-art.js): stage illustration on a tile tinted by the skin ---------- */
.thumb.plant-art { display: grid; place-items: center; overflow: hidden; }
.thumb.plant-art svg.art { width: 86%; height: 86%; display: block; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 22%)); }
.thumb.plant-art[data-tone="grow"] { background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--good) 30%, var(--sunk)), var(--sunk) 75%); }
.thumb.plant-art[data-tone="flower"] { background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--accent) 34%, var(--sunk)), var(--sunk) 75%); }
.thumb.plant-art[data-tone="cure"] { background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--yellow) 30%, var(--sunk)), var(--sunk) 75%); }
.thumb.plant-art[data-tone="lost"] { background: var(--sunk); }
.thumb.big { width: 76px; height: 76px; border-radius: 20px; flex: none; }
.plant-head { display: flex; align-items: center; gap: 14px; }
.plant-head h1 { flex: 1; margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* Journal cards: .timeline's padding:0 was cancelling the card padding, pushing icons against the left edge.
   Equal inner spacing on every side; rows carry their own vertical rhythm. */
.timeline.card { padding: 4px 16px; }
.timeline.card li { padding: 14px 0; }
.timeline.card li:last-child { border-bottom: 0; }

/* ---------- Plant doctor: tappable plant diagram + symptoms for the chosen part ---------- */
.dx-picker { display: grid; gap: 16px; }
@media (min-width: 700px) { .dx-picker { grid-template-columns: minmax(240px, 300px) 1fr; align-items: start; } .dx-figure { position: sticky; top: 90px; } }
.dx-figure { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 10%, var(--sunk)), var(--sunk) 75%); border-radius: 16px; padding: 10px 6px 4px; }
svg.dx-map { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.dx-part { cursor: pointer; transition: opacity .15s, filter .15s; outline: none; }
.dx-map.has-sel .dx-part:not(.on) { opacity: .5; }
.dx-part:hover { opacity: 1 !important; filter: brightness(1.12); }
.dx-part.on { filter: drop-shadow(0 0 5px var(--accent)) drop-shadow(0 0 2px var(--accent)); }
.dx-part:focus-visible { filter: drop-shadow(0 0 0 2px var(--accent)) drop-shadow(0 0 6px var(--accent)); opacity: 1 !important; }
.dx-label { font: 600 12px var(--f-body); fill: var(--muted); cursor: pointer; paint-order: stroke; stroke: var(--sunk); stroke-width: 3px; }
.dx-label.on { fill: var(--accent); font-weight: 700; }
.dx-badge circle { fill: var(--accent); stroke: var(--sunk); stroke-width: 2; }
.dx-badge text { font: 700 11px var(--f-mono); fill: var(--accent-ink); }
.dx-chips { margin-bottom: 4px; }
.dx-chips .chip { font-size: .8rem; padding: 5px 10px; }
.dx-chips .chip b { font-family: var(--f-mono); background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 6px; font-size: .75rem; }
.dx-area-title { margin: 12px 0 6px; font-size: 1.05rem; }
.dx-area .check { align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--line); margin: 0; }
.dx-area .check:last-child { border-bottom: 0; }
.dx-area .check input { margin-top: 3px; }

/* Free "ask Claude" handoff in the Doctor */
.steps { padding-left: 1.2rem; margin: 6px 0 4px; }
.steps li + li { margin-top: 4px; }
.free-prompt { white-space: pre-wrap; font: 12px/1.5 var(--f-mono); background: var(--sunk); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; user-select: all; max-height: 260px; overflow: auto; }
.free-claude { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 8px; }

/* ---------- Strain search (strains.js): suggestions from Puffy's strain library ---------- */
.strain-field { grid-column: 1 / -1; position: relative; }
.strain-suggest { margin-top: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.strain-opt { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; text-align: left; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 10px 12px; }
.strain-opt:last-child { border-bottom: 0; }
.strain-opt:hover, .strain-opt:focus-visible { background: var(--sunk); }
.strain-opt-name { font-weight: 700; }
.strain-opt .small { grid-column: 1 / -1; font-weight: 500; }
.strain-none { padding: 10px 12px; margin: 0; }
.strain-linked { display: flex; align-items: center; gap: 4px; margin: 6px 0 0; color: var(--good); }
.strain-type { font-weight: 700; }

/* ---------- Charts, QR codes ---------- */
.charts { display: grid; gap: 14px; margin-top: 10px; }
@media (min-width: 700px) { .charts { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
figure.chart { margin: 0; }
figure.chart figcaption { margin-bottom: 4px; }
.qr-pair { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 10px 0; }
.qr-pair figure { margin: 0; text-align: center; }
.qr-box { background: #fff; color: #000; padding: 10px; border-radius: 12px; display: inline-block; line-height: 0; }
.gallery .share-photo { border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--surface-2); display: block; }

.table-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.table-scroll table.sched td:first-child { white-space: normal; min-width: 140px; }

/* Phone light meter (lightmeter.js) */
.lm ol { padding-left: 1.2em; margin: 0 0 8px; }
.lm-video { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; margin-top: 8px; background: #000; }
.lm-out { margin-top: 10px; }
.lm details { margin-top: 10px; }
.lm-box { margin-top: 8px; }

/* 21+ age check (agegate.js): nothing else shows until it's passed */
body.gated .tabs, body.gated #fab, body.gated #syncPill { display: none !important; }
.age-gate { max-width: 520px; margin: 24px auto; }
.age-fields { grid-template-columns: 2fr 1fr 1.3fr; }
.age-gate .check { margin: 12px 0; }

/* Privacy Policy and Terms pages */
.legal-page { max-width: 720px; margin: 0 auto; padding: 16px 16px 48px; }
.legal-page h2 { margin-top: 1.4em; }
.legal-page li { margin: 6px 0; }

/* Free / Full (plan.js) */
.plan-list { list-style: none; padding: 0; margin: 8px 0 12px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.plan-list li svg.i { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.plan-price { font-size: 1.25rem; margin: 8px 0; }
.skin .badge, .tool-grid .title .badge { font-size: .7rem; padding: 1px 6px; vertical-align: middle; }
.share-made { margin-top: 24px; }
.share-made svg.i { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }

/* Plant doctor search */
.dx-search input[type=search] { width: 100%; }
.dx-search-h { margin: 14px 0 6px; font-size: 1rem; }
.dx-hit { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; white-space: normal; }
.dx-hit-name { font-weight: 650; }
