/* ==========================================================================
   Arc Home Manager — view-specific styles (loaded after app.css).
   ========================================================================== */

/* boot & shell refinements */
.boot { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; }
.boot .mark { animation: breathe 1.5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(0.93); opacity: 0.75; } }
.tabbar .fab-slot { height: var(--tab-h); display: flex; justify-content: center; align-items: flex-start; }
.tabbar .fab {
  width: 56px; height: 56px; margin-top: -16px; padding: 0; border-radius: 19px; display: grid; place-items: center; gap: 0;
  background: var(--btn); color: var(--on-btn);
  box-shadow: 0 12px 26px -10px color-mix(in oklab, var(--btn) 75%, transparent), 0 0 0 5px var(--bg);
  transition: transform 0.22s var(--spring);
}
.tabbar .fab:active { transform: scale(0.9) rotate(45deg); }
.date-chip { width: 42px; height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1; }
.date-chip b { font-size: 16px; font-variant-numeric: tabular-nums; }
.date-chip small { font-size: 10.5px; color: var(--muted); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.date-chip.today { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }

/* today */
.ph p.eyebrow-date { margin: 0 0 5px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.today-hero .th-main { display: flex; align-items: center; gap: 18px; }
.today-hero .th-t { min-width: 0; }
.today-hero h2 { font-size: 20px; letter-spacing: -0.025em; }
.today-hero p { font-size: 14px; margin-top: 4px; }
.today-hero .ring-c small { color: var(--on-inv-2); }
.th-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.th-chips .chip { min-height: 28px; font-size: 12.5px; padding: 0 10px; }
.th-chips .chip .ico { color: var(--accent-d); }
.th-team { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--inv-line); flex-wrap: wrap; }
.th-team .tm { display: flex; align-items: center; gap: 7px; }
.th-team .tm b { font-variant-numeric: tabular-nums; font-size: 15px; }
.th-team .muted { font-size: 12.5px; margin-left: auto; }
.today-smart { margin: 0; }
.menu-today { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; padding: 12px 16px 16px; }
.mt-slot { position: relative; text-align: left; border: 1px solid var(--line); background: var(--surface-2); border-radius: 13px; padding: 10px 12px; min-width: 0; display: flex; flex-direction: column; gap: 3px; min-height: 76px; transition: border-color 0.15s, transform 0.12s; }
.mt-slot:hover { border-color: var(--line-2); }
.mt-slot:active { transform: scale(0.98); }
.mt-slot small { font-size: 12px; color: var(--muted); font-weight: 500; display: inline-flex; gap: 4px; align-items: center; }
.mt-slot b { font-weight: 500; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-slot.is-empty { border-style: dashed; background: none; }
.mt-slot.is-empty b { color: var(--faint); font-weight: 400; }
.mt-slot.cooked small { color: var(--green); }
.mt-by { position: absolute; right: 8px; top: 8px; }
.us-card .us-cta { width: 78px; height: 78px; border-radius: 50%; border: 2px dashed var(--line-2); background: none; color: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 600; flex: none; }
.us-card .us-cta:hover { border-color: var(--accent); background: var(--accent-soft); }
.us-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; flex: 1; height: 78px; align-items: end; min-width: 0; }
.uw { display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; }
.uw i { width: 100%; max-width: 18px; border-radius: 5px 5px 2px 2px; background: var(--accent); min-height: 4px; }
.uw i.zero { background: var(--track); }
.uw i.now { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--ink-2); }
.uw small { font-size: 11px; color: var(--muted); font-weight: 500; }
.lb-row { display: grid; grid-template-columns: 16px auto 1fr; gap: 10px; align-items: center; padding: 7px 18px; }
.lb-row .rank { font: 600 13px var(--mono); color: var(--muted); }
.lb-row .nm { font-weight: 500; font-size: 14px; }
.lb-row .meter { margin-top: 5px; height: 5px; }
.shoutout { display: flex; gap: 10px; align-items: flex-start; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.shoutout .ico { color: var(--accent); margin-top: 1px; }
.shoutout b { color: var(--ink); font-weight: 600; }
.money-pulse .big { font-size: 30px; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.meter.pace { overflow: visible; position: relative; height: 8px; margin-top: 14px; }
.meter.pace b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 2px; }
.onb .li { padding: 11px 18px; }
.onb .li .tick { width: 24px; height: 24px; }
.onb .li.done .tick { animation: none; }
@media (min-width: 1024px) {
  .today-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .today-hero .th-team { margin: 0; padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--inv-line); flex-direction: column; align-items: flex-start; gap: 10px; }
  .today-hero .th-team .muted { margin-left: 0; order: -1; }
}

