@font-face { font-family: "Bricolage"; src: url(/fonts/bricolage.woff2) format("woff2"); font-weight: 500 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage"; src: url(/fonts/bricolage-ext.woff2) format("woff2"); font-weight: 500 800; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; src: url(/fonts/figtree.woff2) format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; src: url(/fonts/figtree-ext.woff2) format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #eef3ec;
  --bg-2: #e3ebe0;
  --surface: #fbfdfa;
  --ink: #16301f;
  --ink-2: #4c6352;
  --line: #d3ddd0;
  --accent: #c8402a;          /* tomato: buttons, your line, highlights */
  --accent-soft: #fbe3dc;
  --good: #2f7a4b;
  --good-soft: #dcefe1;
  --warn: #9a6400;
  --warn-soft: #fbefd4;
  --her: #7c8f80;             /* her journey line */
  --leaf-1: #5fae72;
  --leaf-2: #3e8a55;
  --leaf-vein: #8fd09d;
  --pot: #2f5a42;
  --pot-rim: #3a6b4f;
  --pot-hi: #4f8566;
  --pot-ink: #10241a;
  --soil: #5a4334;
  --seed: #9b7652;
  --blush: #f29a8a;
  --shadow: rgba(22, 48, 31, .10);
  --fl-coral: #f0714f;
  --fl-pink: #f39ab4;
  --fl-butter: #f6c548;
  --fl-lilac: #b79be8;
  --fl-sky: #7fc3e8;
  --r: 18px;                   /* cards and sheets */
  --r-sm: 12px;                /* inputs, chips */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --display: "Bricolage", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1913; --bg-2: #15231a; --surface: #182a1e; --ink: #e6efe7; --ink-2: #a5b9aa; --line: #2b3f31;
    --accent: #f0805f; --accent-soft: #3a211b; --good: #7fd39a; --good-soft: #1c3424; --warn: #f2c063; --warn-soft: #362a12;
    --her: #8ea493; --pot: #3b6e52; --pot-rim: #46805f; --pot-hi: #5d977a; --shadow: rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink); font: 400 16px/1.45 var(--body);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow: hidden;
}
::selection { background: var(--accent-soft); color: var(--ink); }
input, textarea { caret-color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.ic { width: 22px; height: 22px; fill: currentColor; flex: none; }
.ic.sm { width: 16px; height: 16px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

.screen { position: fixed; inset: 0; height: 100svh; }
body.booting .screen { visibility: hidden; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px;
  padding: 13px 22px; font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform .16s var(--ease-out), background-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
:root:not([data-theme="light"]) .btn.primary { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #1b0d09; } }
.btn.big { padding: 17px 28px; font-size: 18px; width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.soft { background: var(--bg-2); color: var(--ink); }
.btn.danger { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn[disabled] { opacity: .5; pointer-events: none; }
@media (hover: hover) {
  .btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
  .btn.ghost:hover, .btn.soft:hover { background: var(--bg-2); }
}
.link { background: none; border: 0; padding: 4px 2px; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); transition: background-color .2s, transform .16s var(--ease-out); }
.icon-btn:active { transform: scale(.94); }
.icon-btn[disabled] { opacity: .28; pointer-events: none; }
.sticky-submit { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom)); margin: 0 -18px calc(-18px - env(safe-area-inset-bottom)); padding: 12px 18px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--surface) 75%, transparent); }
@media (min-width: 700px) { .sticky-submit { position: static; margin: 0; padding: 0; background: none; } }
@media (hover: hover) { .icon-btn:hover { background: var(--bg-2); color: var(--ink); } }

/* ---------------- welcome ---------------- */
#welcome {
  display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 0 20px calc(54px + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 60% at 50% 100%, var(--bg-2) 0 40%, transparent 70%),
    var(--bg);
  overflow: hidden;
}
.wel-art { display: flex; align-items: flex-end; justify-content: center; min-height: 0; padding: 20px 0 14px; overflow: hidden; }
.wel-art .plant-box { height: 100%; max-height: 400px; aspect-ratio: 200 / 262; max-width: 80vw; }
.wel-art .plant-box .plant { height: 100%; width: 100%; }
.wel-copy { max-width: 460px; width: 100%; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 700 15px var(--display); color: var(--leaf-2); }
.brand .ic { width: 20px; height: 20px; }
#welcome h1 { font: 800 clamp(30px, 8.4vw, 48px)/1.04 var(--display); letter-spacing: -.025em; margin: 0 0 12px; text-wrap: balance; }
#welcome h1 em { font-style: normal; color: var(--accent); }
.lede { margin: 0 0 22px; color: var(--ink-2); font-size: 16.5px; max-width: 38ch; }
.wel-actions { display: grid; gap: 10px; }
.wel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.in-app #tassh-mark { display: none !important; }
.legal-link { position: absolute; left: 16px; bottom: calc(6px + env(safe-area-inset-bottom)); font-size: 11px; color: var(--ink-2); opacity: .55; text-decoration: none; }
#welcome .wel-copy > * { animation: rise .7s var(--ease-out) both; }
#welcome .wel-copy > :nth-child(2) { animation-delay: 1.3s; }
#welcome .wel-copy > :nth-child(1) { animation-delay: 1.2s; }
#welcome .wel-copy > :nth-child(3) { animation-delay: 1.45s; }
#welcome .wel-copy > :nth-child(4) { animation-delay: 1.6s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }

@media (min-width: 900px) {
  #welcome { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; align-items: center; gap: 48px; padding: 0 6vw; }
  #welcome { padding-bottom: 0; }
  .wel-art { align-items: center; padding: 0; height: 100svh; }
  .wel-art .plant-box { height: min(72svh, 600px); max-height: none; max-width: 40vw; }
  .wel-copy { margin: 0; }
  #welcome h1 { font-size: clamp(44px, 4.6vw, 64px); }
  .lede { font-size: 18px; }
  .wel-row { grid-template-columns: auto auto; justify-content: start; }
  .btn.big { width: auto; }
  .wel-actions { justify-items: start; }
}

/* ---------------- plant animation ---------------- */
.plant { width: 100%; height: auto; display: block; overflow: visible; }
.plant .lf, .plant .fl { transform-box: fill-box; }
.plant .lf { transform-origin: 0% 60%; }
.plant .fl { transform-origin: 50% 50%; }
.plant .face { transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .plant.grow .stem { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s var(--ease-out) forwards; animation-delay: var(--d, 120ms); }
  .plant.grow .lf { transform: scale(0); animation: pop .55s var(--ease-spring) forwards; animation-delay: var(--d); }
  .plant.grow .fl { transform: scale(0) rotate(-40deg); animation: bloom .7s var(--ease-spring) forwards; animation-delay: var(--d); }
  .plant .fl.top { animation-name: bloom, sway; animation-duration: .7s, 5s; animation-delay: var(--d), calc(var(--d) + .7s);
    animation-iteration-count: 1, infinite; animation-timing-function: var(--ease-spring), ease-in-out; animation-fill-mode: forwards, none; }
  .plant:not(.grow) .fl.top { animation: sway 5s ease-in-out infinite; }
  .plant .face { animation: blink 6s infinite; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes bloom { to { transform: scale(1) rotate(0); } }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes blink { 0%, 96%, 100% { transform: scaleY(1); } 98% { transform: scaleY(.6); } }

/* ---------------- app shell ---------------- */
#app {
  display: grid; grid-template-rows: auto auto 1fr auto;
  grid-template-areas: "top" "demo" "view" "tabs";
}
.top { grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 12px 6px 14px; }
.top-r { display: flex; align-items: center; gap: 2px; }
.shop-pick {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 62vw; border: 0; background: var(--surface);
  padding: 9px 14px 9px 12px; border-radius: 999px; font: 700 16px var(--display); box-shadow: 0 1px 0 var(--line), 0 6px 16px -12px var(--shadow);
  transition: transform .16s var(--ease-out);
}
.shop-pick:active { transform: scale(.97); }
.shop-pick .ic { color: var(--leaf-2); }
.shop-pick #shopName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-pick .ic.sm { color: var(--ink-2); transform: rotate(90deg); }
.save-state { font-size: 12px; color: var(--ink-2); margin-right: 4px; white-space: nowrap; }
.demo-bar { grid-area: demo; justify-self: center; display: flex; align-items: center; justify-content: center; gap: 4px 10px; flex-wrap: wrap; margin: 0 12px 6px; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink-2); font-size: 13.5px; }
.view { grid-area: view; overflow-y: auto; overflow-x: hidden; padding: 4px 16px 20px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.view > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.tabs {
  grid-area: tabs; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: var(--surface); box-shadow: 0 -1px 0 var(--line);
}
.tabs button { display: grid; justify-items: center; gap: 2px; border: 0; background: none; padding: 6px 0; color: var(--ink-2); font-size: 12px; font-weight: 600; border-radius: 12px; transition: color .2s; }
.tabs button .ic { width: 24px; height: 24px; transition: transform .25s var(--ease-spring); }
.tabs button.on { color: var(--accent); }
.tabs button.on .ic { transform: translateY(-1px) scale(1.08); }
.tabs.off { display: none; }
@media (min-width: 900px) {
  #app { grid-template-areas: "top" "tabs" "demo" "view"; grid-template-rows: auto auto auto 1fr; }
  .top { padding: 14px 28px 8px; }
  .tabs { justify-self: center; grid-template-columns: repeat(4, auto); gap: 4px; padding: 5px; margin: 2px 0 10px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); }
  .tabs button { grid-auto-flow: column; gap: 8px; padding: 9px 18px; font-size: 15px; border-radius: 999px; }
  .tabs button .ic { width: 20px; height: 20px; }
  .tabs button.on { background: var(--accent-soft); }
  .view { padding: 8px 28px 32px; }
}

