/* The Grow Crew by Hood Healers: a sunny backyard, warm paper, leaf greens, tomato red as the accent. */
/* Nunito from our own server (app/public/fonts, SIL Open Font License in Nunito-OFL.txt): one variable
   file covers every weight from 400 to 900, split like Google's into basic Latin and accented Latin. */
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/fonts/Nunito-latin.woff2?v=c67f965735") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/fonts/Nunito-latin-ext.woff2?v=141ac42619") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --canvas: #f6f1e4;
  --surface: #fffdf7;
  --surface-2: #f3eddc;
  --surface-3: #e6dfc9;
  --hairline: rgba(58, 74, 44, 0.12);
  --hairline-strong: rgba(58, 74, 44, 0.24);
  --ink: #213320;
  --ink-soft: #44523d;
  --ink-mute: #6d7763;
  --leaf: #3f7d3a;
  --leaf-deep: #2e5f2b;
  --leaf-soft: rgba(63, 125, 58, 0.12);
  --accent: #d2552c;
  --sun: #f7c948;
  --wood: #b07a45;
  --wood-dark: #7d4f27;
  --soil: #5a3a22;
  /* one font everywhere: Nunito, rounded like the paper cut-outs */
  --font-display: "Nunito", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Nunito", "Helvetica Neue", Arial, sans-serif;
  --shadow-soft: 0 1px 2px rgba(40, 50, 20, .06), 0 10px 28px -14px rgba(40, 50, 20, .28);
  --shadow-lift: 0 2px 4px rgba(40, 50, 20, .08), 0 18px 40px -16px rgba(40, 50, 20, .34);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--canvas);
  color: var(--ink-soft);
  font: 400 14.5px/1.55 var(--font-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--ink-mute); }
::selection { background: rgba(63, 125, 58, 0.25); color: var(--ink); }

/* ---------------- top bar ---------------- */
.topbar {
  display: flex; align-items: center; gap: 24px; padding: 10px 24px;
  border-bottom: 1px solid var(--hairline); background: rgba(255, 253, 247, 0.92); backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-logo { width: 36px; height: 36px; display: block; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font: 600 19px/1.05 var(--font-display); color: var(--leaf-deep); }
.brand-by { font-size: 11.5px; font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.stepper { display: flex; gap: 2px; list-style: none; margin: 0 auto; padding: 0; }
.stepper li {
  font-size: 12.5px; font-weight: 600; color: var(--ink-mute);
  padding: 6px 12px; border-radius: 999px; display: flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: color .3s, background .3s;
}
.stepper li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); transition: background .3s; }
.stepper li.done { color: var(--ink-soft); }
.stepper li.done::before { background: var(--leaf); }
.stepper li.active { color: var(--ink); background: var(--leaf-soft); }
.stepper li.active::before { background: var(--leaf); box-shadow: 0 0 0 3px rgba(63, 125, 58, .25); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.ghost {
  background: transparent; border: 1px solid var(--hairline-strong); color: var(--ink-soft);
  padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; transition: border-color .2s, color .2s, background .2s;
}
.ghost:hover { border-color: var(--leaf); color: var(--ink); background: var(--leaf-soft); }
.top-actions .ghost { white-space: nowrap; }

/* ---------------- question banner ---------------- */
.topic {
  display: flex; gap: 28px; align-items: center; justify-content: space-between;
  margin: 16px 24px 0; padding: 16px 22px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r);
}
.label { font-size: 11px; color: var(--ink-mute); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.topic h1 { font: 600 26px/1.15 var(--font-display); color: var(--ink); margin: 4px 0; }
.topic p { margin: 0; color: var(--ink-soft); max-width: 72ch; font-size: 14px; }
.picks { display: grid; gap: 8px; min-width: 280px; max-width: 440px; flex: 0 1 440px; }
.pick { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-soft); animation: rise .4s var(--ease-out) both; }
.pick b { color: var(--ink); font-weight: 600; }
.lead-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--leaf, #3f7d3a); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .03em; vertical-align: 1px; }

/* ---------------- layout ---------------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; padding: 16px 24px 28px; align-items: start; }
.stage-wrap { min-width: 0; }

/* ---------------- the garden ---------------- */
.stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9.4; max-height: calc(100vh - 120px); min-height: 520px;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--hairline); background: #6f8a55;
}
/* the backdrop: a sunny garden with sunflowers, marigolds and a watermelon bed (built by npm run backdrops).
   --garden-h is the garden's height (the whole stage, or just the top on a phone); --bed-top is where the crew's hips are. */
.stage { --garden: url("/img/garden-main.webp?v=2"); --garden-at: 50% 100%; }
.stage::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--garden-h, 100%); z-index: 0; pointer-events: none;
  background: var(--garden) var(--garden-at) / cover no-repeat;
}
.spot {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 2;
  background: radial-gradient(circle, rgba(255, 246, 200, 0.85), rgba(255, 236, 160, 0.25) 45%, transparent 70%);
  opacity: 0; transform: translate(-50%, -50%); transition: left .55s var(--ease-out), top .55s var(--ease-out), opacity .4s;
}
.spot.on { opacity: 1; }

/* the crew: a cartoon bust each, standing behind the bed */
.seat { position: absolute; z-index: 10; transform-origin: 50% 100%; transition: filter .45s, opacity .45s, transform .55s var(--ease-out); cursor: pointer; }
.seat .bust { position: relative; width: 100%; height: 100%; transform-origin: 50% 90%; animation: breathe 5.5s ease-in-out infinite; }
.seat .bust img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; user-select: none; object-fit: contain; object-position: 50% 100%; }
.seat .bust[data-shape="base"] img.base,
.seat .bust[data-shape="open"] img.open,
.seat .bust[data-shape="mid"] img.mid,
.seat .bust[data-shape="blink"] img.blink { opacity: 1; }
@keyframes breathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-1px) scale(1.006); } }
.stage.live .seat { filter: saturate(.85) brightness(.92); }
.stage.live .seat.speaking { filter: none; z-index: 25 !important; }
.seat.speaking .bust { animation: talk 1.6s ease-in-out infinite; }
@keyframes talk {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-3px) rotate(-1.2deg); }
  50% { transform: translateY(-1px) rotate(.6deg); }
  75% { transform: translateY(-4px) rotate(1.1deg); }
}
.seat.absent { filter: grayscale(.85) brightness(1.12) contrast(.72) !important; }
.seat:focus-visible { outline: 3px solid var(--leaf); outline-offset: 4px; border-radius: 12px; }

/* thinking dots over a head */
.think {
  position: absolute; left: 50%; top: 4%; translate: -50% -100%; display: none; gap: 4px; padding: 7px 10px;
  background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 999px; z-index: 3;
}
.seat.thinking .think { display: flex; }
.think i { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); animation: bob 1.1s infinite ease-in-out; }
.think i:nth-child(2) { animation-delay: .15s; }
.think i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-4px); opacity: 1; } }

/* the garden bed in front of the crew: the same photo again, faded in from the crew's hips down,
   so they stand in among the plants instead of being cut off at the waist */
.bed {
  position: absolute; left: 0; right: 0; top: 0; height: var(--garden-h, 100%); z-index: 30; pointer-events: none;
  background: var(--garden) var(--garden-at) / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent calc(var(--bed-top, 50%) - 2%), #000 calc(var(--bed-top, 50%) + 7%));
  mask-image: linear-gradient(180deg, transparent calc(var(--bed-top, 50%) - 2%), #000 calc(var(--bed-top, 50%) + 7%));
}

/* garden-stake name labels on the soil edge */
.nameplate {
  position: absolute; z-index: 32; translate: -50% -50%; text-align: center; cursor: pointer;
  background: #fffaf0; border: 2px solid #d9c49c; border-radius: 8px; padding: 3px 8px 4px; box-shadow: 0 3px 0 rgba(90, 58, 34, .35); transition: border-color .3s, opacity .4s, transform .3s;
}
.nameplate b { display: block; font: 600 12.5px/1.15 var(--font-display); color: var(--ink); white-space: nowrap; }
.nameplate small { display: block; font-size: 9.5px; color: var(--ink-mute); white-space: nowrap; }
.stage.live .nameplate small { display: none; }
.nameplate.speaking { border-color: var(--leaf); transform: translateY(-2px); }
.nameplate.absent { opacity: .45; }
.nameplate.host { background: var(--leaf); border-color: var(--leaf-deep); }
.nameplate.host b { color: #fff; }
.nameplate.host small { color: #dcefd2; }

/* a soft cream card over the garden bed: question box, captions, care plan plate */
.center { position: absolute; z-index: 36; display: grid; place-items: start center; align-content: start; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; }
.center > * {
  background: rgba(255, 251, 240, .9); border-radius: 16px; padding: 14px 18px; border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 12px 32px -14px rgba(40, 50, 20, .45); backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1);
}
.composer { width: min(700px, 100%); display: grid; gap: 8px; text-align: center; padding: 12px 16px !important; }
.composer h2 { font: 600 clamp(19px, 2vw, 26px)/1.15 var(--font-display); margin: 0; color: var(--leaf-deep); }
.composer textarea {
  width: 100%; resize: vertical; min-height: 52px; max-height: 140px; border-radius: 12px; border: 1px solid var(--hairline-strong);
  background: #fff; color: var(--ink); padding: 10px 13px; font: 14px/1.45 var(--font-text); outline: none;
}
.composer textarea::placeholder { color: var(--ink-mute); }
.composer textarea:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(63, 125, 58, .18); }
.samples { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.samples button { background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--hairline); border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 500; transition: border-color .2s, color .2s; }
.samples button:hover { border-color: var(--leaf); color: var(--ink); }
/* a plant photo for Kim or Rosa */
.photo-row { display: flex; align-items: center; gap: 10px; flex: none; }
.photo-btns { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.photo-btns[hidden] { display: none; }
.photo-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); color: var(--ink-soft); border: 1px dashed var(--hairline-strong); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; }
.photo-btn svg { width: 17px; height: 17px; }
.photo-btn:hover { border-color: var(--leaf); color: var(--leaf-deep); }
.photo-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--leaf-soft); border: 1px solid var(--leaf); border-radius: 999px; padding: 3px 6px 3px 3px; font-size: 12px; color: var(--leaf-deep); }
.photo-chip img { flex: none; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.photo-chip button { background: none; border: 0; font-size: 17px; line-height: 1; color: var(--ink-mute); padding: 0 4px; }
.photo-chip button:hover { color: var(--accent); }
.topic-photo { flex: none; }
.topic-photo img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; border: 2px solid var(--surface); box-shadow: 0 4px 14px -6px rgba(40, 50, 20, .4); display: block; }
.composer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; text-align: left; }
.convene { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 10px 22px; white-space: nowrap; font-weight: 700; font-size: 14px; transition: background .2s, transform .2s; }
.convene:hover { background: #b9461f; transform: translateY(-1px); }
.convene:disabled { opacity: .6; cursor: progress; transform: none; }
.engine-note { font-size: 12px; color: var(--ink-mute); margin: 0; flex: 1; min-width: 200px; }
.engine-note b { color: var(--ink-soft); font-weight: 600; }
.engine-note.bad { color: var(--accent); font-weight: 600; }

.caption { width: 100%; text-align: left; animation: rise .35s var(--ease-out) both; }
.cap-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cap-av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--surface-2); flex: none; display: grid; place-items: center; border: 2px solid var(--hairline-strong); }
.cap-av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cap-who { font: 600 16px/1.1 var(--font-display); color: var(--ink); }
.cap-tag { margin-left: auto; font-size: 10.5px; color: var(--ink-mute); font-weight: 700; text-align: right; text-transform: uppercase; letter-spacing: .1em; }
.cap-text { margin: 0; font: 500 clamp(15px, 1.4vw, 19px)/1.45 var(--font-text); color: var(--ink); min-height: 2.9em; }
.cap-text .w { opacity: .18; transition: opacity .12s; }
.cap-text .w.on { opacity: 1; }
.cap-text.host { color: var(--ink-soft); }
.cap-sub { margin-top: 6px; font-size: 12.5px; color: var(--ink-mute); min-height: 1em; }
.cap-sub:empty { display: none; }
.dots { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); animation: bob 1.1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.plate { display: grid; gap: 10px; justify-items: center; width: min(620px, 100%); text-align: center; animation: rise .6s var(--ease-out) both; }
.plate h3 { margin: 0; font: 600 22px/1.2 var(--font-display); color: var(--leaf-deep); }
.plate p { margin: 0; font-size: 14.5px; color: var(--ink); }
.plate .row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* playback controls */
.playbar {
  position: absolute; z-index: 38; right: 14px; top: 12px; display: flex; gap: 8px; align-items: center;
  background: rgba(255, 253, 247, .9); border: 1px solid var(--hairline); border-radius: 999px; padding: 4px 4px 4px 12px; backdrop-filter: blur(6px);
}
.playbar .queue { font-size: 11.5px; color: var(--ink-mute); white-space: nowrap; }
.speed { display: flex; gap: 2px; }
.speed button, .skip { background: transparent; border: 0; color: var(--ink-mute); font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 999px; }
.speed button[aria-pressed="true"] { background: var(--leaf); color: #fff; }
.skip { color: var(--ink-soft); border: 1px solid var(--hairline-strong); }
.skip:hover, .speed button:hover { color: var(--ink); }

/* ---------------- side panel ---------------- */
.panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); position: sticky; top: 76px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; overflow: hidden; }
.panel-head { padding: 14px 16px 12px; border-bottom: 1px solid var(--hairline); font: 700 11px/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.tabpanel { overflow-y: auto; padding: 14px 14px 20px; display: grid; gap: 10px; align-content: start; }
.empty { color: var(--ink-mute); font-size: 13.5px; padding: 18px 4px; }
.feed-phase { font: 700 10.5px/1 var(--font-text); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-mute); padding: 10px 0 2px; display: flex; align-items: center; gap: 8px; }
.feed-phase::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.feed-card { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; border: 1px solid var(--hairline); border-radius: 12px; padding: 10px 12px; background: var(--surface-2); cursor: pointer; animation: rise .35s var(--ease-out) both; transition: border-color .2s; }
.feed-card:hover { border-color: var(--leaf); }
.feed-card .h { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--ink); }
.feed-card .h .r { margin-left: auto; font-size: 11px; color: var(--ink-mute); font-weight: 500; }
.feed-card p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }
.av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; background: var(--surface-3); flex: none; border: 1px solid var(--hairline-strong); }
.feed-note { font-size: 13px; background: var(--leaf-soft); border: 1px solid rgba(63, 125, 58, .2); border-radius: 12px; padding: 10px 12px; color: var(--ink-soft); }
.feed-note b { color: var(--ink); font-weight: 600; }