/* shared list bits */
.li-s .due.red { color: var(--red); } .li-s .due.amber { color: var(--amber); } .li-s .due.blue { color: var(--blue); }
.group-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 4px 8px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }
.group-h.red { color: var(--red); }
.group-h:first-child { padding-top: 4px; }
.li.is-sel { background: var(--accent-soft); }
.cb { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; }
@media (max-width: 480px) { .fm { grid-template-columns: 1fr; } }

/* tasks */
.fair { padding: 16px 18px; }
.fair h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.fair h3 .ico { color: var(--muted); }

/* cleaning */
.fresh { height: 4px; border-radius: 99px; background: var(--track); margin-top: 8px; overflow: hidden; max-width: 240px; }
.fresh i { display: block; height: 100%; border-radius: inherit; transition: width 0.6s var(--ease); }
.fresh i.ok { background: var(--green); } .fresh i.warn { background: var(--amber); } .fresh i.bad { background: var(--red); }
.fresh-hero { display: flex; gap: 18px; align-items: flex-start; padding: 18px; flex-wrap: wrap; }
.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.zone { padding: 8px 10px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; text-decoration: none; color: var(--ink); }
.zone b { display: flex; justify-content: space-between; gap: 6px; font-weight: 500; }
.zone b span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zone .fresh { max-width: none; margin-top: 7px; }

/* calendar */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 10px 10px 12px; }
.cal-grid .wd { text-align: center; font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 4px 0 6px; }
.cal-d { min-height: 54px; border: 0; border-radius: 12px; background: none; display: flex; flex-direction: column; align-items: center; padding: 6px 0; gap: 4px; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink); }
.cal-d:hover { background: var(--surface-2); }
.cal-d.out { color: var(--faint); }
.cal-d.is-sel { background: var(--bg-2); }
.cal-d .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 500; }
.cal-d.today .n { background: var(--btn); color: var(--on-btn); font-weight: 600; }
.cal-dots { display: flex; gap: 3px; min-height: 5px; }
.cal-dots i { width: 5px; height: 5px; border-radius: 50%; }

/* shopping */
.qty { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 7px; }
.cat-h { display: flex; align-items: center; gap: 8px; padding: 14px 16px 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); border-top: 1px solid var(--line); }
.list > .cat-h:first-child { border-top: 0; }
.cat-h .ico { color: var(--muted); }
.cat-h .n { margin-left: auto; font-weight: 500; color: var(--muted); }
.cat-h + .li { border-top: 0; }
.addcard { padding: 12px; }
.addcard .chip { flex: none; max-width: 42%; }
.addcard .chip span { overflow: hidden; text-overflow: ellipsis; }
.addcard .btn { flex: none; width: 44px; padding: 0; }
.again { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-width: 0; }
.again .hint { flex: none; font-size: 12px; font-weight: 500; }
.again .chips.scroll { margin: 0; padding: 0; min-width: 0; flex: 1; flex-wrap: nowrap; overflow-x: auto; }
details.recent > summary { list-style: none; cursor: pointer; }
details.recent > summary::-webkit-details-marker { display: none; }