/* ---------------- cards & bits ---------------- */
.card { background: var(--surface); border-radius: var(--r); padding: 16px; box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px var(--shadow); }
h2.h { font: 800 22px/1.15 var(--display); letter-spacing: -.015em; margin: 4px 0 12px; }
.muted { color: var(--ink-2); }
.small { font-size: 13.5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--bg-2); color: var(--ink); }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.fade-in > * { animation: rise .45s var(--ease-out) both; }
.fade-in > :nth-child(2) { animation-delay: .05s; } .fade-in > :nth-child(3) { animation-delay: .1s; } .fade-in > :nth-child(4) { animation-delay: .15s; } .fade-in > :nth-child(n+5) { animation-delay: .2s; }

/* ---------------- today ---------------- */
.today { display: grid; gap: 14px; }
.stage { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; position: relative; }
.stage .plant-box { width: min(52vw, 30svh, 230px); }
@media (max-width: 899px) {
  .stage { grid-template-columns: 132px 1fr; justify-items: start; align-items: center; text-align: left; gap: 14px; }
  .stage .plant-box { width: 132px; }
  .stage-name { font-size: 24px; margin-top: 0; }
  .stage-meta { justify-content: flex-start; }
}
.stage-name { font: 800 26px/1.1 var(--display); letter-spacing: -.02em; margin: 6px 0 2px; }
.stage-meta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.verdict .badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--good-soft); color: var(--good); }
.verdict.ahead .badge { background: var(--accent-soft); color: var(--accent); }
.verdict.slow .badge { background: var(--warn-soft); color: var(--warn); }
.verdict h3 { margin: 0 0 2px; font: 800 18px/1.2 var(--display); }
.verdict p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.vs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vs .cell { background: var(--surface); border-radius: var(--r-sm); padding: 10px 10px 9px; box-shadow: 0 1px 0 var(--line); min-width: 0; }
.vs .lbl { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.vs .lbl .ic { width: 15px; height: 15px; }
.vs .you { font: 800 22px/1.1 var(--display); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs .her { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.focus { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.focus .ic { color: var(--warn); margin-top: 1px; }
.focus b { font-weight: 700; }
@media (min-width: 900px) {
  .today { grid-template-columns: minmax(300px, 420px) 1fr; gap: 20px 28px; align-items: start; }
  .today .stage { grid-row: span 5; align-self: start; position: sticky; top: 0; padding: 18px 0; }
  .stage-txt { display: grid; justify-items: center; }
  .stage .plant-box { width: min(30vw, 46svh, 340px); }
  .stage-name { font-size: 32px; }
}

/* ---------------- garden (all shops) ---------------- */
.garden { padding-top: 6px; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (min-width: 900px) { .shelf { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; } }
.pot-card { border: 0; text-align: center; background: var(--surface); border-radius: var(--r); padding: 12px 10px 14px; box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px var(--shadow); transition: transform .2s var(--ease-out), box-shadow .2s; min-width: 0; }
.pot-card:active { transform: scale(.97); }
@media (hover: hover) { .pot-card:hover { transform: translateY(-2px); box-shadow: 0 1px 0 var(--line), 0 18px 30px -20px var(--shadow); } }
.pot-card .plant-box { height: 150px; display: flex; align-items: flex-end; justify-content: center; }
.pot-card .plant-box .plant { height: 100%; width: auto; max-width: 100%; }
.pot-card .nm { font: 800 16px/1.2 var(--display); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pot-card .mt { font-size: 13px; color: var(--ink-2); }
.pot-card.add { display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--accent); font-weight: 700; box-shadow: inset 0 0 0 2px var(--line); background: transparent; min-height: 200px; }
.pot-card.add .plus { width: 54px; height: 54px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px; border-radius: 999px; background: var(--surface); box-shadow: 0 1px 0 var(--line); font-size: 13.5px; font-weight: 700; }
.badge-pill .ic { width: 18px; height: 18px; color: var(--fl-butter); }
.badge-pill.locked { opacity: .45; font-weight: 600; }
.badge-pill.locked .ic { color: var(--ink-2); }
.empty { text-align: center; padding: 24px 8px; display: grid; justify-items: center; gap: 10px; }
.empty .plant-box { width: min(46vw, 200px); }

/* ---------------- journey chart ---------------- */
.seg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px 12px; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: var(--surface); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--ink-2); box-shadow: 0 1px 0 var(--line); transition: background-color .2s, color .2s; }
.seg button.on { background: var(--ink); color: var(--bg); }
.chart-card { padding: 14px 10px 10px 6px; }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; touch-action: pan-y; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--ink-2); font: 500 11px var(--body); font-variant-numeric: tabular-nums; }
.chart .her { stroke: var(--her); stroke-width: 2; fill: none; stroke-dasharray: 5 5; stroke-linecap: round; }
.chart .you { stroke: var(--accent); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart .you.pace { stroke-dasharray: 3 5; animation: none; stroke-dashoffset: 0; }
.chart .pace-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
.chart .you-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart .her-dot { fill: var(--her); stroke: var(--surface); stroke-width: 2; }
.chart .now { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 4; }
.chart .lbl { font: 700 12px var(--body); fill: var(--ink); }
.chart .xh { stroke: var(--ink-2); stroke-width: 1; }
@media (prefers-reduced-motion: no-preference) {
  .chart .you { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease-out) .1s forwards; }
}
.legend { display: flex; gap: 16px; padding: 4px 10px 6px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 18px; height: 0; border-top: 2.5px solid var(--accent); display: inline-block; }
.legend i.h { border-top: 2px dashed var(--her); }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); border-radius: 10px; padding: 8px 10px; font-size: 13px; line-height: 1.35; white-space: nowrap; transform: translate(-50%, -100%); top: 0; opacity: 0; transition: opacity .12s; z-index: 2; }
.tip.on { opacity: 1; }
.tip b { font-weight: 700; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 8px 6px; text-align: right; }
.table th:first-child, .table td:first-child { text-align: left; }
.table thead th { color: var(--ink-2); font-weight: 600; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg-2) 45%, transparent); }
.note-box { margin-top: 12px; font-size: 13.5px; color: var(--ink-2); display: flex; gap: 8px; }
.note-box .ic { width: 18px; height: 18px; margin-top: 1px; }
.journey-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .journey-grid { grid-template-columns: 1fr 300px; align-items: start; } }
.her-month { display: grid; gap: 4px; }
.her-month .t { font: 800 17px var(--display); }