/* ---------------- dialogs ---------------- */
.card-dialog { border: 1px solid var(--hairline-strong); border-radius: 18px; padding: 22px 24px; width: min(660px, 92vw); max-height: 86vh; background: var(--surface); color: var(--ink-soft); box-shadow: 0 30px 80px -20px rgba(40, 50, 20, .45); }
.card-dialog::backdrop { background: rgba(40, 50, 30, .45); backdrop-filter: blur(3px); }
.card-dialog pre { white-space: pre-wrap; font: 14px/1.6 var(--font-text); color: var(--ink-soft); margin: 10px 0 14px; }
.card-dialog h3 { font: 600 22px/1.2 var(--font-display); margin: 0 0 4px; color: var(--ink); }
.card-dialog h4 { font: 600 15px/1.2 var(--font-display); margin: 14px 0 4px; color: var(--leaf-deep); }
.card-dialog p { margin: 0 0 6px; }
.card-dialog ol { margin: 0; padding-left: 20px; }
.card-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.card-chat { display: block; margin-top: 16px; padding: 11px 24px; font-size: 15px; }
.card-head img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; background: var(--surface-2); border: 2px solid var(--hairline-strong); }
.history { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.history li { display: flex; gap: 8px; align-items: stretch; }
.history li > button:first-child { flex: 1; }
.history button { width: 100%; text-align: left; background: var(--surface-2); color: var(--ink); border: 1px solid var(--hairline); border-radius: 10px; padding: 10px 12px; }
.history button:hover { border-color: var(--leaf); }
.history small { display: block; color: var(--ink-mute); }
.history .pdf { flex: none; width: auto; padding: 0 14px; font-size: 12px; font-weight: 600; color: var(--ink-soft); text-align: center; }

/* ---------------- care plan sheet ---------------- */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(40, 50, 30, .45); display: grid; place-items: end center; overflow-y: auto; padding: 40px 16px 0; animation: fadein .3s both; }
@keyframes fadein { from { opacity: 0; } }
.sheet-inner { width: min(980px, 100%); background: var(--surface); border: 1px solid var(--hairline-strong); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 30px 36px 50px; animation: slideup .55s var(--ease-out) both; }
@keyframes slideup { from { transform: translateY(80px); opacity: 0; } }
.p-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.p-top h2 { font: 600 clamp(24px, 3vw, 34px)/1.1 var(--font-display); color: var(--leaf-deep); margin: 4px 0 0; }
.p-top .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.p-summary { font-size: 16px; color: var(--ink); margin: 14px 0 22px; max-width: 70ch; }
.p-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.p-box { border: 1px solid var(--hairline); border-radius: 14px; padding: 16px 18px; background: var(--surface-2); }
.p-box h3 { font: 600 17px/1.2 var(--font-display); margin: 0 0 10px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.p-box h3 .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--font-text); color: #fff; background: var(--leaf); }
.p-box.watch h3 .ic { background: var(--sun); color: var(--ink); }
.p-box.when h3 .ic { background: var(--accent); }
.p-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.p-box li { font-size: 14px; color: var(--ink-soft); }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.checks input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--leaf); }
.checks input:checked + span { text-decoration: line-through; color: var(--ink-mute); }
.p-box .big { font: 600 22px/1.15 var(--font-display); color: var(--accent); margin: 0 0 6px; }
.p-box p { margin: 0; font-size: 14px; }
.p-crew { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.p-tip { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; border: 1px solid var(--hairline); border-radius: 14px; padding: 12px 14px; }
.p-tip img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; background: var(--surface-2); }
.p-tip b { display: block; color: var(--ink); font-size: 13.5px; }
.p-tip span { font-size: 13.5px; }
.p-safe { margin-top: 18px; border-radius: 14px; padding: 14px 18px; background: #fff4e6; border: 1px solid #f1cf9f; }
.p-safe h3 { margin: 0 0 6px; font: 600 15px/1.2 var(--font-display); color: #8a4b12; }
.p-safe ul { margin: 0; padding-left: 18px; font-size: 13.5px; }
.p-follows { margin-top: 22px; }
.p-follows h3 { margin: 0 0 10px; font: 700 17px/1.3 var(--font-display); color: var(--leaf-deep); }
.p-fu { display: grid; gap: 8px; margin-bottom: 14px; }
.p-fu-q { margin: 0; font-weight: 700; color: var(--ink); }
.p-fu-q::before { content: "You asked: "; color: var(--ink-mute); font-weight: 800; }
.p-cheer { margin: 22px 0 0; font: 500 18px/1.4 var(--font-display); color: var(--leaf-deep); text-align: center; }
.p-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 12px; flex-wrap: wrap; }
.p-foot .muted { font-size: 12px; max-width: 70ch; }

.pill { background: var(--leaf); color: #fff; border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 13px; transition: background .2s; }
.pill:hover { background: var(--leaf-deep); }
.pill:disabled { opacity: .6; cursor: progress; }
.pill.alt { background: transparent; color: var(--ink); border: 1px solid var(--hairline-strong); }
.pill.alt:hover { background: var(--leaf-soft); }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 60; font-size: 13.5px; max-width: 90vw; }
.disclaimer { text-align: center; font-size: 11.5px; color: var(--ink-mute); margin: 0 0 18px; padding: 0 16px; }
.disclaimer a { color: inherit; }

/* ---------------- waiting between steps ---------------- */
.waitcard { width: min(620px, 100%); text-align: left; animation: rise .35s var(--ease-out) both; display: grid; gap: 7px; }
.wc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wc-step { display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.wc-step::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); animation: bob 1.6s infinite ease-in-out; }
.wc-time { font: 600 13px/1 var(--font-text); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.wc-head { margin: 0; font: 600 clamp(16px, 1.5vw, 19px)/1.35 var(--font-display); color: var(--ink); }
.wc-sub { margin: 0; font-size: 13px; color: var(--ink-soft); }
.wc-muse { margin: 0; font-size: 13px; color: var(--ink-mute); min-height: 1.5em; transition: opacity .35s; }
.wc-muse b { color: var(--ink); font-weight: 600; }
.wc-muse.fade { opacity: 0; }
.wc-bar { height: 5px; border-radius: 5px; background: var(--surface-3); overflow: hidden; position: relative; }
.wc-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--leaf); border-radius: 5px; transition: width .6s var(--ease-out); }
.wc-bar.indeterminate i { width: 28%; animation: sweep 2.2s ease-in-out infinite; }
@keyframes sweep { 0% { left: -28%; } 100% { left: 100%; } }
.stage.live .seat.thinking .bust { animation: ponder 6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes ponder {
  0%, 100% { transform: rotate(0) translateY(0); }
  22% { transform: rotate(-2.2deg) translateY(-1px); }
  48% { transform: rotate(0) translateY(0); }
  72% { transform: rotate(1.8deg) translateY(-2px); }
}
.stage.live .seat.musing { filter: none; }

/* ---------------- how-to guide (side panel when idle, and a dialog) ---------------- */
.guide { display: grid; gap: 14px; font-size: 13.5px; color: var(--ink-soft); }
.guide h4 { margin: 0 0 6px; font: 600 15px/1.25 var(--font-display); color: var(--ink); }
.guide ol, .guide ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 7px; }
.guide ol { counter-reset: step; }
.guide ol li { counter-increment: step; display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.guide ol li::before { content: counter(step); width: 22px; height: 22px; border-radius: 50%; background: var(--leaf); color: #fff; font: 700 11.5px/22px var(--font-text); text-align: center; }
.guide ul li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; }
.guide ul li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 7px; }
.guide li b { color: var(--ink); font-weight: 600; }
.guide-sec { border-top: 1px solid var(--hairline); padding-top: 12px; }
.guide-sec:first-child { border-top: 0; padding-top: 0; }
.crew-list { display: grid; gap: 8px; }
.crew-row { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; font-size: 12.5px; }
.crew-row img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; background: var(--surface-2); }
.crew-row b { display: block; color: var(--ink); font-size: 13px; }
#guideDialog .guide { margin-bottom: 14px; }

