/* mom.hendora.net — warm, bright, big. Every tap target is at least 48px;
   inputs are 16px+ so iPhones don't zoom; the tab bar sits above the home bar. */
:root {
  --bg: #fff7fb;
  --card: #ffffff;
  --ink: #2b2140;
  --muted: #6f6485;
  --line: #eadff0;
  --accent: #e8457a;      /* buttons, active tab */
  --accent-ink: #ffffff;
  --good: #16a34a;
  --bad: #dc2626;
  --shadow: 0 2px 10px rgba(80, 40, 90, 0.08);
  --r: 18px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent; overflow-x: clip;
}
main { padding: calc(env(safe-area-inset-top, 0px) + 12px) calc(env(safe-area-inset-right, 0px) + 16px) calc(env(safe-area-inset-bottom, 0px) + 24px) calc(env(safe-area-inset-left, 0px) + 16px); }
.wrap { max-width: 640px; margin: 0 auto; display: grid; gap: 16px; }
.wrap > div { display: grid; gap: 16px; }
.narrow { max-width: 460px; }
.boot { text-align: center; color: var(--muted); padding: 3rem 1rem; }
[hidden] { display: none !important; }
h1, h2 { margin: 0; line-height: 1.2; }
h2 { font-size: 1.2rem; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.err { color: var(--bad); font-weight: 650; text-align: center; }
.hello { font-size: 1.7rem; letter-spacing: -0.01em; }
.top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 4px; }
.sec { margin-top: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 12px; }
.empty { color: var(--muted); text-align: center; padding: 10px 0; }

/* buttons */
button { font: inherit; color: inherit; cursor: pointer; }
.btn { min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--bad); color: #fff; border-color: transparent; }
.btn.big { min-height: 58px; font-size: 1.1rem; }
.btn.wide { width: 100%; }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 0.95rem; }
.btn.round { width: 48px; padding: 0; font-size: 1.6rem; border-radius: 50%; }
.btnrow { display: flex; gap: 12px; flex-wrap: wrap; }
.btnrow .btn.primary { flex: 1 1 12rem; }

