/*
 * Household — "plant-pot clay".
 * Layout: one calm column (max ~560px), iOS-style large page titles, inset
 * grouped lists, and a bottom tab bar so every section is one tap away.
 * Light only, by request.
 */
:root {
  color-scheme: light;

  /* Color */
  --paper: #f6efe6;        /* warm off-white page */
  --surface: #fffbf6;      /* lists and cards */
  --ink: #2b2420;          /* warm near-black */
  --muted: #7d7067;        /* secondary text */
  --line: #eadfd2;         /* hairlines */
  --clay: #b5582f;         /* actions (white text passes AA) */
  --clay-deep: #8f4322;    /* clay text on light, pressed */
  --clay-soft: #f6e2d4;    /* clay tint */
  --leaf: #2f5a3c;         /* done / fine */
  --leaf-soft: #e1ebdf;
  --alert: #b3261e;        /* overdue */
  --alert-soft: #fbe4df;
  --scrim: rgba(43, 36, 32, 0.04);

  /* Type */
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
  --font-body: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --t-xs: 0.78rem;
  --t-sm: 0.875rem;
  --t-md: 1rem;
  --t-lg: 1.1875rem;
  --t-xl: 1.75rem;
  --t-xxl: 2.125rem;

  /* Shape and rhythm */
  --radius: 16px;
  --radius-sm: 11px;
  --tap: 48px;
  --tabbar-h: 58px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--clay-deep); }
img, svg { max-width: 100%; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--clay) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Page frame ---------- */
.page {
  max-width: 560px;
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  padding-block: calc(env(safe-area-inset-top, 0px) + 18px) calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 32px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.page.no-tabs { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 32px); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.page-head .eyebrow { margin: 0 0 2px; }
.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-xxl);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-wrap: balance;
}
.back {
  display: inline-flex; align-items: center; gap: 2px;
  color: var(--clay-deep); text-decoration: none; font-weight: 600; font-size: var(--t-md);
  min-height: 36px; margin-left: -4px;
}

.eyebrow {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}

.section { display: flex; flex-direction: column; gap: 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-inline: 4px; }
.section-head h2 {
  margin: 0; font-family: var(--font-display); font-size: var(--t-lg); font-weight: 700; text-wrap: balance;
}
.section-head .link { font-size: var(--t-sm); font-weight: 600; text-decoration: none; }
.section-head .count { font-size: var(--t-sm); color: var(--muted); font-variant-numeric: tabular-nums; }

.hint { color: var(--muted); font-size: var(--t-sm); margin: 0; padding-inline: 4px; }
.hint a { font-weight: 600; }