/* kitchen */
.week-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 82%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 14px; scrollbar-width: none; }
.week-grid::-webkit-scrollbar { display: none; }
.wday { scroll-snap-align: start; overflow: hidden; }
.wday.today { border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 30%, transparent); }
.wday.past { opacity: 0.72; }
.wday-h { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px 8px; }
.wday-h b { font-size: 15px; }
.wday-h small { color: var(--accent-ink); font-weight: 600; font-size: 12px; }
.wslot { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 14px; border-top: 1px solid var(--line); min-height: 50px; }
.wslot .sl { width: 92px; font-size: 12px; color: var(--muted); font-weight: 500; flex: none; display: inline-flex; align-items: center; gap: 5px; }
.wslot .dish { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 6px 0; font-weight: 500; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 8px; }
.wslot .dish:hover { color: var(--accent-ink); }
.wslot .dish.is-empty { color: var(--faint); font-weight: 400; }
.wslot .tick { width: 24px; height: 24px; }
.wslot .tick .ico { width: 13px; height: 13px; }
@media (min-width: 720px) { .week-grid { grid-auto-columns: minmax(220px, 31%); margin: 0; padding: 2px 0 14px; } }
@media (min-width: 1360px) {
  .week-grid { grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 8px; }
  .wslot { flex-wrap: wrap; padding: 8px 10px; gap: 2px 6px; }
  .wslot .sl { width: 100%; }
  .wslot .dish { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding: 2px 0; font-size: 13.5px; }
  .wday-h { padding: 10px 10px 6px; }
}
.pick-list { max-height: 44vh; overflow: auto; }
.pick-list .li { border-left: 0; border-right: 0; }
.diet { width: 14px; height: 14px; border: 1.6px solid var(--green); border-radius: 3px; display: inline-grid; place-items: center; flex: none; }
.diet i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.diet.nonveg { border-color: #b3401e; } .diet.nonveg i { background: #b3401e; }
.diet.egg { border-color: var(--amber); } .diet.egg i { background: var(--amber); }
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.dcard { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.dcard:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.dcard h4 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.dcard .tags { display: flex; gap: 5px; flex-wrap: wrap; }
.star { color: var(--faint); }
.star.on { color: var(--c4); }
.star.on .ico { fill: currentColor; }
.pantry-row { flex-wrap: wrap; }
.pantry-row .li-m { min-width: 140px; cursor: pointer; }
.lvl { display: inline-flex; gap: 2px; background: var(--bg-2); padding: 3px; border-radius: 10px; flex: none; }
.lvl button { border: 0; height: 30px; padding: 0 9px; border-radius: 8px; background: none; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.lvl button:hover { color: var(--ink); }
.lvl button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.lvl button.on.l0 { background: var(--red-soft); color: var(--red); box-shadow: none; }
.lvl button.on.l1 { background: var(--amber-soft); color: var(--amber); box-shadow: none; }
.lvl button.on.l3 { background: var(--green-soft); color: var(--green); box-shadow: none; }

/* money */
.receipt { display: flex; align-items: center; gap: 12px; }
.receipt img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.delta.up { color: var(--red); } .delta.down { color: var(--green); }
.kpi.inv .delta.up { color: #ff8b98; } .kpi.inv .delta.down { color: #6fdca0; }
.settle { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; padding: 14px 18px; }
.settle .who { display: flex; align-items: center; gap: 9px; }
.settle .who b { font-weight: 600; font-size: 14px; }
.settle-r b { font-size: 14.5px; }
@media (max-width: 559px) { .settle .settle-r { flex: 1 1 100%; } }
.budget-hero { padding: 18px; }
.goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.goal { padding: 16px; display: flex; gap: 14px; align-items: center; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.goal:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.goal h4 { font-size: 15.5px; }
.goal .ring-c .ico { width: 24px; height: 24px; }
.goal .btn { align-self: flex-start; }

/* bills & subscriptions */
.logo-tile { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: var(--c); flex: none; letter-spacing: -0.02em; }

/* health */
.slot-h { display: flex; align-items: center; gap: 8px; padding: 14px 16px 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); border-top: 1px solid var(--line); }
.list > .slot-h:first-child { border-top: 0; }
.slot-h small { color: var(--muted); font-weight: 500; }
.slot-h .ico { color: var(--accent); }
.slot-h + .li { border-top: 0; }
.vital-card { padding: 12px 18px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.vital-big { font-size: 30px; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.vital-big small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 5px; letter-spacing: 0; }
.vital-chart { max-width: 320px; flex: 1; min-width: 200px; }
.disclaimer { font-size: 12.5px; color: var(--muted); margin-top: 14px; display: flex; gap: 6px; align-items: center; }

/* us time */
.us-hero { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.us-hero .ring-c small { color: var(--on-inv-2); }
.us-parts { display: grid; gap: 9px; flex: 1; min-width: 220px; }
.us-part { display: grid; grid-template-columns: 76px 1fr 46px; gap: 10px; align-items: center; font-size: 13.5px; color: var(--on-inv-2); }
.us-part .meter { margin: 0; background: var(--inv-line); }
.us-part b { text-align: right; font-variant-numeric: tabular-nums; color: var(--on-inv); }
.checkins { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.checkins > span { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; }
.checkins .ico { color: var(--accent-d); }
.checkins .av { box-shadow: 0 0 0 2px var(--inv); }
.us-cta.big { width: 132px; height: 132px; border-radius: 50%; border: 2px dashed var(--inv-line); background: var(--inv-2); color: var(--on-inv); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 13px; text-align: center; padding: 14px; }
.us-cta.big .ico { color: var(--accent-d); }
.us-week.tall { height: 120px; }
.idea-t { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }

/* rewards */
.lvl-badge { width: 76px; height: 76px; border-radius: 22px; background: var(--accent); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--accent) 80%, transparent); }
.lvl-badge b { font-size: 30px; line-height: 1; letter-spacing: -0.03em; }
.lvl-badge small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.85); margin-top: 2px; }
.lvl-hero .meter { background: var(--inv-line); }
.lvl-stats { display: flex; gap: 22px; }
.lvl-stats div { display: flex; flex-direction: column; }
.lvl-stats b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.lvl-stats b small { font-size: 13px; color: var(--on-inv-2); font-weight: 500; }
.lvl-stats span { font-size: 12.5px; color: var(--on-inv-2); }
.seg.inline a { flex: 1; border: 0; border-radius: 9px; min-height: 30px; padding: 0 10px; font-weight: 500; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.seg.inline a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.lb-row.big { grid-template-columns: 20px auto 1fr 44px; padding: 10px 18px; }
.lb-row .rank .ico { color: var(--c4); }
.delta-s { font-size: 12px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.delta-s.ok { color: var(--green); } .delta-s.bad { color: var(--red); }
.bdg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bdg { padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bdg .bi { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-2); color: var(--faint); margin-bottom: 4px; }
.bdg.on .bi { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px color-mix(in oklab, var(--accent) 80%, transparent); }
.bdg b { font-size: 14px; font-weight: 600; }
.bdg small { color: var(--muted); font-size: 12.5px; line-height: 1.35; display: flex; align-items: center; gap: 4px; }
.bdg small.ok { color: var(--green); }
.bdg .meter { margin-top: auto; height: 4px; }
.kudo-sticker { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--c4) 16%, var(--surface)); color: var(--c4); flex: none; }
details.how > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
details.how > summary::-webkit-details-marker { display: none; }
details.how[open] > summary .ico { transform: rotate(180deg); }

/* trips */
.trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.trip-card { overflow: hidden; }
.trip-cover { height: 92px; position: relative; color: #fff; display: flex; align-items: flex-end; justify-content: space-between; padding: 12px 14px; background: linear-gradient(135deg, var(--c), color-mix(in oklab, var(--c) 45%, #0b0c0e)); }
.trip-cover .big { font-size: 44px; font-weight: 700; letter-spacing: -0.05em; line-height: 0.85; opacity: 0.92; }
.trip-cover .pill, .trip-hero .pill { background: rgba(255, 255, 255, 0.18); color: #fff; }
.trip-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 9px; }
.trip-body h3 { font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-body .meter { margin-top: 0; }
.trip-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.trip-meta span { display: inline-flex; gap: 5px; align-items: center; }
.trip-hero { border-radius: var(--r-xl); padding: 20px; color: #fff; margin: 0; background: linear-gradient(135deg, var(--c), color-mix(in oklab, var(--c) 42%, #0b0c0e)); box-shadow: var(--sh-2); }
.trip-hero h1 { font-size: 26px; letter-spacing: -0.03em; }
.trip-hero p { color: rgba(255, 255, 255, 0.82); margin-top: 4px; }
.trip-hero .stats { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 18px; }
.trip-hero .stats b { display: block; font-size: 18px; letter-spacing: -0.02em; }
.trip-hero .stats span { font-size: 12.5px; color: rgba(255, 255, 255, 0.72); }
.btn-glass { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.24); }
.time-col { width: 62px; flex: none; font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.group-h .av { margin-right: 6px; }
.group-h { gap: 6px; }

/* bucket list */
.bucket-hero { display: flex; gap: 18px; align-items: center; padding: 16px 18px; }
.bucket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.bcard { padding: 16px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.bcard:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.bcard h4 { font-size: 16px; letter-spacing: -0.015em; line-height: 1.3; }
.bcard.done { background: color-mix(in oklab, var(--green) 5%, var(--surface)); }
.bicon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in oklab, var(--c) 15%, var(--surface)); color: var(--c); }
.memory { font-size: 14px; color: var(--ink-2); font-style: italic; line-height: 1.45; }

/* help & services */
.helper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.helper-card .card-f { gap: 8px; }
.helper-card .seg.inline { width: auto; }
.seg.sm button { min-height: 28px; font-size: 12.5px; padding: 0 9px; }
.att-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.att-grid .wd { text-align: center; font-size: 11px; color: var(--muted); font-weight: 600; padding-bottom: 2px; }
.att { aspect-ratio: 1; min-height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-variant-numeric: tabular-nums; color: var(--ink); padding: 0; }
.att small { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; min-height: 11px; }
.att.p { background: var(--green-soft); color: var(--green); border-color: transparent; }
.att.a { background: var(--red-soft); color: var(--red); border-color: transparent; }
.att.h { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.att.off { background: var(--bg-2); color: var(--faint); border-style: dashed; }
.att.future { opacity: 0.35; }
.att.today { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); }
.pay-sum { display: grid; gap: 7px; font-size: 14px; color: var(--ink-2); }
.pay-sum div { display: flex; justify-content: space-between; gap: 10px; }
.pay-sum b { font-variant-numeric: tabular-nums; color: var(--ink); }
.pay-sum .tot { border-top: 1px solid var(--line); padding-top: 9px; margin-top: 2px; font-size: 16px; }

/* home info */
.call-btns { display: flex; gap: 6px; flex: none; }
.note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.note { padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.note-body { white-space: pre-wrap; font-size: 14px; color: var(--ink-2); line-height: 1.5; max-height: 150px; overflow: hidden; font-family: var(--mono); font-size: 13px; }

/* settings */
.set-layout { display: grid; gap: 4px; }
.set-sec { padding: 18px 20px; }
.set-sec h3 { font-size: 16px; }
.set-sec > .hint:first-of-type { margin: 4px 0 14px; }
.set-sec .fm { margin-top: 6px; }
.le-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.le-row .inp { height: 40px; }
.accent-sw { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.accent-sw button { display: flex; gap: 9px; align-items: center; min-width: 0; min-height: 40px; padding: 8px 11px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--ink); }
.accent-sw button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accent-sw button:hover { border-color: color-mix(in oklab, var(--line-2) 60%, var(--ink)); }
.accent-sw button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.accent-sw i { width: 18px; height: 18px; border-radius: 50%; background: var(--cl, var(--c)); flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
:root[data-theme="dark"] .accent-sw i { background: var(--cd, var(--c)); }
.set-sec > h3 + .hint { margin: 4px 0 0; }
.set-sec .fm { margin-top: 16px; }
.set-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.set-foot { margin-top: 10px; }
.set-group-h { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; padding: 10px 4px 0; }
.pf-head { gap: 14px; margin-bottom: 4px; }
.id-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); margin-top: 14px; flex-wrap: wrap; }
.id-row small { display: block; font-size: 12px; color: var(--muted); }
.id-row b { font-size: 15px; }
.lst-card .row.between { align-items: flex-start; }
.lst-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lst-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 99px; background: var(--bg-2); color: var(--ink-2); font-size: 12.5px; font-weight: 500; max-width: 100%; }
.lst-chip .ico { color: var(--muted); }
.lst-chip small { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 2px; }
.lst-chip.more { background: none; border: 1px dashed var(--line-2); color: var(--muted); }
.pp-list, .people-list, .mods-list, .kbd-list { margin-top: 12px; }
.pp-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pp-empty { margin-top: 10px; }
.kbd-list .li { padding: 9px 0; }
.demo-card .id-row .grow { flex: 1 1 120px; }
.url-box + .set-actions { margin-top: 12px; }
.url-box { margin-top: 14px; }
.url-box { font-family: var(--mono); font-size: 12.5px; word-break: break-all; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; color: var(--ink-2); }
.how-steps { margin-top: 14px; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.savebar { position: sticky; bottom: calc(var(--tab-h) + var(--safe-b)); display: flex; justify-content: flex-end; z-index: 5; margin: 0 -16px; padding: 10px 16px; background: color-mix(in oklab, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
#mods .li { cursor: pointer; }
#mods .switch { padding: 0; }
@media (min-width: 1024px) {
  .savebar { bottom: 0; margin: 0; padding: 12px 0; }
  .set-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
  .set-nav { position: sticky; top: 24px; flex-direction: column; border-bottom: 0; margin: 0; gap: 2px; }
  .set-nav a { border-bottom: 0; margin: 0; border-radius: 10px; padding: 9px 12px; }
  .set-nav a.on { background: var(--surface); box-shadow: var(--sh-1); }
  .set-nav a .ico { color: var(--muted); }
  .set-nav a.on .ico { color: var(--accent); }
}

.seg.inline a, .seg.inline button { white-space: nowrap; }

.ph .ph-desk { display: none; }
@media (min-width: 1024px) { .ph .ph-desk { display: flex; } }
.fair .row.between { flex-wrap: wrap; row-gap: 4px; }

/* celebrations: badge and level cards (fx.js) */
.ach-modal .modal-b { padding-top: 2px; }
.ach-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 6px 4px 4px; }
.ach-card .k { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); margin-top: 12px; }
.ach-card h2 { font-size: 21px; letter-spacing: -0.025em; line-height: 1.2; }
.ach-card p { max-width: 300px; }
.ach-badge { width: 88px; height: 88px; border-radius: 28px; display: grid; place-items: center; background: var(--btn); color: var(--on-btn); box-shadow: 0 16px 36px -14px color-mix(in oklab, var(--btn) 80%, transparent); animation: achIn 0.6s var(--spring) both; }
.ach-level { position: relative; width: 112px; height: 112px; display: grid; place-items: center; }
.ach-level svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ach-level circle { fill: none; stroke-width: 9; }
.ach-level .t { stroke: var(--track); }
.ach-level .v { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; animation: achRing 1.1s var(--ease) 0.15s forwards; }
.ach-level b { font-size: 40px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; animation: achIn 0.6s var(--spring) 0.2s both; }
@keyframes achRing { to { stroke-dashoffset: 0; } }
@keyframes achIn { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.shoutout.news { background: color-mix(in oklab, var(--accent) 6%, var(--surface)); }

/* us time & me time */
.min-chips { margin-top: -6px; }
.us-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.us-stats .hint { display: inline-flex; align-items: center; gap: 5px; }
.us-empty-t { font-size: 20px; }
.us-parts .muted { margin-top: 6px; }
.how-score { margin-top: 6px; line-height: 1.55; }

/* sample home ready dialog */
.demo-login { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); margin-bottom: 16px; }
.demo-login small { display: block; font-size: 12px; color: var(--muted); }
.demo-login b { font-size: 15px; }
.demo-try b { display: block; margin-bottom: 8px; }
.demo-try ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.demo-try li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.demo-try li .ico { color: var(--accent); margin-top: 2px; }

/* ---------------------------------------------------------------- page rhythm (session 2)
   Everything stacked on a page, or inside a view's inner host (.vstack), sits 14px apart.
   Headers, tab strips and group headings bring their own spacing. */
.page > * + *, .vstack > * + * { margin-top: 14px; }
.page > .ph + *, .vstack > .ph + *, .page > .tabs + *, .vstack > .tabs + * { margin-top: 0; }
.page > * + .group-h, .vstack > * + .group-h, .page > .group-h + *, .vstack > .group-h + * { margin-top: 0; }
.vstack:empty { display: none; }
/* tablets: wider gutters, two columns once there is room */
@media (min-width: 720px) and (max-width: 1023px) {
  .page { padding-left: 28px; padding-right: 28px; }
  .tabs, .chips.scroll { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .savebar { margin: 0 -28px; padding: 10px 28px; }
}
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } .cols.even { grid-template-columns: 1fr 1fr; } }
/* phone sheets: footer buttons share the row instead of wrapping unevenly */
@media (max-width: 719px) {
  .modal-f .sp { display: none; }
  .modal-f .btn { flex: 1 1 0; min-width: max-content; }
}
