:root {
  --paper: #F7F3EB;
  --card: #FFFBF4;
  --ink: #241E18;
  --muted: #6B645B;
  --line: #E4DDD2;
  --sage: #2C6E62;
  --sage-2: #1F5249;
  --sage-soft: #DCEAE6;
  --clay: #C46B4A;
  --plum: #5C4A7A;
  --gold: #B08900;
  --ok: #2F7D4A;
  --danger: #9B2335;
  --shadow: 0 10px 30px rgba(36, 30, 24, 0.07);
  --radius: 18px;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --kid: "Nunito", "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { font-size: 17px; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
  min-height: 100vh;
}
img { max-width: 100%; }
a { color: var(--sage-2); }
button, input, select, textarea { font: inherit; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 20; }
.display {
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 .4rem;
  line-height: 1.15;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 650; letter-spacing: -0.02em; }
h1 { font-size: 1.8rem; margin: 0 0 .3rem; }
h2 { font-size: 1.25rem; margin: 0 0 .6rem; }
h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 .35rem;
}
.lede { color: var(--muted); margin: 0 0 1.2rem; max-width: 40rem; }
.muted { color: var(--muted); }
.tiny { font-size: .85rem; color: var(--muted); }

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-type { font-family: var(--serif); font-weight: 650; font-size: 1.05rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand-lg { margin-bottom: 1.4rem; }
.brand-mark { display: flex; }

.topbar {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  position: sticky; top: 0; z-index: 8;
}
.topbar-family { margin: 0; color: var(--muted); flex: 1; }
.topbar-actions { display: flex; gap: .8rem; align-items: center; }
.topbar-actions form { margin: 0; }
.text-link {
  background: none; border: 0; color: var(--sage-2); cursor: pointer;
  text-decoration: none; font-weight: 600; padding: 0;
}
.shell {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: calc(100vh - 58px);
}
.sidenav {
  padding: 1.4rem 1rem 5rem;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .2rem;
}
.sidenav a {
  text-decoration: none; color: var(--ink);
  padding: .45rem .7rem; border-radius: 10px; font-weight: 600;
}
.sidenav a:hover, .sidenav a.is-on { background: var(--sage-soft); color: var(--sage-2); }
.sidenav-label {
  margin: 1.2rem 0 .2rem; padding: 0 .7rem;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.main { padding: 1.6rem 1.6rem 6rem; max-width: 1180px; }
.parent-hero { align-items: flex-start; }
.parent-hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.parent-dash { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 1rem; margin-top: 1.1rem; }
.parent-kids { margin-top: 1.1rem; }
.parent-kid-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.parent-kid-card {
  display: flex; gap: .8rem; align-items: center;
  text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 16px; padding: .85rem 1rem;
  background: #FFFcf7;
}
.parent-kid-card:hover { border-color: var(--sage); }
.fridge {
  max-width: 960px;
  margin: 1.25rem auto 2rem;
  background: #fff;
  padding: 1.25rem 1.5rem 2rem;
  color: var(--ink);
}
.fridge-head { margin-bottom: 1.1rem; }
.fridge-range { margin: 0 0 .35rem; font-weight: 600; }
.fridge-kid { margin-top: 1.35rem; break-inside: avoid; }
.fridge-kid h2 { margin: 0 0 .55rem; font-size: 1.35rem; }
.fridge-houses {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .35rem;
  list-style: none;
  margin: 0 0 .75rem;
  padding: 0;
}
.fridge-houses li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .35rem .4rem;
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.25;
  min-width: 0;
}
.fridge-houses strong {
  display: block;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 800;
}
.fridge-houses .is-today { background: #f3f8f6; border-color: var(--sage); }
.fridge-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 .9rem; max-width: 100%; }
.fridge-chart, .fridge-once {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0 0 .9rem;
  font-size: .9rem;
}
.fridge-chart th, .fridge-chart td,
.fridge-once th, .fridge-once td {
  border: 1px solid var(--line);
  padding: .38rem .4rem;
  vertical-align: middle;
}
.fridge-chart thead th, .fridge-once thead th {
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  background: #faf7f2;
}
.fridge-col-chore { width: auto; }
.fridge-col-pay { width: 12%; }
.fridge-col-day { width: 7.2%; }
.fridge-chore { text-align: left; font-weight: 650; overflow-wrap: break-word; }
.fridge-emoji { font-weight: 400; }
.fridge-where { font-weight: 600; color: var(--muted); font-size: .78rem; }
.fridge-pay {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
  width: 12%;
}
.fridge-day {
  text-align: center;
  line-height: 1.15;
}
.fridge-dow { display: block; font-size: .68rem; letter-spacing: .04em; }
.fridge-num { display: block; font-size: .95rem; color: var(--ink); font-weight: 800; text-transform: none; letter-spacing: 0; }
.fridge-cell { text-align: center; height: 2rem; }
.fridge-cell.is-today, .fridge-day.is-today { background: #f3f8f6; }
.fridge-off { background: repeating-linear-gradient(-45deg, #faf7f2, #faf7f2 4px, #f3eee6 4px, #f3eee6 6px); }
.fridge-tick {
  display: inline-grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  border: 1.6px solid var(--ink);
  border-radius: 3px;
  background: #fff;
  vertical-align: middle;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}
.fridge-tick.is-done {
  background: var(--sage);
  border-color: var(--sage-2);
  color: #fff;
}
.fridge-sec th {
  text-align: left;
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sage-2);
  background: var(--sage-soft);
  padding: .32rem .45rem;
  font-weight: 800;
}
.fridge-once {
  width: auto;
  min-width: 24rem;
  max-width: 100%;
  table-layout: auto;
}
.fridge-once .fridge-chore { padding-right: 1.25rem; }
.fridge-once .fridge-pay { width: 4.4rem; }
.fridge-once-ticks { text-align: center; width: 2.8rem; }
.fridge-scroll .fridge-chart { margin-bottom: 0; }
.bottom-nav { display: none; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.card + .card, .stack > * + * { margin-top: 1rem; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.space { justify-content: space-between; }

.btn, .btn-secondary, .btn-ghost, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: .65rem 1.15rem;
  font-weight: 700; text-decoration: none; border: 0; cursor: pointer;
}
.btn { background: var(--sage); color: #fff; }
.btn:hover { background: var(--sage-2); }
.btn-secondary { background: var(--sage-soft); color: var(--sage-2); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-danger { background: #F8E8E8; color: var(--danger); }
.btn-lg { padding: .9rem 1.4rem; font-size: 1.05rem; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; }
.field span, .field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 12px;
  padding: .7rem .8rem; background: #fff; color: var(--ink);
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--sage-soft); border-color: var(--sage);
}
.hint { font-size: .82rem; color: var(--muted); font-weight: 400; }
.check {
  display: flex; gap: .5rem; align-items: flex-start;
  font-weight: 500; margin: .4rem 0;
}

.flash-stack { display: grid; gap: .5rem; margin-bottom: 1rem; }
.flash { padding: .75rem 1rem; border-radius: 12px; font-weight: 600; }
.flash-success { background: #E5F3EA; color: var(--ok); }
.flash-error { background: #F8E8E8; color: var(--danger); }
.flash-info { background: var(--sage-soft); color: var(--sage-2); }

.banner {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; border-radius: var(--radius);
  background: linear-gradient(135deg, #2C6E62, #3D8B7C);
  color: #fff;
}
.banner h1, .banner p { color: #fff; margin: 0; }
.banner.house-2 { background: linear-gradient(135deg, #5C4A7A, #7A63A3); }
.owe {
  font-family: var(--serif); font-size: 2rem; font-weight: 650; margin: .2rem 0;
}

.log-nav {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  margin: .6rem 0;
}
.log-nav input[type="date"] {
  border: 1px solid var(--line); border-radius: 10px; padding: .4rem .55rem; font: inherit;
}
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; }
.week + .week { margin-top: .35rem; }
.week form { margin: 0; }
.week-row-label {
  margin: .55rem 0 .3rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
}
.week-row-label:first-of-type { margin-top: 0; }
.fortnight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.fortnight fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0;
  padding: .7rem 1rem .85rem;
}
.fortnight legend {
  font-family: var(--serif);
  font-weight: 650;
  padding: 0 .35rem;
}
.day-tile {
  border: 1px solid var(--line); background: var(--card); border-radius: 12px;
  padding: .5rem .3rem; text-align: center; cursor: pointer;
  font: inherit; color: inherit; width: 100%;
}
.day-tile.is-today { outline: 2px solid var(--sage); }
.day-tile .d { font-weight: 700; }
.day-tile .h { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--sage-soft); color: var(--sage-2);
  border-radius: 999px; padding: .2rem .65rem; font-size: .85rem; font-weight: 700;
  text-decoration: none;
}
.chip-gold { background: #F8EFC8; color: #7A5B00; }
.chip-plum { background: #EDE7F5; color: var(--plum); }

.kid-row {
  display: flex; align-items: center; gap: .8rem;
  padding: .75rem 0; border-bottom: 1px solid var(--line);
}
.kid-row:last-child { border-bottom: 0; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.2rem; flex: none;
  background: var(--sage-soft);
}
.progress-mini {
  height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; flex: 1;
}
.progress-mini span { display: block; height: 100%; background: var(--sage); }

table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { text-align: left; padding: .55rem .4rem; border-bottom: 1px solid var(--line); }
table.data th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.empty {
  text-align: center; padding: 2rem 1rem; color: var(--muted);
}
.money { font-variant-numeric: tabular-nums; font-weight: 700; }

.assign-grid { display: grid; gap: .35rem; }
.assign-grid label { display: flex; gap: .4rem; font-size: .9rem; }

.catalog-page .lede { margin-bottom: .75rem; }
.catalog-add {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0 0 1rem;
}
.catalog-add > summary {
  cursor: pointer;
  list-style: none;
  padding: .65rem .9rem;
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.catalog-add > summary::-webkit-details-marker { display: none; }
.catalog-add > summary::before {
  content: '+';
  display: inline-grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 6px;
  background: var(--sage-soft);
  color: var(--sage-2);
  font-family: var(--sans);
  font-weight: 800;
  font-size: .95rem;
  line-height: 1;
}
.catalog-add[open] > summary::before { content: '–'; }
.catalog-add[open] > summary { border-bottom: 1px solid var(--line); }
.catalog-add-form {
  display: grid;
  grid-template-columns: 1.5fr 4.5rem 1fr 1fr 6.5rem;
  gap: .45rem .55rem;
  align-items: end;
  padding: .7rem .9rem .85rem;
}
.catalog-add-form .field { margin-bottom: 0; }
.catalog-add-form .field input,
.catalog-add-form .field select {
  padding: .45rem .55rem;
  border-radius: 10px;
}
.catalog-add-emoji { max-width: 4.5rem; }
.catalog-add-details { grid-column: 1 / -1; }
.catalog-add-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: center;
  justify-content: space-between;
}
.catalog-add-actions .check { margin: 0; }
.catalog-sec {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .8rem;
  margin: .9rem 0 .45rem;
}
.catalog-sec h2 { margin: 0; font-size: 1.12rem; }
.catalog-sec .tiny { margin: 0; }
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}
.catalog-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .55rem .65rem .6rem;
}
.catalog-card.is-off { background: #f4f0e8; }
.catalog-edit { display: flex; flex-direction: column; gap: .3rem; }
.catalog-id, .catalog-meta {
  display: flex;
  gap: .3rem;
  align-items: center;
}
.catalog-edit input,
.catalog-edit select,
.catalog-due input,
.catalog-due select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .32rem .45rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
}
.catalog-edit input:focus,
.catalog-edit select:focus,
.catalog-due input:focus,
.catalog-due select:focus {
  outline: 2px solid var(--sage-soft);
  border-color: var(--sage);
}
.catalog-edit input[name="emoji"] { width: 2.7rem; flex: none; text-align: center; }
.emoji-wrap { position: relative; display: inline-block; flex: none; }
.catalog-add-emoji .emoji-wrap { display: block; }
.emoji-pop {
  position: absolute;
  z-index: 20;
  left: 0;
  top: calc(100% + 4px);
  width: 16.5rem;
  max-height: 12rem;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: .15rem;
  padding: .4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.emoji-pop[hidden] { display: none; }
.emoji-pop button {
  border: 0;
  background: transparent;
  border-radius: 8px;
  font-size: 1.15rem;
  line-height: 1.6;
  cursor: pointer;
  padding: .1rem;
}
.emoji-pop button:hover { background: var(--sage-soft); }
.catalog-del { color: var(--danger); }
.catalog-edit input[name="title"] { flex: 1; min-width: 0; font-weight: 650; }
.catalog-edit select[name="repeat_kind"] { width: 8.4rem; flex: none; }
.catalog-amt {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  color: var(--muted);
  font-weight: 700;
  font-size: .85rem;
}
.catalog-edit input[name="amount"] { width: 4.2rem; flex: none; font-variant-numeric: tabular-nums; }
.catalog-due {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  align-items: center;
  width: 100%;
}
.catalog-due label {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  margin: 0;
  font-size: .72rem;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
}
.catalog-due input[type=time] { width: 7.5rem; }
.catalog-due input[type=date] { width: 9.5rem; }
.catalog-due select { width: 8.2rem; }
.catalog-add-form .catalog-due { grid-column: 1 / -1; }
.catalog-details { width: 100%; }
.catalog-card .btn,
.catalog-card .btn-secondary,
.catalog-card .btn-ghost,
.catalog-add .btn {
  padding: .32rem .7rem;
  font-size: .82rem;
  flex: none;
}
.catalog-assign {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .55rem;
  align-items: center;
  padding-top: .4rem;
  border-top: 1px solid var(--line);
}
.catalog-assign label {
  display: inline-flex;
  gap: .28rem;
  align-items: center;
  font-size: .78rem;
  font-weight: 600;
  margin: 0;
}
.catalog-assign .btn-ghost { margin-left: auto; }

.chore-card {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.chore-card:last-child { border-bottom: 0; }
.chore-meta { flex: 1; }
.chore-actions { display: flex; gap: .4rem; }

.locked-note {
  background: #F8EFC8; color: #7A5B00; padding: .8rem 1rem; border-radius: 12px; font-weight: 600;
}

.donut-wrap { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.donut {
  width: 112px; height: 112px; border-radius: 50%; flex: none;
  background: conic-gradient(#2C6E62 0 50%, #C9A227 50% 90%, #C46B4A 90% 100%);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%);
  mask: radial-gradient(circle, transparent 52%, #000 54%);
}
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35rem; }
.legend p { margin: .2rem 0; }

.recap {
  width: 100%; min-height: 180px; font-family: ui-monospace, Consolas, monospace;
  font-size: .92rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem;
}

.auth-wrap {
  max-width: 440px; margin: 0 auto; padding: 3rem 1.2rem 4rem;
}
.auth-wide { max-width: 720px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 1.5rem; box-shadow: var(--shadow); }
.choice-grid { display: grid; gap: 1rem; }
.choice {
  display: block; padding: 1.2rem; border-radius: 18px; border: 1px solid var(--line);
  background: var(--card); text-decoration: none; color: var(--ink);
}
.choice:hover { border-color: var(--sage); }
.choice h2 { margin-bottom: .25rem; }
.split-auth { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }

.req { list-style: none; padding: 0; }
.req li { padding: .35rem 0; }
.ok { color: var(--ok); font-weight: 700; }
.bad { color: var(--danger); font-weight: 700; }

/* Kid */
.is-kid {
  font-family: var(--kid);
  font-size: 18px;
  background:
    radial-gradient(1200px 500px at 10% -10%, #e7f0ea 0%, transparent 55%),
    #F3EEE4;
}
.kid-app { min-height: 100vh; }
.kid-rail { display: none; }
.kid-stage { max-width: 1120px; margin: 0 auto; }
.kid-top {
  padding: 1.1rem 1.4rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.kid-hello { font-weight: 800; font-size: 1.7rem; margin: 0; }
.kid-main { padding: 1rem 1.4rem 7rem; }
.kid-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--card); border-top: 1px solid var(--line);
  padding: .45rem .6rem calc(.45rem + env(safe-area-inset-bottom));
  z-index: 9;
}
.kid-nav a, .kid-nav button {
  background: none; border: 0; font: inherit; font-weight: 800;
  text-decoration: none; color: var(--muted); padding: .7rem; cursor: pointer;
  text-align: center;
}
.kid-nav a.is-on { color: var(--sage-2); }
.kid-dash {
  display: grid; grid-template-columns: auto 1fr 1fr;
  gap: 1rem; margin-bottom: 1.2rem; align-items: stretch;
}
.kid-dash-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 1rem 1.15rem; box-shadow: var(--shadow);
}
.kid-dash-progress { display: grid; place-items: center; min-width: 150px; }
.kid-dash-value { font-weight: 800; font-size: 1.35rem; margin: .15rem 0 .35rem; }
.kid-board {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; align-items: start;
}
.kid-col {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 1rem; box-shadow: var(--shadow);
}
.kid-col-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
.kid-col-head h2 { margin: 0; font-size: 1.2rem; }
.kid-col .js-chore, .kid-col .check-big { max-width: 100%; }
.kid-plan-top { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem; align-items: start; margin-bottom: 1rem; }
.kid-money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.freq { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); }
.kid-tabs { display: flex; gap: .4rem; }
.kid-tabs a {
  flex: 1; text-align: center; text-decoration: none; color: var(--ink);
  background: var(--card); border: 2px solid var(--line); border-radius: 999px;
  padding: .55rem .8rem; font-weight: 800; font-size: 1rem;
}
.kid-tabs a.is-on { border-color: var(--sage); background: #E8F3EF; }
.kid-earn { margin: 0; }
.kid-earn-amt { font-size: 2rem; font-weight: 800; margin: .2rem 0; color: var(--gold); }
.kid-slider { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; font-weight: 800; }
.kid-slider input[type=range] { width: 100%; accent-color: var(--sage); height: 2rem; }
.kid-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .45rem; margin: 0 0 1.1rem; }
.kid-week-day {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  text-decoration: none; color: var(--ink); background: var(--card);
  border: 2px solid var(--line); border-radius: 14px; padding: .55rem .2rem; font-size: .78rem;
}
.kid-week-day strong { font-size: 1.15rem; }
.kid-week-day em { font-style: normal; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kid-week-day.is-on, .kid-month-day.is-on { border-color: var(--sage); background: #E8F3EF; }
.kid-week-day.is-today, .kid-month-day.is-today { outline: 2px solid var(--gold); }
.kid-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; max-width: 520px; margin-bottom: 1rem; }
.kid-month-h { text-align: center; font-size: .75rem; font-weight: 800; color: var(--muted); }
.kid-month-day {
  text-align: center; text-decoration: none; color: var(--ink); font-weight: 800;
  background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: .5rem 0;
}
.ring-box { display: grid; justify-items: center; position: relative; }
.ring-box strong { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 1.15rem; }
.ring { transform: rotate(-90deg); }
.check-big {
  display: flex; gap: .7rem; align-items: center;
  width: 100%; text-align: left;
  background: #FFFcf7; border: 2px solid var(--line);
  border-radius: 16px; padding: .7rem .8rem;
  font-weight: 800; cursor: pointer; margin-bottom: .5rem;
  font-size: 1.02rem; line-height: 1.25;
}
.check-big.is-done { border-color: var(--sage); background: #E8F3EF; }
.check-big.is-locked { opacity: .55; cursor: not-allowed; }
.check-big.is-missed { opacity: .55; }
.box {
  width: 30px; height: 30px; border-radius: 9px; border: 3px solid var(--sage);
  flex: none; display: grid; place-items: center; color: var(--sage); font-size: .95rem;
}
.pay-tag { margin-left: auto; color: var(--gold); font-size: .95rem; white-space: nowrap; }
.kid-house { font-weight: 800; color: var(--sage-2); margin: 0 0 .8rem; }
.chore-line { display: flex; gap: .4rem; align-items: stretch; margin-bottom: .5rem; }
.chore-line .js-chore { flex: 1; min-width: 0; }
.chore-line .check-big { margin-bottom: 0; }
.speak {
  flex: none; border: 2px solid var(--line); background: #fff;
  border-radius: 14px; font: inherit; font-weight: 800; font-size: .8rem;
  padding: 0 .65rem; cursor: pointer; color: var(--sage-2);
}
.kid-handoff {
  background: #F8EFC8; color: #7A5B00; border-radius: 16px;
  padding: .8rem 1rem; margin-bottom: 1rem; font-weight: 700;
}
.kid-handoff p { margin: .2rem 0; }
.kid-tour {
  position: fixed; inset: 0; background: rgba(36,30,24,.45);
  display: grid; place-items: center; z-index: 30; padding: 1rem;
}
.kid-tour-card {
  background: var(--card); border-radius: 24px; padding: 1.4rem 1.5rem;
  max-width: 420px; width: 100%; box-shadow: var(--shadow);
  font-weight: 800;
}
@media (min-width: 960px) {
  .is-kid { font-size: 17px; }
  .kid-app { display: grid; grid-template-columns: 200px 1fr; }
  .kid-rail {
    display: flex; flex-direction: column; gap: .35rem;
    padding: 1.4rem 1rem; border-right: 1px solid var(--line); background: rgba(255,251,244,.7);
  }
  .kid-rail .brand-type { margin: 0 0 1rem .4rem; }
  .kid-rail a {
    text-decoration: none; color: var(--ink); font-weight: 800;
    padding: .65rem .8rem; border-radius: 12px;
  }
  .kid-rail a.is-on, .kid-rail a:hover { background: var(--sage-soft); color: var(--sage-2); }
  .kid-nav { display: none; }
  .kid-main { padding: 1rem 1.6rem 2.4rem; }
  .kid-stage { max-width: none; }
}
@media (max-width: 900px) {
  .kid-dash, .kid-board, .kid-plan-top, .kid-money-grid, .parent-dash, .parent-kid-grid { grid-template-columns: 1fr; }
  .is-kid { font-size: 20px; }
  .check-big { padding: .9rem 1rem; font-size: 1.12rem; }
}
.kid-auth-wrap { max-width: 480px; margin: 0 auto; padding: 2.5rem 1.1rem; }
.kid-auth-wrap .field input { font-size: 1.25rem; min-height: 52px; }
.kid-auth-foot { margin-top: 2rem; text-align: center; }
.kid-logo { font-family: var(--serif); font-size: 1.55rem; font-weight: 650; margin: 0 0 1rem; letter-spacing: -0.02em; }
.kid-pick { display: grid; gap: .8rem; }
.kid-pick button {
  font: inherit; font-weight: 800; font-size: 1.3rem;
  padding: 1.1rem; border-radius: 20px; border: 2px solid var(--line);
  background: var(--card); cursor: pointer; display: flex; gap: .8rem; align-items: center;
}
.confetti-canvas {
  position: fixed; inset: 0; pointer-events: none; z-index: 40;
}
.jar {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .9rem; margin-top: .7rem;
}
.jar-bar { height: 12px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: .4rem; }
.jar-bar span { display: block; height: 100%; background: var(--gold); }

.codes {
  background: #fff; border: 1px dashed var(--sage); border-radius: 14px; padding: 1rem; margin-bottom: 1rem;
}
.kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.receipt {
  max-width: 640px; margin: 2rem auto; background: #fff;
  border: 1px solid var(--line); padding: 2rem; border-radius: 8px;
}
.receipt h1 { font-size: 1.6rem; }
.why { background: var(--paper); padding: 1rem; border-radius: 10px; }

.print-bar { display: flex; justify-content: space-between; padding: 1rem 1.5rem; }

@media (max-width: 700px) {
  .fridge { padding: 1rem .75rem 2rem; margin: .6rem auto 1.5rem; }
  .fridge-chart, .fridge-once { font-size: .78rem; }
  .fridge-chart th, .fridge-chart td,
  .fridge-once th, .fridge-once td { padding: .28rem .16rem; }
  .fridge-col-day { width: 8%; }
  .fridge-col-pay, .fridge-pay { width: 14%; }
  .fridge-once { width: 100%; min-width: 0; table-layout: fixed; }
  .fridge-once-ticks { width: 16%; }
  .fridge-tick { width: .85rem; height: .85rem; }
  .fridge-houses { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fridge-houses li { font-size: .62rem; padding: .28rem .2rem; }
  .fridge-houses strong { font-size: .72rem; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidenav { display: none; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0;
    background: var(--card); border-top: 1px solid var(--line);
    padding: .3rem .3rem calc(.3rem + env(safe-area-inset-bottom));
    z-index: 9;
  }
  .bottom-nav a {
    text-align: center; text-decoration: none; color: var(--muted);
    font-size: .72rem; font-weight: 700; padding: .35rem 0;
  }
  .bottom-nav a.is-on { color: var(--sage-2); }
  .nav-ico { display: block; font-size: 1rem; }
  .grid-2, .grid-3, .catalog-grid, .fortnight { grid-template-columns: 1fr; }
  .catalog-add-form { grid-template-columns: 1fr 1fr; }
  .catalog-add-emoji { max-width: none; }
  .catalog-add-details { grid-column: 1 / -1; }
  .topbar-family { display: none; }
  .main { padding: 1.1rem 1rem 6.5rem; }
}
@media print {
  .no-print, .print-bar, .bottom-nav, .sidenav, .topbar { display: none !important; }
  body { background: #fff; }
  .receipt { border: 0; box-shadow: none; margin: 0; }
  @page { margin: 0.45in; size: letter; }
  .fridge { max-width: none; margin: 0; padding: 0; }
  .fridge-kid { break-inside: avoid; }
  .fridge-chart, .fridge-once { font-size: 9.5pt; }
  .fridge-tick { width: 12pt; height: 12pt; border-width: 1.5pt; }
  .fridge-tick.is-done { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .fridge-cell { height: 22pt; }
  .fridge-cell.is-today, .fridge-day.is-today, .fridge-houses .is-today { background: #eef5f2; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .fridge-off { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .fridge-sec th { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .fridge-houses { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .fridge-houses li { border-radius: 6px; }
  .fridge-scroll { overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Operator console */
.is-ops, .is-ops-auth {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background: #11100e;
  color: #f4efe6;
}
.is-ops h1, .is-ops h2, .is-ops-auth h1 { font-family: "IBM Plex Serif", Georgia, serif; color: #f4efe6; }
.is-ops a { color: #e2c56a; }
.ops-auth { max-width: 440px; margin: 0 auto; padding: 4rem 1.2rem; }
.ops-kicker { letter-spacing: .16em; text-transform: uppercase; font-size: .72rem; color: #a39b8c; margin: 0 0 .5rem; }
.ops-card, .ops-panel {
  background: #1c1a17; border: 1px solid #2e2a24; border-radius: 18px; padding: 1.3rem 1.4rem;
}
.ops-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.ops-rail {
  background: #161412; border-right: 1px solid #2e2a24;
  padding: 1.4rem 1rem; display: flex; flex-direction: column; gap: .25rem;
}
.ops-mark { font-family: "IBM Plex Serif", Georgia, serif; font-weight: 600; margin: 0 0 1.2rem .4rem; }
.ops-mark span { color: #e2c56a; font-size: .8rem; letter-spacing: .14em; }
.ops-rail a {
  color: #f4efe6; text-decoration: none; font-weight: 600;
  padding: .55rem .75rem; border-radius: 10px;
}
.ops-rail a.is-on, .ops-rail a:hover { background: #2a261f; color: #e2c56a; }
.ops-out { margin-top: auto; }
.ops-out button {
  background: none; border: 0; color: #a39b8c; cursor: pointer; font: inherit; font-weight: 600; padding: .55rem .75rem;
}
.ops-top { padding: 1rem 1.6rem; border-bottom: 1px solid #2e2a24; color: #a39b8c; font-size: .88rem; }
.ops-main { padding: 1.5rem 1.6rem 3rem; max-width: 1100px; }
.ops-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 1rem 0 1.4rem; }
.ops-stats div { background: #1c1a17; border: 1px solid #2e2a24; border-radius: 16px; padding: 1rem; }
.ops-stats span { display: block; color: #a39b8c; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.ops-stats strong { font-size: 1.8rem; }
.ops-table { width: 100%; border-collapse: collapse; }
.ops-table th, .ops-table td { text-align: left; padding: .55rem .4rem; border-bottom: 1px solid #2e2a24; }
.ops-table th { color: #a39b8c; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.ops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ops-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid #2e2a24; }
.ops-secret { font-family: ui-monospace, Consolas, monospace; font-size: 1.1rem; letter-spacing: .08em; }
.ops-warn { border-color: #e2c56a; }
.pill { display: inline-block; border-radius: 999px; padding: .12rem .55rem; font-size: .78rem; font-weight: 700; }
.pill-active { background: #1e3a2a; color: #8fd4a8; }
.pill-disabled { background: #3a1e1e; color: #f0a3a3; }
.is-ops .field span, .is-ops-auth .field span { color: #d8d0c4; }
.is-ops .field input, .is-ops .field select, .is-ops-auth .field input {
  background: #11100e; color: #f4efe6; border-color: #3a342c;
}
.is-ops .lede, .is-ops-auth .lede { color: #c4bbae; }
@media (max-width: 860px) {
  .ops-shell, .ops-stats, .ops-grid { grid-template-columns: 1fr; }
  .ops-rail { flex-direction: row; flex-wrap: wrap; }
}