/* ---------------- read aloud: mute switch, speaker buttons, voice settings ---------------- */
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 10px; border: 1px solid var(--hairline-strong); background: none; color: var(--ink-soft); cursor: pointer; }
.icon-btn:hover { border-color: var(--leaf); color: var(--ink); }
.icon-btn[aria-pressed="true"] { color: var(--ink-mute); }
.icon-btn svg { width: 18px; height: 18px; }
.say { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; padding: 0; margin-left: 6px; border-radius: 50%; border: 1px solid var(--hairline-strong); background: none; color: var(--ink-mute); cursor: pointer; }
.say svg { width: 14px; height: 14px; }
.say:hover, .say:focus-visible { color: var(--leaf); border-color: var(--leaf); }
.say.playing { color: var(--leaf); border-color: var(--leaf); background: var(--leaf-soft); }
.card-head .say { margin-left: auto; width: 34px; height: 34px; }
.card-head .say svg { width: 17px; height: 17px; }
.voices-dialog { width: min(920px, 94vw); }
.voice-list { display: grid; gap: 8px; margin: 14px 0; }
.voice-row { display: grid; grid-template-columns: 44px minmax(130px, 1.1fr) minmax(150px, 1.2fr) minmax(110px, 1fr) minmax(110px, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border: 1px solid var(--hairline-strong); border-radius: 12px; background: var(--surface-2); }
.voice-row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; background: var(--surface); }
.vr-who b { display: block; color: var(--ink); font-size: 14px; }
.vr-who small { display: block; color: var(--ink-mute); font-size: 12px; }
.voice-row label { display: grid; gap: 3px; font-size: 11.5px; color: var(--ink-mute); }
.voice-row label span { display: flex; justify-content: space-between; gap: 6px; }
.voice-row output { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.voice-row select { width: 100%; background: #fff; color: var(--ink); border: 1px solid var(--hairline-strong); border-radius: 8px; padding: 5px 6px; font: inherit; font-size: 13px; }
.voice-row input[type="range"] { width: 100%; accent-color: var(--leaf); }
.vr-actions { display: flex; align-items: center; gap: 6px; }
.vr-grade { display: grid; gap: 3px; font-size: 11.5px; color: var(--ink-mute); }
.vr-grade b { font: 600 16px/1.2 var(--font-display); color: var(--ink); }
.vr-actions .say { margin: 0; width: 34px; height: 34px; }
.vr-actions .say svg { width: 16px; height: 16px; }
.vr-reset { background: none; border: 0; padding: 0; color: var(--leaf); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.adv-foot { display: flex; justify-content: space-between; gap: 10px; }

/* the welcome: three quick questions about the member's garden */
.welcome-dialog { width: min(560px, 92vw); }
.wl-head { display: flex; gap: 14px; align-items: center; }
.wl-face { width: 64px; height: 64px; border-radius: 50%; background: var(--leaf-soft); flex: none; object-fit: cover; }
.wl-dots { display: flex; gap: 6px; list-style: none; padding: 0; margin: 14px 0 12px; }
.wl-dots li { height: 5px; flex: 1; border-radius: 3px; background: var(--hairline); transition: background .3s; }
.wl-dots li.on { background: var(--leaf); }
.wl-q { font: 600 15px/1.3 var(--font-display); color: var(--ink); margin: 0 0 10px; }
.wl-opts { display: grid; gap: 8px; }
/* where do you garden: two big choices, then a smaller pair once one is picked */
.wl-where { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wl-where .wl-opt { align-items: center; text-align: center; padding: 18px 12px; }
.wl-where .wl-opt b { font-size: 16px; }
.wl-where.picked .wl-opt { padding: 8px 10px; }
.wl-where .wl-opt[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--leaf); }
.wl-where.picked .wl-opt b { font-size: 14px; }
.wl-where.picked .wl-opt small { display: none; }
.wl-place .wl-zip { width: 10ch; flex: none; font-size: 18px; letter-spacing: .1em; }
.wl-optional { color: var(--ink-mute); }
.zip-result { font-size: 14px; color: var(--ink-soft); margin: 6px 2px 0; min-height: 1.4em; }
.zip-result b { color: var(--leaf-deep); }
.zip-result .miss { color: var(--accent); }
.zip-result .link-btn { font-size: 13px; margin-left: 4px; }
/* Next stays pale until the step is answered, then turns full colour */
.welcome-dialog #wlNext:disabled { opacity: .4; filter: saturate(0); cursor: not-allowed; }
.wl-place + .wl-q { margin-top: 16px; }
.wl-place select { font: inherit; font-size: 16px; padding: 8px 12px; border: 1px solid var(--hairline-strong); border-radius: 10px; background: var(--surface); color: var(--ink); }
.wl-place select:focus { outline: 2px solid var(--leaf); outline-offset: 1px; }
.zone-chart { max-height: 260px; overflow-y: auto; border: 1px solid var(--hairline); border-radius: 12px; padding: 4px 8px; margin-bottom: 4px; }
.zone-chart table { width: 100%; border-collapse: separate; border-spacing: 4px; }
.zone-chart caption { font-size: 12px; color: var(--ink-mute); text-align: left; padding: 4px 2px; }
.zone-chart th { font: 600 14px/1 var(--font-display); color: var(--ink-mute); width: 2em; }
.zone-chart button { width: 100%; display: grid; gap: 1px; padding: 6px 8px; text-align: left; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 10px; color: var(--ink-soft); }
.zone-chart button b { color: var(--ink); font-size: 13px; }
.zone-chart button span { font-size: 12px; }
.zone-chart button small { font-size: 11px; color: var(--ink-mute); }
.zone-chart button:hover { border-color: var(--leaf); }
.zone-chart button[aria-pressed="true"] { border-color: var(--leaf); background: var(--leaf-soft); }
.zone-chart .wl-note { margin: 4px 2px !important; font-size: 11px; }
.wl-opt { background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--hairline); border-radius: 12px; transition: border-color .2s, background .2s, color .2s; }
.wl-opt:hover { border-color: var(--leaf); color: var(--ink); }
.wl-opt[aria-pressed="true"] { border-color: var(--leaf); background: var(--leaf-soft); color: var(--leaf-deep); }
.wl-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; text-align: left; }
.wl-opt b { color: var(--ink); font-size: 14px; }
.wl-opt small { font-size: 12px; color: var(--ink-mute); }
.wl-place { display: grid; gap: 4px; margin: 14px 0 4px; font-size: 13px; color: var(--ink-soft); }
.wl-place input { font: inherit; font-size: 16px; padding: 8px 12px; border: 1px solid var(--hairline-strong); border-radius: 10px; background: var(--surface); color: var(--ink); }
.wl-place input:focus { outline: 2px solid var(--leaf); outline-offset: 1px; }
.wl-note { font-size: 12px; color: var(--ink-mute); margin: 8px 0 14px !important; }
.wl-note a { color: var(--leaf-deep); }
/* an answer while it's being written */
.wc-draft { margin: 8px 0 10px; text-align: left; }
.wc-draft-who { font-size: 12.5px; color: var(--ink-mute); margin-bottom: 4px; }
.wc-draft-who b { color: var(--leaf-deep); }
.wc-draft-text { max-height: 9.5em; overflow-y: auto; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); padding: 8px 12px; background: var(--surface-2); border-radius: 10px; }
.wc-draft-text p { margin: 0 0 4px; }
.wc-draft-text b { color: var(--ink); }

/* a short safety note right on a risky answer */
.safe-note { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(210, 85, 44, .08); border: 1px solid rgba(210, 85, 44, .3); color: var(--ink-soft); font-size: 12.5px; line-height: 1.45; }
.safe-note b { color: var(--accent); }
.safe-note ul { margin: 4px 0 0; padding-left: 18px; }
.card-dialog .safe-note { font-size: 13.5px; margin-top: 14px; }

/* feedback from testers */
.feedback-dialog { width: min(520px, 92vw); }
.fb-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.fb-kinds [aria-pressed="true"][data-kind="unsafe"] { border-color: var(--accent); background: rgba(210, 85, 44, .1); color: var(--accent); }
.feedback-dialog textarea { font: inherit; font-size: 16px; padding: 8px 12px; border: 1px solid var(--hairline-strong); border-radius: 10px; background: var(--surface); color: var(--ink); resize: vertical; }
.feedback-dialog textarea:focus { outline: 2px solid var(--leaf); outline-offset: 1px; }
.feedback-dialog .adv-foot { margin-top: 12px; }
.flag { background: none; border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--ink-mute); white-space: nowrap; }
.flag:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 520px) { .fb-kinds { grid-template-columns: 1fr; } }