/* ---------------- months list ---------------- */
.months { display: grid; gap: 10px; }
@media (min-width: 900px) { .months { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
.month { border: 0; text-align: left; width: 100%; display: grid; gap: 10px; background: var(--surface); border-radius: var(--r); padding: 14px 16px; box-shadow: 0 1px 0 var(--line); transition: transform .16s var(--ease-out); }
.month:active { transform: scale(.985); }
.month .row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.month .mn { font: 800 18px var(--display); }
.month .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.month .stats div { min-width: 0; }
.month .stats b { display: block; font: 800 17px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.month .stats span { font-size: 12px; color: var(--ink-2); }
.month .nt { font-size: 14px; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.month.missing { box-shadow: inset 0 0 0 2px var(--line); background: transparent; }

/* ---------------- tips ---------------- */
.tips { display: grid; gap: 12px; }
@media (min-width: 900px) { .tips { grid-template-columns: 1fr 1fr; } .tips .pep { grid-column: 1 / -1; } }
.pep { display: grid; gap: 12px; background: var(--ink); color: var(--bg); }
.pep q { font: 700 21px/1.3 var(--display); quotes: "\201C" "\201D"; letter-spacing: -.01em; min-height: 2.6em; }
.pep .btn { justify-self: start; background: color-mix(in srgb, var(--bg) 14%, transparent); color: var(--bg); }
.rule { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.rule .ri { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); }
.rule h3 { margin: 0 0 3px; font: 800 16.5px/1.25 var(--display); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rule p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------------- sheets ---------------- */
.scrim { position: fixed; inset: 0; background: rgba(10, 24, 15, .38); z-index: 40; opacity: 0; transition: opacity .25s var(--ease-out); }
.scrim.on { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92svh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 24px 24px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .34s var(--ease-out); box-shadow: 0 -20px 50px -20px rgba(0,0,0,.25);
}
.sheet.on { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.sheet h2 { font: 800 24px/1.15 var(--display); letter-spacing: -.02em; margin: 2px 0 4px; }
.sheet .sub { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.sheet .close { position: absolute; right: 10px; top: 10px; }
@media (min-width: 700px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(520px, 92vw); border-radius: 24px; padding: 22px 26px 24px;
    transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .3s var(--ease-out), opacity .2s; }
  .sheet.on { transform: translate(-50%, -50%); opacity: 1; }
  .sheet .grab { display: none; }
}
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field .help { font-size: 12.5px; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: var(--r-sm); padding: 12px 13px; font: 500 16px var(--body);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--ink-2) 85%, transparent); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field textarea { min-height: 76px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { color: var(--accent); font-size: 14px; font-weight: 600; min-height: 1em; margin: 0; }
.month-step { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--bg); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.month-step b { font: 800 17px var(--display); }
.calc { display: flex; gap: 8px; flex-wrap: wrap; }
.row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-list { display: grid; gap: 8px; }
.sheet-list .btn { justify-content: flex-start; }

/* ---------------- toast & petals ---------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 16px); opacity: 0;
  background: var(--ink); color: var(--bg); border-radius: 999px; padding: 11px 12px 11px 18px; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); transition: transform .3s var(--ease-out), opacity .2s;
}
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.toast button { background: color-mix(in srgb, var(--bg) 16%, transparent); color: var(--bg); border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 700; }
.toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 900px) { .toast { bottom: 32px; } }
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.petal { position: absolute; width: 14px; height: 20px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; top: -30px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110svh) rotate(var(--rot)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .petals { display: none; }
}
