/* Hallmark · shape: app screen · genre: modern-minimal · theme: Dose (deal 1/3, seed plant-care-app-india-2166·93a3dd61·2026-11-19·r0)
 * nav: bottom tab bar, three destinations · signature: the water-window bar with the soil-check prompt, on a plastic compartment tinted by where the plant lives · states: default, hover, focus, active, disabled, pressed, checked, done, late, empty · dose: white
 * axes: light/grotesk-sans/chromatic-green · posture: committed · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, the full-screen paper grain was dropped (it stalled painting and costs battery) so the plastic and the water bar carry the material */
@import url("./tokens.css");
@import url("./base.css");

html[data-size="large"] { font-size: 118%; }
.app { position: relative; z-index: var(--z-base); max-width: 480px; margin-inline: auto; padding: 0 var(--space-md) 120px; }
.top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); letter-spacing: var(--tracking-display); text-decoration: none; }
.icon-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: transparent; color: var(--color-ink-2); border-radius: var(--radius-input); cursor: pointer; transition: background var(--dur-short) var(--ease-out); }
.icon-btn:hover { background: var(--color-paper-3); }
.icon-btn:active { background: var(--color-accent-soft); }

h1 { font-size: var(--text-3xl); margin-bottom: var(--space-xs); }
h2 { font-size: var(--text-xl); margin-bottom: var(--space-sm); }
section + section, .today > * + * { margin-top: var(--space-lg); }
.today > .date { margin-top: 0; }
.date, .note, .calm { color: var(--color-muted); font-size: var(--text-sm); }
.calm { font-size: var(--text-md); color: var(--color-ink-2); padding-block: var(--space-md); }
.note { margin-top: var(--space-lg); }
.hint { font-size: var(--text-sm); color: var(--color-ink-2); margin: 0 0 var(--space-sm); }
#remind .btn { margin-right: var(--space-xs); margin-bottom: var(--space-xs); }
.num { font-variant-numeric: tabular-nums; }

/* where the plant lives sets the tint; the word always sits beside it */
[data-spot="balcony"] { --tint: var(--p-thu); } [data-spot="indoor"] { --tint: var(--p-tue); } [data-spot="outdoor"] { --tint: var(--p-fri); }
.task, .row.card-row { background: color-mix(in oklab, var(--tint, var(--p-thu)) 62%, transparent); box-shadow: inset 0 1px 0 var(--glint), inset 0 -8px 12px -10px color-mix(in oklab, var(--color-ink) 35%, transparent), 0 14px 24px -16px color-mix(in oklab, var(--tint, var(--p-thu)) 90%, var(--color-ink)); border-radius: var(--radius-card); }

.round { margin-top: var(--space-md); }
.round p { font-weight: 500; margin-bottom: var(--space-xs); }
.bar-track { height: 10px; border-radius: var(--radius-input); background: color-mix(in oklab, var(--color-ink) 12%, transparent); overflow: hidden; }
.bar-track > span { display: block; height: 100%; background: var(--color-accent); border-radius: var(--radius-input); }
.tasks, .rows { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: var(--space-sm); }
.task { padding: var(--space-md); }
.task.done { opacity: 0.92; background: color-mix(in oklab, var(--tint) 38%, var(--color-paper)); }
.task-head { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.task-head > div { flex: 1; min-width: 0; }
.thumb { flex: none; width: 56px; height: 56px; border-radius: var(--radius-input); overflow: hidden; }
.thumb img, .row img { width: 100%; height: 100%; object-fit: cover; }
.task-head h3 { font-size: var(--text-lg); }
.where { font-size: var(--text-sm); color: var(--color-ink-2); }
.tag { flex: none; font-size: var(--text-sm); font-weight: 500; padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-pill); background: var(--light); border: 1px solid var(--color-rule); }
.tag.warn { color: var(--color-error); border-color: var(--color-error); }
.card .tag { display: inline-block; margin: 0 var(--space-sm) var(--space-xs); }

