:root {
  --bg: #faf7f2;
  --bg-2: #f2ece3;
  --paper: #ffffff;
  --paper-2: #f7f2eb;
  --ink: #1c1814;
  --ink-2: #4b443b;
  --ink-3: #6b6256;
  --line: #ece4d8;
  --line-2: #ddd2c2;
  --accent: #b8461a;
  --accent-2: #943812;
  --accent-soft: #fbe5da;
  --forest: #2c4638;
  --gold: #c4962c;
  --shadow: 0 1px 2px rgba(60, 38, 16, 0.04), 0 14px 34px -18px rgba(60, 38, 16, 0.16);
  --shadow-lg: 0 30px 70px -30px rgba(60, 38, 16, 0.28);
  --radius: 20px;
  --radius-sm: 14px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --serif: "Plus Jakarta Sans", system-ui, sans-serif;
  --fw: 400;
  --fw-mid: 500;
  --fw-strong: 600;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: auto; }
html:has(body:not(.site)) { height: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  background:
    radial-gradient(1200px 600px at 10% -10%, #fbeee1 0%, transparent 50%),
    radial-gradient(900px 500px at 110% 0%, #f3e9dc 0%, transparent 46%),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
/* Board only — do not lock the marketing homepage */
body:not(.site) {
  height: 100%;
  height: 100dvh;
  height: -webkit-fill-available;
  overflow: hidden;
  overscroll-behavior: none;
}
body.site {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100%;
  font-weight: 400;
}
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.03em; }

button, input, textarea, select { font-family: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { max-width: 100%; }

.app {
  height: 100%;
  height: 100dvh;
  height: -webkit-fill-available;
  max-height: none;
  display: grid;
  grid-template-columns: 132px 1fr;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

/* ========== SIDE NAV ========== */
.sidenav {
  grid-row: 1 / -1;
  background: #1c1915;
  color: #f4eee4;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(18px, calc(12px + var(--safe-t))) 10px calc(16px + var(--safe-b));
  gap: 2px;
  z-index: 20;
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.nav-kicker {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #8a8176; padding: 10px 8px 4px; width: 100%; text-align: center;
}
.brand {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-bottom: 12px; text-decoration: none; color: inherit;
  flex-shrink: 0;
  position: sticky; top: 0; z-index: 2;
  background: #1c1915;
  padding-bottom: 8px;
  width: 100%;
}
.brand-mark {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(160deg, #e8a062, #9e3418);
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(194, 77, 31, 0.35);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #c9bfb1; font-weight: 400; text-align: center; line-height: 1.2; }

.nav-btn {
  width: 88px; min-height: 52px; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: #b7ada0; font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
  transition: 0.18s ease;
}
.nav-btn svg { width: 20px; height: 20px; }
.nav-btn:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-btn.active { background: #2b2621; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.nav-btn.active svg { color: #f0a06a; }
.sidenav .spacer { flex: 1; }

/* ========== TOPBAR ========== */
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: max(14px, calc(8px + var(--safe-t))) 22px 10px;
  min-height: 68px;
  min-width: 0;
  flex-wrap: wrap;
}
.topbar h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.03em;
  flex: 1;
}
.clock-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 12px; border-radius: 999px;
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  box-shadow: var(--shadow);
}
.clock-chip b { color: var(--ink); font-weight: 500; font-size: 13px; white-space: nowrap; }
.weather-dot { width: 8px; height: 8px; border-radius: 50%; background: #e0b24a; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: 0.15s;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

.cta {
  height: 42px; padding: 0 16px; border-radius: 12px;
  background: var(--accent); color: #fff; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 18px rgba(194,77,31,0.28);
  text-decoration: none;
}
.cta:hover { background: var(--accent-2); }
.cta.ghost {
  background: var(--paper); color: var(--ink); box-shadow: none;
  border: 1px solid var(--line);
}

/* ========== STAGE ========== */
.stage {
  overflow: auto;
  min-width: 0;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  padding: 4px 22px 28px;
  padding-bottom: calc(28px + var(--safe-b));
}

.view { display: none; animation: rise 0.32s ease; }
.view.active { display: block; }
.view.active.today-stack { display: flex; flex-direction: column; gap: 16px; }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ========== TODAY / KITCHEN ========== */
.today-stack {
  flex-direction: column;
  gap: 16px;
}
.today-stack .hero-row,
.today-stack .family-strip,
.today-stack .three-col,
.today-stack > .panel {
  margin: 0;
}
.hero-row {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 16px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.panel h2, .section-label {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500; margin-bottom: 12px;
}
.big-when {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px;
}
.big-when .dayname {
  font-family: var(--serif); font-size: 42px; font-weight: 500; letter-spacing: -0.03em; line-height: 1;
}
.big-when .date { color: var(--ink-3); font-size: 16px; }
.tagline { color: var(--ink-2); margin-bottom: 16px; font-size: 15px; }

.event-stack { display: flex; flex-direction: column; gap: 8px; }
.event-row {
  display: grid; grid-template-columns: 72px 1fr auto;
  gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 14px;
  background: var(--paper-2);
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.15s;
}
.event-row:hover { border-color: var(--line); transform: translateX(2px); }
.event-row .when { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.event-row .title { font-weight: 500; font-size: 15px; }
.event-row .meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.people-dots { display: flex; gap: 4px; }
.dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 10px; font-weight: 700;
  box-shadow: 0 0 0 2px var(--paper);
}

.empty-soft {
  padding: 18px; border-radius: 14px; background: var(--paper-2);
  color: var(--ink-3); font-size: 14px;
}

.family-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 0;
}
.person-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  min-height: 92px;
  box-shadow: var(--shadow);
}
.person-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px;
}
.person-card h3 { font-size: 15px; font-weight: 500; }
.person-card p { font-size: 12px; color: var(--ink-3); line-height: 1.4; }

.three-col {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px;
}
.list-mini { display: flex; flex-direction: column; gap: 8px; }
.check {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px; font-size: 14px; cursor: pointer;
}
.check.list-row { align-items: center; }
.list-who {
  flex: none; height: 28px; padding: 0 10px; font-size: 13px; font-weight: 500;
}
.list-task { flex: 1; min-width: 0; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }
.check.done span { text-decoration: line-through; color: var(--ink-3); }
.who-mini { font-size: 11px; color: var(--ink-3); margin-left: auto; }

/* ========== CALENDAR ========== */
.cal-toolbar {
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  margin-bottom: 16px;
}
.cal-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-toolbar .month-title {
  font-family: var(--serif); font-size: 26px; font-weight: 500;
  letter-spacing: -0.03em; min-width: 210px;
}
.seg {
  display: flex; background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 3px; gap: 2px;
}
.seg button {
  height: 32px; padding: 0 12px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--ink-3);
}
.seg button.on { background: var(--ink); color: #fff; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.chip {
  height: 32px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px;
}
.chip.on { color: #fff; border-color: transparent; }
.chip .swatch { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.month-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px; align-items: start; width: 100%; max-width: 100%;
}
.dow {
  text-align: center; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 700;
  padding: 6px 0 2px;
}
.day-cell {
  min-height: 152px; min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 8px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  transition: 0.15s;
}
.day-cell.open {
  min-height: 152px;
  z-index: 6;
  box-shadow: var(--shadow);
}
.day-cell:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.day-cell.out { opacity: 0.42; background: transparent; }
.day-cell.today { box-shadow: inset 0 0 0 2px var(--accent); }
.day-num {
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  display: flex; justify-content: space-between; align-items: center;
}
.day-cell.today .day-num span:first-child {
  background: var(--accent); color: #fff; width: 22px; height: 22px;
  border-radius: 50%; display: grid; place-items: center; font-size: 12px;
}
.ev-pill {
  font-size: 11px; font-weight: 500; color: #fff;
  border-radius: 7px; padding: 3px 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}
.more-n {
  font-size: 10px; color: #3f3a34; padding: 2px 4px;
  background: none; border: 0; text-align: left; cursor: pointer; font-weight: 500;
}

.week-grid {
  display: grid; grid-template-columns: 56px repeat(7, 1fr);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--paper);
}
.week-head, .week-col { border-left: 1px solid var(--line); }
.week-head { padding: 10px 8px; text-align: center; background: var(--paper-2); }
.week-head b { display: block; font-size: 18px; }
.week-head span { font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.week-head.today-col { background: var(--accent-soft); }
.hours { font-size: 11px; color: var(--ink-3); padding: 8px 6px 0; text-align: right; }
.week-col { min-height: 640px; position: relative; background-image: repeating-linear-gradient(to bottom, transparent, transparent 39px, var(--line) 40px); }
.week-block {
  position: absolute; left: 4px; right: 4px; border-radius: 8px;
  padding: 6px 8px; color: #fff; font-size: 12px; font-weight: 500;
  overflow: hidden; cursor: pointer;
}
.week-block small { display: block; font-weight: 500; opacity: 0.9; font-size: 10px; }

.fortnight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fn-day {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  min-height: 88px;
}
.fn-day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.fn-day header {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 8px;
}
.fn-day header b { font-weight: 500; font-size: 15px; }
.fn-day header span { color: var(--ink-3); font-size: 13px; }
.fn-day header em { margin-left: auto; font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.fn-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  width: 100%;
  text-align: left;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: inherit;
}
.fn-time {
  grid-row: 1 / span 2;
  align-self: start;
  display: inline-block;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 8px;
  text-align: center;
  min-width: 64px;
}
.fn-title { font-size: 15px; font-weight: 500; line-height: 1.3; }
.fn-who { grid-column: 2; font-size: 12px; color: var(--ink-3); }
.fn-empty { padding: 4px 0; }
@media (max-width: 900px) {
  .fortnight { grid-template-columns: 1fr; }
}

.agenda { display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.agenda-day h3 {
  font-family: var(--serif); font-size: 20px; margin-bottom: 8px;
}

/* ========== LISTS / NOTES / CHORES ========== */
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.board {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; box-shadow: var(--shadow); min-height: 220px;
  max-height: calc(100dvh - 200px);
  display: flex; flex-direction: column;
}
.board header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.board header h3 { font-size: 16px; font-weight: 700; flex: 1; }
.board .list-mini { overflow: auto; flex: 1; min-height: 80px; padding-right: 4px; }
.item-add {
  display: flex; gap: 8px; margin-top: auto; padding-top: 10px; align-items: center; flex-shrink: 0;
}
.item-add select {
  width: auto; min-width: 120px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; padding: 0 10px; font: inherit;
}
.item-add input, .field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; padding: 10px 12px; font-size: 14px; outline: none;
}
.item-add input:focus, .field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tiny { height: 36px; padding: 0 12px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 500; font-size: 13px; }

.note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.sticky {
  border-radius: 16px; padding: 16px; min-height: 170px;
  box-shadow: var(--shadow); position: relative;
  transform: rotate(var(--tilt, -0.4deg));
}
.sticky textarea {
  width: 100%; height: 110px; background: transparent; border: 0; resize: none;
  font-size: 15px; line-height: 1.45; outline: none; font-family: var(--serif);
}
.sticky footer { display: flex; justify-content: space-between; font-size: 11px; color: rgba(0,0,0,0.45); margin-top: 8px; }
.sticky .x { position: absolute; top: 8px; right: 8px; opacity: 0.4; }

.chore-row {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center;
  padding: 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 8px;
}

/* ========== PEOPLE / SETTINGS ========== */
.people-edit { display: grid; gap: 10px; max-width: 640px; }
.pe-row {
  display: grid; grid-template-columns: 40px 1fr 120px auto; gap: 10px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); padding: 10px; border-radius: 14px;
}

/* ========== MODALS ========== */
.overlay {
  position: fixed; inset: 0; background: rgba(28, 22, 16, 0.46);
  backdrop-filter: blur(8px);
  display: none; align-items: flex-end; justify-content: center;
  z-index: 50;
  padding: max(16px, var(--safe-t)) 16px calc(16px + var(--safe-b));
}
.overlay.show { display: flex; }
.sheet {
  width: min(640px, 100%);
  max-height: min(88dvh, 900px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--paper);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
  animation: sheet 0.28s ease;
}
@keyframes sheet {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.sheet h2 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.assign { display: flex; flex-wrap: wrap; gap: 8px; }
.assign label {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; cursor: pointer;
}
.assign label.on { color: #fff; border-color: transparent; }
.sheet-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.danger { background: #8d2a22; color: #fff; height: 42px; padding: 0 14px; border-radius: 12px; font-weight: 500; }
.muted { color: var(--ink-3); font-size: 13px; }

/* capture choices */
.capture-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.cap-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 18px 12px;
  text-align: center; background: var(--paper-2); cursor: pointer;
}
.cap-card:hover { border-color: var(--accent); background: #fff; }
.cap-card .ico { font-size: 26px; margin-bottom: 8px; }
.cap-card b { display: block; font-size: 14px; }
.cap-card span { font-size: 12px; color: var(--ink-3); }

.voice-orb {
  width: 120px; height: 120px; border-radius: 50%; margin: 10px auto 16px;
  background: radial-gradient(circle at 30% 30%, #f3c2a4, var(--accent));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 0 0 10px var(--accent-soft), 0 20px 40px rgba(194,77,31,0.25);
  animation: pulse 1.6s ease infinite;
}
@keyframes pulse {
  50% { transform: scale(1.04); box-shadow: 0 0 0 16px var(--accent-soft), 0 20px 40px rgba(194,77,31,0.25); }
}
.transcript {
  background: var(--paper-2); border-radius: 14px; padding: 14px; min-height: 72px;
  font-size: 16px; line-height: 1.5;
}
.scan-preview { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; margin-bottom: 12px; background: #ddd; }
.ocr-status { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }

/* ========== MOBILE ========== */
.bottomnav { display: none; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidenav { display: none; }
  .topbar { padding: 10px 12px; padding-top: max(10px, calc(8px + var(--safe-t))); gap: 8px; }
  .topbar h1 { font-size: 20px; }
  .topbar .cta { display: none; }
  .stage { padding: 4px 12px calc(96px + var(--safe-b)); }
  .hero-row, .three-col { grid-template-columns: 1fr; }
  .clock-chip .hide-sm { display: none; }
  .month-grid { gap: 4px; }
  .day-cell { min-height: 118px; padding: 6px; border-radius: 10px; }
  .ev-pill { font-size: 10px; padding: 2px 4px; }
  .capture-grid, .grid-2 { grid-template-columns: 1fr; }
  .bottomnav {
    display: flex; justify-content: space-around; align-items: flex-end;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 35;
    background: #1c1915; color: #cfc6ba;
    padding: 8px 4px calc(10px + var(--safe-b));
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .bottomnav button {
    flex: 1; color: #b7ada0; font-size: 10px; font-weight: 500;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    min-height: 44px; padding: 4px 2px;
  }
  .bottomnav button.active { color: #fff; }
  .bottomnav svg { width: 20px; height: 20px; }
  .filters { margin-left: 0; width: 100%; }
  .item-add input, .field input, .field textarea, .field select { font-size: 16px; }
  .sheet { max-height: min(86dvh, 100%); padding-bottom: calc(22px + var(--safe-b)); }
  .overlay { align-items: flex-end; padding-bottom: 0; }
}

/* iPad / large tablet — keep side nav, respect notch, stop clipping */
@media (min-width: 901px) and (max-width: 1366px) {
  .app { grid-template-columns: 128px 1fr; }
  .nav-btn { width: 100px; min-height: 46px; font-size: 11px; }
  .topbar h1 { font-size: 24px; }
  .cal-toolbar { flex-wrap: wrap; }
  .hero-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 901px) and (max-height: 1100px) {
  .nav-btn { min-height: 44px; gap: 2px; }
  .brand { margin-bottom: 8px; }
  .brand-mark { width: 48px; height: 48px; }
  .sidenav { gap: 1px; }
}

/* Kitchen / wall display */
body.wall .big-when .dayname { font-size: 56px; }
body.wall .event-row .title { font-size: 18px; }
body.wall .day-cell { min-height: 160px; }
body.wall .topbar h1 { font-size: 34px; }

.fab {
  position: fixed; right: 22px; bottom: calc(22px + var(--safe-b));
  height: 52px; padding: 0 18px; width: auto; border-radius: 16px;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 500; font-size: 14px;
  box-shadow: 0 16px 32px rgba(158,52,24,0.35);
  z-index: 30; white-space: nowrap;
}
@media (max-width: 900px) {
  .fab { bottom: calc(78px + var(--safe-b)); right: 12px; left: 12px; width: auto; }
  .toast { bottom: calc(90px + var(--safe-b)); }
}

.toast {
  position: fixed; left: 50%; bottom: calc(28px + var(--safe-b)); transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: 0.25s; z-index: 80;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========== MARKETING + AUTH ========== */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
  padding: max(16px, calc(10px + var(--safe-t))) 28px 16px;
  background: rgba(243,238,230,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav .logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit; font-weight: 400; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 13px;
}
.site-nav .logo .brand-mark { width: 36px; height: 36px; border-radius: 12px; margin: 0; }
.seal { width: 52px; height: 52px; display: block; }
.seal-sm { width: 36px; height: 36px; display: inline-block; vertical-align: middle; margin-right: 8px; }
.seal-auth { width: 72px; height: 72px; margin: 0 auto 12px; display: block; }
.site-nav .links { display: flex; gap: 22px; flex: 1; }
.site-nav .links a { color: var(--ink-2); text-decoration: none; font-weight: 400; font-size: 15px; }
.site-nav .links a:hover { color: var(--ink); }
.site-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.hero {
  padding: 56px 0 36px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.hero-visual { position: relative; }
.hero-shot, .hero-video {
  width: 100%; display: block;
  border-radius: 20px; border: 1px solid var(--line);
  box-shadow: 0 22px 50px rgba(40,28,14,.12);
  background: var(--paper);
}
.hero-shot { aspect-ratio: 16/10; object-fit: cover; object-position: left center; }
.hero-video { aspect-ratio: 16/9; object-fit: cover; }
.proof-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none;
}
.proof-pills li {
  font-size: 12px; letter-spacing: 0.04em; color: var(--ink-2);
  border: 1px solid var(--line); background: var(--paper);
  border-radius: 999px; padding: 6px 10px;
}
.strip {
  background: #1c1915; color: #f4eee4; padding: 16px 0;
}
.strip-row {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-size: 13px; letter-spacing: 0.04em; justify-content: space-between;
}
.strip-row span { color: #d8cfc3; }
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.compare > div {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 22px;
}
.compare ul { list-style: none; margin-top: 12px; color: var(--ink-2); line-height: 1.9; }
.compare > div:last-child { border-color: var(--accent); }
.compare > div:last-child ul { color: var(--ink); }
.feat-grid.two { grid-template-columns: 1fr 1fr; }
.closer { text-align: center; padding-bottom: 80px; }
.closer .sub { margin-left: auto; margin-right: auto; }
.closer h2 { font-size: clamp(32px, 5vw, 48px); }

.legal {
  max-width: 760px;
  padding: 48px 0 88px;
}
.legal h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 600; margin: 6px 0 10px; letter-spacing: -0.03em; }
.legal h2 { font-size: 20px; font-weight: 400; margin: 32px 0 10px; }
.legal h3 { font-size: 16px; font-weight: 400; margin: 18px 0 8px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; font-size: 15px; }
.legal ul, .legal ol { margin: 8px 0 16px 20px; }
.legal li { margin: 6px 0; }
.legal .legal-meta { color: var(--ink-3); font-size: 13px; line-height: 1.55; }
.legal .legal-toc {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  margin: 18px 0 8px; font-size: 13px;
}
.legal .legal-toc a { color: var(--accent); text-decoration: none; }
.legal .legal-foot {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 13px;
}
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--ink); font-weight: 400; }
.price .amt span { font-size: 18px; font-weight: 400; color: var(--ink-3); }
.eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 400; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; margin: 12px 0 16px; font-weight: 600; }
.hero p.lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 520px; }
.hero-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.hero-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
  padding: 18px; box-shadow: var(--shadow-lg);
}
.hero-card .mini-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hero-card .mini-row:last-child { border: 0; }

.section { padding: 64px 0; }
.section h2 { font-size: 36px; margin-bottom: 10px; }
.section .sub { color: var(--ink-2); max-width: 560px; margin-bottom: 28px; font-size: 17px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 22px;
}
.feat h3 { font-size: 20px; margin: 8px 0 8px; }
.feat p { color: var(--ink-2); line-height: 1.5; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 8px 8px 8px 0; }
.step b { display: block; color: var(--accent); font-weight: 400; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }

.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price-grid.two { grid-template-columns: 1fr 1fr; max-width: 820px; }
.price {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 24px;
  display: flex; flex-direction: column; gap: 8px; min-height: 320px;
}
.price.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.price .amt { font-size: 40px; margin: 8px 0; }
.price ul { list-style: none; color: var(--ink-2); line-height: 1.8; flex: 1; font-size: 14px; }

.site-footer {
  border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--ink-3); font-size: 13px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

.auth-page { min-height: calc(100dvh - 70px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card {
  width: min(440px, 100%); background: var(--paper); border: 1px solid var(--line);
  border-radius: 24px; padding: 28px; box-shadow: var(--shadow-lg);
}
.auth-card h1, .auth-card h2.auth-title, .auth-card .auth-title { font-size: 32px; margin-bottom: 8px; }
.auth-card .auth-title { font-weight: 600; letter-spacing: -0.03em; }
.auth-card .hint { color: var(--ink-2); margin-bottom: 18px; }
.auth-card .cta { width: 100%; justify-content: center; height: 46px; margin-top: 8px; }
.auth-card a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-card .terms-box a { text-decoration: underline; text-underline-offset: 2px; }
.auth-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px;
}
.auth-switch a {
  display: flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 10px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
  color: var(--ink); font-size: 13px; font-weight: 500;
  white-space: nowrap;
}
.auth-switch a:hover { border-color: var(--accent); color: var(--accent); }
.demo-box {
  margin-top: 16px; padding: 12px; border-radius: 12px; background: var(--paper-2);
  font-size: 13px; color: var(--ink-2); line-height: 1.45;
}
.err { color: #8d2a22; font-size: 13px; min-height: 18px; margin: 4px 0; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 8px 0 4px; }

.who-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 13px; font-weight: 400;
}
.who-chip img, .who-chip .avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.who-menu { position: relative; }
.who-drop {
  position: absolute; right: 0; top: 44px; width: 220px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 40;
}
.who-drop.show { display: block; }
.who-drop button, .who-drop a {
  display: block; width: 100%; text-align: left; padding: 10px 12px;
  border-radius: 10px; text-decoration: none; color: inherit; font-size: 14px; font-weight: 400;
}
.who-drop button:hover, .who-drop a:hover { background: var(--paper-2); }

.person-full {
  display: grid; grid-template-columns: 72px 1fr; gap: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px;
}
.person-full .photo {
  width: 72px; height: 72px; border-radius: 18px; object-fit: cover; background: var(--paper-2);
  display: grid; place-items: center; color: #fff; font-size: 22px; overflow: hidden;
}
.person-full .photo img { width: 100%; height: 100%; object-fit: cover; }
.badge { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

@media (max-width: 900px) {
  .hero, .feat-grid, .feat-grid.two, .steps, .price-grid, .price-grid.two, .compare { grid-template-columns: 1fr; }
  .site-nav .links { display: none; }
  .hero { padding: 28px 0 20px; }
  .hero-visual .overlay-card { position: static; width: auto; margin-top: 12px; }
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: none;
}
.settings-grid .panel { min-width: 0; }
.settings-grid .panel.span-2 { grid-column: span 2; }
.settings-grid .panel.span-3 { grid-column: 1 / -1; }
.settings-grid .panel h3 { font-size: 22px; margin-bottom: 12px; }
.trial-banner {
  max-width: 980px; margin-bottom: 16px;
  background: var(--accent-soft); border: 1px solid #e8c2aa; border-radius: 16px; padding: 16px 18px;
}
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-pick button {
  text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff;
}
.plan-pick button.on { border-color: var(--accent); background: var(--accent-soft); }
.pay-box { background: var(--paper-2); border-radius: 12px; padding: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-top: 8px; }
.lock-card { text-align: center; padding: 36px 16px; }
.person-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.shot-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.shot-grid img {
  width: 100%; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(40,32,24,0.08); display: block;
}
.shot-grid figcaption { margin-top: 8px; color: var(--ink-2); font-size: 14px; }
@media (max-width: 900px) {
  .settings-grid, .plan-pick { grid-template-columns: 1fr; }
  .settings-grid .panel.span-2,
  .settings-grid .panel.span-3 { grid-column: 1 / -1; }
  .settings-grid { width: 100%; overflow-x: hidden; }
  .item-add { flex-wrap: wrap; }
  .item-add select { min-width: 120px; }
  .clock-chip { font-size: 12px; padding: 6px 10px; max-width: 58vw; }
  .clock-chip b { font-size: 12px; white-space: nowrap; }
}
@media (min-width: 900px) {
  .shot-grid { grid-template-columns: 1fr 1fr; }
  .shot-grid figure:first-child { grid-column: 1 / -1; }
}
.menu-chip {
  margin: 8px 0 14px; padding: 10px 14px; border-radius: 14px;
  background: var(--accent-soft); display: flex; gap: 12px; align-items: baseline;
}
.recipe-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: #fff;
}
.notice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.notice-pic img, .menu-photo { width: 100%; border-radius: 12px; display: block; margin-top: 8px; }
.chat-log { max-height: 240px; overflow: auto; }
.chat-line { padding: 8px 0; border-bottom: 1px solid var(--line); }
.meals-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px;
}
.diary-wrap { padding: 18px 18px 20px; }
.diary-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.diary-nav { display: flex; align-items: center; gap: 8px; }
.diary-nav b { min-width: 88px; text-align: center; }
.diary-rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 520px; margin: 0 auto; }
.fuel-ring { position: relative; display: grid; place-items: center; }
.fuel-ring svg { width: 112px; height: 112px; }
.fuel-ring-val { position: absolute; text-align: center; }
.fuel-ring-val b { display: block; font-size: 20px; font-weight: 500; letter-spacing: -0.03em; }
.fuel-ring-val span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.diary-goal { justify-content: center; margin: 0 0 14px; }
.diary-sec { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 8px; overflow: hidden; }
.diary-sec summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; cursor: pointer; font-weight: 500; }
.diary-sec summary::-webkit-details-marker { display: none; }
.diary-sec[open] summary { background: #f4efe8; }
.diary-sec .item-add, .diary-sec .muted, .diary-item { margin: 0 14px 12px; }
.diary-item { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.diary-item em { font-style: normal; font-weight: 500; }
.diary-item em.burn { color: #7b4cff; }
@media (max-width: 700px) {
  .diary-rings { grid-template-columns: 1fr 1fr 1fr; }
  .fuel-ring svg { width: 92px; height: 92px; }
  .diary-item { grid-template-columns: 1fr auto; }
}
.bank-amt { font-size: 42px; font-weight: 400; letter-spacing: -0.03em; margin: 6px 0; }
.bank-card { margin-bottom: 16px; }
@media (max-width: 1100px) {
  .meals-layout { grid-template-columns: 1fr; }
}

.week-meals { display: grid; gap: 8px; }
.week-row { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: center; }
.week-row span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.book-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; }
.add-recipe { margin: 12px 0; }
.add-recipe summary { cursor: pointer; color: var(--ink-2); }
.photo-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.cta.ghost.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.recipe-actions, .photo-row, .book-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.recipe-actions { margin-top: 10px; }
.day-pick {
  height: 42px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper);
}
.recipe-grid, .menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.browse-panel, .ask-panel { margin-top: 16px; }
.recipe-card { overflow: hidden; }
.recipe-pic { width: 100%; height: 140px; object-fit: cover; display: block; background: #ece4d6; }
.recipe-pic-empty { display: grid; place-items: center; font-size: 36px; }
.recipe-body { padding-top: 10px; }
.who-chip {
  height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-weight: 500; font-size: 13px;
}
.who-chip.on { border-color: transparent; }
.ask-list { margin-top: 12px; display: grid; gap: 8px; }
.week-meals { display: grid; gap: 8px; margin-top: 8px; }
.week-row { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; }
.week-row span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.week-row input { width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--line); padding: 0 12px; background: #fff; }
label.cta { cursor: pointer; }
button.muted[data-act], .chore-row button.muted {
  height: 36px; min-width: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper);
}
.item-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.item-add .tiny, .item-add button { height: 42px; }
.photo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 14px; }
.photo-tile { margin: 0; background: var(--paper-2); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.photo-tile img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; display: block; }
.photo-tile figcaption { font-size: 12px; color: var(--ink-3); padding: 8px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }

.terms-box { display: flex; gap: 12px; align-items: flex-start; background: var(--paper-2, #f6f0e8); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.terms-box input { margin-top: 3px; flex-shrink: 0; }
.loc-suggest { display: grid; gap: 4px; margin-top: 6px; }
.loc-hit { text-align: left; font-size: 13px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; display: grid; gap: 2px; }
.loc-hit b { font-weight: 500; color: var(--ink); }
.loc-hit span { font-weight: 400; color: var(--ink-2); font-size: 12px; }
.loc-map { margin-top: 8px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.loc-map iframe { width: 100%; height: 160px; border: 0; display: block; }
button.person-card, button.jump-panel { width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.tour { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tour-frame { background: #fffaf3; border: 1px solid var(--line); border-radius: 18px; padding: 16px; min-height: 200px; box-shadow: 0 12px 30px rgba(40,30,20,.06); }
.tour-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 12px; color: var(--ink-3); }
.tour-row { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: #efe4f4; margin-bottom: 8px; font-size: 14px; }
.tour-row.alt { background: #f3ddd6; }
.tour-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.tour-cal span { height: 22px; border-radius: 6px; background: #efeae2; display: block; }
.tour-cal .dot.r { background: #e8b4a8; }
.tour-cal .dot.p { background: #cbb6e0; }
.tour-cal .dot.g { background: #c9ddc4; }
.tour-check { display: block; padding: 8px 0; font-size: 15px; }
.tour-check.on { text-decoration: line-through; color: var(--ink-3); }
@media (max-width: 800px) { .tour { grid-template-columns: 1fr; } }

.panel textarea, .field textarea {
  width: 100%;
  min-height: 120px;
  box-sizing: border-box;
  resize: vertical;
  display: block;
}
.wide-btn { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 8px; min-height: 44px; }
.tiny { background: var(--accent); color: #fff; border: 0; }
.item-add .tiny, .item-add button.tiny { min-width: 72px; }
.menu-photo { width: 100%; border-radius: 12px; margin-top: 10px; display: block; }

.promo-wrap {
  margin: 0 auto 28px;
  max-width: 920px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(40,30,20,.08);
  background: #1c1915;
}
.promo { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; vertical-align: top; }

.chat-app { display: grid; grid-template-columns: 240px 1fr; gap: 12px; min-height: min(62vh, 640px); }
.chat-rail, .chat-thread { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; min-height: 0; display: flex; flex-direction: column; }
.chat-rail-head, .chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat-head { justify-content: flex-start; }
.chat-back { display: none; }
.chat-list { overflow: auto; }
.chat-item { display: grid; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); color: inherit; }
.chat-item b { font-weight: 500; }
.chat-item span { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item.on { background: var(--accent-soft); }
.chat-thread .chat-log { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; max-height: none; }
.bubble { max-width: 82%; padding: 8px 12px; border-radius: 16px 16px 16px 6px; background: var(--paper-2); border: 1px solid var(--line); }
.bubble p { margin: 2px 0; line-height: 1.4; }
.bubble small { display: block; color: var(--ink-3); font-size: 11px; }
.bubble.mine { align-self: flex-end; background: var(--accent); color: #fff; border-color: transparent; border-radius: 16px 16px 6px 16px; }
.bubble.mine small { color: rgba(255,255,255,0.75); }
.chat-compose { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-compose input { flex: 1; height: 44px; border-radius: 12px; border: 1px solid var(--line); padding: 0 12px; font-size: 16px; background: #fff; }
@media (max-width: 900px) {
  .chat-app { grid-template-columns: 1fr; min-height: 58vh; }
  .chat-app.show-list .chat-thread { display: none; }
  .chat-app.show-thread .chat-rail { display: none; }
  .chat-back { display: grid; }
}

.stars { display: flex; align-items: center; gap: 4px; margin: 8px 0 4px; }
.star { font-size: 22px; color: #d3c7b4; line-height: 1; padding: 0 2px; }
.star.on { color: #c4962c; }
.ing-list { display: grid; gap: 6px; margin-top: 8px; }
.book-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }

.kcal-tag { display:inline-block; margin-top:6px; font-size:12px; color:var(--ink-3); }
.fuel-bar { height:10px; background:var(--line); border-radius:99px; overflow:hidden; margin-top:6px; }
.fuel-bar i { display:block; height:100%; background:var(--accent); }
.recipe-pic { height: 168px; }

.view.active:not(.today-stack) > .panel + .panel,
.view.active > .meals-layout,
.view.active > .settings-grid { margin-top: 16px; }
.stage .panel { padding: 18px 20px; }
.settings-grid { gap: 16px; }

.lead.tight { margin-top: 10px; font-size: 1.05em; }
.capture-bar { display:flex; gap:10px; flex-wrap:wrap; margin: 14px 0 4px; }
.capture-bar .cta { flex:1; min-width: 160px; justify-content:center; height: 48px; }
.where-strip { display:grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap:12px; margin: 16px 0; }
@media print {
  .sidenav, .topbar, .bottomnav, .fab, .cal-toolbar .cta, .overlay, .toast { display:none !important; }
  .app { display:block; height:auto; }
  .stage { padding:0; overflow:visible; }
  .view { display:none !important; }
  .view.active, #print-week { display:block !important; }
}

.photo-open { display:block; width:100%; padding:0; border:0; background:none; cursor:zoom-in; }
.photo-view img { width:100%; max-height:70vh; object-fit:contain; background:#1b1712; border-radius:14px; }
.photo-view .row-btns { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }

.repeat-extra { gap: 8px; margin-top: 10px; }
.repeat-end {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-2); font-weight: 500;
}
.repeat-end input { width: 16px; height: 16px; margin: 0; flex: none; }

.todo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 20px; margin-top: 8px; }
.todo-col { min-width: 0; }
#my-todos {
  max-height: 260px;
  overflow: auto;
  padding: 14px 18px;
}
#my-todos .section-label { margin-bottom: 8px; }
.three-col { align-items: start; }
.three-col > .panel, .three-col > .jump-panel {
  max-height: 280px;
  overflow: auto;
  min-height: 0;
  margin: 0;
}
.hero-row > .panel { max-height: min(48vh, 480px); overflow: auto; }
.helpers-grid, .school-grid { align-items: start; gap: 16px; }
.panel.compact { padding: 14px 18px; }
.clock-chip { max-width: min(52vw, 420px); }
.clock-chip b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) {
  .board { max-height: calc(100dvh - 240px); }
  .clock-chip { max-width: 70vw; }
}

.view.active[data-view="lists"],
.view.active[data-view="chores"],
.view.active[data-view="notes"],
.view.active[data-view="photos"],
.view.active[data-view="meals"],
.view.active[data-view="helpers"],
.view.active[data-view="school"],
.view.active[data-view="reminders"],
.view.active[data-view="chat"] {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.view.active[data-view="lists"] > div:first-child,
.view.active[data-view="chores"] > p,
.view.active[data-view="notes"] > p,
.view.active[data-view="photos"] > p,
.view.active[data-view="meals"] > p,
.view.active[data-view="helpers"] > p,
.view.active[data-view="school"] > p,
.view.active[data-view="reminders"] > p,
.view.active[data-view="chat"] > p { margin: 0; }

.holiday-colours { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin: 10px 0 12px; }
.colour-pick {
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3); font-weight:500;
}
.colour-pick input[type=color] {
  width:36px; height:28px; padding:0; border:1px solid var(--line); border-radius:8px; background:#fff; cursor:pointer;
}
.colour-pick.tight { text-transform:none; letter-spacing:0; font-size:12px; }

/* Oct 2026 — tomorrow flip, since-you-looked strip, trial nudge, wall QR */
.cta.sm { padding: 8px 14px; font-size: 13px; }
.linkish { background: none; border: 0; padding: 0 0 0 8px; color: var(--accent); font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; letter-spacing: 0; text-transform: none; }
#since-strip:empty { display: none; }
.since-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 4px;
}
.since-strip .section-label { margin: 0; flex: 0 0 auto; }
.since-strip ul { list-style: none; margin: 0; padding: 0; flex: 1 1 260px; min-width: 0; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.since-strip li { overflow-wrap: anywhere; }
.since-strip b { font-weight: var(--fw-strong); color: var(--ink); }
.trial-nudge {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--accent-soft); border: 1px solid #e8c2aa; border-radius: var(--radius-sm);
  padding: 10px 12px; margin-bottom: 12px; font-size: 14px; color: var(--ink-2);
}
.trial-nudge b { font-weight: var(--fw-strong); color: var(--ink); }
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; max-width: 280px; margin: 0 auto; }
.qr-box svg { display: block; width: 100%; height: auto; }

/* Oct 2026 — Meals rebuild */
.meal-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; padding: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.meal-tab { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.meal-tab.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px rgba(40, 28, 14, 0.1); font-weight: var(--fw-mid); }
#meals-root > .panel + .panel { margin-top: 16px; }
.meals-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.meals-head h3 { margin: 2px 0 4px; }
.meals-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.meals-actions .cta[disabled] { opacity: .45; cursor: not-allowed; }
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.day-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.day-card.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.day-card.set { background: var(--paper); }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.day-head b { font-weight: var(--fw-strong); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.day-card.today .day-head b { color: var(--accent); }
.day-head span { font-size: 12px; color: var(--ink-3); }
.day-card input { width: 100%; min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: #fff; font: inherit; font-size: 14px; }
.day-foot { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; min-height: 18px; }
.day-foot .linkish { padding: 0; font-size: 12px; }
.linkish.quiet { color: var(--ink-3); }
.ask-form select { height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 0 10px; font: inherit; max-width: 140px; }
.ask-form input { flex: 1 1 200px; min-width: 0; }
.recipe-tile { height: 140px; border-radius: 10px; background: linear-gradient(160deg, var(--paper-2), var(--accent-soft)); display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 14px; }
.recipe-tile span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.recipe-tile b { font-size: 20px; font-weight: var(--fw); line-height: 1.15; color: var(--ink); letter-spacing: -0.01em; }
#pick-search { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font: inherit; margin: 6px 0 10px; }
.pick-list { display: grid; gap: 6px; max-height: 52vh; overflow: auto; }
.pick-row { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; cursor: pointer; font: inherit; }
.pick-row:hover { border-color: var(--accent); }
.pick-row span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 700px) {
  .day-grid { grid-template-columns: 1fr; }
  .day-card { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .day-head { flex: 0 0 64px; flex-direction: column; gap: 0; }
  .day-card input { flex: 1 1 160px; }
  .day-foot { flex: 1 0 100%; }
  .meal-tabs { border-radius: 14px; }
}

/* Oct 2026 — homepage FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; margin-top: 18px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 28px 16px 0; font-weight: var(--fw-mid); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 20px; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.55; }

/* Oct 2026 — homepage polish */
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

.strip-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px; padding-top: 18px; padding-bottom: 18px; }
.strip-row span { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; letter-spacing: 0; white-space: nowrap; }
.strip-row span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

.site .section { padding: 96px 0; }
.site .section + .section { border-top: 1px solid rgba(27, 23, 18, .06); }
.site .section h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.site .section .sub { max-width: 620px; margin-bottom: 36px; line-height: 1.55; }
.site .feat { transition: transform .5s cubic-bezier(.32, .72, 0, 1), box-shadow .5s cubic-bezier(.32, .72, 0, 1); }
.site .feat:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(40, 28, 14, .07); }
#why h2[style] { margin-top: 88px !important; }
.steps { gap: 28px; margin-bottom: 36px; }
.step { border-top: 1px solid var(--line); padding-top: 18px; }

body:not(.hx-body) #pricing { text-align: center; }
body:not(.hx-body) #pricing .sub { margin-left: auto; margin-right: auto; }
body:not(.hx-body) #pricing .price-grid.two { margin: 0 auto; text-align: left; }

body:not(.hx-body) #faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
body:not(.hx-body) #faq .faq { margin-top: 0; max-width: none; }

.closer .muted a { color: var(--accent); text-decoration: none; }

.gk-footer { background: #1b1712; color: #cfc6b8; margin-top: 24px; }
.gk-footer .gk-foot-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding: 64px 24px 48px; }
.gk-footer .gk-brand { display: flex; flex-direction: column; gap: 14px; max-width: 280px; }
.gk-footer .gk-brand a { display: inline-flex; align-items: center; gap: 12px; color: #fffaf3; text-decoration: none; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.gk-footer .gk-brand img { width: 44px; height: 44px; }
.gk-footer .gk-brand p { font-size: 14px; line-height: 1.55; color: #a99f92; }
.gk-footer nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.gk-footer h4 { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #8c8276; margin-bottom: 6px; }
.gk-footer nav a { color: #e9e2d7; text-decoration: none; width: fit-content; transition: color .3s cubic-bezier(.32, .72, 0, 1); }
.gk-footer nav a:hover { color: #f2a68f; }
.gk-footer .gk-foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 24px 32px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: #8c8276; }

@media (max-width: 900px) {
  body:not(.hx-body) #faq { grid-template-columns: 1fr; gap: 8px; }
  .gk-footer .gk-foot-top { grid-template-columns: 1fr 1fr; padding: 48px 24px 32px; }
  .gk-footer .gk-brand { grid-column: 1 / -1; }
  .site .section { padding: 72px 0; }
  #why h2[style] { margin-top: 64px !important; }
}
@media (max-width: 520px) {
  .strip-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .strip-row span { white-space: normal; }
}

/* Photos: album shelves, each a swipeable strip */
.ph-shelves{display:grid;gap:14px;margin-top:16px}
.ph-shelf{background:var(--paper,#fff);border:1px solid var(--line);border-radius:18px;padding:14px 0 14px 16px;overflow:hidden}
.ph-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;width:100%;padding:0 16px 10px 0;border:0;background:none;cursor:pointer;text-align:left;font:inherit;color:inherit}
.ph-head b{font-size:17px}.ph-head span{font-size:13px;color:var(--ink-3)}
.ph-strip{display:flex;gap:10px;overflow-x:auto;padding:2px 16px 6px 0;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.ph-thumb,.ph-more,.ph-empty{flex:0 0 auto;scroll-snap-align:start;border:0;padding:0;border-radius:14px;overflow:hidden;cursor:zoom-in}
.ph-thumb{width:150px;height:150px;background:var(--paper-2,#eee)}
.ph-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ph-more,.ph-empty{height:150px;background:var(--paper-2,#f1ece4);color:var(--ink-3);font:inherit;cursor:pointer}
.ph-more{width:100px}.ph-empty{padding:0 22px}
.ph-back{border:0;background:none;color:var(--accent,#b8431f);font:inherit;font-weight:600;cursor:pointer;padding:0}
.photo-view h2{margin-bottom:10px}
@media (max-width:700px){.ph-thumb,.ph-more,.ph-empty{height:120px}.ph-thumb{width:120px}}

/* Grandparents: profile photo */
.hp-card{display:flex;align-items:center;gap:16px;margin-bottom:14px}
.hp-pic{flex:0 0 auto;width:96px;height:96px;border-radius:50%;overflow:hidden;background:var(--paper-2,#f1ece4);border:1px solid var(--line);display:grid;place-items:center}
.hp-pic img{width:100%;height:100%;object-fit:cover;display:block}
.hp-pic span{font-size:38px;font-weight:600;color:var(--ink-3)}
.hp-dot{width:22px;height:22px;border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:6px}

/* School: overview cards + one tidy page per school */
.sc-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.sc-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:14px;margin-bottom:18px}
.sc-card{display:flex;flex-direction:column;gap:10px;text-align:left;padding:18px 18px 16px;border:1px solid var(--line);border-top:5px solid var(--h);border-radius:18px;background:var(--paper,#fff);font:inherit;color:inherit;cursor:pointer;transition:transform .25s cubic-bezier(.32,.72,0,1),box-shadow .25s}
.sc-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px -18px rgba(40,25,10,.35)}
.sc-card-top{display:flex;gap:10px;align-items:center;justify-content:space-between;font-size:12px}
.sc-kindpill{font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--h,#b8431f)}
.sc-card-name{font-size:21px;line-height:1.15;font-weight:650}
.sc-kids{display:flex;flex-wrap:wrap;gap:6px}
.sc-kid,.sc-kidpick{display:inline-flex;align-items:center;gap:6px;padding:3px 10px 3px 3px;border-radius:99px;background:color-mix(in srgb,var(--c) 14%,#fff);font-size:13px;font-weight:600;border:1px solid color-mix(in srgb,var(--c) 30%,transparent)}
.sc-kid i,.sc-kidpick i,.sc-kid img,.sc-kidpick img{width:22px;height:22px;border-radius:50%;object-fit:cover;background:var(--c);color:#fff;font-style:normal;font-size:11px;display:grid;place-items:center}
.sc-kidpick{cursor:pointer;font:inherit;font-size:13px;font-weight:600;opacity:.55;background:transparent}
.sc-kidpick.on{opacity:1;background:color-mix(in srgb,var(--c) 16%,#fff)}
.sc-next{font-size:14px}
.sc-counts{display:flex;gap:6px;flex-wrap:wrap}
.sc-counts em{font-style:normal;font-size:12px;font-weight:700;padding:3px 9px;border-radius:99px;background:#f6e3da;color:#9e3418}
.sc-counts em.ok{background:#e3f1ea;color:#216b4c}
.sc-feed .sc-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:11px 4px;border:0;border-top:1px solid var(--line);background:none;font:inherit;color:inherit;cursor:pointer}
.sc-row-main{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.sc-tag{flex:0 0 auto;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:3px 8px;border-radius:8px;background:#efe8de;color:#5b5147}
.sc-tag.fee{background:#f6e3da;color:#9e3418}.sc-tag.form{background:#e9e2f3;color:#5a3d8a}.sc-tag.date{background:#e3eef6;color:#235b86}
.sc-dot{flex:0 0 auto;width:10px;height:10px;border-radius:50%}
.sc-add-row{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}
.sc-hero{border:1px solid var(--line);border-left:6px solid var(--h);border-radius:18px;background:var(--paper,#fff);padding:18px 20px;margin-bottom:16px}
.sc-hero-row{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;align-items:flex-end;margin-top:6px}
.sc-hero-main{flex:1 1 340px;min-width:0}
.sc-kindsel{border:0;background:none;font:inherit;font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--h);padding:0;cursor:pointer}
.sc-name{display:block;width:100%;border:0;background:none;font:inherit;font-size:30px;font-weight:650;line-height:1.15;padding:2px 0;margin:2px 0 10px;color:inherit;outline-offset:4px}
.sc-kidpicks{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.sc-quick{display:flex;flex-wrap:wrap;gap:8px}
.sc-q{display:inline-block;padding:11px 18px;border-radius:99px;background:var(--accent,#b8431f);color:#fff;font-weight:600;text-decoration:none;font-size:14px}
.sc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:16px;align-items:start}
.sc-sec{max-height:none!important;overflow:visible!important;margin:0}
.sc-sec h3 .muted{font-size:12px;font-weight:500;margin-left:6px}
.sc-line{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.sc-line.done b{text-decoration:line-through;color:var(--ink-3)}
.sc-line-main{flex:1;min-width:0}
.sc-line>div:first-child:not(.sc-line-main){flex:1;min-width:0}
.sc-line-btns{display:flex;gap:6px;align-items:center}
.sc-check{flex:0 0 auto;width:26px;height:26px;border-radius:8px;border:2px solid var(--line-2,#cfc5b8);background:#fff;color:#fff;font-weight:700;cursor:pointer;display:grid;place-items:center}
.sc-check.on{background:#2a7a6a;border-color:#2a7a6a}
.sc-form{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.sc-form input{flex:1 1 130px;min-width:0}.sc-form input.sm{flex:0 0 84px}.sc-form input[type=date]{flex:0 1 150px}
.sc-h4{margin:18px 0 4px;font-size:14px}
.late{font-style:normal;font-size:11px;font-weight:700;color:#fff;background:#b8431f;border-radius:6px;padding:1px 6px;margin-left:4px}
.sc-remove{margin-top:14px}
@media (max-width:700px){.sc-add-row{grid-template-columns:1fr}.sc-grid{grid-template-columns:1fr}.sc-name{font-size:25px}.sc-q{flex:1;text-align:center}}

/* Wall display: labelled button, lit when on */
.wall-btn{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 14px 0 12px;border-radius:12px;background:var(--paper);border:1px solid var(--line);color:var(--ink-2);font-weight:700;font-size:12px;letter-spacing:.1em;text-transform:uppercase;transition:.2s cubic-bezier(.32,.72,0,1);white-space:nowrap}
.wall-btn svg{width:18px;height:18px}
.wall-btn:hover{border-color:var(--line-2);color:var(--ink)}
.wall-state{font-size:10px;padding:2px 7px;border-radius:99px;background:#e9e2d8;color:#7a7066;letter-spacing:.08em}
body.wall .wall-btn{background:#b8431f;border-color:#b8431f;color:#fff;box-shadow:0 0 0 4px rgba(184,67,31,.22),0 8px 24px -6px rgba(184,67,31,.7);animation:wallglow 2.4s ease-in-out infinite}
body.wall .wall-state{background:#fff;color:#b8431f}
@keyframes wallglow{50%{box-shadow:0 0 0 7px rgba(184,67,31,.08),0 8px 24px -6px rgba(184,67,31,.7)}}
body.wall::before{content:"";position:fixed;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#e8a062,#b8431f);z-index:90;pointer-events:none}
.wall-tag{display:none;margin:2px 0 10px;padding:4px 9px;border-radius:99px;background:#b8431f;color:#fff;font-size:10px;font-weight:700;letter-spacing:.12em;text-align:center;line-height:1.25}
body.wall .wall-tag{display:block}
.brand span{letter-spacing:.09em;font-size:10.5px}
@media (max-width:900px){.wall-lbl{display:none}}

/* ---------- Lists page ---------- */
.ls-new{display:flex;gap:10px;margin:4px 0 10px}
.ls-new input{flex:1;min-width:0;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--paper,#fff);font:inherit}
.ls-ideas{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.ls-ideas button{border:1px dashed var(--line);background:none;border-radius:999px;padding:7px 14px;font:inherit;font-size:13px;color:var(--ink-3);cursor:pointer}
.ls-ideas button:hover{border-color:var(--accent,#b8431f);color:var(--accent,#b8431f)}
.ls-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px;align-items:start}
.ls-card{background:var(--paper,#fff);border:1px solid var(--line);border-radius:20px;padding:16px 16px 14px;box-shadow:0 8px 30px rgba(60,40,20,.05)}
.ls-card.all-done{opacity:.75}
.ls-head{display:flex;align-items:center;gap:12px}
.ls-ico{font-size:22px;width:42px;height:42px;border-radius:13px;background:var(--paper-2,#f3ede4);display:grid;place-items:center;flex:0 0 auto}
.ls-title{flex:1;min-width:0}.ls-title b{display:block;font-size:17px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ls-title span{font-size:13px;color:var(--ink-3)}
.ls-clear{border:0;background:none;color:var(--accent,#b8431f);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.ls-bar{height:5px;border-radius:99px;background:var(--paper-2,#efe8dd);margin:12px 0 6px;overflow:hidden}
.ls-bar i{display:block;height:100%;background:var(--accent,#b8431f);border-radius:99px;transition:width .35s cubic-bezier(.32,.72,0,1)}
.ls-items{margin-top:6px}
.ls-aisle{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3);margin:12px 0 4px}
.ls-empty{color:var(--ink-3);font-size:14px;padding:14px 4px}
.ls-add{display:flex;gap:8px;margin-top:10px;padding-top:12px;border-top:1px solid var(--line)}
.ls-add input{flex:1;min-width:0;padding:11px 14px;border:1px solid var(--line);border-radius:12px;background:var(--paper,#fff);font:inherit}
.ls-add select{max-width:110px;padding:0 8px;border:1px solid var(--line);border-radius:12px;background:var(--paper,#fff);font:inherit;font-size:13px}
@media (max-width:700px){.ls-grid{grid-template-columns:1fr}}

/* ---------- Food diary (private, age-tiered) ---------- */
.fx-wrap{display:grid;gap:16px}
.fx-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.fx-title{margin:0;font-size:20px}.fx-private{font-size:12.5px;color:var(--ink-3)}
.fx-date{display:flex;align-items:center;gap:6px}.fx-date b{min-width:74px;text-align:center}
.fx-lock{padding:26px;text-align:center;border:1px dashed var(--line);border-radius:18px}
.fx-sum{display:grid;gap:14px}
.fx-sum-full{grid-template-columns:150px 1fr;align-items:center}
.fx-sum-full .fx-groups{grid-column:1/-1}
.fx-ring{--p:0;width:140px;height:140px;border-radius:50%;background:conic-gradient(var(--accent,#b8431f) calc(var(--p)*1%),var(--paper-2,#efe8dd) 0);display:grid;place-items:center}
.fx-ring>div{width:108px;height:108px;border-radius:50%;background:var(--paper,#fff);display:grid;place-content:center;text-align:center}
.fx-ring b{font-size:24px;line-height:1}.fx-ring span{font-size:11.5px;color:var(--ink-3)}
.fx-goalline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}.fx-sp{flex:1}
.fx-pill{border:1px solid var(--line);background:none;border-radius:999px;padding:4px 12px;font:inherit;font-size:12.5px;cursor:pointer}
.fx-link{border:0;background:none;color:var(--accent,#b8431f);font:inherit;font-weight:600;cursor:pointer;padding:0}
.fx-macros{display:grid;gap:8px}
.fx-macros div{display:grid;grid-template-columns:70px 56px 1fr;align-items:center;gap:8px;font-size:13px}
.fx-macros span{color:var(--ink-3)}
.fx-macros i{height:6px;border-radius:99px;background:var(--paper-2,#efe8dd);position:relative;overflow:hidden}
.fx-macros i:after{content:"";position:absolute;inset:0 auto 0 0;width:var(--w);background:var(--c);border-radius:99px}
.fx-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:8px}
.fx-g{border:1px solid var(--line);border-radius:14px;padding:8px 10px;display:grid;gap:3px;justify-items:start;background:var(--paper,#fff)}
.fx-g.met{border-color:#2a7a6a;background:rgba(42,122,106,.07)}
.fx-g span{font-size:20px}.fx-g b{font-size:12.5px;font-weight:600}
.fx-g div{display:flex;gap:3px;flex-wrap:wrap}
.fx-dot{width:8px;height:8px;border-radius:50%;background:var(--paper-2,#e6ddcf);display:inline-block}
.fx-dot.on{background:#2a7a6a}.fx-dot.half{background:linear-gradient(90deg,#2a7a6a 50%,var(--paper-2,#e6ddcf) 50%)}
.fx-note{margin:4px 0 0}
.fx-meals{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.fx-chip{border:1px solid var(--line);background:var(--paper,#fff);border-radius:999px;padding:8px 14px;font:inherit;font-size:14px;cursor:pointer}
.fx-chip.on{background:var(--ink,#1c1915);color:#fff;border-color:transparent}
.fx-add form{display:flex;gap:8px}
.fx-add input{flex:1;min-width:0;padding:14px 16px;border:1px solid var(--line);border-radius:14px;font:inherit;background:var(--paper,#fff)}
.fx-hint{margin:8px 2px 0;font-size:13.5px}
.fx-recs{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:10px}
.fx-rec{border:1px solid var(--line);background:var(--paper,#fff);border-radius:12px;padding:6px 12px;font:inherit;font-size:13.5px;cursor:pointer;text-align:left}
.fx-rec small{display:block;color:var(--ink-3);font-size:11.5px}
.fx-pvs{display:grid;gap:8px;margin-top:10px}
.fx-pv{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;border:1px solid var(--line);border-radius:14px;background:var(--paper,#fff)}
.fx-pv.miss{border-style:dashed}.fx-pv small{display:block;color:var(--ink-3);font-size:12.5px}
.fx-pv-btns{display:flex;align-items:center;gap:10px}
.fx-x{border:0;background:none;color:var(--ink-3);cursor:pointer;font-size:15px}
.fx-go{justify-self:start}
.fx-list{display:grid;gap:14px}
.fx-sec h4{display:flex;justify-content:space-between;margin:0 0 6px;font-size:14px}
.fx-sec h4 span{color:var(--ink-3);font-weight:500}
.fx-row{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:10px 14px;margin-bottom:6px;border:1px solid var(--line);border-radius:14px;background:var(--paper,#fff);font:inherit;text-align:left;cursor:pointer}
.fx-row small{display:block;color:var(--ink-3);font-size:12.5px}.fx-row em{font-style:normal;color:var(--ink-3)}
.fx-empty{text-align:center;padding:12px}
.fx-credit{font-size:11.5px;color:var(--ink-3);margin:0}
.fx-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:10px}
.fx-tile{border:1px solid var(--line);background:var(--paper,#fff);border-radius:18px;padding:12px 6px;display:grid;gap:4px;justify-items:center;font:inherit;cursor:pointer;transition:transform .2s cubic-bezier(.32,.72,0,1)}
.fx-tile:active{transform:scale(.94)}
.fx-tile span{font-size:34px;line-height:1}.fx-tile b{font-size:12.5px;font-weight:600}
.fx-plate{display:grid;gap:8px;justify-items:center;padding:14px;border-radius:20px;background:var(--paper-2,#f6f0e6)}
.fx-plate-row{display:flex;gap:10px}
.fx-pi{font-size:24px;filter:grayscale(1);opacity:.35;transition:all .3s}.fx-pi.on{filter:none;opacity:1;transform:scale(1.15)}
.fx-stars{font-size:20px;text-align:center}.fx-stars small{display:block;font-size:13px;color:var(--ink-3)}
.fx-plate.big .fx-pi{font-size:34px}.fx-plate.big .fx-stars{font-size:30px}
.fx-little .fx-tiles{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}
.fx-little .fx-tile span{font-size:48px}.fx-little .fx-tile b{font-size:15px}
.fx-ask{margin:6px 0 0;font-size:20px;text-align:center}
.fx-eaten{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.fx-eat{border:0;background:var(--paper-2,#f1ece4);border-radius:14px;padding:6px 10px;display:grid;justify-items:center;cursor:pointer;font:inherit}
.fx-eat span{font-size:26px}.fx-eat small{font-size:11px}
.fx-tiny{text-align:center;font-size:13px}
.fx-edit-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
@media (max-width:700px){.fx-sum-full{grid-template-columns:1fr;justify-items:center}.fx-sum-full>*{width:100%}.fx-ring{justify-self:center;width:130px}.fx-tiles{grid-template-columns:repeat(3,1fr)}}

/* ---------- Chores page ---------- */
.ch-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:18px;align-items:start;margin-top:14px}
.ch-layout:has(.ch-side:empty),.ch-layout:not(:has(.ch-side)){grid-template-columns:1fr}
.ch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;align-items:start}
.ch-card{background:var(--paper,#fff);border:1px solid var(--line);border-radius:20px;padding:16px;box-shadow:0 8px 30px rgba(60,40,20,.05)}
.ch-card.all-done{opacity:.78}
.ch-card .chore-group-h{display:flex;align-items:center;gap:8px;font-size:17px}
.ch-card .chore-group-h i{width:12px;height:12px;border-radius:50%;flex:0 0 auto}
.ch-card .chore-group-h small{margin-left:auto;color:var(--ink-3);font-size:13px}
.ch-card .chore-row{border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;background:none;padding:10px 2px}
.ch-static{pointer-events:none;opacity:.7}
.ch-side{display:grid;gap:14px}
.ch-addcard h3{margin:0 0 10px;font-size:18px}
.ch-add{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ch-add input[name=text]{grid-column:1/-1}.ch-add button{grid-column:1/-1}
.ch-add input,.ch-add select{min-width:0;width:100%}
@media (max-width:900px){.ch-layout{grid-template-columns:1fr}}

/* Wall login: no way to turn the wall off or reach private areas */
body.is-wall-user .wall-btn,body.is-wall-user [data-view="people"],body.is-wall-user [data-view="settings"],body.is-wall-user .fab,body.is-wall-user #fab{display:none!important}

/* ---------- Corkboard of sticky notes ---------- */
.cork-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.cork{position:relative;min-height:560px;border-radius:22px;border:1px solid var(--line);background:
  radial-gradient(circle at 20% 15%,rgba(255,255,255,.55),transparent 55%),var(--paper-2,#f3ede4);
  background-image:radial-gradient(rgba(120,90,50,.09) 1px,transparent 1.4px);background-size:18px 18px;overflow:hidden}
.cork .sticky{position:absolute;width:260px;height:260px;min-height:0;padding:0;border-radius:6px 6px 18px 6px;display:flex;flex-direction:column;
  box-shadow:0 1px 1px rgba(0,0,0,.1),0 10px 22px rgba(60,40,20,.16);transform:rotate(var(--tilt,-.5deg));transition:box-shadow .2s,transform .2s cubic-bezier(.32,.72,0,1)}
.cork .sticky.lifted{box-shadow:0 18px 36px rgba(60,40,20,.28);transform:rotate(0) scale(1.03)}
.sticky-top{display:flex;align-items:center;justify-content:flex-end;gap:4px;height:34px;padding:0 8px;cursor:grab;touch-action:none;flex:0 0 auto;position:relative}
.sticky-top:active{cursor:grabbing}
.sticky-top .pin{position:absolute;left:50%;top:7px;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ff8f73,#b8341a 70%);box-shadow:0 2px 3px rgba(0,0,0,.3)}
.cork .sticky .x{position:static;opacity:.45;font-size:13px;width:26px;height:26px;border-radius:50%;line-height:1}
.cork .sticky .x:hover{opacity:.9;background:rgba(0,0,0,.07)}
.cork .sticky textarea{flex:1;min-height:0;height:auto;padding:4px 18px 0;overflow-y:auto;font-size:17px;line-height:1.5;-webkit-overflow-scrolling:touch}
.cork .sticky footer{padding:6px 18px 12px;margin:0}
.cork-empty{position:absolute;inset:0;display:grid;place-items:center;margin:0}
@media (max-width:700px){.cork .sticky{width:230px;height:230px}}
#lists-root{display:block!important}

.kc-name{font-size:clamp(34px,6vw,52px);font-weight:700;letter-spacing:-.03em;line-height:1.02}
.kc-name+.kc-count{font-size:18px;font-weight:500;opacity:.8;margin-top:6px}
.sc-line.past{opacity:.5}

.week-allday-label { font-size: 10px; color: var(--ink-3); padding: 6px 6px 0; text-align: right; border-top: 1px solid var(--line); }
.week-allday { border-left: 1px solid var(--line); border-top: 1px solid var(--line); padding: 3px; display: flex; flex-direction: column; gap: 3px; min-height: 8px; }
.week-chip { border: 0; border-radius: 6px; color: #fff; font-size: 11px; font-weight: 500; padding: 3px 6px; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week-block { box-sizing: border-box; }

/* Albums: big square cards you can drag into any order (like the board) */
.alb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;margin-top:16px}
.alb-card{position:relative;aspect-ratio:1/1;border-radius:22px;overflow:hidden;background:var(--paper-2,#eee);box-shadow:inset 0 0 0 1px var(--line),0 14px 30px -22px rgba(60,38,16,.45);transition:box-shadow .3s}
.alb-card.lifted{z-index:20;box-shadow:0 26px 50px -18px rgba(60,38,16,.55);transition:none;cursor:grabbing}
.alb-open{display:block;width:100%;height:100%;padding:0;border:0;background:none;cursor:pointer;position:relative;text-align:left}
.alb-open img{width:100%;height:100%;object-fit:cover;display:block}
.alb-open::after{content:"";position:absolute;inset:auto 0 0 0;height:55%;background:linear-gradient(to top,rgba(20,14,8,.72),transparent);pointer-events:none}
.alb-name{position:absolute;left:16px;right:16px;bottom:14px;z-index:2;color:#fff;display:flex;flex-direction:column;gap:2px}
.alb-name b{font-size:19px;font-weight:600;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.alb-name em{font-style:normal;font-size:13px;opacity:.85}
.alb-empty{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:6px;color:var(--ink-3);font-size:14px}
.alb-empty i{font-style:normal;font-size:44px;line-height:1;font-weight:300}
.alb-grip{position:absolute;top:10px;left:10px;z-index:3;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.82);color:var(--ink);font-size:20px;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;box-shadow:0 4px 12px -4px rgba(0,0,0,.35)}
body.wall .alb-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
@media (max-width:700px){.alb-grid{grid-template-columns:repeat(2,1fr);gap:12px}.photo-wall{grid-template-columns:repeat(2,1fr)}.alb-name b{font-size:16px}}

/* Grandparents page: roomy panels, clear headings, tick-to-share list */
.hp-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;align-items:start}
.hp-col{display:flex;flex-direction:column;gap:20px;min-width:0}
.hp-panel{max-height:none!important;overflow:visible!important;padding:26px 28px}
.hp-title{font-size:24px;font-weight:600;letter-spacing:-.015em;margin:0 0 4px;color:var(--ink)}
.hp-sub{margin:0 0 16px;color:var(--ink-2);font-size:15px;line-height:1.45}
.hp-name{font-size:38px;font-weight:600;letter-spacing:-.02em;margin:0;line-height:1.1}
.hp-profile .hp-card{gap:22px;margin-bottom:22px}
.hp-profile .hp-pic{width:128px;height:128px}
.hp-profile .hp-pic span{font-size:52px}
.hp-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.hp-profile .field input,.hp-profile .field textarea{font-size:17px;padding:13px 14px}
.hp-profile .field label{font-size:12px}
.hp-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.hp-tab{border:0;border-radius:999px;padding:11px 20px;font-size:16px;font-weight:600;background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line);cursor:pointer;min-height:44px}
.hp-tab.on{background:var(--accent);color:#fff;box-shadow:none}
.hp-list{display:flex;flex-direction:column}
.hp-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;border-top:1px solid var(--line)}
.hp-row:first-child{border-top:0}
.hp-row b{font-size:16px}
.hp-tick{flex:0 0 auto;width:44px;height:44px;border-radius:14px;border:2px solid var(--line);background:#fff;color:#fff;font-size:22px;font-weight:700;cursor:pointer;display:grid;place-items:center}
.hp-tick.on{background:var(--accent);border-color:var(--accent)}
@media (max-width:900px){.hp-layout{grid-template-columns:1fr}.hp-fields{grid-template-columns:1fr}.hp-panel{padding:20px}.hp-name{font-size:30px}}
body.wall .hp-title{font-size:30px}

.panel h2.hp-title{font-size:26px;font-weight:600;letter-spacing:-.015em;text-transform:none;color:var(--ink);margin:0 0 6px;font-family:inherit}
.panel h2.hp-name{font-size:40px;font-weight:600;letter-spacing:-.02em;text-transform:none;color:var(--ink);margin:0;line-height:1.1;font-family:inherit}
@media (max-width:900px){.panel h2.hp-name{font-size:32px}.panel h2.hp-title{font-size:23px}}
body.wall .panel h2.hp-title{font-size:32px}

/* 5-day weather outlook (Today) */
.wx-wrap{display:block}
.wx-wrap[hidden]{display:none}
.wx-row{display:grid;grid-template-columns:1.7fr repeat(5,1fr);gap:10px;align-items:stretch}
.wx-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:14px 8px;border-radius:20px;background:var(--panel,#fffaf3);box-shadow:inset 0 0 0 1px rgba(28,25,21,.06),0 1px 2px rgba(28,25,21,.04)}
.wx-lbl{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3,#8a7f74)}
.wx-ico{font-size:30px;line-height:1.15}
.wx-t{font-size:22px;font-weight:600;letter-spacing:-.02em;color:var(--ink,#1c1915)}
.wx-lo{font-size:12px;color:var(--ink-3,#8a7f74)}
.wx-today{background:linear-gradient(160deg,#fff3e6,#fde3cf);box-shadow:inset 0 0 0 1px rgba(194,77,31,.18);padding:18px 12px}
.wx-today .wx-lbl{color:#b8461a}
.wx-today .wx-ico{font-size:56px}
.wx-today .wx-t{font-size:40px}
.wx-today .wx-lo{font-size:14px}
@media (max-width:700px){.wx-row{grid-template-columns:repeat(5,1fr)}.wx-today{grid-column:1/-1;flex-direction:row;gap:14px;padding:14px}.wx-today .wx-ico{font-size:44px}.wx-today .wx-t{font-size:34px}.wx-day:not(.wx-today){padding:10px 4px}.wx-ico{font-size:24px}.wx-t{font-size:18px}}

/* locked plan items */
.nav-btn.locked,.bottomnav button.locked{opacity:.45}
.nav-btn[data-tier],.bottomnav button[data-tier]{position:relative}
.nav-btn.locked::after,.bottomnav button.locked::after{content:"";position:absolute;top:6px;right:10px;width:11px;height:11px;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8a93a' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2' fill='%23e8a93a'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E")}
.loc-hit.locked{opacity:.55}

/* Calendar always fits the screen width (iPad / wall): no sideways scroll */
.app > *, .stage, .cal-toolbar { min-width: 0; }
.stage { overflow-x: hidden; }
.ev-pill { max-width: 100%; }
@media (min-width: 901px) and (max-width: 1366px) { .day-cell { padding: 6px; border-radius: 12px; } .month-grid { gap: 5px; } .ev-pill { font-size: 10.5px; padding: 2px 5px; } }

/* Oct 2026 — first-run checklist */
.fr-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; }
.fr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.fr-head .section-label { margin: 0; }
.fr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fr-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.fr-list li:first-child { border-top: 0; }
.fr-tick { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: var(--fw-strong); background: var(--accent-soft); color: var(--accent); }
.fr-list li.done .fr-tick { background: var(--accent); color: #fff; }
.fr-txt { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.fr-txt b { font-weight: var(--fw-strong); color: var(--ink); font-size: 14px; }
.fr-txt span { font-size: 13px; color: var(--ink-2); }
.fr-list li.done .fr-txt b { text-decoration: line-through; color: var(--ink-2); }
.fr-list li.done .fr-txt span { display: none; }
.fr-list .tiny { flex: 0 0 auto; }

/* Grandparents card: tidy action buttons */
.hp-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.hp-actions .cta{width:auto;padding:12px 20px;font-size:15px;font-weight:700;line-height:1.2}
.hp-actions .cta.ghost.hp-danger{color:#a63a12;box-shadow:inset 0 0 0 1.5px #e6c1ae;background:transparent}
.hp-actions .cta.ghost.hp-danger:hover{background:#fdeee4}
.hp-actions.hp-bottom{margin-top:18px;padding-top:16px;border-top:1px solid var(--line-2,#ead9c6)}

/* each grandparent / helper has their own colour (--hc) */
.hp-tab{position:relative}
.hp-tab:not(.on){box-shadow:inset 0 0 0 2px var(--hc,var(--line))}
.hp-tab.on{background:var(--hc,var(--accent))}
.hp-layout .hp-tick.on{background:var(--hc,var(--accent));border-color:var(--hc,var(--accent))}
.hp-layout .hp-pic{border:3px solid var(--hc,var(--line))}
.hp-layout .hp-pic span{color:var(--hc,var(--ink-3))}
.hp-layout .hp-name{color:var(--hc,inherit)}

/* School page: balanced columns instead of a ragged grid with dead space.
   Cards flow down each column so short cards no longer leave holes. */
/* School: three deliberate columns (no CSS multicol: backdrop-filter cards vanish inside it) */
.sc-hero{margin-bottom:24px}
.sc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}
.sc-col{display:flex;flex-direction:column;gap:24px;min-width:0}
.sc-grid .sc-sec{margin:0;padding:26px 26px 24px;border-radius:28px}
.sc-sec h3{margin:0 0 16px;font-size:19px;letter-spacing:-.02em}
.sc-sec h3~h3{margin-top:30px}
.sc-sec h3 .muted{display:block;margin:4px 0 0;font-size:12.5px;line-height:1.4;font-weight:500}
.sc-sec .field{margin-bottom:16px}
.sc-sec .field:last-child{margin-bottom:0}
.sc-sec .sc-h4{margin:24px 0 12px;font-size:14px}
.sc-sec>p.muted{margin:0 0 4px}
.sc-form{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.sc-form input{flex:1 1 100%;min-width:0;height:46px;padding:0 16px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.72);font:inherit;font-size:15px;color:var(--ink);box-shadow:inset 0 1px 0 rgba(255,255,255,.9);transition:border-color .3s var(--ease),box-shadow .3s var(--ease)}
.sc-form input:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
.sc-form input.sm{flex:0 0 96px}
.sc-form input[type=date]{flex:1 1 150px}
.sc-form .tiny{flex:0 0 auto;height:46px;padding:0 22px;border-radius:999px;transition:transform .3s var(--ease)}
.sc-form .tiny:active{transform:scale(.97)}
.sc-sec .menu-photo{width:100%;border-radius:16px;margin-top:14px}
@media (max-width:1180px){.sc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){
  .sc-grid{display:flex;flex-direction:column;gap:16px}
  .sc-col{display:contents}
  .sc-s1{order:1}.sc-s2{order:2}.sc-s3{order:3}.sc-s4{order:4}.sc-s5{order:5}.sc-s6{order:6}
  .sc-grid .sc-sec{padding:22px 20px 20px;border-radius:24px}
}

/* Date and time fields: iOS renders empty ones as blank space, so give them a real box and a visible prompt */
.field input[type=date],.field input[type=time]{-webkit-appearance:none;appearance:none;display:block;width:100%;min-height:48px;box-sizing:border-box;text-align:left;background:#fff;color:var(--ink);font-size:16px}
.field input[type=date]::-webkit-date-and-time-value,.field input[type=time]::-webkit-date-and-time-value{text-align:left;min-height:1.4em}
.field input.tm:not(.has-val):not(:focus)::-webkit-datetime-edit{opacity:0}
.field input.tm:not(.has-val):not(:focus)::before{content:"Add a time";color:var(--ink-3);position:absolute;left:16px;top:50%;transform:translateY(-50%);pointer-events:none}
.field input.tm{position:relative}
/* Desktop: hiding the edit segments left nothing to type into, so show them as soon as the field is focused */
.field input.tm:not(.has-val):focus::-webkit-datetime-edit{opacity:1}

/* Weather strip: slim tiles, six across, icon and high side by side */
.wx-row{grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.wx-day{display:grid;grid-template-columns:auto auto;justify-content:center;align-items:center;column-gap:8px;row-gap:1px;padding:10px 8px 11px;border-radius:18px}
.wx-day .wx-lbl{grid-column:1/-1;text-align:center;font-size:10.5px}
.wx-day .wx-lo{grid-column:1/-1;text-align:center;font-size:11.5px}
.wx-ico,.wx-today .wx-ico{font-size:22px;line-height:1}
.wx-t,.wx-today .wx-t{font-size:20px;line-height:1.1}
.wx-today{padding:10px 8px 11px}
.wx-today .wx-lo{font-size:11.5px}
@media (max-width:700px){
  .wx-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .wx-today{grid-column:auto;flex-direction:initial;gap:0;padding:10px 8px 11px}
  .wx-day:not(.wx-today){padding:10px 8px 11px}
  .wx-ico,.wx-today .wx-ico{font-size:20px}
  .wx-t,.wx-today .wx-t{font-size:18px}
}

/* Today stands out a touch: warm tint, slightly larger numbers, ember ring */
.wx-today{background:linear-gradient(160deg,rgba(255,226,196,.95),rgba(255,176,128,.62))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8),inset 0 0 0 1.5px rgba(214,90,40,.5),0 18px 36px -22px rgba(214,90,40,.6)!important}
.wx-today .wx-t{font-size:23px}
.wx-today .wx-ico{font-size:25px}
.wx-today .wx-lbl{color:#b8461a;font-weight:700}
@media (max-width:700px){
  .wx-row{grid-template-columns:repeat(4,minmax(0,1fr))}
  .wx-today .wx-t{font-size:20px}
}

/* One size for every .cta, whether it's a <button>, <a> or <label> (anchors were inheriting the 16px body text, buttons the 13px browser default) */
.cta{font-size:15px;line-height:1.2;font-family:inherit}
.cta.sm{font-size:13px}

/* chat: obvious way back to the chat list on phones */
@media (max-width:900px){
  .chat-back{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;height:40px;padding:0 14px 0 10px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:14px;font-weight:600;color:var(--ink);cursor:pointer}
  .chat-back span{font-size:22px;line-height:1;margin-top:-2px}
  .chat-back em{font-style:normal;font-size:12px;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--accent);color:#fff;display:inline-grid;place-items:center}
}
/* More sheet: edit + reorder */
.more-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.more-head h2{margin:0}
.more-edit-btn{height:36px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:14px;font-weight:600;color:var(--accent-2);cursor:pointer}
.more-row{display:flex;align-items:center;gap:8px;padding:6px 6px 6px 14px;border-radius:12px;border:1px solid var(--line);background:var(--paper);font-size:14px}
.more-row span{flex:1}
.more-mv{width:44px;height:40px;border-radius:12px;border:1px solid var(--line);background:#fff;font-size:18px;line-height:1;cursor:pointer;color:var(--ink)}
.more-mv:disabled{opacity:.3;cursor:default}
.more-mv:active:not(:disabled){transform:scale(.94)}
.sheet-actions .cta.sm{margin-right:auto}
.more-sec{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);padding:10px 4px 2px;font-weight:600}
.sidenav.nav-custom .nav-kicker,.sidenav.nav-custom .spacer{display:none}
#notif-banner{white-space:nowrap;position:fixed;left:0;right:0;margin:0 auto;width:max-content;top:calc(env(safe-area-inset-top) + 76px);z-index:60;display:flex;align-items:center;gap:12px;max-width:calc(100vw - 24px);padding:8px 8px 8px 18px;border-radius:999px;background:rgba(28,24,20,.9);color:#fff;font-size:14px;box-shadow:0 18px 40px -16px rgba(30,16,4,.6);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
#notif-banner span{white-space:normal;line-height:1.25;font-size:13.5px}
#notif-banner .nb-on{white-space:nowrap;flex:0 0 auto;height:36px;padding:0 16px;border-radius:999px;background:linear-gradient(180deg,#ff8a56,#e0502a);color:#fff;font-weight:600;font-size:14px}
#notif-banner .nb-x{width:36px;height:36px;border-radius:50%;color:#fff;opacity:.7;font-size:14px}

/* weather: tiles are buttons now, plus the day-detail sheet */
button.wx-day{font:inherit;color:inherit;cursor:pointer;appearance:none;-webkit-appearance:none;text-align:center;transition:transform .35s cubic-bezier(.32,.72,0,1),box-shadow .35s}
button.wx-day:hover{transform:translateY(-2px)}
button.wx-day:active{transform:scale(.97)}
.wxd-top{display:flex;align-items:center;gap:14px;margin:6px 0 16px}
.wxd-emo{font-size:52px;line-height:1}
.wxd-hi{font-size:40px;letter-spacing:-.04em;font-weight:700}
.wxd-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}
.wxd-stat{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.7);border:1px solid var(--line)}
.wxd-stat span{font-size:12px;color:var(--ink-3);font-weight:600}
.wxd-stat b{font-size:19px;letter-spacing:-.02em}
.wxd-stat em{font-style:normal;font-size:12.5px;color:var(--ink-3)}
.wxd-h-label{font-size:13px;font-weight:600;margin-bottom:8px}
.wxd-hours{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.wxd-hr{flex:0 0 62px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:10px 4px;border-radius:16px;background:rgba(255,255,255,.7);border:1px solid var(--line)}
.wxd-hr span{font-size:12px;color:var(--ink-3);font-weight:600}
.wxd-hr i{font-style:normal;font-size:22px}
.wxd-hr b{font-size:16px}
.wxd-hr em{font-style:normal;font-size:11.5px;color:#2b6cb0}
/* notification banner: top on phones, bottom-left on wide screens so it never covers the page header */
@media (min-width:901px){#notif-banner{top:auto;bottom:24px;left:150px;right:auto;margin:0}}

/* unread chat badges */
.unread-pill,em.unread-pill{font-style:normal;display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#e5322d;color:#fff;font-size:12px;font-weight:700;line-height:1;vertical-align:middle;box-shadow:0 1px 3px rgba(229,50,45,.4)}
.chat-item b .unread-pill{margin-left:6px}
.chat-item:has(.unread-pill) span{color:var(--ink);font-weight:600}
.nav-btn[data-unread],.bottomnav button[data-unread]{position:relative}
.nav-btn[data-unread]::after,.bottomnav button[data-unread]::after{content:attr(data-unread);position:absolute;top:4px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#e5322d;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center;box-shadow:0 0 0 2px rgba(255,255,255,.9);pointer-events:none}

/* Add button lives in the top bar now (the floating one covered Send in chat and other bottom controls) */
.fab{display:none!important}
.topbar .top-add{flex:none;display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 16px 0 13px;border-radius:999px;background:var(--accent)!important;color:#fff!important;border:0!important;backdrop-filter:none!important;font-family:inherit;font-weight:500;font-size:14px;box-shadow:0 8px 18px -8px rgba(158,52,24,.55)}
.top-add:active{transform:scale(.95)}
.ta-plus{width:14px;height:14px;background:linear-gradient(#fff,#fff) center/100% 2px no-repeat,linear-gradient(#fff,#fff) center/2px 100% no-repeat}
@media (max-width:600px){
  .topbar .top-add{width:36px;height:36px;padding:0;justify-content:center;gap:0}
  .top-add .ta-lbl{display:none}
  .ta-plus{width:16px;height:16px;background:linear-gradient(#fff,#fff) center/100% 2.5px no-repeat,linear-gradient(#fff,#fff) center/2.5px 100% no-repeat}
}
body.is-wall-user .top-add,body.wall .top-add{display:none!important}
@media print{.top-add{display:none!important}}

/* Chat: fixed-height panel so the thread scrolls inside it (and opens on the newest message) instead of growing the page */
.chat-app{height:min(74vh,760px)}
@media (max-width:900px){
  .chat-app{height:calc(100dvh - 255px - var(--safe-b,0px));min-height:340px}
}