/* ---------- Grouped list ---------- */
.group {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}
.row {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 10px 14px;
  position: relative;
}
.row + .row::before {
  content: ""; position: absolute; top: 0; left: 54px; right: 0; height: 1px; background: var(--line);
}
.row.plain + .row.plain::before, .row.plain + .row::before { left: 14px; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-title { font-weight: 560; overflow-wrap: anywhere; }
.row-meta { font-size: var(--t-sm); color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.row-meta .sep { color: var(--line); }
.row a.row-link { color: inherit; text-decoration: none; }
.row a.row-link::after { content: ""; position: absolute; inset: 0; } /* whole row tappable */
.row .chev { color: #c4b6a8; width: 18px; height: 18px; }
.row.is-done .row-title { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.row form { margin: 0; position: relative; z-index: 1; }

.empty {
  background: var(--surface); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line);
  padding: 22px 18px; text-align: center; color: var(--muted); font-size: var(--t-sm);
}
.empty strong { display: block; color: var(--ink); font-size: var(--t-md); margin-bottom: 2px; }

/* ---------- Tick circle ---------- */
.tick {
  appearance: none; border: 0; background: none; padding: 0; cursor: pointer;
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: transparent;
  box-shadow: inset 0 0 0 2px #cdbdad;
  transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.tick .icon { width: 17px; height: 17px; stroke-width: 3; }
.tick:active { transform: scale(0.9); }
.tick.on { background: var(--leaf); box-shadow: none; color: #fff; }
.tick.clay { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--clay) 55%, #cdbdad); }
.tick-cell { min-width: var(--tap); min-height: var(--tap); margin: -9px -9px -9px -9px; display: grid; place-items: center; }

/* ---------- Buttons ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 20px; border-radius: 999px;
  font: 600 var(--t-md)/1 var(--font-body);
  background: var(--clay); color: #fff;
  transition: background-color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(0.98); background: var(--clay-deep); }
.btn.soft { background: var(--clay-soft); color: var(--clay-deep); }
.btn.soft:active { background: #efd2bf; }
.btn.leaf { background: var(--leaf-soft); color: var(--leaf); }
.btn.leaf:active { background: #d2e2cf; }
.btn.ghost { background: transparent; color: var(--clay-deep); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.danger { background: transparent; color: var(--alert); box-shadow: inset 0 0 0 1.5px var(--alert-soft); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: var(--t-sm); }
.btn.block { width: 100%; }
.btn .icon { width: 1.15em; height: 1.15em; }

.add-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px;
  background: var(--clay); color: #fff; text-decoration: none; font-weight: 600; font-size: var(--t-sm);
}
.add-btn .icon { stroke-width: 2.4; }
.add-btn:active { background: var(--clay-deep); }

.link-btn { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: var(--clay-deep); font-weight: 600; cursor: pointer; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.01em;
  padding: 3px 9px; border-radius: 999px; background: var(--scrim); color: var(--muted);
}
.pill.overdue { background: var(--alert-soft); color: var(--alert); }
.pill.today { background: var(--clay-soft); color: var(--clay-deep); }
.pill.ok { background: var(--leaf-soft); color: var(--leaf); }
.pill .icon { width: 13px; height: 13px; stroke-width: 2.4; }

.who {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font: 700 11px/1 var(--font-display); background: var(--clay-soft); color: var(--clay-deep); flex: none;
}
.who.together { background: var(--leaf-soft); color: var(--leaf); width: auto; padding: 0 8px; border-radius: 999px; }

/* ---------- Forms ---------- */
.quick-add { display: flex; gap: 8px; }
.quick-add input { flex: 1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.field .help { font-size: var(--t-xs); color: var(--muted); }
.field .errorlist { list-style: none; margin: 0; padding: 0; color: var(--alert); font-size: var(--t-sm); font-weight: 600; }
.errorlist.nonfield { list-style: none; margin: 0; padding: 12px 14px; color: var(--alert); background: var(--alert-soft); border-radius: var(--radius-sm); font-size: var(--t-sm); font-weight: 600; }
.form-card { background: var(--surface); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: 18px 16px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 360px) { .form-row { grid-template-columns: 1fr; } }
.check-field { display: flex; gap: 10px; align-items: flex-start; }
.check-field input { width: 22px; height: 22px; accent-color: var(--clay); margin: 1px 0 0; flex: none; }

input[type=text], input[type=password], input[type=date], input[type=number], input[type=url],
input[type=search], textarea, select {
  width: 100%; min-height: var(--tap);
  font: 400 16px/1.3 var(--font-body); /* 16px stops iOS zooming on focus */
  color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 88px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px color-mix(in srgb, var(--clay) 20%, transparent); }
::placeholder { color: #b0a194; }
.form-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Today ---------- */
.today-head .date { font-family: var(--font-display); color: var(--clay-deep); font-weight: 600; font-size: var(--t-md); margin: 0 0 2px; }

.dinner-card {
  border-radius: 22px; padding: 18px 18px 16px;
  background: linear-gradient(160deg, #2f5a3c 0%, #284d33 100%);
  color: #f6efe6; display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  box-shadow: 0 10px 26px -14px rgba(47, 90, 60, 0.7);
}
.dinner-card .eyebrow { color: rgba(246, 239, 230, 0.7); }
.dinner-card .dish { font-family: var(--font-display); font-size: var(--t-xl); font-weight: 700; line-height: 1.15; text-wrap: balance; overflow-wrap: anywhere; }
.dinner-card .sub { font-size: var(--t-sm); color: rgba(246, 239, 230, 0.82); display: flex; gap: 10px; flex-wrap: wrap; }
.dinner-card.empty-dinner { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1.5px dashed var(--line); box-shadow: none; border: 1.5px dashed #dccbb9; }
.dinner-card.empty-dinner .eyebrow { color: var(--muted); }
.dinner-card.empty-dinner .dish { font-size: var(--t-lg); color: var(--muted); font-weight: 600; }
.dinner-card.empty-dinner .sub { color: var(--clay-deep); font-weight: 600; }

.all-clear { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--leaf-soft); color: var(--leaf); font-weight: 600; }

.stat-link {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: inherit;
  background: var(--surface); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line);
}
.stat-link .num { font-family: var(--font-display); font-size: var(--t-xl); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--clay-deep); min-width: 1.6ch; text-align: center; }
.stat-link .what { flex: 1; min-width: 0; }
.stat-link .what strong { display: block; }
.stat-link .what span { color: var(--muted); font-size: var(--t-sm); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Plants ---------- */
.plant-card { background: var(--surface); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.plant-card.due { box-shadow: 0 0 0 1.5px #ebc9b3; }
.plant-card.overdue { box-shadow: 0 0 0 1.5px #efc0b9; }
.plant-top { display: flex; align-items: flex-start; gap: 12px; }
.plant-top .row-main { gap: 2px; }
.plant-name { font-weight: 650; font-size: var(--t-md); color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.plant-advice { display: flex; gap: 8px; align-items: flex-start; font-size: var(--t-sm); color: var(--ink); background: var(--paper); border-radius: var(--radius-sm); padding: 9px 11px; }
.plant-advice .icon { color: var(--muted); margin-top: 1px; }
.plant-advice.water { background: #e7eef5; }
.plant-advice.water .icon { color: #3c6a92; }
.plant-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plant-actions form { display: contents; }
.plant-actions .btn { width: 100%; padding: 0 10px; }
.check-with-reading { display: flex; gap: 6px; align-items: center; }
.reading-toggle { font-size: var(--t-sm); color: var(--muted); }
.reading-row { display: flex; gap: 8px; align-items: center; }
.reading-row input { width: 92px; flex: none; text-align: center; }
.reading-row .scale { font-size: var(--t-xs); color: var(--muted); line-height: 1.3; }
.plant-foot { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: var(--t-xs); color: var(--muted); }
.plant-foot b { font-weight: 600; color: #5f544c; }
details.more-reading summary { list-style: none; cursor: pointer; font-size: var(--t-sm); color: var(--clay-deep); font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
details.more-reading summary::-webkit-details-marker { display: none; }
details.more-reading[open] summary { margin-bottom: 8px; }

/* ---------- Dinner week ---------- */
.week-switch { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); border-radius: 999px; box-shadow: 0 0 0 1px var(--line); padding: 4px; }
.week-switch a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--clay-deep); }
.week-switch a:active { background: var(--clay-soft); }
.week-switch .range { font-weight: 650; font-size: var(--t-sm); text-align: center; }
.week-switch .range small { display: block; font-weight: 500; color: var(--muted); font-size: var(--t-xs); }
.day { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: start; }
.day-label { text-align: center; padding-top: 10px; }
.day-label .dow { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.day-label .dom { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.day.is-today .day-label .dom { color: #fff; background: var(--clay); border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; margin: 2px auto 0; }
.day.is-today .day-label .dow { color: var(--clay-deep); }
.day.is-past { opacity: 0.72; }
.day-meals { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.meal { background: var(--surface); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.meal-title { font-weight: 650; text-decoration: none; color: inherit; overflow-wrap: anywhere; }
.meal-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: var(--t-sm); color: var(--muted); align-items: center; }
.meal-meta a { font-weight: 600; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.meal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-day { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: var(--radius); border: 1.5px dashed #dccbb9; color: var(--muted); text-decoration: none; font-size: var(--t-sm); font-weight: 600; }
.plan-day .icon { color: var(--clay); }
.plan-day:active { background: var(--clay-soft); }
.plan-again { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan-again input { width: auto; flex: 1; min-width: 150px; }

/* ---------- More ---------- */
.me-card { display: flex; gap: 14px; align-items: center; padding: 16px; }
.me-card .who { width: 44px; height: 44px; font-size: 18px; }

/* ---------- Sign-in pages ---------- */
.welcome { min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.brand-mark { width: 64px; height: 64px; border-radius: 20px; background: var(--clay); color: #fff; display: grid; place-items: center; margin-bottom: 6px; box-shadow: 0 10px 24px -12px rgba(181, 88, 47, 0.8); }
.brand-mark .icon { width: 34px; height: 34px; stroke-width: 1.8; }

/* ---------- Messages / toast ---------- */
.flash { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--leaf-soft); color: var(--leaf); font-weight: 600; font-size: var(--t-sm); }
.flash.error { background: var(--alert-soft); color: var(--alert); }
.toast {
  position: fixed; left: 50%; transform: translate(-50%, 20px);
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 14px);
  max-width: min(92vw, 420px); z-index: 30;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px;
  font-size: var(--t-sm); font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.is-pending { opacity: 0.55; transition: opacity .1s ease; }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 -1px 0 var(--line);
}
.tabbar nav { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); height: var(--tabbar-h); }
.tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #9a8b7f; text-decoration: none; font-size: 10.5px; font-weight: 600; letter-spacing: 0.01em;
}
.tab .icon { width: 25px; height: 25px; stroke-width: 1.8; }
.tab[aria-current="page"] { color: var(--clay); }
.tab[aria-current="page"] .icon { stroke-width: 2.2; }
.tab .badge {
  position: absolute; top: 5px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--clay); color: #fff; font: 700 11px/18px var(--font-body); text-align: center;
  font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--paper);
}
.tab .badge.alert { background: var(--alert); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Whole-row tap target (shopping items, chores) */
.row-form { flex: 1; min-width: 0; display: flex; margin: -10px 0; align-self: stretch; }
.row-hit {
  appearance: none; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer;
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 0; border-radius: 10px;
}
.row-hit:active .tick { transform: scale(0.9); }
.icon-link { position: relative; z-index: 1; color: #b9aa9c; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -10px -8px 0; border-radius: 12px; flex: none; }
.icon-link:active { background: var(--scrim); color: var(--clay-deep); }

/* Segmented choice (radio) */
.seg { display: flex; gap: 3px; padding: 3px; border-radius: 13px; background: #efe5d9; }
.seg label { flex: 1; position: relative; min-width: 0; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: grid; place-items: center; text-align: center; min-height: 42px; padding: 4px 8px; border-radius: 10px;
  font-size: var(--t-sm); font-weight: 600; color: #6e6259; line-height: 1.15;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(43,36,32,.14); }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--clay) 55%, transparent); outline-offset: 1px; }
.every { display: flex; align-items: center; gap: 10px; }
.every input { width: 88px; flex: none; text-align: center; }
.every .unit { color: var(--muted); font-weight: 600; }
.form-card:has(#rep-none:checked) .every-field { display: none; }
.plan-day.past { border-style: solid; border-color: transparent; color: #c7b8aa; justify-content: flex-start; }
.status-form select { width: auto; min-height: 36px; padding: 6px 30px 6px 10px; font-size: 14px; background-position: calc(100% - 16px) 52%, calc(100% - 10px) 52%; }
.welcome { justify-content: center; min-height: 100vh; min-height: 100dvh; }

/* Rows with their own action line (plants on Today) */
.row.with-actions { flex-wrap: wrap; row-gap: 10px; padding-bottom: 12px; }
.row-actions { flex-basis: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-left: 42px; }
.row-actions form { margin: 0; }
.row-actions .btn { min-height: 40px; padding: 0 10px; }
.leaf-mark { color: var(--leaf); width: 24px; height: 24px; }
.page-title { font-size: 1.875rem; }
.today-head .page-title { font-size: 1.75rem; }
.btn { white-space: nowrap; }
.row.with-actions > .tick-cell { align-self: flex-start; margin-top: -2px; }
.round-btn {
  appearance: none; border: 0; cursor: pointer; flex: none;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--leaf-soft); color: var(--leaf);
}
.round-btn:active { background: #d2e2cf; transform: scale(0.94); }
/* Tap area grows to 48px by padding, without moving the 30px circle. */
.tick-cell { min-width: 0; min-height: 0; margin: -9px; padding: 9px; display: grid; place-items: center; flex: none; }
.seg.four span { font-size: 13px; padding: 4px 3px; }
.leaf-mark { margin: 0 3px; } /* 24px icon in a 30px slot, so text lines up with tick circles */
.row form.tick-cell { margin: -9px; } /* beats `.row form { margin: 0 }` */
.tick-cell { width: 48px; } /* fixed icon slot: every row's text starts at the same edge */
.round-btn { width: 44px; height: 44px; }

/* The tick BUTTON itself is the 48px target; the 30px ring is drawn inside it. */
.tick-cell > button.tick { width: 48px; height: 48px; margin: -9px; background: none; box-shadow: none; position: relative; }
.tick-cell > button.tick::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; box-shadow: inset 0 0 0 2px #cdbdad; transition: background-color .15s ease; }
.tick-cell > button.tick.clay::before { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--clay) 55%, #cdbdad); }
.tick-cell > button.tick:active::before { background: var(--leaf-soft); }
.tick-cell > button.tick .icon { position: relative; }
.btn.small { min-height: 40px; }
.row-actions .btn { min-height: 44px; }