/* who are you */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.who-btn { min-height: 130px; border-radius: 22px; border: 2px solid var(--line); background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; gap: 6px; font-size: 1.35rem; font-weight: 750; padding: 12px; }
.who-btn .av, .big-av { font-size: 2.6rem; line-height: 1; }
.big-av { font-size: 3.2rem; }
.av-Val { border-color: #f9a8d4; } .av-Ian { border-color: #93c5fd; } .av-Owen { border-color: #86efac; } .av-Wyatt { border-color: #fcd34d; }
.pinwrap { display: grid; gap: 18px; justify-items: center; }
.dots { display: flex; gap: 16px; min-height: 26px; }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--muted); }
.dot.on { background: var(--accent); border-color: var(--accent); }
.pad { display: grid; grid-template-columns: repeat(3, minmax(0, 88px)); gap: 12px; }
.key { min-height: 70px; border-radius: 18px; border: 1px solid var(--line); background: #fff; font-size: 1.8rem; font-weight: 700; box-shadow: var(--shadow); }
.key.fn { font-size: 1rem; }
.key:active { background: #fde7f0; }

/* chores */
.bar { height: 10px; border-radius: 6px; background: #f3e8f5; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--good); border-radius: 6px; transition: width 0.3s ease; }
.count { font-weight: 700; color: var(--muted); }
.count.all { color: var(--good); }
.yay { text-align: center; font-size: 1.3rem; font-weight: 800; color: var(--good); }
.chores { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chore { display: flex; align-items: stretch; gap: 8px; }
.check { flex: 1 1 auto; min-height: 58px; display: flex; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 14px; border: 2px solid var(--line); background: #fff; text-align: left; }
.chores.big .check { min-height: 70px; font-size: 1.2rem; }
.check .box { flex: 0 0 34px; height: 34px; border-radius: 10px; border: 3px solid #c4b5d4; display: grid; place-items: center; font-weight: 900; color: #fff; }
.chores.big .check .box { flex-basis: 42px; height: 42px; font-size: 1.3rem; }
.chore.done .check { background: #f0fdf4; border-color: #bbf7d0; }
.chore.done .box { background: var(--good); border-color: var(--good); }
.chore.done .title { text-decoration: line-through; color: var(--muted); }
.ct { display: grid; gap: 2px; min-width: 0; }
.ct .title { font-weight: 650; overflow-wrap: anywhere; }
.ct .sub { font-size: 0.85rem; color: var(--muted); }
.x { flex: 0 0 auto; min-width: 48px; min-height: 48px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 700; padding: 0 10px; }
.x.armed { background: var(--bad); color: #fff; border-color: transparent; }
.kid-card { border-top: 6px solid #f9a8d4; }
.kid-card.av-Owen { border-top-color: #86efac; } .kid-card.av-Wyatt { border-top-color: #fcd34d; }
.kid-card.av-Val { border-top-color: #f9a8d4; } .kid-card.av-Ian { border-top-color: #93c5fd; }
.daynav { display: flex; align-items: center; gap: 8px; }
.daylbl { min-height: 48px; min-width: 7.5rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-weight: 700; padding: 0 12px; }

/* forms */
.form { gap: 10px; }
.lbl { font-weight: 700; font-size: 0.95rem; margin-top: 4px; }
input[type=text], textarea { font: inherit; font-size: 1.05rem; width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); }
textarea { resize: vertical; min-height: 96px; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 48px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 650; }
.chip.small { min-height: 44px; font-size: 0.95rem; padding: 0 12px; }
.chip.on { background: var(--accent); color: #fff; border-color: transparent; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; }

/* notes */
.notes { display: grid; gap: 12px; }
.note-wrap { display: grid; gap: 8px; }
.note { position: relative; border-radius: var(--r); padding: 18px 18px 14px; display: grid; gap: 10px; box-shadow: var(--shadow); border: 1px solid rgba(0, 0, 0, 0.05); }
.note .sticker { font-size: 2.4rem; line-height: 1; }
.note-text { font-size: 1.2rem; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.heart { min-height: 48px; padding: 0 16px; border-radius: 999px; border: 2px solid rgba(0, 0, 0, 0.1); background: rgba(255, 255, 255, 0.7); font-weight: 700; }
.heart.on { background: #fff; border-color: #f43f5e; }
.heart-got { font-weight: 700; }
.c-pink { background: #ffe4ef; } .c-blue { background: #dbeafe; } .c-yellow { background: #fef3c7; } .c-green { background: #dcfce7; } .c-purple { background: #ede9fe; }
.note-compose.c-pink, .note-compose.c-blue, .note-compose.c-yellow, .note-compose.c-green, .note-compose.c-purple { border-color: transparent; }
.stickers { display: flex; flex-wrap: wrap; gap: 8px; }
.stk { width: 52px; height: 52px; border-radius: 14px; border: 2px solid transparent; background: rgba(255, 255, 255, 0.8); font-size: 1.6rem; }
.stk.on { border-color: var(--accent); background: #fff; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { width: 48px; height: 48px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.sw.on { box-shadow: 0 0 0 3px var(--accent); }

/* groceries */
.stores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.store { min-height: 56px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 6px; font-size: 0.98rem; }
.store.on { color: #fff; border-color: transparent; }
.store.on.s-Costco { background: #1d4ed8; } .store.on.s-Superstore { background: #ea580c; } .store.on.s-Walmart { background: #0369a1; }
.badge { min-width: 24px; height: 24px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 0.8rem; display: inline-grid; place-items: center; padding: 0 6px; }
.store.on .badge { background: #fff; color: var(--ink); }
.addrow { display: flex; gap: 10px; }
.addrow input { flex: 1 1 auto; min-width: 0; }
.again { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.glist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.glist li { display: flex; gap: 8px; }
.gitem { flex: 1 1 auto; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 6px 12px; border-radius: 14px; border: 2px solid var(--line); background: #fff; text-align: left; }
.gitem .box { flex: 0 0 30px; height: 30px; border-radius: 8px; border: 3px solid #c4b5d4; display: grid; place-items: center; color: #fff; font-weight: 900; }
.gname { flex: 1 1 auto; font-weight: 650; font-size: 1.1rem; overflow-wrap: anywhere; }
.glist li.got .gitem { background: #f0fdf4; }
.glist li.got .box { background: var(--good); border-color: var(--good); }
.glist li.got .gname { text-decoration: line-through; color: var(--muted); }

/* family */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.people li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); }
.people .pname { font-weight: 700; font-size: 1.1rem; flex: 1 1 auto; }
.steps { margin: 0; padding-left: 1.3rem; display: grid; gap: 6px; }

/* bottom tabs (parents) */
.has-tabs { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); padding: 6px calc(env(safe-area-inset-right, 0px) + 6px) calc(env(safe-area-inset-bottom, 0px) + 6px) calc(env(safe-area-inset-left, 0px) + 6px); }
.tab { min-height: 58px; border: 0; background: none; border-radius: 14px; display: grid; place-items: center; gap: 0; font-size: 0.8rem; font-weight: 650; color: var(--muted); padding: 4px 0; }
.tab .ico { font-size: 1.45rem; line-height: 1.1; }
.tab.on { color: var(--accent); background: #fde7f0; }

.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); transform: translateX(-50%); z-index: 100;
  max-width: min(92vw, 420px); width: max-content; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 650; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
@media (prefers-reduced-motion: reduce) { .bar span { transition: none; } }

/* edit / remove choices on a chore */
.chores .edit-row { list-style: none; border: 2px solid var(--accent); }
.choice-row { display: grid; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #fff5f8; border: 2px dashed #f9a8d4; }
.x.edit { font-size: 1.1rem; }
/* the boys' asks */
.asks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ask { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; border: 2px solid var(--line); background: #fff; }
.ask.got { background: #f0fdf4; border-color: #bbf7d0; } .ask.declined { background: #f8fafc; }
.ask-ico { font-size: 1.4rem; }
.ask-t { flex: 1 1 auto; display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.gitem.asked { border-color: #fcd34d; background: #fffbeb; }
.askedby { font-size: 0.85rem; font-weight: 700; color: #b45309; white-space: nowrap; }
.tab { position: relative; }
.tabbadge { position: absolute; top: 4px; right: calc(50% - 26px); min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }

/* chore money */
.trow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pay { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 0.85rem; font-weight: 800; text-decoration: none; }
.chore.done .pay.earned { background: #dcfce7; color: #166534; }
.card.money { text-align: center; gap: 4px; background: linear-gradient(180deg, #fffbeb, #fff); border-color: #fde68a; }
.money-lbl { font-weight: 700; color: var(--muted); }
.money-big { font-size: 2.4rem; font-weight: 900; color: #15803d; line-height: 1.1; }
.owed { padding: 8px 10px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; }
.money-in { align-items: center; max-width: 12rem; }
.dollar { font-weight: 800; font-size: 1.2rem; }

.gtext { flex: 1 1 auto; display: grid; gap: 2px; min-width: 0; }
.gtext .gname { font-weight: 650; font-size: 1.1rem; overflow-wrap: break-word; }
.askedby { white-space: normal; }
.chore { align-items: center; }
.chore .x { min-height: 52px; }