/* the water window: where today sits against the usual check window */
.water .track { position: relative; height: 12px; border-radius: var(--radius-input); background: color-mix(in oklab, var(--color-ink) 14%, transparent); }
.water .zone { position: absolute; top: 0; bottom: 0; border-radius: var(--radius-input); background: var(--color-accent-soft); box-shadow: 0 0 0 1px var(--color-accent) inset; }
.water .mark { position: absolute; top: 50%; width: 20px; height: 20px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--color-ink); box-shadow: 0 0 0 3px var(--light); }
.water .cap { display: flex; justify-content: space-between; gap: var(--space-sm); margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.water .cap span:first-child { font-family: var(--font-outlier); font-weight: 500; color: var(--color-ink); }
.soil { margin-top: var(--space-sm); font-size: var(--text-md); }
.late { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.acts, .stack-acts { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-sm); }
.stack-acts { margin-top: var(--space-md); flex-direction: column; }
.stack-acts .btn { width: 100%; }
.result { font-size: var(--text-md); border: 1px dashed var(--color-ink-2); border-radius: var(--radius-input); background: var(--light); padding: var(--space-sm); transform: rotate(-0.3deg); }
.learned { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.link, .undo { font: inherit; font-weight: 500; color: var(--color-accent-deep); background: none; border: 0; padding: 0; min-height: 44px; text-decoration: underline; text-underline-offset: 0.16em; cursor: pointer; }
.link:hover, .undo:hover { color: var(--color-ink); }
.link:active, .undo:active { color: var(--color-accent); }
.link.danger { color: var(--color-error); display: block; margin-top: var(--space-md); }
.share { width: 100%; margin-top: var(--space-md); }
.empty { padding: var(--space-lg) 0; }
.empty p { margin: var(--space-xs) 0 var(--space-md); color: var(--color-ink-2); }

.row { display: flex; align-items: center; gap: var(--space-sm); min-height: 64px; padding: var(--space-xs) var(--space-sm) var(--space-xs) var(--space-xs); text-decoration: none; border-radius: var(--radius-card); background: var(--light); box-shadow: var(--shadow-card); }
.row.card-row { background: color-mix(in oklab, var(--tint) 62%, transparent); }
.row img { flex: none; width: 48px; height: 48px; border-radius: var(--radius-input); }
.rows.big .row img { width: 64px; height: 64px; }
.row-main { flex: 1; min-width: 0; display: grid; gap: var(--space-3xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.row-main strong { font-size: var(--text-md); color: var(--color-ink); font-weight: 500; }
.row:hover { box-shadow: var(--shadow-lift); }

/* moulded controls */
.btn { min-height: 48px; padding: 0 var(--space-lg); border-radius: var(--radius-input); font-weight: 500; cursor: pointer; border: 1px solid var(--color-rule); border-bottom-width: 3px; color: var(--color-ink); background: var(--light); box-shadow: inset 0 1px 0 var(--glint); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: transform var(--dur-micro) var(--ease-out), background var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--glint); }
.btn:active { transform: translateY(2px); border-bottom-width: 1px; }
.btn.primary { background: var(--color-accent); border-color: var(--color-accent-deep); color: var(--color-accent-ink); }
.btn.primary:hover { background: var(--color-accent-deep); }
.btn.ghost { background: transparent; border-color: var(--color-ink-2); }
.btn.ghost:hover { background: color-mix(in oklab, var(--light) 70%, transparent); }
.btn.wide { width: 100%; }
.btn:disabled, .key:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.search-box { display: flex; align-items: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-sm); margin-top: var(--space-sm); background: var(--light); border: 1px solid var(--color-muted); border-radius: var(--radius-input); color: var(--color-muted); }
.search-box:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--color-ink); min-height: 48px; outline: 0; }
.chips { display: flex; gap: var(--space-xs); overflow-x: auto; padding: var(--space-sm) 0; scrollbar-width: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-input); border: 1px solid var(--color-rule); border-bottom-width: 3px; background: var(--light); color: var(--color-ink); font-weight: 500; text-decoration: none; transition: background var(--dur-short) var(--ease-out); }
.chip:hover { background: var(--color-paper-3); }
.chip:active { transform: translateY(2px); border-bottom-width: 1px; }
.chip[aria-pressed="true"] { background: var(--color-accent-soft); border-color: var(--color-accent); }
.masonry { columns: 2; column-gap: var(--space-sm); margin-top: var(--space-xs); }
.card { display: block; width: 100%; text-align: start; font: inherit; color: inherit; border: 0; break-inside: avoid; margin-bottom: var(--space-sm); border-radius: var(--radius-card); background: var(--light); box-shadow: var(--shadow-card); overflow: hidden; text-decoration: none; padding: 0 0 var(--space-xs); cursor: pointer; transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card:active { transform: none; }
.card .ph { margin-bottom: var(--space-xs); }
.card h3 { font-size: var(--text-md); padding-inline: var(--space-sm); }
.card .sub, .card .meta { font-size: var(--text-sm); color: var(--color-muted); padding-inline: var(--space-sm); margin-top: var(--space-3xs); }
.card .meta { color: var(--color-ink-2); font-weight: 500; }
.ph { position: relative; overflow: hidden; background: var(--color-paper-3); }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero { border-radius: var(--radius-card); box-shadow: var(--shadow-card); margin-block: var(--space-xs) var(--space-md); }

.back { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 44px; text-decoration: none; color: var(--color-ink-2); font-weight: 500; }
.latin { color: var(--color-muted); margin: var(--space-3xs) 0 var(--space-sm); }
.verdict { font-weight: 500; margin-bottom: var(--space-md); }
.verdict.warn { color: var(--color-error); }
.facts { margin: 0 0 var(--space-md); border-top: 1px solid var(--color-rule); }
.facts > div { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-rule); }
.facts dt { display: flex; align-items: center; gap: var(--space-xs); color: var(--color-ink-2); font-size: var(--text-sm); flex: none; }
.facts dd { margin: 0; font-weight: 500; text-align: end; }
.plant section { margin-top: var(--space-lg); }
.plant .tag { display: inline-block; margin-bottom: var(--space-sm); }
.before { background: var(--light); border: 1px dashed var(--color-ink-2); border-radius: var(--radius-input); padding: var(--space-md); }
.before p { font-family: var(--font-outlier); font-size: var(--text-sm); line-height: 1.6; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; padding: var(--space-sm) var(--space-xs); border-bottom: 1px solid var(--color-rule); font-weight: 400; }
td { font-family: var(--font-outlier); font-size: var(--text-sm); }
tr[aria-current] { background: var(--color-accent-soft); }
.src { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }

.tabs, .bar { position: fixed; z-index: var(--z-sticky); left: 50%; bottom: 0; width: min(100%, 480px); transform: translateX(-50%); background: var(--light); border-radius: var(--radius-card) var(--radius-card) 0 0; box-shadow: var(--shadow-lift); padding: var(--space-xs) var(--space-sm) calc(var(--space-xs) + env(safe-area-inset-bottom)); }
.tabs { display: flex; gap: var(--space-2xs); }
.tabs a { flex: 1; display: grid; justify-items: center; gap: var(--space-3xs); padding: var(--space-xs) 0; min-height: 56px; border-radius: var(--radius-input); font-size: var(--text-sm); font-weight: 500; text-decoration: none; color: var(--color-ink-2); transition: background var(--dur-short) var(--ease-out); }
.tabs a:hover { background: var(--color-paper-3); }
.tabs a[aria-current] { background: var(--color-accent-soft); color: var(--color-ink); }

.welcome { padding-top: var(--space-lg); }
.welcome p { color: var(--color-ink-2); margin: var(--space-xs) 0 var(--space-md); }
.step { display: flex; gap: var(--space-xs); margin: 0 0 var(--space-md) !important; }
.step span { width: 28px; height: 6px; border-radius: var(--radius-input); background: var(--color-rule); }
.step span.on { background: var(--color-accent); }
.welcome .masonry .card { margin-bottom: var(--space-sm); }
fieldset { border: 0; padding: 0; margin: var(--space-md) 0 0; min-width: 0; }
legend { font-weight: 500; margin-bottom: var(--space-xs); padding: 0; }
.keys { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.keys.col { flex-direction: column; }
.key { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-md); border-radius: var(--radius-input); border: 1px solid var(--color-rule); border-bottom-width: 3px; background: var(--light); color: var(--color-ink); font-weight: 500; cursor: pointer; transition: background var(--dur-short) var(--ease-out); }
.keys.col .key { justify-content: flex-start; }
.key.big { flex: 1; min-height: 56px; font-size: var(--text-lg); }
.key input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.key:hover { background: var(--color-paper-3); }
.key:active { transform: translateY(2px); border-bottom-width: 1px; }
.key[aria-pressed="true"], .key:has(input:checked) { background: var(--color-accent-soft); border-color: var(--color-accent); }
.key:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.field { display: grid; gap: var(--space-xs); margin-top: var(--space-md); font-weight: 500; }
.field input { min-height: 52px; padding: 0 var(--space-sm); border: 1px solid var(--color-muted); border-radius: var(--radius-input); background: var(--light); color: var(--color-ink); font-weight: 400; }
.sheet-acts { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-lg); }
dialog.sheet { margin: auto auto 0; padding: 0; border: 0; width: min(100%, 480px); max-width: 100%; max-height: 90dvh; overflow: auto; border-radius: 20px 20px 0 0; background: var(--color-paper); color: var(--color-ink); box-shadow: var(--shadow-lift); }
dialog.sheet::backdrop { background: color-mix(in oklab, var(--color-ink) 45%, transparent); }
.sheet-in:focus { outline: 0; }
.sheet-in { padding: var(--space-lg) var(--space-md) calc(var(--space-lg) + env(safe-area-inset-bottom)); }
.sheet-in p { margin-top: var(--space-xs); color: var(--color-ink-2); }
@media (hover: none) { .card:hover { transform: none; box-shadow: var(--shadow-card); } }