/* who's gardening */
.who-dialog { width: min(460px, 92vw); }
.who-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.who-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 14px; text-align: left; color: var(--ink-soft); transition: border-color .2s, background .2s; }
.who-list button:hover, .who-list button[aria-current="true"] { border-color: var(--leaf); background: var(--leaf-soft); }
.who-list b { display: block; color: var(--ink); font-size: 15px; }
.who-list small { font-size: 12px; color: var(--ink-mute); }
.who-av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 600 18px/1 var(--font-display); color: #fff; background: var(--leaf); }
.who-add { display: flex; gap: 8px; }
.who-add input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 8px 12px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--surface); color: var(--ink); }
.who-add input:focus { outline: 2px solid var(--leaf); outline-offset: 1px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--leaf-deep); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.who-btn { display: inline-flex; align-items: center; gap: 6px; }
.who-btn .who-av { width: 22px; height: 22px; font-size: 12px; }
.garden-line { margin: 2px 0 0; font-size: 12px; color: var(--ink-mute); text-align: center; }
/* "about 212 questions left this month": quiet, warmer when it's running low */
.budget-note { margin: 2px 0 0; font-size: 12px; color: var(--ink-mute); text-align: center; }
.budget-note.low { color: var(--leaf-deep); font-weight: 600; }
.budget-note.out { color: var(--accent); font-weight: 600; }
.garden-line button { background: none; border: 0; padding: 0; color: var(--leaf-deep); font-weight: 600; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* arrival: headings type in a character at a time */
.typein .ch { display: inline-block; opacity: 0; filter: blur(6px); animation: chin .5s var(--ease-out) forwards; white-space: pre; }
.typein .wd { display: inline-block; white-space: nowrap; }
@keyframes chin { to { opacity: 1; filter: blur(0); } }

/* ---------------- responsive ---------------- */
@media (max-width: 1220px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; max-height: 70vh; }
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .top-actions { margin-left: auto; }
  .stepper { order: 3; width: 100%; margin: 0; justify-content: center; overflow-x: auto; }
}
@media (max-width: 820px) {
  .topbar { gap: 10px; padding: 10px 16px; }
  .stepper { justify-content: flex-start; }
  .top-actions { flex-wrap: wrap; }
  .top-actions .ghost { padding: 6px 11px; font-size: 12.5px; }
  .topic { flex-direction: column; align-items: stretch; margin: 12px 16px 0; padding: 14px 16px; }
  .picks { min-width: 0; max-width: none; flex: none; }
  .layout { padding: 12px 16px 24px; }
  body { overflow-x: hidden; }
  .stage { aspect-ratio: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; }
  .nameplate { min-width: 0; padding: 2px 6px 3px; border-width: 1px; }
  .nameplate small { display: none; }
  .nameplate b { font-size: 10.5px; }
  /* on a phone the box flows with the page: no scroll area of its own, so a swipe on it always scrolls the page */
  .center { position: relative !important; left: auto !important; top: auto !important; width: auto !important; height: auto !important; overflow: visible; overscroll-behavior: auto; padding: 14px 12px; isolation: isolate; }
  /* the garden bed carries on under the question box, softened so the cream card reads first */
  .center::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--garden) 22% 100% / auto 260% no-repeat; filter: blur(2px) saturate(1.05); }
  .center > * { padding: 14px; }
  .playbar { position: static; margin: 0 14px 14px; justify-content: space-between; align-self: stretch; }
  .think { padding: 4px 6px; }
  .think i { width: 4px; height: 4px; }
  .p-grid { grid-template-columns: 1fr; }
  .sheet-inner { padding: 22px 18px 40px; }
  .p-top { flex-direction: column; }
  .voice-row { grid-template-columns: 44px 1fr auto; }
  .vr-voice, .vr-slider { grid-column: 1 / -1; }
  .vr-actions { grid-row: 1; grid-column: 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* ============================================================ home: the members' front page */
/* home and the crew's garden take turns; the garden's step tracker and buttons only show there */
/* three views take turns: home, the crew's garden, and the challenge */
body:not([data-view="garden"]) .topic, body:not([data-view="garden"]) .layout, body:not([data-view="garden"]) .stepper, body:not([data-view="garden"]) .garden-only { display: none !important; }
body:not([data-view="home"]) .home, body[data-view="home"] .not-home { display: none !important; }
body:not([data-view="challenge"]) .challenge { display: none; }
body:not([data-view="seeds"]) .seeds { display: none; }
body:not([data-view="harvest"]) .harvest { display: none; }

.topbar { gap: 16px; }
.brand { text-decoration: none; }
.brand-name { font: 900 20px/1.05 var(--font-display); letter-spacing: -.01em; }
.brand-by { font-weight: 700; }
.top-actions { margin-left: auto; }
.me-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline-strong); color: var(--ink); font: 700 14px/1 var(--font-text); box-shadow: var(--shadow-soft); }
.me-btn:hover { border-color: var(--leaf); }
.me-btn .who-av { width: 30px; height: 30px; font-size: 14px; }
.who-av { overflow: hidden; }
.who-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

.home { max-width: 1080px; margin: 0 auto; padding: 28px 24px 12px; display: grid; gap: 22px; }

/* the sunny backdrop behind the greeting (built by npm run backdrops) */
.home { --hello-photo: url("/img/backdrop-2.webp?v=2"); --hello-at: 50% 62%; }

