/* Page layouts: 🏠 overview dashboard · 💸 income/expense · 👶 baby · 💬 chat · 🍽️ meals · 💬 family board · 📇 numbers.
   Colours only come from the tokens in app.css. */

/* ---------- summary cards (house / shop / baby overview) ---------- */
.overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 20px}
@media(min-width:600px){ .overview{grid-template-columns:repeat(4,minmax(0,1fr))} }
.ov{--tone:var(--surface-2);--tone-ink:var(--ink-2);display:grid;grid-template-columns:auto 1fr;grid-template-areas:"e v" "l l" "h h";align-items:center;gap:2px 10px;
  padding:14px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);text-align:left;min-width:0;transition:transform .1s}
.ov:active{transform:scale(.98)}
.ov-e{grid-area:e;width:36px;height:36px;display:grid;place-items:center;border-radius:11px;font-size:18px;background:var(--tone)}
.ov-v{grid-area:v;font-family:var(--head-font);font-size:22px;font-weight:600;line-height:1.15;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ov-l{grid-area:l;margin-top:8px;font-size:14px;font-weight:600}
.ov-h{grid-area:h;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ov-h.neg{color:var(--exp);font-weight:600}
.ov.pink{--tone:var(--t-pink)} .ov.blue{--tone:var(--t-sky)} .ov.mint{--tone:var(--t-mint)} .ov.yellow{--tone:var(--t-butter)} .ov.peach{--tone:var(--t-peach)}
@media(hover:hover){ .ov:hover{border-color:var(--line-2)} }

/* ---------- 🏠 money hero ---------- */
.dash-money{display:grid;gap:12px;margin:0 0 20px}
@media(min-width:760px){ .dash-money{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)} .dash-money .dm-cats{grid-column:1/-1} }
@media(min-width:1200px){ .dash-money{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) minmax(0,1.1fr)} .dash-money .dm-cats{grid-column:auto} }
.dm-bal,.dm-month,.dm-cats{min-width:0;padding:18px 20px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);text-align:left}
.dm-bal{display:flex;flex-direction:column;justify-content:center;gap:4px;background:linear-gradient(140deg,var(--brand-soft),#fff 85%)}
.dm-l{font-size:14px;font-weight:600;color:var(--ink-2)}
.dm-big{font-family:var(--head-font);font-size:clamp(32px,8vw,40px);font-weight:600;line-height:1.1;letter-spacing:-.01em}
.dm-s{font-size:13px;color:var(--muted)}
.dm-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.dm-head b{font-family:var(--head-font);font-weight:600;font-size:16px}
.dm-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.dm-two button{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px;border-radius:var(--r-sm);text-align:left;min-width:0}
.dm-two span{font-size:13px;font-weight:600}
.dm-two b{font-family:var(--head-font);font-size:20px;font-weight:600;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-two i{position:absolute;top:10px;right:10px;font-style:normal;font-size:11px;font-weight:700;opacity:.7}
.dm-in{background:var(--t-mint);color:var(--t-mint-ink)} .dm-out{background:#FDECEA;color:#B23A36}
.dm-meter{height:10px;margin:14px 0 6px;border-radius:99px;background:var(--surface-2);overflow:hidden}
.dm-meter i{display:block;height:100%;border-radius:99px;background:var(--inc)}
.dm-meter.warn i{background:var(--warn)} .dm-meter.over i{background:var(--exp)}
.dm-note{margin:0;font-size:13px;color:var(--ink-2)}
.dm-stack{display:flex;gap:2px;height:12px;margin-bottom:12px;border-radius:99px;overflow:hidden}
.dm-stack i{display:block;height:100%}
.dm-legend{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}
.dm-legend li{display:flex;align-items:center;gap:8px;font-size:14px;min-width:0}
.dm-legend li>i{width:10px;height:10px;border-radius:3px;flex:none}
.dm-legend .trunc{flex:1;min-width:0}
.dm-legend b{white-space:nowrap;font-weight:600}

/* ---------- 🏠 family cards ---------- */
.fam{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:0 0 20px}
.fam-card{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 12px 14px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);text-align:center;transition:transform .1s}
.fam-card::before{content:"";position:absolute;inset:0 0 auto;height:46px;background:color-mix(in srgb,var(--c) 16%,#fff)}
.fam-card>*{position:relative}
.fam-card:active{transform:scale(.98)}
.fam-av{position:relative;display:inline-block}
.fam-av .avatar.lg{box-shadow:0 0 0 4px #fff}
.fam-mood{position:absolute;right:-8px;bottom:-4px;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#fff;font-size:17px;box-shadow:var(--shadow)}
.fam-name{font-family:var(--head-font);font-weight:600;font-size:17px}
.fam-name small{font-size:12px;font-weight:400;color:var(--muted)}
.fam-stats{display:flex;gap:12px;font-size:14px;font-weight:600}
.fam-stats em{font-style:normal;font-size:11px;font-weight:700;color:var(--exp)}
.fam-spent{font-size:12px;color:var(--muted)}

/* ---------- dashboard boxes ---------- */
.dash{display:grid;gap:16px}
@media(min-width:760px){ .dash{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start} }
@media(min-width:1350px){ .dash{grid-template-columns:repeat(3,minmax(0,1fr))} }
.dbox{--tone:var(--surface-2);display:flex;flex-direction:column;gap:12px;min-width:0;padding:16px 18px 18px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.dbox-h{display:flex;align-items:center;gap:10px}
.dbox-h h2{flex:1;min-width:0;margin:0;font-size:16px}
.dbox-h .cnt{vertical-align:1px}
.dbox-e{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:11px;font-size:18px;background:var(--tone)}
.dbox-more{flex:none;padding:4px 10px;border-radius:99px;font-size:13px;font-weight:600;color:var(--brand-shade);white-space:nowrap}
.dbox-more:hover{background:var(--brand-soft)}
.dbox .btn.sm{align-self:flex-start}
.dbox.todo,.dbox.prep,.dbox.docs{--tone:var(--t-mint)}
.dbox.buy{--tone:var(--t-sky)}
.dbox.cal,.dbox.appt,.dbox.log{--tone:var(--t-lilac)}
.dbox.meals,.dbox.alerts,.dbox.pump{--tone:var(--t-peach)}
.dbox.wall,.dbox.moodall,.dbox.mood{--tone:var(--t-butter)}

.qa{display:flex;flex-direction:column;gap:8px}
.qa-who,.tx-who{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.qa-p{position:relative;padding:2px;border-radius:50%;border:2px solid transparent;opacity:.5;transition:opacity .12s,border-color .12s}
.qa-p.on{opacity:1;border-color:var(--brand)}
.qa-p:hover{opacity:1}
.who-grp{padding-left:12px;border-left:3px solid var(--c)}
.who-grp+.who-grp{margin-top:6px}
.who-h{display:flex;align-items:center;gap:6px;margin-bottom:2px}
.who-h b{font-size:14px}
.jobs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.job{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line);min-width:0}
.job:first-child{border-top:0}
.job .tick{width:24px;height:24px;margin:0}
.job .tick .ic{width:14px;height:14px}
.job-t{display:flex;flex-direction:column;align-items:flex-start;min-width:0;text-align:left;line-height:1.35}
.job-t small{font-size:11px}
.job.done .job-t{text-decoration:line-through;opacity:.55}
.assign{display:inline-flex;align-items:center;gap:2px;flex:none;font-size:11px;color:var(--muted)}
.buy-grps{display:flex;flex-direction:column;gap:12px}
.buy-h{font-size:13px;font-weight:700;color:var(--ink-2);margin-bottom:2px}
.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.wk-day{display:flex;flex-direction:column;align-items:center;gap:1px;padding:6px 0 5px;border-radius:12px;background:var(--surface-2)}
.wk-day span:first-child{font-size:11px;color:var(--muted)}
.wk-day b{font-family:var(--head-font);font-size:15px;font-weight:600}
.wk-day.today{background:var(--brand);color:var(--brand-ink)}
.wk-day.today span:first-child{color:inherit;opacity:.85}
.agenda{display:flex;flex-direction:column;gap:8px}
.ag-day{display:grid;grid-template-columns:78px minmax(0,1fr);gap:8px;align-items:start}
.ag-d{padding:3px 8px;border-radius:9px;background:var(--surface-2);font-size:12px;font-weight:600;text-align:center}
.ag-d.today{background:var(--brand-soft);color:var(--brand-shade)}
.ag-day ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px}
.ag-day li{display:flex;align-items:center;gap:6px;font-size:14px;min-width:0}
.ag-time{font-size:12px;font-weight:700;color:var(--brand-shade)}
.alerts{list-style:none;margin:0;display:flex;flex-direction:column;gap:6px}
.alerts button{display:flex;align-items:center;gap:8px;width:100%;padding:9px 12px;border-radius:12px;background:var(--surface-2);text-align:left;min-width:0}
.goals-mini{display:flex;flex-direction:column;gap:8px}
.goals-mini button{display:grid;grid-template-columns:minmax(0,1fr) 90px auto;gap:8px;align-items:center;font-size:14px;text-align:left}

/* 💛 moods */
.mood-people{display:flex;flex-direction:column;gap:8px}
.mp{display:flex;align-items:center;gap:12px;width:100%;min-width:0;padding:9px 12px;border-radius:var(--r-sm);background:var(--surface-2);text-align:left}
.mp-av{position:relative;flex:none}
.mp-mood{position:absolute;right:-8px;bottom:-5px;width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#fff;font-size:15px;box-shadow:var(--shadow)}
.mp-t{display:flex;flex-direction:column;min-width:0;line-height:1.35}
.baby-av{background:var(--t-pink);font-size:21px}
.mood-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.moods{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.mood{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;padding:8px 2px;border-radius:var(--r-sm);background:var(--surface-2);border:1.5px solid transparent;transition:transform .1s}
.mood span{font-size:28px;line-height:1.15}
.mood small{font-size:11px;line-height:1.2;text-align:center}
.mood.on{background:var(--brand-soft);border-color:var(--brand)}
.mood:active{transform:scale(.95)}
.mood-hist{margin:4px 0 0}

/* ---------- 💸 income / expense ---------- */
.tx-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 14px}
.tx-totals.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.tt{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;padding:12px 14px;border-radius:var(--r-sm);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);text-align:left}
.tt span{font-size:12px;font-weight:600;color:var(--ink-2)}
.tt b{font-family:var(--head-font);font-size:clamp(16px,4.6vw,21px);font-weight:600;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt.in b{color:var(--inc)} .tt.out b{color:var(--exp)} .tt.left.neg b{color:var(--exp)}
.tt.in.on{border-color:var(--inc);background:var(--t-mint)} .tt.out.on{border-color:var(--exp);background:#FDECEA}
.tx-filter{display:flex;flex-direction:column;gap:8px;margin:0 0 14px}
@media(min-width:600px){ .tx-filter{flex-direction:row;align-items:center} .tx-search{flex:1} }
.tx-search{position:relative;display:flex;align-items:center}
.tx-search span{position:absolute;left:12px;font-size:14px;pointer-events:none}
.tx-search .in{padding-left:36px}
.tx-day .day-h{align-items:baseline;margin:0 4px 6px}
.tx-day .day-h b{font-size:14px}
.tx-row{gap:10px}
.tx-ico{background:#FDECEA} .tx-ico.inc{background:var(--t-mint)}
.tx-t{font-weight:500}
.tx-s{font-size:12px}
.tx-amt{font-size:15px}
.tx-none{text-align:center;padding:20px 0}
.tx-add{position:sticky;bottom:calc(76px + env(safe-area-inset-bottom));z-index:5;display:grid;grid-template-columns:1.3fr 1fr;gap:8px;margin-top:16px}
@media(min-width:900px){ .tx-add{bottom:16px;max-width:460px} }
.tx-add-out{background:var(--exp)!important;box-shadow:0 4px 12px -6px rgba(217,83,79,.7)!important}
.donut-card{display:grid;gap:18px;align-items:center}
@media(min-width:520px){ .donut-card{grid-template-columns:170px minmax(0,1fr)} }
.donut{width:170px;height:170px;margin:0 auto;border-radius:50%;display:grid;place-items:center}
.donut>div{width:64%;height:64%;border-radius:50%;background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.donut b{font-family:var(--head-font);font-size:17px;font-weight:600}
.donut span{font-size:11px;color:var(--muted)}
.who-bars{display:flex;flex-direction:column;gap:12px}
.who-bar{display:flex;align-items:center;gap:10px;width:100%;text-align:left}
.who-bar .grow{display:flex;flex-direction:column;gap:5px;min-width:0}
.wb-top{display:flex;justify-content:space-between;gap:8px;font-size:14px}
.trend>div.cur span{font-weight:700;color:var(--ink)}

/* entry sheet */
.tx-type{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:var(--r-sm);background:var(--surface-2)}
.tx-type button{padding:10px 8px;border-radius:11px;font-weight:600;font-size:15px;color:var(--ink-2)}
.tx-type button.on.out{background:var(--exp);color:#fff} .tx-type button.on.in{background:var(--inc);color:#fff}
.amt-wrap{display:flex;align-items:center;gap:6px;margin-top:12px;padding:2px 16px;border-radius:var(--r-sm);border:1px solid var(--line-2);background:var(--surface)}
.amt-wrap span{font-family:var(--head-font);font-size:26px;font-weight:500;color:var(--muted)}
.amt-wrap .in.amt{border:0;box-shadow:none;background:transparent;padding:8px 0;text-align:left;font-family:var(--head-font);font-size:34px;font-weight:600}
.amt-wrap.out:focus-within{border-color:var(--exp)} .amt-wrap.in:focus-within{border-color:var(--inc)}
.amt-wrap.out .amt{color:var(--exp)} .amt-wrap.in .amt{color:var(--inc)}
.quick-amt{margin-top:8px}
.cat-grp{margin:12px 2px 6px;font-size:12px;font-weight:700;color:var(--muted)}
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:6px}
.cat-t{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;padding:9px 4px;border-radius:var(--r-sm);background:var(--surface);border:1px solid var(--line-2);transition:background .12s,border-color .12s}
.cat-t span{font-size:22px;line-height:1.15}
.cat-t small{font-size:11px;line-height:1.25;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cat-t.on{background:var(--brand-soft);border-color:var(--brand);font-weight:600}
.cat-t.add{border-style:dashed;color:var(--muted)}
.whose-row{display:flex;flex-wrap:wrap;gap:6px}
.whose{display:inline-flex;align-items:center;gap:6px;padding:4px 12px 4px 4px;border-radius:99px;background:var(--surface);border:1px solid var(--line-2);font-size:14px;font-weight:500}
.whose.on{background:var(--brand-soft);border-color:var(--brand);font-weight:600}
.whose-e{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--surface-2);font-size:15px}
.date-chips{align-items:center}
.date-in{flex:1;width:auto;min-width:140px;padding:7px 10px}
.date-in.on{border-color:var(--brand)}
.tx-save{display:grid;grid-template-columns:1fr;gap:8px}
@media(min-width:420px){ .tx-save{grid-template-columns:1.2fr 1fr} }

/* ---------- 🛒 price + shop ---------- */
.shop-badge{display:inline-flex;align-items:center;gap:4px;padding:1px 8px;border-radius:99px;font-size:11px;font-weight:600;line-height:1.7;white-space:nowrap;
  color:var(--sc,#8A93A8);background:color-mix(in srgb,var(--sc,#8A93A8) 11%,#fff)}
.price{font-size:14px;font-weight:600;white-space:nowrap}
.price-tag{font-weight:700}
.shop-sum{display:flex;flex-direction:column;gap:8px;margin:0 0 14px}
.shop-sum .chips{margin:0}
.dbox .shop-sum{flex-direction:row;flex-wrap:wrap;gap:6px;margin:0}
.shop-chips .chip{font-size:13px}

/* ---------- 👶 baby ---------- */
.baby-hero{display:flex;align-items:center;gap:16px;margin:0 0 20px;padding:18px 20px;border-radius:var(--r);background:linear-gradient(135deg,var(--t-pink),#fff 70%);border:1px solid var(--line);box-shadow:var(--shadow)}
.baby-hero.expecting{background:linear-gradient(135deg,#FBE0EC,var(--t-butter) 90%)}
.bh-face{width:68px;height:68px;flex:none;display:grid;place-items:center;border-radius:50%;background:#fff;font-size:40px;box-shadow:var(--shadow)}
.baby-hero .grow{display:flex;flex-direction:column;gap:2px;min-width:0}
.bh-name{font-family:var(--head-font);font-weight:600;font-size:20px;line-height:1.2}
.bh-age{font-family:var(--head-font);font-weight:600;font-size:clamp(20px,5.5vw,26px);line-height:1.2;color:var(--brand-shade)}
.bh-sub{font-size:13px;color:var(--ink-2)}
.bh-btns{display:flex;flex-direction:column;gap:6px;flex:none}
.empty-baby{flex-wrap:wrap}
@media(max-width:520px){ .baby-hero{flex-wrap:wrap} .bh-btns{flex-direction:row;width:100%} .bh-btns .btn{flex:1} }
.log-btns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 4px}
@media(min-width:600px){ .log-btns{grid-template-columns:repeat(6,minmax(0,1fr))} }
.log-btn{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;padding:11px 4px;border-radius:var(--r-sm);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);transition:transform .1s}
.log-btn:active{transform:scale(.96)}
.log-btn span{font-size:24px;line-height:1.1}
.log-btn small{font-size:12px;font-weight:600;text-align:center}
.log-list{display:flex;flex-direction:column}
.log-line{display:flex;align-items:center;gap:10px;width:100%;min-width:0;padding:9px 0;border-top:1px solid var(--line);text-align:left}
.log-line:first-child{border-top:0}
.ll-e{width:28px;flex:none;text-align:center;font-size:19px}
.appts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.appts button,.appts .vac{display:flex;align-items:center;gap:8px;width:100%;min-width:0;padding:8px 12px;border-radius:12px;background:var(--surface-2);text-align:left}
.appts .vac{align-items:flex-start;flex-wrap:wrap}
.prog{display:flex;justify-content:space-between;margin-top:4px;font-size:14px;font-weight:600}
.pump-now{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:var(--r-sm);background:var(--t-sky)}
.pump-now b{font-family:var(--head-font);font-weight:600;font-size:20px;color:var(--t-sky-ink)}
.pump-now.due{background:#FDECEA} .pump-now.due b{color:var(--exp)}
.pump-slots{display:flex;flex-wrap:wrap;gap:6px}
.slot{padding:4px 10px;border-radius:99px;background:var(--surface-2);font-size:13px;font-weight:600}
.slot.done{background:var(--t-mint);color:var(--t-mint-ink)} .slot.miss{background:var(--t-butter);color:var(--t-butter-ink)}
.pump-row{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.pump-chart{height:80px}
.pump-chart i{background:color-mix(in srgb,var(--brand) 45%,#fff)!important;background-image:none!important}
.pump-chart span.today i{background:var(--brand)!important}

/* ---------- 💬 chat ---------- */
.chat{display:flex;flex-direction:column;gap:10px;max-width:720px;height:calc(100dvh - 250px);min-height:420px}
@media(min-width:900px){ .chat{height:calc(100dvh - 190px)} }
.chat-people{display:flex;gap:8px}
.chat-people .badge{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;border-radius:99px;background:var(--exp);color:#fff;font-size:10px;display:grid;place-items:center}
.chat-head{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:var(--r-sm);background:var(--surface);border:1px solid var(--line)}
.chat-head .grow{display:flex;flex-direction:column;line-height:1.3}
.chat-list{flex:1;display:flex;flex-direction:column;gap:3px;overflow-y:auto;overscroll-behavior:contain;padding:14px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line)}
.chat-empty{margin:auto;text-align:center;color:var(--muted);line-height:1.8}
.chat-day{text-align:center;margin:10px 0 6px}
.chat-day span{padding:3px 12px;border-radius:99px;background:var(--surface-2);font-size:12px;font-weight:600;color:var(--muted)}
.msg{display:flex;align-items:flex-end;gap:6px;max-width:100%}
.msg.me{justify-content:flex-end}
.msg.tail{margin-bottom:6px}
.msg-sp{width:28px;flex:none}
.bubble{display:flex;flex-direction:column;max-width:min(78%,480px);padding:8px 12px 6px;border-radius:18px;font-size:15px;line-height:1.45;overflow-wrap:anywhere;text-align:left}
.msg.them .bubble{background:var(--surface-2);border-bottom-left-radius:6px}
.msg.me .bubble{background:var(--brand);color:var(--brand-ink);border-bottom-right-radius:6px;cursor:pointer}
.msg:not(.tail) .bubble{border-radius:18px}
.msg.big .bubble{background:none;font-size:40px;line-height:1.1;padding:2px 4px}
.msg.big .msg-meta{color:var(--muted)}
.bubble a{color:inherit;text-decoration:underline}
.msg-meta{align-self:flex-end;margin-top:2px;font-size:10px;opacity:.7;white-space:nowrap}
.chat-quick{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.chat-quick .chip{flex:none;padding:6px 11px;font-size:14px}
.chat-input{display:flex;gap:8px;align-items:flex-end}
.chat-input textarea{flex:1;min-height:46px;max-height:140px;resize:none;font-size:16px}
.chat-send{flex:none;width:auto;padding:12px 18px}

/* ---------- 🍽️ meals ---------- */
.meal-top{margin:0 0 14px}
.meal-week{display:grid;gap:12px}
@media(min-width:700px){ .meal-week{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(min-width:1200px){ .meal-week{grid-template-columns:repeat(4,minmax(0,1fr))} }
.meal-day{display:flex;flex-direction:column;gap:8px;padding:14px 16px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.meal-day header{display:flex;justify-content:space-between;align-items:baseline;gap:6px}
.meal-day header b{font-family:var(--head-font);font-weight:600;font-size:16px}
.meal-day.today{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
.meal-day.past{opacity:.6}
.meals{display:flex;flex-direction:column;gap:4px}
.meal{display:flex;align-items:center;gap:8px;width:100%;min-width:0;padding:7px 10px;border-radius:10px;background:var(--surface-2);text-align:left}
.meal-slot{flex:none;font-size:17px}
.meal-add{align-self:flex-start;padding:4px 2px;font-size:13px;font-weight:600;color:var(--brand-shade)}

/* ---------- 💬 family board ---------- */
.composer{display:flex;flex-direction:column;gap:10px;margin:0 0 16px}
.cmp-row{display:flex;gap:10px;align-items:flex-start}
.cmp-row textarea{flex:1;min-height:56px}
.cmp-photo{position:relative;align-self:flex-start}
.cmp-photo img{display:block;max-width:100%;max-height:180px;border-radius:12px}
.cmp-photo .icon-btn{position:absolute;top:6px;right:6px}
.cmp-actions{display:flex;justify-content:space-between;gap:8px}
.feed{display:flex;flex-direction:column;gap:14px;max-width:640px}
.post{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.post.pinned{border-color:#F2D58A;background:linear-gradient(180deg,var(--t-butter),#fff 60%)}
.post header{display:flex;align-items:center;gap:10px}
.post header .grow{display:flex;flex-direction:column;line-height:1.3}
.post-body{margin:0;font-size:15px;line-height:1.6;overflow-wrap:anywhere}
.post-photo{display:block;width:100%;max-height:520px;object-fit:cover;border-radius:14px}
.post footer{display:flex;align-items:center;gap:10px}
.heart{padding:6px 14px;border-radius:99px;background:var(--surface-2);font-size:14px;font-weight:600;transition:transform .1s}
.heart.on{background:var(--t-pink);color:var(--t-pink-ink)}
.heart:active{transform:scale(.92)}
.likers{display:inline-flex}
.likers .avatar{margin-left:-6px;box-shadow:0 0 0 2px #fff}
.likers .avatar:first-child{margin-left:0}
.wall-mini{display:flex;flex-direction:column;gap:6px}
.wm{display:flex;align-items:flex-start;gap:10px;width:100%;min-width:0;padding:9px 12px;border-radius:12px;background:var(--surface-2);text-align:left}
.wm .grow{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px;min-width:0}
.wm-t{flex-basis:100%;font-size:14px}

/* ---------- 📇 numbers ---------- */
.contacts{padding:2px 16px}
.contact{gap:12px}
.c-main{display:flex;flex-direction:column;align-items:flex-start;min-width:0;text-align:left}
.call{flex:none;background:var(--inc)!important;color:#fff!important;text-decoration:none;white-space:nowrap}

/* =====================================================================
   🎀 Cute family-board touches (🏠 house + 👶 baby; the ☕ shop stays plain)
   ===================================================================== */
body:not([data-mode=business]) .btn{border-radius:999px}
body:not([data-mode=business]) .chip,body:not([data-mode=business]) .whose{border-radius:999px}
body:not([data-mode=business]) h1,body:not([data-mode=business]) h2{font-weight:600}
body[data-mode=business]{background-image:none}

/* family banner with bunting flags */
.fam-banner{position:relative;overflow:hidden;margin:0 0 20px;border-radius:26px;background:linear-gradient(135deg,#FFE3EE 0%,#FFF1E3 55%,#FFF8D9 100%);box-shadow:var(--shadow)}
.bunting{height:26px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='26'%3E%3Cpath d='M0 3 Q42 10 84 3' fill='none' stroke='%23E7B6C4' stroke-width='1.5'/%3E%3Cpath d='M4 4.5h20L14 22z' fill='%23F7A8C4'/%3E%3Cpath d='M32 6.5h20L42 24z' fill='%23FFD58A'/%3E%3Cpath d='M60 4.5h20L70 22z' fill='%23A8DCC2'/%3E%3C/svg%3E") 0 0/84px 26px repeat-x}
.fb-body{display:flex;align-items:center;gap:16px;padding:12px 20px 20px;flex-wrap:wrap}
.fb-text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:220px}
.fb-hello{font-size:14px;font-weight:600;color:var(--brand-shade)}
.fb-title{margin:0;font-size:clamp(24px,6vw,30px);line-height:1.2}
.fb-date{font-size:14px;color:var(--ink-2)}
.fb-today{margin-top:6px;font-size:13px;font-weight:600;color:var(--ink-2)}
.fb-family{display:flex;align-items:flex-end;gap:10px}
.fb-p{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;font-weight:600;color:var(--ink-2)}
.fb-p .avatar{box-shadow:0 0 0 4px #fff,var(--shadow)}
.fb-p:nth-child(odd) .avatar{transform:rotate(-4deg)} .fb-p:nth-child(even) .avatar{transform:rotate(4deg)}
.baby-av.lg{font-size:34px}
@media(max-width:520px){ .fb-family .avatar.lg{width:52px;height:52px;font-size:22px} }
/* the banner is the page title on the house overview */
body[data-mode=house] main.page-home>.page-head{display:none}

/* board cards: a strip of washi tape, like notes pinned on the family board */
body:not([data-mode=business]) .dbox{position:relative;overflow:visible;margin-top:8px}
body:not([data-mode=business]) .dbox::before{content:"";position:absolute;top:-9px;left:50%;width:64px;height:18px;transform:translateX(-50%) rotate(-3deg);border-radius:3px;
  background:color-mix(in srgb,var(--tape,#F7A8C4) 70%,#fff);opacity:.9;box-shadow:0 1px 2px rgba(150,70,90,.12)}
body:not([data-mode=business]) .dbox:nth-child(3n+2)::before{transform:translateX(-50%) rotate(2deg)}
body:not([data-mode=business]) .dbox:nth-child(3n)::before{transform:translateX(-50%) rotate(-1deg);left:42%}
.dbox.todo,.dbox.prep,.dbox.docs{--tape:#9ED9BC} .dbox.buy{--tape:#9CC8F2} .dbox.cal,.dbox.appt,.dbox.log{--tape:#C6B4F2}
.dbox.meals,.dbox.alerts,.dbox.pump{--tape:#FFC09A} .dbox.wall,.dbox.moodall,.dbox.mood{--tape:#FFD979}
body:not([data-mode=business]) .dbox-e,body:not([data-mode=business]) .ov-e{border-radius:50%}
body:not([data-mode=business]) .dbox-h h2{font-size:17px}

/* money + family cards: softer and rounder */
body:not([data-mode=business]) .dm-bal{background:linear-gradient(140deg,#FFE4EE,#FFF6EF 85%)}
body:not([data-mode=business]) .fam-card::before{height:52px;background:linear-gradient(180deg,color-mix(in srgb,var(--c) 22%,#fff),color-mix(in srgb,var(--c) 8%,#fff))}
body:not([data-mode=business]) .ov,body:not([data-mode=business]) .fam-card,body:not([data-mode=business]) .dm-bal,body:not([data-mode=business]) .dm-month,body:not([data-mode=business]) .dm-cats{border-color:transparent}

/* 📌 importance + place */
.tag.prio.p1{--c:#E0A100} .tag.prio.p2{--c:#E5484D}
.tag.place{--c:#3F8FD8;text-decoration:none;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.task>.tag.place{align-self:center;flex:none;max-width:40%}
.prio-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:1px}
.prio-dot.p1{background:#F2B51F} .prio-dot.p2{background:#E5484D}
.prio-chips .chip.p2.on{--c:#E5484D} .prio-chips .chip.p1.on{--c:#E0A100} .prio-chips .chip.p0.on{--c:var(--muted)}
.ag-t{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.ag-place{font-size:12px;color:var(--t-sky-ink);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ag-day li.p2 .ag-t>.trunc{font-weight:700}

/* =====================================================================
   💰 Finance overview (mini money app)
   ===================================================================== */
main.page-finance{max-width:1180px}
.fin-hero{display:flex;flex-direction:column;gap:14px;margin:0 0 18px;padding:20px;border-radius:26px;color:#fff;
  background:linear-gradient(135deg,#F27FA5 0%,#F49A86 60%,#F7B77A 100%);box-shadow:0 18px 36px -18px rgba(214,94,137,.6)}
body[data-mode=business] .fin-hero{background:linear-gradient(135deg,#8C5A37,#B9875E)}
.fin-hero.empty{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap}
.fin-hero .btn.sm{background:#fff;color:var(--brand-shade);border:0;box-shadow:none}
.fin-hero .btn.ghost{background:rgba(255,255,255,.2);color:#fff;border:1px solid rgba(255,255,255,.45)}
.fh-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.fh-l{display:block;font-size:14px;font-weight:600;opacity:.92}
.fh-big{display:block;font-family:var(--head-font);font-size:clamp(34px,9vw,46px);font-weight:600;line-height:1.1;margin-top:2px}
.fh-s{display:block;font-size:13px;opacity:.9;max-width:42ch}
.fin-hero .fh-l .pi{color:#fff!important}
.acc-cards{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 4px;margin:0 -4px;scrollbar-width:none;scroll-snap-type:x mandatory}
.acc-cards::-webkit-scrollbar{display:none}
.acc-card{flex:none;width:148px;scroll-snap-align:start;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px;border-radius:18px;background:rgba(255,255,255,.95);color:var(--ink);text-align:left;box-shadow:0 6px 14px -8px rgba(120,40,70,.35)}
.acc-card .ac-ic{width:36px;height:36px;border-radius:11px;margin-bottom:6px;font-size:18px}
.acc-card .ac-name{max-width:100%;font-weight:600;font-size:14px}
.acc-card .ac-kind{font-size:11px;color:var(--muted)}
.acc-card b{font-family:var(--head-font);font-size:17px;font-weight:600;margin-top:4px}
.acc-card.add{align-items:center;justify-content:center;background:rgba(255,255,255,.22);color:#fff;border:1.5px dashed rgba(255,255,255,.7);box-shadow:none}
.ac-plus{font-size:24px;line-height:1}

.fin-month{display:flex;flex-direction:column;gap:12px;margin:0 0 20px;padding:16px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.fm-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.fm-k{display:flex;flex-direction:column;gap:2px;min-width:0;padding:10px 12px;border-radius:var(--r-sm);background:var(--surface-2)}
.fm-k span{font-size:12px;font-weight:600;color:var(--ink-2)}
.fm-k b{font-family:var(--head-font);font-size:clamp(16px,4.6vw,21px);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fm-k.in{background:var(--t-mint)} .fm-k.in b{color:var(--t-mint-ink)}
.fm-k.out{background:#FDECEA} .fm-k.out b{color:#B23A36}
.fm-k.left{background:var(--t-butter)} .fm-k.neg{background:#FDECEA} .fm-k.neg b{color:var(--exp)}
.fm-safe{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:var(--r-sm);background:var(--brand-soft)}
.fm-safe>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.fm-safe span{font-weight:600;color:var(--ink-2)}
.fm-safe b{font-family:var(--head-font);font-size:24px;font-weight:600;color:var(--brand-shade)}
.fm-safe.tight b{color:var(--exp)}
.fm-acts{display:flex;gap:8px}
.fm-acts .btn{flex:1}

.fin-grid .dbox.plan{grid-row:span 2}
.plan-bar{display:flex;height:30px;border-radius:12px;overflow:hidden;gap:3px}
.plan-bar i{display:flex;align-items:center;justify-content:center;min-width:0;color:#fff;font-style:normal;font-size:12px;font-weight:700}
.plan-base{margin:-4px 0 0}
.bks{display:flex;flex-direction:column;gap:14px}
.bk{display:flex;flex-direction:column;gap:6px}
.bk-h{display:flex;align-items:center;gap:10px}
.bk-h .grow{display:flex;flex-direction:column;line-height:1.3}
.bk-e{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:50%;font-size:17px;background:color-mix(in srgb,var(--bc) 15%,#fff)}
.bk-pct{font-size:12px;font-weight:600;color:var(--muted);margin-left:2px}
.bk-n{display:flex;flex-direction:column;align-items:flex-end;line-height:1.25}
.bk-n b{font-family:var(--head-font);font-weight:600}
.bk .bar{height:10px}
.bk-f{margin-top:-2px}
.cb-list{display:flex;flex-direction:column;gap:12px}
.cb{display:flex;align-items:center;gap:10px}
.cb-e{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:10px;background:var(--surface-2);font-size:16px}
.cb .grow{display:flex;flex-direction:column;gap:5px}
.cb-t{display:flex;justify-content:space-between;gap:8px;font-size:14px}
.where-in{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;align-items:center}
.donut.sm{width:120px;height:120px}
.donut.sm b{font-size:14px}
.rc-list .row{padding:9px 0}
.rc-list .ico{width:34px;height:34px;font-size:16px}
.dbox.plan{--tone:var(--t-pink);--tape:#F7A8C4} .dbox.where,.dbox.recent{--tone:var(--t-sky);--tape:#9CC8F2} .dbox.catbud{--tone:var(--t-lilac);--tape:#C6B4F2} .dbox.bills{--tone:var(--t-peach);--tape:#FFC09A}

/* budget split sheet */
.plan-in{display:flex;flex-direction:column;gap:8px}
.pi-row{display:grid;grid-template-columns:auto minmax(0,1fr) 64px auto;align-items:center;gap:8px;padding:8px 10px;border-radius:var(--r-sm);background:var(--surface-2)}
.pi-row .grow{display:flex;flex-direction:column;line-height:1.3;min-width:0}
.pi-row .pi-amt{grid-column:2/-1;margin-top:-4px}
.pct-in{text-align:right;padding:8px 10px}
.pct{font-weight:700;color:var(--muted)}
.plan-total{margin:10px 2px 0;font-weight:700}
.plan-total.ok{color:var(--inc)} .plan-total.bad{color:var(--exp)}

/* =====================================================================
   🍼 Feeding
   ===================================================================== */
.dbox.feed{--tone:var(--t-pink);--tape:#F7A8C4}
@media(min-width:1350px){ .dash>.dbox.feed{grid-row:span 2} }
.feed-now{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.feed-now>div{display:flex;flex-direction:column;gap:1px;padding:12px 14px;border-radius:var(--r-sm);background:var(--surface-2)}
.feed-now>div:last-child{background:var(--brand-soft)}
.feed-now b{font-family:var(--head-font);font-size:26px;font-weight:600;line-height:1.15}
.feed-now.due>div:last-child{background:#FDECEA} .feed-now.due>div:last-child b{color:var(--exp)}
.feed-last{margin:0;color:var(--ink-2)}
.feed-sum{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:var(--ink-2)}
.feed-sum b{font-family:var(--head-font);font-size:16px;font-weight:600;color:var(--ink)}
.feed-sum.big{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.feed-sum.big span{display:flex;flex-direction:column;padding:8px 10px;border-radius:12px;background:var(--surface-2);font-size:12px}
@media(max-width:480px){ .feed-sum.big{grid-template-columns:repeat(2,minmax(0,1fr))} }
.feed-btns{margin-top:4px}
.feed-btns .btn{flex:1}
.feed-list{display:flex;flex-direction:column}
.feed-row{display:flex;align-items:center;gap:12px;width:100%;min-width:0;padding:10px 0;border-top:1px solid var(--line);text-align:left}
.feed-row:first-child{border-top:0}
.fr-time{display:flex;flex-direction:column;align-items:flex-start;min-width:58px;line-height:1.2}
.fr-time b{font-family:var(--head-font);font-size:17px;font-weight:600}
.fr-time small{font-size:11px;color:var(--muted)}
.fr-what{font-size:14px;line-height:1.4}

/* feed sheet */
.feed-type{margin-bottom:4px}
.feed-type button{font-size:14px;padding:9px 4px}
.sides{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.side{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:var(--r-sm);background:var(--surface-2)}
.side-h{display:flex;align-items:center;justify-content:space-between;gap:6px}
.side-h b{font-family:var(--head-font);font-size:16px}
.side-in{display:flex;align-items:center;gap:6px}
.side-in .in{text-align:center;font-family:var(--head-font);font-size:22px;font-weight:600;padding:8px}
.side .chips{gap:4px}
.side .chip.sm{padding:4px 9px}
.timer{padding:5px 10px!important;font-size:12px!important}
.timer.on{background:var(--exp)!important;color:#fff!important;animation:pulse 1.6s ease-in-out infinite}
.amt-wrap .unit{font-family:var(--head-font);font-size:20px;font-weight:600;color:var(--muted)}
@media(max-width:420px){ .sides{grid-template-columns:1fr} }
.tag.nocat{--c:#E3A21A;height:20px;font-size:11px}
.nocat-chip{border-color:#F2D58A;background:var(--t-butter)}
.nocat-chip b{margin-left:2px}
.nocat-chip.on{--c:#E3A21A}
/* 🏦 account chips + transfers */
.tx-type:has(.mv){grid-template-columns:1fr 1fr 1fr}
.tx-type button.on.mv{background:var(--t-sky-ink);color:#fff}
.acc-chip .ico.mini{width:20px;height:20px;border-radius:6px;font-size:12px;margin-left:-5px;background:var(--surface-2)}
.acc-chip .bank-logo.mini{border:0}
.tx-ico.move{background:var(--t-sky);color:var(--t-sky-ink);font-weight:700}

/* ☑️ bulk edit + 🪄 rules */
.tx-tools{display:flex;gap:6px;flex-wrap:wrap}
.chip.magic{background:var(--t-lilac);border-color:#D6CBF4;color:var(--t-lilac-ink);font-weight:600}
.tx-row.sel{position:relative}
.sel-tick{width:24px;height:24px;flex:none;display:grid;place-items:center;border-radius:50%;border:2px solid var(--line-2);color:#fff;font-size:13px;font-weight:800}
.tx-row.sel.on{background:var(--brand-soft)}
.tx-row.sel.on .sel-tick{background:var(--brand);border-color:var(--brand)}
.bulk-bar{position:sticky;bottom:calc(76px + env(safe-area-inset-bottom));z-index:6;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:16px;padding:12px 14px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-lg)}
.bulk-bar b{flex:1;min-width:100px}
@media(min-width:900px){ .bulk-bar{bottom:16px} }
.rule-box{display:flex;flex-direction:column;gap:8px;margin-top:14px;padding:12px;border-radius:var(--r-sm);background:var(--t-lilac)}
.rule-box .check-row{margin:0;color:var(--t-lilac-ink);font-weight:600}
.doc-next{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.doc-next button{display:flex;align-items:center;gap:8px;width:100%;min-width:0;padding:8px 12px;border-radius:12px;background:var(--surface-2);text-align:left}
.doc-next .grow{display:flex;flex-direction:column;min-width:0;line-height:1.35}
.bh-note{margin-top:2px;opacity:.85}
/* 💰 live balances */
.live-tag{color:var(--t-sky-ink);font-weight:600}
.live-note{margin:6px 0 2px;padding:10px 12px;border-radius:var(--r-sm);background:var(--t-sky);color:var(--t-sky-ink);font-size:14px;line-height:1.5}
.live-note b{font-family:var(--head-font);font-size:16px}
/* 💛 moods: last 7 days */
.dbox.moodweek{--tone:var(--t-butter);--tape:#FFD979}
.mw{display:flex;flex-direction:column;gap:6px;overflow-x:auto}
.mw-row{display:grid;grid-template-columns:minmax(90px,1.4fr) repeat(7,minmax(32px,1fr));gap:4px;align-items:center}
.mw-head span{display:flex;flex-direction:column;align-items:center;font-size:11px;font-weight:600;color:var(--muted);line-height:1.2}
.mw-head small{font-size:13px;color:var(--ink-2)}
.mw-who{display:flex;align-items:center;gap:6px;min-width:0;font-size:14px}
.mw-who b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mw-cell{display:grid;place-items:center;height:36px;border-radius:10px;background:var(--surface-2);font-size:20px}
.mw-cell i{width:6px;height:6px;border-radius:50%;background:var(--line-2)}
.mw-row{grid-template-columns:minmax(64px,92px) repeat(7,minmax(0,1fr))}
.mw-cell{height:32px;min-width:0;font-size:18px}
.mw-who b{font-size:13px}
@media(min-width:1350px){ .dash>.dbox.moodweek{grid-column:span 2} }