/* the greeting: a sharp, sunny photo; the words sit on the sky with a soft light halo so they stay easy to read */
.hello { position: relative; overflow: hidden; display: flex; align-items: center; gap: 22px; min-height: 176px; padding: 28px 32px 56px; border-radius: 28px; background: #8fc0e8 var(--hello-photo) var(--hello-at) / cover no-repeat; box-shadow: var(--shadow-soft); }
.hello > .hello-av, .hello > .hello-text { position: relative; z-index: 1; }
.hello-av { position: relative; flex: none; width: 92px; height: 92px; padding: 0; border: 4px solid #fff; border-radius: 50%; background: var(--leaf); box-shadow: var(--shadow-lift); cursor: pointer; }
.av-face { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; color: #fff; font: 900 38px/1 var(--font-display); }
.av-face img { width: 100%; height: 100%; object-fit: cover; }
.av-cam { position: absolute; right: -4px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; border: 3px solid #fff; }
.av-cam svg { width: 15px; height: 15px; }
.hello h1 { margin: 0 0 10px; font: 900 clamp(28px, 4vw, 40px)/1.05 var(--font-display); color: var(--ink); letter-spacing: -.02em; text-shadow: 0 0 2px rgba(255, 255, 255, .6), 0 0 18px rgba(255, 255, 255, .75); }
.hello-garden { margin: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-weight: 700; font-size: 13.5px; color: var(--ink); box-shadow: 0 2px 10px rgba(30, 50, 20, .14); }
.hello-garden:empty { display: none; }

/* the big one: Check My Plant, on a plain soft green (so it doesn't repeat the greeting's hillside), with a real potted plant */
.check-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 172px 1fr auto; grid-template-areas: "plant text cta"; align-items: center; gap: 22px; width: 100%; min-height: 188px; padding: 26px 30px 26px 20px; isolation: isolate; border-radius: 28px; text-align: left; color: var(--ink); background: radial-gradient(120% 140% at 12% 100%, #c9e2b5 0%, rgba(201, 226, 181, 0) 60%), linear-gradient(160deg, #eef6e4, #dcebcd); border: 1px solid rgba(63, 125, 58, .18); box-shadow: var(--shadow-lift); }
.check-plant { grid-area: plant; align-self: end; position: relative; margin-bottom: -18px; line-height: 0; }
.check-plant img { display: block; width: 100%; height: auto; filter: drop-shadow(0 3px 3px rgba(30, 40, 10, .3)); }
.check-plant::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -3px; height: 10px; border-radius: 50%; background: rgba(40, 60, 20, .3); filter: blur(4px); z-index: -1; } /* where the pot sits */
.check-text { grid-area: text; position: relative; display: grid; gap: 6px; }
.check-text b { font: 900 clamp(26px, 3.2vw, 34px)/1.05 var(--font-display); letter-spacing: -.02em; color: var(--leaf-deep); }
.check-text span { font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--ink); max-width: 46ch; }
.check-cta { grid-area: cta; display: grid; gap: 12px; }
.check-btn { white-space: nowrap; padding: 15px 26px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; box-shadow: 0 4px 0 #9c3a19, 0 10px 22px -8px rgba(80, 30, 10, .5); transition: transform .2s var(--ease-out); }
.check-btn.alt { background: #fff; color: var(--ink); box-shadow: 0 4px 0 rgba(40, 50, 20, .25), 0 10px 22px -8px rgba(40, 50, 20, .4); }
.check-btn:hover { transform: translateY(-2px); }
.check-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Ask the Crew and My Garden: one row under the crew, the same height, lined up with the cards below */
.home-pair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-card.hc-ask { grid-column: span 2; align-items: center; }
.home-card.hc-garden { align-items: center; }
#cardGarden, .hc-ask .hc-text span { text-wrap: pretty; }
.hc-edit { display: none; }
.gl-part.keep { white-space: nowrap; }

/* everything else, as cards under small headings: Grow, Explore, Settings & help */
.home-group { display: grid; gap: 12px; }
.home-group[hidden] { display: none; }
.hg-title { margin: 6px 0 0; font: 900 20px/1.2 var(--font-display); color: var(--ink); }
.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-card { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border: 1px solid var(--hairline); border-radius: 22px; background: var(--surface); text-align: left; color: var(--ink-soft); box-shadow: var(--shadow-soft); cursor: pointer; transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s; }
.home-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--hairline-strong); }
.home-card:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
.home-card.wide { grid-column: span 2; align-items: center; }
.hc-challenge .hc-text { flex: 1; }
.hc-bar { display: block; height: 8px; margin-top: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08); }
.hc-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #6fa557, var(--leaf)); transition: width .6s var(--ease-out); }
.hc-bar[hidden] { display: none; }
.home-card.strip { grid-column: 1 / -1; align-items: center; padding: 14px 20px; }
.home-card.strip .hc-icon { width: 38px; height: 38px; border-radius: 12px; }
.home-card.strip .hc-text { grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; }
.hc-icon { flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; box-shadow: 0 3px 0 rgba(0, 0, 0, .08); }
.hc-icon svg { width: 24px; height: 24px; }
.hc-icon.leaf { background: #e2f0d9; color: var(--leaf-deep); }
.hc-icon.gold { background: #fdf0c4; color: #a26b00; }
.hc-icon.clay { background: #fbe0d4; color: #b9461f; }
.hc-icon.moss { background: #e9ecd0; color: #5a6a1c; }
.hc-text { display: grid; gap: 4px; min-width: 0; }
.hc-text b { font: 800 17px/1.2 var(--font-display); color: var(--ink); }
.hc-text span { font-size: 15px; line-height: 1.4; color: #34422f; }
.hc-faces { margin-left: auto; display: flex; flex: none; }
.hc-faces img { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--surface); background: var(--surface-2); margin-left: -12px; box-shadow: 0 2px 6px rgba(40, 50, 20, .18); }

/* profile photo dialog */
.avatar-dialog { width: min(420px, 92vw); text-align: center; }
.av-preview { width: 140px; height: 140px; margin: 16px auto; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--leaf); color: #fff; font: 900 56px/1 var(--font-display); border: 4px solid #fff; box-shadow: var(--shadow-lift); }
.av-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-dialog .av-done { margin-top: 10px; }

@media (max-width: 820px) {
  .topbar { padding: 10px 16px; }
  .home { padding: 18px 16px 8px; gap: 16px; }
  .hello { padding: 22px 20px 50px; gap: 16px; min-height: 0; border-radius: 24px; }
  .hello-av { width: 72px; height: 72px; }
  .av-face { font-size: 30px; }
  /* phone: the words up top on the sky, then the plant on the grass with the button beside it */
  .check-card { grid-template-columns: 96px 1fr; grid-template-areas: "text text" "plant cta"; gap: 14px 12px; padding: 22px 20px 18px 14px; border-radius: 24px; }
  .check-text { padding-left: 6px; }
  .check-plant { margin-bottom: -10px; }
  .check-cta { align-self: end; justify-self: stretch; gap: 10px; }
  .check-btn { white-space: normal; padding: 13px 16px; font-size: 15px; }
  .home-grid, .home-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-card { flex-direction: column; gap: 10px; padding: 16px; }
  .home-card.hc-ask { grid-column: auto; align-items: flex-start; }
  .home-card.hc-garden { align-items: flex-start; }
  .hc-ask .hc-faces { margin: auto 0 0 10px; }
  .hc-edit { display: block; margin-top: auto; font-size: 13.5px; font-weight: 800; color: var(--leaf-deep); }
  .hc-ask .hc-faces img { width: 34px; height: 34px; margin-left: -10px; border-width: 2px; }
  .home-card.wide { flex-direction: row; flex-wrap: wrap; }
  .home-card.wide .hc-text { flex: 1 1 180px; }
  .home-card.wide .hc-faces { margin-left: 12px; }
  .home-card.strip { flex-direction: row; }
  .home-card.strip .hc-text { grid-template-columns: 1fr; }
  .hello h1 { font-size: 26px; }
  .hello-garden { font-size: 12.5px; background: rgba(255, 255, 255, .85); border-radius: 14px; }
  .hello-text { padding-right: 30px; }
}
@media (max-width: 420px) {
  .me-btn { padding-right: 4px; }
  .me-btn .me-name { display: none; }
  .home-card.wide .hc-faces { margin: 4px 0 0 12px; order: 3; flex-basis: 100%; }
}
/* the smallest phones: a shorter greeting, so the crew row is in view without scrolling */
@media (max-width: 360px) {
  .hello { padding: 18px 14px 26px; gap: 12px; }
  .hello-av { width: 58px; height: 58px; }
  .hello h1 { font-size: 22px; margin-bottom: 8px; }
  .hello-text { padding-right: 0; }
  .cr-head p { font-size: 14px; }
}

/* a desktop screen under 1000px tall: keep the whole question box, Ask button included, in view */
@media (min-width: 821px) and (max-height: 1000px) {
  .samples button:nth-child(n+5) { display: none; }
  .engine-note:not(.bad) { display: none; }
  .composer-row { justify-content: flex-end; }
  .composer-row .photo-row { margin-right: auto; }
  .composer { gap: 6px; }
  .composer h2 { font-size: 21px; }
  .garden-line { display: none; } /* the home page shows their garden */
}

/* dialogs match the home page's bold headings */
.card-dialog h3 { font-weight: 800; letter-spacing: -.01em; }
.card-dialog { border-radius: 24px; box-shadow: var(--shadow-lift), 0 30px 80px -20px rgba(40, 50, 20, .45); }

/* a phone: one clean header row everywhere (the crew's progress shows on the waiting card instead) */
@media (max-width: 520px) {
  .topbar { flex-wrap: nowrap; gap: 8px; }
  .brand-logo { width: 32px; height: 32px; }
  .brand-name { font-size: 18px; }
  .brand-by { font-size: 11px; }
  .stepper { display: none !important; }
  .top-actions { flex-wrap: nowrap; gap: 6px; }
  .top-actions .ghost { padding: 6px 10px; font-size: 12.5px; }
  #newBtn { display: none !important; }
}
/* the smallest phones (iPhone SE): a slightly smaller header so nothing hangs off the right edge */
@media (max-width: 360px) {
  .topbar { padding: 10px 12px; gap: 6px; }
  .brand { gap: 6px; }
  .brand-logo { width: 28px; height: 28px; }
  .brand-name { font-size: 16px; }
  .brand-by { font-size: 10px; }
  .top-actions { gap: 4px; }
  .top-actions .ghost { padding: 6px 8px; }
}

/* ============================================================ the 30-Day Challenge */
.challenge { max-width: 880px; margin: 0 auto; padding: 28px 24px 12px; display: grid; gap: 20px; }
.ch-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; border-radius: 28px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #4f9a3d 0%, var(--leaf-deep) 70%); box-shadow: var(--shadow-lift); }
.ch-hero::after { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; bottom: -120px; border-radius: 50% 0; background: rgba(255, 255, 255, .08); transform: rotate(-20deg); }
.ch-hero .label { color: var(--sun); }
.ch-hero h1 { margin: 6px 0 6px; font: 900 clamp(26px, 3.6vw, 36px)/1.08 var(--font-display); letter-spacing: -.02em; }
.ch-hero p { margin: 0; color: rgba(255, 255, 255, .9); font-size: 15px; line-height: 1.45; max-width: 46ch; }
.ch-ring { position: relative; z-index: 1; flex: none; width: 112px; height: 112px; }
.ch-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ch-ring b { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font: 900 30px/1 var(--font-display); }
.ch-ring b small { display: block; font-size: 12px; font-weight: 700; opacity: .85; margin-top: 3px; }
.ch-intro { display: grid; gap: 14px; justify-items: center; text-align: center; }
.ch-weeks { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ch-week { padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-soft); text-align: left; }
.ch-week b { display: block; font: 800 15px/1.2 var(--font-display); color: var(--ink); margin: 4px 0; }
.ch-week span { font-size: 13px; color: var(--ink-mute); }
.ch-week .num { font-weight: 800; font-size: 12px; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.ch-start { padding: 14px 30px; font-size: 16px; box-shadow: 0 4px 0 #9c3a19; }

.ch-day { padding: 26px 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-lift); display: grid; gap: 12px; }
.chd-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.chd-week { font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.chd-num { font: 900 15px/1 var(--font-display); color: var(--ink-mute); }
.ch-day h2 { margin: 0; font: 900 clamp(24px, 3vw, 30px)/1.12 var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.chd-guide { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.chd-guide img { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); box-shadow: 0 2px 6px rgba(40, 50, 20, .18); }
.chd-task { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); }
.chd-why { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--leaf-soft); font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.chd-why b { color: var(--leaf-deep); }
.chd-note { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.chd-note textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 10px 12px; border: 1px solid var(--hairline-strong); border-radius: 12px; background: var(--surface); color: var(--ink); resize: vertical; min-height: 2.6em; }
.chd-note textarea:focus { outline: 2px solid var(--leaf); outline-offset: 1px; }
.chd-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chd-done { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 0; background: var(--leaf); color: #fff; font: 800 15px/1 var(--font-text); box-shadow: 0 4px 0 var(--leaf-deep); }
.chd-done.is-done { background: var(--surface-2); color: var(--leaf-deep); box-shadow: none; border: 2px solid var(--leaf); }
.chd-ask { padding: 11px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline-strong); color: var(--ink); font: 700 14px/1 var(--font-text); display: inline-flex; align-items: center; gap: 8px; }
.chd-ask img { width: 24px; height: 24px; border-radius: 50%; }
.chd-ask:hover { border-color: var(--leaf); }
.chd-locked { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); color: var(--ink-mute); font-size: 14px; margin: 0; }

.ch-grid { display: grid; gap: 14px; padding: 22px; border-radius: 26px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-soft); }
.chg-week { display: grid; grid-template-columns: 9.5em 1fr; align-items: center; gap: 12px; }
.chg-week > span { font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.chg-week > span small { display: block; font-weight: 600; color: var(--ink-mute); }
.chg-days { display: flex; flex-wrap: wrap; gap: 8px; }
.chg-days button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--hairline-strong); background: var(--surface); color: var(--ink-soft); font: 800 14px/1 var(--font-text); display: grid; place-items: center; transition: transform .15s; }
.chg-days button:hover { transform: scale(1.08); }
.chg-days button.done { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.chg-days button.today { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(210, 85, 44, .2); }
.chg-days button.locked { opacity: .45; border-style: dashed; }
.chg-days button[aria-current="true"] { transform: scale(1.12); box-shadow: 0 0 0 3px var(--sun); }
.ch-foot { text-align: center; margin: 0; }

@media (max-width: 820px) {
  .challenge { padding: 18px 16px 8px; gap: 16px; }
  .ch-hero { padding: 22px 20px; border-radius: 24px; }
  .ch-ring { width: 88px; height: 88px; }
  .ch-ring b { font-size: 24px; }
  .ch-weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-day { padding: 20px 18px; border-radius: 22px; }
  .chd-task { font-size: 16px; }
  .chd-actions > * { flex: 1 1 auto; justify-content: center; }
  .ch-grid { padding: 16px; }
  .chg-week { grid-template-columns: 1fr; gap: 8px; }
  .chg-week > span small { display: inline; margin-left: 6px; }
  .chg-days { gap: 7px; }
  .chg-days button { width: 38px; height: 38px; }
}

/* ============================================================ Mama Pearl's Seed Library */
.hc-icon.pearl { background: #fde9d9; padding: 0; overflow: hidden; }
.hc-icon.pearl img { width: 100%; height: 100%; object-fit: cover; }
.seeds { max-width: 920px; margin: 0 auto; padding: 28px 24px 12px; display: grid; gap: 18px; }
.sl-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; gap: 22px; padding: 26px 30px 0; border-radius: 28px; background: linear-gradient(160deg, #fbe7cf 0%, #f6d3ae 100%); box-shadow: var(--shadow-soft); }
.sl-hero::before { content: ""; position: absolute; inset: auto -40px -60px auto; width: 260px; height: 160px; border-radius: 50%; background: #e9b27f; opacity: .5; }
.sl-pearl { position: relative; width: 150px; flex: none; align-self: flex-end; filter: drop-shadow(0 6px 10px rgba(90, 58, 34, .25)); }
.sl-hero-text { position: relative; padding-bottom: 26px; }
.sl-hero .label { color: #9c3a19; display: flex; align-items: center; gap: 10px; }
.sl-face { display: none; width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow-soft); background: #fde9d9; }
.sl-hero h1 { margin: 4px 0 8px; font: 900 clamp(26px, 3.6vw, 36px)/1.08 var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.sl-say { margin: 0 0 12px; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); font-style: italic; max-width: 50ch; }
.sl-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.sl-stats span { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .75); font-weight: 700; font-size: 13px; color: var(--ink-soft); }
.sl-stats b { color: #9c3a19; }
.sl-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--hairline); width: fit-content; max-width: 100%; }
.sl-tabs button { padding: 9px 18px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-soft); font: 800 14px/1 var(--font-text); white-space: nowrap; }
.sl-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-soft); }
.sl-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12px; }
.sl-panel { display: grid; gap: 12px; }
.sl-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.sl-bar input { flex: 1 1 220px; font: inherit; font-size: 16px; padding: 10px 14px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--surface); color: var(--ink); }
.sl-bar input:focus { outline: 2px solid var(--leaf); outline-offset: 1px; }
.sl-add { padding: 11px 20px; font-size: 14.5px; box-shadow: 0 3px 0 #9c3a19; }
.sl-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sl-card { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-soft); }
.sl-card h3 { margin: 0; font: 800 17px/1.2 var(--font-display); color: var(--ink); }
.sl-card h3 small { display: block; font-weight: 700; font-size: 13.5px; color: var(--ink-mute); margin-top: 2px; }
.sl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sl-chips span { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.sl-chips .st-saved { background: #e2f0d9; color: var(--leaf-deep); }
.sl-chips .st-growing { background: #fdf0c4; color: #7a5200; }
.sl-chips .st-want { background: #dcecf7; color: #2c6b93; }
.sl-chips .shared { background: #fbe0d4; color: #9c3a19; }
.sl-chips .hybrid { background: #ece0f3; color: #6c3f8c; }
.sl-owner { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-mute); }
.sl-owner .who-av { width: 26px; height: 26px; font-size: 12px; }
.sl-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.sl-acts button { padding: 8px 14px; border-radius: 999px; font: 700 13px/1 var(--font-text); border: 1px solid var(--hairline-strong); background: var(--surface); color: var(--ink-soft); }
.sl-acts button:hover { border-color: var(--leaf); color: var(--ink); }
.sl-acts .go { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.sl-acts .go:hover { background: var(--leaf-deep); color: #fff; }
.sl-acts button:disabled { opacity: .55; cursor: default; }
.sl-empty { padding: 26px; border-radius: 20px; background: var(--surface); border: 1px dashed var(--hairline-strong); text-align: center; color: var(--ink-mute); font-size: 14.5px; line-height: 1.5; }
.sl-empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.sl-h { margin: 8px 0 0; font: 800 15px/1.2 var(--font-display); color: var(--ink-soft); }
.sl-wants { display: flex; flex-wrap: wrap; gap: 8px; }
.sl-wants span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); font-size: 13px; color: var(--ink-soft); }
.sl-wants .who-av { width: 22px; height: 22px; font-size: 11px; }
.sl-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.sl-note b { color: var(--ink); }
.sl-rules { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-mute); line-height: 1.5; }
.sw-status { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.sw-open { color: #a26b00; } .sw-accepted { color: var(--leaf-deep); } .sw-done { color: var(--leaf); } .sw-declined, .sw-cancelled, .sw-withdrawn { color: var(--ink-mute); }

.seed-dialog { width: min(520px, 94vw); }
.sd-form { display: grid; gap: 10px; margin-top: 10px; }
.sd-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.sd-form input:not([type="checkbox"]), .sd-form select, .sd-form textarea, .note-dialog textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 9px 12px; border: 1px solid var(--hairline-strong); border-radius: 12px; background: var(--surface); color: var(--ink); width: 100%; box-sizing: border-box; }
.sd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sd-share { padding: 12px 14px; border-radius: 14px; background: var(--leaf-soft); display: grid; gap: 8px; }
.sd-form .sd-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; color: var(--ink); }
.sd-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--leaf); }
.sd-hint { margin: 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.sd-hint:empty { display: none; }
.seed-dialog .adv-foot { grid-template-columns: auto 1fr auto auto; display: grid; align-items: center; gap: 8px; }
.note-dialog { width: min(460px, 94vw); }
.note-dialog .adv-foot { margin-top: 10px; }

@media (max-width: 820px) {
  .seeds { padding: 18px 16px 8px; gap: 14px; }
  .sl-hero { padding: 20px 18px 0; gap: 12px; border-radius: 24px; }
  .sl-pearl { width: 96px; }
  .sl-hero-text { padding-bottom: 18px; }
  .sl-say { font-size: 14px; }
  .sl-tabs { width: 100%; }
  .sl-tabs button { flex: 1; padding: 9px 8px; font-size: 13.5px; }
  .sl-list { grid-template-columns: 1fr; }
  .hc-feedback.strip { grid-column: auto; flex-direction: column; align-items: flex-start; padding: 16px; }
  .hc-feedback.strip .hc-text { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .sl-hero { padding: 20px 18px 0; }
  .sl-pearl { display: none; }
  .sl-face { display: block; }
}
@media (max-width: 420px) {
  .sd-row { grid-template-columns: 1fr; }
}

/* ============================================================ the harvest log */
.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; }
.harvest { max-width: 920px; margin: 0 auto; padding: 28px 24px 12px; display: grid; gap: 18px; }
.hv-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 26px 30px; border-radius: 28px; background: linear-gradient(160deg, #fdf0c4 0%, #f8dfa0 100%); box-shadow: var(--shadow-soft); }
.hv-hero::after { content: ""; position: absolute; right: -30px; top: -40px; width: 180px; height: 180px; border-radius: 50% 0; background: rgba(255, 255, 255, .35); transform: rotate(-20deg); }
.hv-hero .label { color: #7a5200; }
.hv-hero-text { position: relative; z-index: 1; }
.hv-hero h1 { margin: 4px 0 14px; font: 900 clamp(26px, 3.6vw, 36px)/1.08 var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.hv-tiles { display: flex; gap: 12px; flex-wrap: wrap; }
.hv-tile { min-width: 120px; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .8); box-shadow: 0 2px 0 rgba(0, 0, 0, .05); }
.hv-tile b { display: block; font: 900 28px/1 var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.hv-tile span { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.hv-log { position: relative; z-index: 1; padding: 13px 24px; font-size: 15px; box-shadow: 0 4px 0 #9c3a19; }
.hv-cheer { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 22px; background: var(--leaf-deep); color: #fff; box-shadow: var(--shadow-lift); animation: rise .5s var(--ease-out) both; }
.hv-cheer img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--sun); background: #fff; flex: none; }
.hv-cheer p { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 600; }
.hv-cheer b { color: var(--sun); display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.hv-cheer .say { margin-left: auto; flex: none; color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); }
.hv-card { position: relative; padding: 20px 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-soft); }
.hv-card h2 { margin: 0 0 12px; font: 800 18px/1.2 var(--font-display); color: var(--ink); }
.hv-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.hv-card-head h2 { margin: 0; }
.hv-toggle { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.hv-toggle button { padding: 6px 14px; border-radius: 999px; border: 0; background: transparent; font: 700 13px/1 var(--font-text); color: var(--ink-soft); }
.hv-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-soft); }
/* the chart: one series, thin rounded bars on a light grid, values in ink (never the bar color) */
.hv-chart { min-height: 120px; }
.hv-chart svg { display: block; overflow: visible; }
.hv-chart .grid line { stroke: var(--hairline); stroke-width: 1; }
.hv-chart .grid text, .hv-chart .xlab { fill: var(--ink-mute); font: 600 11px var(--font-text); }
.hv-chart .bar { fill: #3f7d3a; transition: opacity .15s; }
.hv-chart .hit { fill: transparent; cursor: pointer; }
.hv-chart .bar, .hv-chart text { pointer-events: none; } /* the month's hit area underneath takes the pointer */
.hv-chart .hit:hover + .bar, .hv-chart .bar.on { opacity: .75; }
.hv-chart .now { fill: var(--ink); font-weight: 800; }
.hv-chart .vlab { fill: var(--ink-soft); font: 700 11px var(--font-text); }
.hv-tip { position: absolute; z-index: 5; pointer-events: none; padding: 8px 12px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.35; box-shadow: var(--shadow-lift); transform: translate(-50%, -100%); white-space: nowrap; }
.hv-tip b { display: block; }
.hv-empty { padding: 26px; text-align: center; color: var(--ink-mute); font-size: 14.5px; line-height: 1.5; }
.hv-empty b { display: block; color: var(--ink); font-size: 16px; }
.hv-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hv-rows { display: grid; gap: 2px; }
.hv-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; color: var(--ink-soft); }
.hv-row:last-child { border-bottom: 0; }
.hv-top .hv-row { grid-template-columns: 1fr 4.8em 5.4em; } /* fixed number columns, so the bars line up */
.hv-row b { color: var(--ink); }
.hv-row small { display: block; color: var(--ink-mute); font-size: 12px; }
.hv-row .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.hv-row .x { border: 0; background: none; color: var(--ink-mute); font-size: 18px; padding: 0 4px; }
.hv-row .x:hover { color: var(--accent); }
.hv-bar { height: 6px; border-radius: 99px; background: var(--leaf-soft); margin-top: 4px; overflow: hidden; }
.hv-bar i { display: block; height: 100%; background: #3f7d3a; border-radius: 99px; }
.hv-price { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.hv-price:last-child { border-bottom: 0; }
.hv-price input { width: 6.5em; font: inherit; font-size: 16px; padding: 6px 10px; border: 1px solid var(--hairline-strong); border-radius: 10px; background: var(--surface); }
.hv-price button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--hairline-strong); background: var(--surface); font: 700 13px/1 var(--font-text); color: var(--ink-soft); }
.hv-price small { display: block; color: var(--ink-mute); font-size: 12px; }
.hv-source { margin: 12px 0 0; font-size: 12px; color: var(--ink-mute); line-height: 1.5; }
.hv-more { margin-top: 8px; border: 0; background: none; color: var(--leaf-deep); font: 700 13px var(--font-text); text-decoration: underline; }

/* phones: under Grow, the challenge and the harvest log full width, then Past Questions and Seeds side by side */
@media (max-width: 820px) {
  .harvest { padding: 18px 16px 8px; gap: 14px; }
  .hv-hero { padding: 20px 18px; border-radius: 24px; }
  .hv-tile { min-width: 0; flex: 1 1 30%; padding: 10px 12px; }
  .hv-tile b { font-size: 22px; }
  .hv-log { width: 100%; }
  .hv-card { padding: 16px; border-radius: 20px; }
  .hv-split { grid-template-columns: 1fr; gap: 14px; }
  .home-grid > .hc-challenge { order: 1; }
  .home-grid > .hc-harvest { order: 2; }
  .home-grid > .hc-history { order: 3; }
  .home-grid > .hc-seeds { order: 4; }
}
#alertsDialog .adv-foot { display: flex; justify-content: space-between; gap: 10px; }
.al-status { margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.al-status.on { background: var(--leaf-soft); color: var(--leaf-deep); }
.al-status.wait { background: #fdf0c4; color: #7a5200; }
.al-status.note { background: var(--surface-2); color: var(--ink-soft); }

/* ============================================================ Marcus's weekly check-in */
.checkin { padding: 22px 24px; border-radius: 26px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-soft); display: grid; gap: 14px; }
.ci-head { display: flex; align-items: center; gap: 14px; }
.ci-head img { width: 54px; height: 54px; border-radius: 50%; background: var(--leaf-soft); border: 3px solid #fff; box-shadow: var(--shadow-soft); flex: none; }
.ci-head h2 { margin: 0; font: 900 20px/1.15 var(--font-display); color: var(--ink); }
.ci-head small { display: block; font-size: 12.5px; font-weight: 700; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.ci-head .say { margin-left: auto; flex: none; }
.ci-greet { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
.ci-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ci-col { padding: 14px 16px; border-radius: 18px; background: var(--surface-2); }
.ci-col h3 { margin: 0 0 8px; font: 800 13px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--leaf-deep); }
.ci-col.watch h3 { color: #9c3a19; }
.ci-col ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.ci-col p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.ci-col:not(.open) .ci-more { display: none; }
.ci-toggle { margin-top: 10px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--hairline-strong); background: var(--surface); font: 700 13px/1 var(--font-text); color: var(--leaf-deep); }
.ci-toggle:hover { border-color: var(--leaf); }
.ci-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ci-foot button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--hairline-strong); background: var(--surface); font: 700 13.5px/1 var(--font-text); color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.ci-foot button img { width: 22px; height: 22px; border-radius: 50%; }
.ci-foot button:hover { border-color: var(--leaf); }
.ci-wait { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink-mute); font-size: 14.5px; }
.ci-wait .think { position: static; opacity: 1; transform: none; }
@media (max-width: 820px) {
  .checkin { padding: 18px; border-radius: 22px; }
  .ci-cols { grid-template-columns: 1fr; gap: 10px; }
  .ci-head img { width: 46px; height: 46px; }
  .ci-head h2 { font-size: 18px; }
}

/* ============================================================ the crew row on home (.crew-strip; .crew-row is the guide's list) */
.crew-strip { display: grid; gap: 12px; }
.cr-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cr-head h2 { margin: 0; font: 900 20px/1.2 var(--font-display); color: var(--ink); }
.cr-head p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.cr-list { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; }
.cr-card { display: grid; justify-items: center; gap: 6px; padding: 14px 6px 12px; border-radius: 20px; border: 1px solid var(--hairline); background: var(--surface); box-shadow: var(--shadow-soft); text-align: center; cursor: pointer; transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s; min-width: 0; }
.cr-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--leaf); }
.cr-card:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
.cr-card img { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-2); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(40, 50, 20, .18); }
.cr-card b { font: 800 14px/1.15 var(--font-display); color: var(--ink); }
.cr-card span { font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--ink-soft); }
.cr-card.host { background: var(--leaf-soft); border-color: rgba(63, 125, 58, .35); }
.cr-card.host img { border-color: var(--sun); }
.direct-chip { margin: 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 999px; background: var(--leaf-soft); border: 1px solid var(--leaf); font-size: 13px; font-weight: 700; color: var(--leaf-deep); }
.direct-chip img { width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.direct-chip button { border: 0; background: none; color: var(--ink-mute); font-size: 17px; line-height: 1; padding: 0 4px; }
.direct-chip button:hover { color: var(--accent); }
@media (max-width: 1100px) {
  /* a sideways-scrolling row, each person snapping into place */
  .cr-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
  .cr-list::-webkit-scrollbar { display: none; }
  .cr-card { flex: 0 0 104px; scroll-snap-align: start; }
}
@media (max-width: 520px) {
  .cr-card { flex-basis: 96px; padding: 12px 6px 10px; }
  .cr-card img { width: 58px; height: 58px; }
}

/* ============================================================ profile cards and one-on-one chats */
body:not([data-view="chat"]) .chat { display: none; }
.pf-bust, .ct-bust { position: relative; aspect-ratio: 0.72; transform-origin: 50% 90%; animation: breathe 5.5s ease-in-out infinite; }
.pf-bust img, .ct-bust img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; user-select: none; object-fit: contain; object-position: 50% 100%; }
.pf-bust[data-shape="base"] img.base, .pf-bust[data-shape="open"] img.open, .pf-bust[data-shape="mid"] img.mid, .pf-bust[data-shape="blink"] img.blink,
.ct-bust[data-shape="base"] img.base, .ct-bust[data-shape="open"] img.open, .ct-bust[data-shape="mid"] img.mid, .ct-bust[data-shape="blink"] img.blink { opacity: 1; }
.pf-bust.talking, .ct-bust.talking { animation: talk 1.6s ease-in-out infinite; }
.pf-tag { justify-self: start; display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--leaf-soft); color: var(--leaf-deep); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pf-asks { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.pf-asks button { border: 1px solid var(--hairline-strong); background: var(--surface); color: var(--ink); border-radius: 14px; padding: 8px 12px; font-size: 13.5px; line-height: 1.3; text-align: left; transition: border-color .2s, background .2s; }
.pf-asks button:hover { border-color: var(--leaf); background: var(--leaf-soft); }
.pf-asks button::before { content: "“"; color: var(--leaf); font-weight: 900; margin-right: 2px; }
.pf-asks button::after { content: "”"; color: var(--leaf); font-weight: 900; margin-left: 1px; }
.linkish { border: 0; background: none; padding: 0; color: var(--leaf-deep); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.profile-dialog { width: min(840px, 94vw); padding: 0; overflow: hidden auto; }
.pf { position: relative; display: grid; grid-template-columns: 310px 1fr; }
.pf-art { position: relative; display: grid; align-content: end; justify-items: center; gap: 14px; padding: 30px 20px 22px; background: linear-gradient(172deg, #fff4cf 0%, #e6f1d6 52%, #a9d18c 100%); }
.pf-bust { width: 100%; max-width: 260px; }
.pf-hello { border: 0; border-radius: 999px; padding: 9px 18px; background: rgba(255, 255, 255, .9); color: var(--leaf-deep); font-weight: 800; box-shadow: var(--shadow-soft); transition: transform .2s; }
.pf-hello:hover { transform: translateY(-1px); }
.pf-info { padding: 28px 30px 26px; display: grid; align-content: start; gap: 4px; }
.pf-info h3 { margin: 8px 0 0; font: 900 28px/1.12 var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.card-dialog .pf-role { margin: 2px 0 10px; color: var(--accent); font-weight: 800; }
.pf-bio { line-height: 1.55; }
.pf-knows { list-style: none; padding: 0; margin: 2px 0 4px; display: grid; gap: 7px; }
.card-dialog .pf-knows { padding: 0; }
.pf-knows li { position: relative; padding-left: 28px; line-height: 1.35; color: var(--ink); }
.pf-knows li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--leaf); color: #fff; font-size: 11px; font-weight: 900; display: grid; place-items: center; }
.pf-go { justify-self: start; margin-top: 16px; padding: 12px 26px; font-size: 15.5px; }
.pf-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink-soft); font-size: 22px; line-height: 1; }
.pf-x:hover { border-color: var(--leaf); color: var(--ink); }
@media (max-width: 700px) {
  .pf { grid-template-columns: 1fr; }
  .pf-art { padding: 22px 16px 16px; }
  .pf-bust { max-width: 168px; }
  .pf-info { padding: 18px 18px 22px; }
  .pf-info h3 { font-size: 24px; }
  .pf-go { justify-self: stretch; }
}

.chat { max-width: 780px; margin: 0 auto; padding: 24px 24px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.ct-head { position: sticky; top: var(--topbar-h, 60px); z-index: 5; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px 22px 0; border-radius: 28px; background: linear-gradient(160deg, #fff4cf 0%, #d6eac1 100%); box-shadow: var(--shadow-soft); }
.ct-who { display: flex; align-items: flex-end; gap: 18px; min-width: 0; }
.ct-bust { width: 132px; flex: none; }
.ct-name { display: grid; padding-bottom: 20px; min-width: 0; }
.ct-name h1 { margin: 6px 0 2px; font: 900 clamp(22px, 3.2vw, 30px)/1.1 var(--font-display); color: var(--ink); letter-spacing: -.015em; }
.ct-name p { margin: 0; color: var(--ink-soft); font-weight: 700; }
.ct-tools { display: flex; gap: 8px; padding-bottom: 20px; }
.ct-log { display: grid; gap: 12px; padding: 4px 2px; }
.ct-msg { display: flex; gap: 10px; align-items: flex-end; animation: rise .35s var(--ease-out) both; }
.ct-msg.me { justify-content: flex-end; }
.ct-msg img { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(40, 50, 20, .16); flex: none; }
.ct-bubble { max-width: min(580px, 84%); padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-soft); color: var(--ink); line-height: 1.5; overflow-wrap: anywhere; }
.ct-msg.me .ct-bubble { background: var(--leaf); color: #fff; border-color: transparent; border-radius: 20px 20px 6px 20px; }
.ct-bubble p { margin: 0 0 8px; }
.ct-bubble p:last-child { margin-bottom: 0; }
.ct-asks { margin-top: 12px; }
.ct-safe { margin: 10px 0 0; padding: 8px 12px 8px 26px; border-radius: 12px; background: #fff3dc; color: #7a4a10; font-size: 13.5px; line-height: 1.4; }
.ct-say { display: block; margin-top: 8px; border: 0; background: none; padding: 2px 0; color: var(--leaf-deep); font-weight: 800; font-size: 13px; }
.ct-dots { display: inline-flex; gap: 4px; padding: 6px 0 2px; }
.ct-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-mute); animation: ctdot 1.2s infinite ease-in-out; }
.ct-dots i:nth-child(2) { animation-delay: .15s; }
.ct-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ctdot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ct-composer { position: sticky; bottom: 12px; display: flex; gap: 10px; align-items: flex-end; padding: 10px; border-radius: 22px; background: var(--surface); border: 1px solid var(--hairline-strong); box-shadow: var(--shadow-lift); }
.ct-composer textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 8px 10px; min-height: 44px; max-height: 160px; }
.ct-composer .convene { padding: 12px 22px; }
.ct-foot { margin: 0; text-align: center; font-size: 14px; color: var(--ink-mute); }
@media (prefers-reduced-motion: reduce) { .pf-bust, .ct-bust, .ct-msg, .ct-dots i { animation: none; } }
@media (max-width: 640px) {
  .chat { padding: 14px 16px 12px; gap: 12px; }
  .ct-head { padding: 12px 14px 0; border-radius: 22px; }
  .ct-bust { width: 88px; }
  .ct-who { gap: 12px; }
  .ct-name { padding-bottom: 14px; padding-right: 4px; }
  .ct-tools { position: absolute; top: 10px; right: 10px; padding: 0; gap: 6px; }
  .ct-tools .ghost { padding: 5px 10px; font-size: 12.5px; }
  .ct-name .pf-tag { visibility: hidden; }
  .ct-bubble { max-width: 86%; }
}

/* ---------------- speak instead of typing (push-to-talk/) ---------------- */
/* the mic's own look comes with it; here it just takes the garden's colors and finds its place */
:root { --ptt-accent: var(--accent); --ptt-ink: var(--ink); --ptt-muted: var(--ink-soft); --ptt-surface: var(--surface); --ptt-surface-2: var(--surface-2); --ptt-border: var(--hairline-strong); --ptt-focus: var(--leaf-deep); }
.mic-field { display: flex; gap: 8px; align-items: flex-start; }
.mic-field textarea { flex: 1; min-width: 0; }
.composer .ptt-status { justify-content: center; }
/* the chat box: the mic sits by Send, and "Listening…" floats just above the box */
.ct-composer .ptt-btn { align-self: flex-end; }
.ct-composer .ptt-status {
  position: absolute; left: 14px; bottom: calc(100% + 8px); max-width: calc(100% - 28px);
  background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 6px 12px; box-shadow: var(--shadow-lift);
}
.ptt-note h2 { font-family: var(--font-display); color: var(--ink); }

/* ---------------- follow-ups ---------------- */
/* after each answer in the garden, right under the care plan buttons (or their last words): a chat-style box to keep the conversation going */
.followup { position: relative; display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; width: min(620px, 100%); margin-top: 10px; padding: 8px !important; border-radius: 22px; background: var(--surface); border: 1px solid var(--hairline-strong); box-shadow: var(--shadow-lift); animation: rise .35s var(--ease-out) both; }
/* on a desktop the stage has a fixed height: with the box under it, the plate drops its summary so its heading stays in view */
@media (min-width: 821px) { .plate:has(+ .followup:not([hidden])) > p { display: none; } }
.followup textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 8px 10px; min-height: 40px; max-height: 120px; }
.followup .ptt-btn { align-self: flex-end; }
.followup .fu-links { flex-basis: 100%; display: flex; gap: 18px; padding: 0 10px 2px; font-size: 13px; }
.followup .ptt-status {
  position: absolute; left: 14px; bottom: calc(100% + 8px); max-width: calc(100% - 28px);
  background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 6px 12px; box-shadow: var(--shadow-lift);
}
.ct-guest { font-size: 12px; font-weight: 800; color: var(--leaf-deep); margin-bottom: 4px; }

/* ============================================================ where you garden, the tropical calendar, and farms near you */
.wl-town { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; }
.wl-town .wl-place { margin-top: 10px; }
.home-card.hc-feature { grid-column: 1 / -1; align-items: center; flex-direction: row; }
.home-card.hc-feature .hc-text { flex: 1 1 auto; }
@media (max-width: 520px) {
  .home-card.hc-feature { flex-wrap: wrap; }
  .home-card.hc-feature .hc-text { flex: 1 1 180px; }
}

.cal-dialog, .farms-dialog { width: min(720px, 94vw); }
.cal-dialog .adv-foot, .farms-dialog .adv-foot { display: flex; justify-content: flex-end; margin-top: 14px; }
.cal-strip { list-style: none; padding: 0 !important; margin: 12px 0 6px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.cal-strip li { position: relative; display: grid; place-items: center; height: 46px; border-radius: 10px; font-size: 12px; font-weight: 800; color: var(--ink); }
.cal-strip li.dry { background: #fdf0c4; }
.cal-strip li.wet { background: #dcecf7; }
.cal-strip li.now { outline: 3px solid var(--leaf); outline-offset: 1px; }
.cal-strip li i { position: absolute; bottom: 1px; font-style: normal; font-size: 11px; line-height: 1; }
.cal-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12.5px; color: var(--ink-mute); margin: 0 0 12px !important; }
.cal-key span { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: -6px; }
.cal-key .dry { background: #fdf0c4; }
.cal-key .wet { background: #dcecf7; }
.cal-key i { font-style: normal; }
.cal-now { display: grid; gap: 10px; padding: 16px; border-radius: 18px; border: 1px solid var(--hairline); background: var(--surface); }
.cal-now > small { font-size: 12.5px; font-weight: 800; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }
.cal-now > p { margin: 0; color: var(--ink); font-size: 15px; }
.cal-now .al-status { margin: 0; }
.cal-later { margin-top: 18px !important; }
.cal-phase { border: 1px solid var(--hairline); border-radius: 14px; padding: 10px 14px; margin-top: 8px; background: var(--surface-2); }
.cal-phase summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; color: var(--ink); }
.cal-phase summary small { color: var(--ink-mute); }
.cal-phase p { margin: 8px 0 0; }
.cal-phase ul { margin: 0; padding-left: 18px; }
.cal-phase h4 { margin: 10px 0 4px !important; font-size: 13.5px !important; }
@media (max-width: 520px) {
  .cal-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .wl-town { grid-template-columns: 1fr; gap: 0; }
}

.fm-ask { display: grid; gap: 8px; padding: 14px 16px; border-radius: 18px; background: var(--leaf-soft); margin-bottom: 12px; }
.fm-ask label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.fm-chips, .fm-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-chips button, .fm-filter button { background: var(--surface); color: var(--ink-soft); border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 5px 12px; font: 700 12.5px/1.2 var(--font-text); }
.fm-chips button:hover, .fm-filter button:hover { border-color: var(--leaf); color: var(--ink); }
.fm-filter { margin-bottom: 8px; }
.fm-filter button[aria-pressed="true"] { background: var(--leaf); border-color: var(--leaf-deep); color: #fff; }
.fm-row { display: flex; gap: 8px; }
.fm-row input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 8px 12px; border: 1px solid var(--hairline-strong); border-radius: 12px; background: var(--surface); color: var(--ink); }
.fm-row input:focus { outline: 2px solid var(--leaf); outline-offset: 1px; }
.fm-pick { display: grid; gap: 8px; margin-top: 4px; }
.fm-who { display: flex; gap: 12px; align-items: flex-start; }
.fm-who img { width: 52px; height: 52px; border-radius: 50%; flex: none; background: var(--surface); border: 3px solid #fff; box-shadow: var(--shadow-soft); }
.fm-who small { font-size: 12px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.fm-who p { margin: 2px 0 0; color: var(--ink); font-size: 14.5px; }
.fm-who .fm-q { color: var(--ink-soft); font-style: italic; }
.fm-list { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 8px; }
.fm-item { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--hairline); background: var(--surface); }
.fm-item.picked { border-color: var(--leaf); box-shadow: 0 0 0 2px var(--leaf-soft); }
.fm-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.fm-top b { color: var(--ink); font-size: 15px; }
.fm-top span { font-size: 12.5px; font-weight: 700; color: var(--leaf-deep); }
.fm-item p { margin: 3px 0 0; font-size: 13.5px; }
.fm-note { color: var(--ink-mute); }
.fm-links { display: flex; gap: 14px; margin-top: 6px !important; }
.fm-links a { color: var(--leaf-deep); font-weight: 800; font-size: 13.5px; }
@media (max-width: 520px) {
  .fm-row { flex-direction: column; }
}

/* ============================================================ "New to gardening? Start here" (home, under the greeting) */
/* the garden photo (backdrop-3) with a sunshine yellow wash on the left only, clear by the middle so the
   raised beds and the aquaponics tank show; a soft yellow halo on the letters themselves (text-shadow, so
   no box and no edge over the photo) keeps them readable; bold dark green words, and a slow glow to catch the eye */
.start-btn {
  --sh-wash: linear-gradient(90deg, rgba(255, 228, 112, .9) 0%, rgba(255, 224, 100, .72) 24%, rgba(255, 220, 90, .32) 42%, rgba(255, 216, 84, 0) 58%);
  position: relative; width: 100%; display: flex; align-items: center; gap: 20px; padding: 18px 26px 18px 18px;
  border: 0; border-radius: 28px; text-align: left; color: #1d4a1a;
  background: var(--sh-wash), url("/img/backdrop-3.webp?v=1") 70% 78% / cover no-repeat, var(--sun);
  box-shadow: var(--shadow-lift), inset 0 0 0 2px rgba(255, 255, 255, .55);
  transition: transform .25s var(--ease-out), filter .25s;
  animation: sh-glow 2.8s ease-in-out infinite;
}
.start-btn:hover { transform: translateY(-2px); filter: saturate(1.08) brightness(1.03); }
.start-btn:active { transform: translateY(0); }
.start-btn:focus-visible { outline: 3px solid var(--leaf-deep); outline-offset: 3px; }
.sh-face { flex: none; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; background: #fff7d1; border: 4px solid #fff; box-shadow: 0 6px 18px -6px rgba(90, 60, 0, .45); }
/* a small line ("Ready for you" or "New to gardening?") above the big one ("Your garden plan" or "Start here") */
.sh-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  text-shadow: 0 0 2px rgba(255, 240, 170, .95), 0 0 10px rgba(255, 228, 112, .9), 0 0 22px rgba(255, 224, 100, .7); }
.sh-text small { font: 800 clamp(15px, 1.7vw, 18px)/1.15 var(--font-display); color: #2e5f2b; }
.sh-text b { font: 900 clamp(29px, 4.14vw, 41px)/1 var(--font-display); letter-spacing: -.02em; color: #1d4a1a; white-space: nowrap; }
.sh-go { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--leaf-deep); color: #fff; box-shadow: 0 6px 16px -6px rgba(20, 50, 15, .6); transition: transform .25s var(--ease-out); }
.sh-go svg { width: 28px; height: 28px; }
.start-btn:hover .sh-go { transform: translateX(4px); }
/* once they have a plan, the same sunny button without the pulse */
.start-btn.has-plan { animation: none; }
@keyframes sh-glow {
  0%, 100% { box-shadow: var(--shadow-lift), inset 0 0 0 2px rgba(255, 255, 255, .55), 0 0 0 0 rgba(247, 201, 72, .55); }
  50% { box-shadow: var(--shadow-lift), inset 0 0 0 2px rgba(255, 255, 255, .55), 0 0 0 12px rgba(247, 201, 72, 0), 0 0 34px 6px rgba(247, 201, 72, .45); }
}
@media (prefers-reduced-motion: reduce) { .start-btn { animation: none; } .start-btn, .sh-go { transition: none; } }
@media (max-width: 820px) {
  /* the words take most of a phone-sized button, so the wash reaches further, but stays light at the right */
  .start-btn { gap: 14px; padding: 14px 18px 14px 14px; border-radius: 24px;
    --sh-wash: linear-gradient(90deg, rgba(255, 228, 112, .9) 0%, rgba(255, 224, 100, .66) 40%, rgba(255, 220, 90, .3) 70%, rgba(255, 216, 84, .12) 100%); }
  .sh-face { width: 68px; height: 68px; border-width: 3px; }
  .sh-go { width: 46px; height: 46px; }
  .sh-go svg { width: 24px; height: 24px; }
}
@media (max-width: 420px) {
  .start-btn { gap: 12px; padding: 12px 14px 12px 12px; }
  .sh-face { width: 56px; height: 56px; }
  .sh-text small { font-size: 14px; }
  .sh-text b { font-size: 26px; }
  .sh-go { width: 40px; height: 40px; }
}
@media (max-width: 340px) { .sh-go { display: none; } .sh-text b { font-size: 23px; } }

/* ---- the starter plan */
.plan-dialog { width: min(760px, 94vw); }
.plan-dialog h4 { margin: 20px 0 8px; font: 800 13px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--leaf-deep); }
.pl-intro { font-size: 15.5px; color: var(--ink); }
.pl-crops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.pl-crops li { display: grid; align-content: start; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--hairline); }
.pl-crops b { font: 800 17px/1.2 var(--font-display); color: var(--ink); }
.pl-crops p { margin: 0; font-size: 14px; line-height: 1.45; }
.pl-where span { font-weight: 800; color: var(--leaf-deep); }
.pl-crops .pl-ask { justify-self: start; margin-top: 6px; }
.pl-list, .pl-shop { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; }
.pl-shop { list-style: none; padding: 0; }
.pl-shop label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.pl-shop input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--leaf); }
.pl-shop input:checked + span { text-decoration: line-through; color: var(--ink-mute); }
.pl-challenge { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: #fff6d6; border: 1px solid rgba(241, 178, 31, .45); }
.pl-challenge p { margin: 0 !important; flex: 1 1 260px; font-size: 14px; color: var(--ink); }
.pl-weeks { list-style: none; margin: 12px 0 0; padding: 0 !important; display: grid; gap: 14px; }
.pl-week { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pl-week b { font: 800 16px/1.2 var(--font-display); color: var(--ink); }
.pl-week small { color: var(--ink-mute); font-weight: 700; }
.pl-weeks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pl-weeks ul li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.pl-weeks ul li > img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--leaf-soft); }
.pl-weeks ul li p { margin: 0 0 6px !important; font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }
.pl-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pl-day { padding: 3px 9px; border-radius: 999px; background: var(--leaf-soft); color: var(--leaf-deep); font: 800 12px/1.2 var(--font-text); }
.pl-ask { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--hairline-strong); background: var(--surface); color: var(--ink); font: 700 13px/1.2 var(--font-text); }
.pl-ask:hover { border-color: var(--leaf); color: var(--leaf-deep); }
.pl-ask img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
@media (max-width: 520px) {
  .plan-dialog { padding: 18px 16px; }
  .pl-crops { grid-template-columns: 1fr; }
  .pl-weeks ul li { padding: 10px 12px; gap: 10px; }
  .pl-weeks ul li > img { width: 32px; height: 32px; }
}
