/* Academy brand with native interface type for compact controls and longer reading. */
@font-face { font-family: 'Nekst Mono'; src: url('/assets/NekstMono-Light.otf') format('opentype'); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nekst Mono'; src: url('/assets/NekstMono-Bold.otf') format('opentype'); font-weight: 600 900; font-style: normal; font-display: swap; }
:root {
  --bg: #f2f2f7;
  --side: #f7f7f9;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #515154;
  --ink-3: #6b6b70;
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .05);
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .08);
  --accent: #ff4b00;
  --accent-ink: #b83400;
  --accent-soft: rgba(255, 75, 0, .1);
  --green: #197b42;
  --green-soft: rgba(31, 157, 85, .12);
  --amber: #c27400;
  --amber-soft: rgba(255, 159, 10, .16);
  --red: #d70015;
  --red-soft: rgba(215, 0, 21, .1);
  --pill-dark: #1d1d1f;
  --s-in: #2a78d6;
  --s-out: #ff4b00;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 14px rgba(0, 0, 0, .04);
  --r: 22px;
  --r-sm: 12px;
  --side-w: 256px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000; --side: #0b0b0d; --card: #1c1c1e; --ink: #f5f5f7; --ink-2: #c7c7cc; --ink-3: #8e8e93;
    --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .06); --fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .16);
    --accent: #ff4b00; --accent-ink: #ff8552; --accent-soft: rgba(255, 75, 0, .16); --green: #30d158; --green-soft: rgba(48, 209, 88, .16);
    --amber: #ffb340; --amber-soft: rgba(255, 179, 64, .16); --red: #ff6961; --red-soft: rgba(255, 105, 97, .16); --pill-dark: #f5f5f7; --s-in: #3987e5; --s-out: #e8501a;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000; --side: #0b0b0d; --card: #1c1c1e; --ink: #f5f5f7; --ink-2: #c7c7cc; --ink-3: #8e8e93;
  --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .06); --fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .16);
  --accent: #ff4b00; --accent-ink: #ff8552; --accent-soft: rgba(255, 75, 0, .16); --green: #30d158; --green-soft: rgba(48, 209, 88, .16);
  --amber: #ffb340; --amber-soft: rgba(255, 179, 64, .16); --red: #ff6961; --red-soft: rgba(255, 105, 97, .16); --pill-dark: #f5f5f7; --s-in: #3987e5; --s-out: #e8501a;
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -.005em;
}
h1, h2, h3 { margin: 0; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif; }
h1 { font-size: 30px; line-height: 1.12; font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: 19px; line-height: 1.25; font-weight: 650; letter-spacing: -.015em; }
h3 { font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); font-size: 13px; }
.small { font-size: 13px; }
em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.ic { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; border-radius: 8px; }

/* ---------- shell ---------- */
#app { min-height: 100vh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--side);
  border-right: 1px solid var(--line-2); display: flex; flex-direction: column; padding: 18px 12px 16px; overflow-y: auto; z-index: 5;
}
.who { display: flex; gap: 12px; align-items: center; padding: 14px 12px; margin-bottom: 14px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.who b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.who small { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.who small.faint { color: var(--ink-3); }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #111; font-weight: 600; font-size: 13px; flex: none; letter-spacing: 0; }
.avatar.lg { width: 42px; height: 42px; font-size: 15px; }
.avatar.xl { width: 64px; height: 64px; font-size: 22px; }
.nav-h { margin: 16px 12px 6px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.side nav a, .side-foot a, .side-foot button {
  display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2);
  font-size: 14.5px; font-weight: 500; border: 0; background: none; width: 100%; text-align: left; transition: background .15s, color .15s, transform .1s;
}
.side nav a:hover, .side-foot a:hover, .side-foot button:hover { background: var(--fill-2); color: var(--ink); }
.side nav a:active, .side-foot button:active { transform: scale(.98); }
.side nav a.on { background: var(--pill-dark); color: var(--card); }
.side nav a.on .ic { color: var(--card); }
.side-foot { margin-top: auto; padding-top: 16px; }
.side-foot .brand { display: block; margin: 14px 12px 2px; font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .01em; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 2px 12px 20px; font-size: 14px; font-weight: 650; }
.side-brand img, .top-brand img { display: block; width: 38px; height: 38px; border-radius: 11px; }
.top-brand { display: none; }

.main { margin-left: var(--side-w); min-height: 100vh; }
.top { position: sticky; top: 0; z-index: 4; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.top-title { font-weight: 600; font-size: 15px; opacity: 0; transition: opacity .2s; }
.save { font-size: 12.5px; color: var(--ink-3); display: inline-flex; gap: 8px; align-items: center; margin-left: auto; }
.save::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.save.saving::before { background: var(--amber); }
.save.error { color: var(--red); }
.save.error::before { background: var(--red); }
.save button { border: 0; background: none; color: var(--accent-ink); font-weight: 600; padding: 0; }

#view { outline: none; }
.page { max-width: 1120px; margin: 0 auto; padding: 8px 32px 72px; }
.page.narrow, .sub.narrow { max-width: 720px; }
.arrive { animation: arrive .32s var(--ease) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .arrive { animation: fade .2s both; } @keyframes fade { from { opacity: 0; } } }

.tabbar { display: none; }
.sheet, .sheet-scrim { display: none; }

/* ---------- page parts ---------- */
.hello { padding: 22px 0 22px; }
.hello .date { font-size: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.hello .date, .eyebrow, .metric strong, strong.big, .code { font-family: 'Nekst Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.hello h1 { font-size: 34px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 22px 0 22px; }
.page-head p { margin-top: 6px; max-width: 620px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 32px 2px 12px; }
.section-h h2 { font-size: 21px; }
.eyebrow { font-size: 12.5px; font-weight: 600; color: var(--accent-ink); margin-bottom: 6px; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.two-one { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
.grid.one-one { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.grid.calc { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
.page > * + .grid, .page > * + .card, .sub > * + .grid, .sub > * + .card { margin-top: 16px; }
.page > :is(.section-h, .page-head, .hello, .toolbar, .tally, .chips, .step-hero, .banner, .stepper-dots, .back, .client-hero, .tabs) + *,
.sub > :is(.section-h, .page-head, .hello, .toolbar, .tally, .banner) + * { margin-top: 0; }

.card { background: var(--card); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
a.card { display: block; transition: transform .12s var(--ease), box-shadow .2s; }
a.card:active { transform: scale(.985); }
a.card:hover .chev { transform: translateX(2px); color: var(--ink-2); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; min-height: 22px; }
.card-h.pad { margin-bottom: 4px; }
.card-f { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.card-f .link { margin-left: auto; }
.label { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.label .ic { width: 17px; height: 17px; }
.label.orange { color: var(--accent-ink); }
.label.green { color: var(--green); }
.chev { width: 16px; height: 16px; color: var(--ink-3); transition: transform .15s var(--ease); }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.orange { background: var(--accent-soft); color: var(--accent-ink); }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.red { background: var(--red-soft); color: var(--red); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0;
  background: var(--fill); color: var(--ink); font-weight: 600; font-size: 14.5px; transition: transform .1s var(--ease), background .15s, opacity .15s; white-space: nowrap; }
.btn .ic { width: 17px; height: 17px; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: #111; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
.btn.ghost { background: var(--fill-2); }
.btn.ghost:hover { background: var(--fill); }
.btn.danger { color: var(--red); }
.btn.wide { width: 100%; }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 13.5px; }
.btn:disabled { opacity: .5; pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.link .ic { width: 16px; height: 16px; }
.link.danger { color: var(--red); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--fill-2); color: var(--ink-2); flex: none; }
.icon-btn:active { transform: scale(.94); }
.icon-btn:disabled { opacity: .35; }
.icon-btn .ic { width: 17px; height: 17px; }

/* banner */
.banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r); background: var(--accent); color: #111; margin-bottom: 16px; transition: transform .12s var(--ease); }
.banner:active { transform: scale(.99); }
.banner b { display: block; font-size: 16px; }
.banner small { display: block; opacity: .9; font-size: 13.5px; }
.banner .chev { color: currentColor; margin-left: auto; }
.banner-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .2); }

/* plan */
.plan-card h2 { font-size: 22px; margin-bottom: 6px; }
.plan-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; margin: 4px 0 22px; }
.plan-progress strong { font-family: 'Nekst Mono', ui-monospace, monospace; font-size: 44px; font-variant-numeric: tabular-nums; letter-spacing: -.06em; line-height: 1.15; }
.plan-progress strong span { font-size: 25px; color: var(--ink-3); }
.plan-progress > span { grid-column: 1; color: var(--ink-2); font-size: 14px; }
.plan-progress > svg { grid-column: 2; grid-row: 1 / 3; }
.next-action-label { margin: 18px 0 0; }
.today-prompts { margin-top: 16px; }
.today-prompts:has(> div:empty):not(:has(.banner)) { display: none; }
.summary { color: var(--ink-2); margin-bottom: 10px; }
.checklist { list-style: none; margin: 6px 0 0; padding: 0; }
.checklist li + li { border-top: 1px solid var(--line-2); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 1.7px solid var(--ink-3); transition: background .18s var(--ease), border-color .18s, transform .1s; }
.check .box .ic { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--ease); stroke-width: 2.4; }
.check:active .box { transform: scale(.9); }
.check.done .box { background: var(--accent); border-color: var(--accent); }
.check.done .box .ic { opacity: 1; transform: none; }
.check .txt b { font-weight: 500; display: block; transition: color .2s; }
.check.done .txt b { color: var(--ink-3); }
.check .txt small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.check input:focus-visible + .box { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.check input:disabled ~ * { cursor: default; }
.empty-sm { padding: 14px 0 6px; }
.empty-sm h2 { font-size: 18px; margin-bottom: 6px; }

.next-card h2 { font-size: 20px; margin-bottom: 6px; }
.next-card .btn { margin-top: 16px; }
.meter { height: 6px; border-radius: 99px; background: var(--fill); overflow: hidden; margin: 16px 0 8px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s var(--ease); }

/* metric card (Apple Health) */
.metric .card-h { margin-bottom: 18px; }
.metric .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-b { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.metric strong, .big { font-size: 34px; font-weight: 650; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.big { display: block; margin: 2px 0 10px; }
.huge { display: block; font-size: 46px; font-weight: 700; letter-spacing: -.035em; line-height: 1; margin: 10px 0 18px; font-variant-numeric: tabular-nums; }
.unit { display: inline-block; margin-left: 6px; font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.bars { display: inline-flex; align-items: flex-end; gap: 4px; flex: none; }
.bars i { display: block; width: 7px; border-radius: 3px; background: var(--fill); }
.bars i.zero { opacity: .55; }
.bars i.now { background: var(--accent); }

.row-kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.row-kv span { color: var(--ink-2); }
.row-kv b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.row-kv.stack { flex-direction: column; gap: 2px; }
.row-kv.stack b { text-align: left; font-weight: 500; }

.ring-track { fill: none; stroke: var(--fill); stroke-width: 4.5; }
.ring-fill { fill: none; stroke: var(--accent); stroke-width: 4.5; stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.ring { flex: none; }

/* six-step strip */
.steps-strip { margin-top: 16px; }
.steps-strip ol { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.steps-strip a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; transition: background .15s; }
.steps-strip a:hover { background: var(--fill-2); }
.steps-strip .n { position: absolute; top: 20px; font-size: 13px; font-weight: 650; }
.steps-strip b { font-size: 14px; font-weight: 600; margin-top: 4px; }
.steps-strip small { font-size: 12px; color: var(--ink-3); }
.steps-strip li.now a { background: var(--accent-soft); }
.steps-strip li.now b { color: var(--accent-ink); }

/* toolbar / segmented */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.week-nav { display: flex; align-items: center; gap: 12px; }
.week-nav b { display: block; font-size: 16px; }
.week-nav small { display: block; font-size: 12.5px; color: var(--ink-3); }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--fill); gap: 2px; max-width: 100%; }
.seg.scroll { overflow-x: auto; scrollbar-width: none; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.tally { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--ink-2); }
.tally .ring { width: 28px; height: 28px; }

/* KPI entry */
.kpi h3 { margin-bottom: 14px; }
.kpi-row { display: flex; align-items: center; gap: 14px; }
.kpi-row .bars { margin-left: auto; }
.stepper { display: inline-flex; align-items: center; background: var(--fill-2); border-radius: 999px; padding: 3px; }
.stepper button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); transition: transform .1s; }
.stepper button:active { transform: scale(.9); }
.stepper button .ic { width: 16px; height: 16px; }
.stepper input { width: 52px; border: 0; background: none; text-align: center; font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.target { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.target input { width: 52px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 8px; background: transparent; text-align: center; font-variant-numeric: tabular-nums; }
.why { margin-top: 14px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.why summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-2); list-style: none; }
.why summary::-webkit-details-marker { display: none; }
.why summary::after { content: " +"; color: var(--ink-3); }
.why[open] summary::after { content: " −"; }
.why p { font-size: 14px; color: var(--ink-2); margin-top: 8px; }

/* deals */
.deal { cursor: pointer; transition: transform .12s var(--ease); }
.deal:active { transform: scale(.985); }
.deal h3 { margin-bottom: 8px; }
.deal .next { display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.deal .next .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.deal .link { margin-top: 10px; }
.fold-plain { margin-top: 18px; }
.fold-plain summary { cursor: pointer; font-weight: 600; color: var(--ink-2); padding: 6px 2px; }
.fold-plain > .grid { margin-top: 10px; }

/* forms */
.form-card { padding: 22px; }
.form-card > h2 { margin-bottom: 4px; }
.form-card > p.muted { margin-bottom: 14px; }
.field { display: block; margin-top: 14px; }
.field > span:first-child { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.field input:not([type=checkbox]), .field select, .field textarea, .save-row input, .search input {
  width: 100%; padding: 11px 13px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); font-size: 16px;
  transition: border-color .15s, box-shadow .15s, background .15s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; padding-right: 36px; }
.field textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus, .save-row input:focus, .search input:focus { outline: none; border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: .55; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field-row.three { grid-template-columns: repeat(3, 1fr); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.field-grid .field:nth-child(-n+2) { margin-top: 0; }
.money-in, .unit-in { position: relative; display: block; }
.money-in i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--ink-3); }
.money-in input { padding-left: 28px !important; }
.unit-in i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--ink-3); font-size: 13px; pointer-events: none; }
.unit-in input { padding-right: 40px !important; }
.form-error { color: var(--red); font-size: 14px; min-height: 0; margin-top: 10px; }
.form-error:empty { display: none; }
.form-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 20px; }
.btn-pair { display: inline-flex; gap: 8px; flex-wrap: wrap; max-width: 100%; }
.btn-pair > .btn { max-width: 100%; white-space: normal; padding-top: 10px; padding-bottom: 10px; }
.form-card > .small.faint { margin-top: 12px; }
.pot { margin-top: 18px; padding: 16px; border-radius: var(--r-sm); background: var(--green-soft); }
.pot span { display: block; font-size: 13.5px; font-weight: 600; color: var(--green); }
.pot strong { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.03em; margin: 2px 0 4px; }
.pot small { color: var(--ink-2); font-size: 13px; }
.stepper-dots { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.stepper-dots button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--fill-2); color: var(--ink-2); padding: 6px 14px 6px 6px; border-radius: 999px; font-weight: 600; font-size: 13.5px; }
.stepper-dots button span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--card); font-size: 12px; }
.stepper-dots button span .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.stepper-dots .on button { background: var(--pill-dark); color: var(--card); }
.stepper-dots .on button span { color: var(--ink); }
.stepper-dots .past button span { background: var(--accent); color: #111; }
.answers h2 { margin-bottom: 8px; }
.qa { padding: 10px 0; border-top: 1px solid var(--line-2); }
.qa span { display: block; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.qa p { white-space: pre-wrap; }

/* dialog as sheet */
.sheet-dialog { border: 0; padding: 0; border-radius: 22px; background: var(--card); color: var(--ink); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 24px 80px rgba(0, 0, 0, .25); }
.sheet-dialog::backdrop { background: rgba(0, 0, 0, .3); backdrop-filter: blur(2px); }
.sheet-dialog[open] { animation: pop .28s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.sheet-dialog form { padding: 20px 22px 22px; }
.dialog-h { display: flex; justify-content: space-between; align-items: center; }
.dialog-f { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.dialog-f .btn.primary { margin-left: auto; }

/* empty states */
.empty { text-align: center; padding: 56px 24px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.empty h2 { margin: 14px 0 6px; font-size: 20px; }
.empty p { max-width: 420px; margin: 0 auto 16px; }
.empty-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.empty-ic .ic { width: 26px; height: 26px; }

/* folds */
.fold summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary > span:first-child { flex: 1; }
.fold summary b { display: block; }
.fold summary small { display: block; color: var(--ink-3); font-size: 13px; }
.fold[open] summary .chev { transform: rotate(90deg); }
.fold[open] summary { margin-bottom: 10px; }
.list { display: grid; gap: 10px; }

/* steps */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: none; }
.chips a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--card); font-weight: 600; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; box-shadow: var(--shadow); }
.chips a:not(:has(svg)) { padding-left: 14px; }
.chips a.on { background: var(--pill-dark); color: var(--card); }
.chips .ring { width: 22px; height: 22px; }
.chips a.on .ring-track { stroke: rgba(255, 255, 255, .25); }
.step-hero { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0 26px; }
.step-num { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--accent); color: #fff; font-size: 30px; font-weight: 700; }
.step-hero h1 { margin-bottom: 8px; }
.step-hero .muted { max-width: 640px; font-size: 16px; }
.lessons { display: grid; gap: 10px; }
.lesson { display: flex; gap: 14px; background: var(--card); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.lesson > span { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--fill); font-size: 13px; font-weight: 650; }
.lesson h3 { margin-bottom: 4px; }
.lesson p { color: var(--ink-2); font-size: 14.5px; }
.sticky { position: sticky; top: 68px; margin-top: 44px; }
.gate { margin: 14px 0; padding: 14px; border-radius: var(--r-sm); background: var(--fill-2); font-size: 14px; }
.gate b { display: block; margin-bottom: 4px; }
.gate p { color: var(--ink-2); }
.list-card { padding: 6px 20px; }
.acc { border-top: 1px solid var(--line-2); }
.list-card > .acc:first-child, .list-card > .card-h + .acc { border-top: 0; }
.acc summary { display: flex; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary b { flex: 1; font-weight: 600; }
.acc summary .n { font-size: 12.5px; font-weight: 650; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.acc .plus { width: 16px; height: 16px; color: var(--ink-3); transition: transform .2s var(--ease); }
.acc[open] .plus { transform: rotate(45deg); }
.acc p { padding: 0 0 16px; color: var(--ink-2); font-size: 14.5px; }
.acc .n + b + .plus { margin-left: auto; }
.ticks, .dots { margin: 0; padding: 0; list-style: none; }
.ticks li, .dots li { position: relative; padding: 8px 0 8px 26px; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.ticks li:first-child, .dots li:first-child { border-top: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; border-radius: 50%; background: var(--green-soft); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: 15px; width: 6px; height: 3px; border-left: 1.8px solid var(--green); border-bottom: 1.8px solid var(--green); transform: rotate(-45deg); }
.dots li::before { content: ""; position: absolute; left: 6px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.example { margin-top: 16px; }
.example h2 { margin-bottom: 6px; }
.kv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border-radius: var(--r-sm); overflow: hidden; margin: 16px 0; }
.kv-grid div { background: var(--card); padding: 12px 14px; }
.kv-grid dt { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.kv-grid dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.lesson-line { padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; margin-bottom: 14px; }
.sources { margin-top: 28px; }
.call h3 { margin: 4px 0 6px; }
.call .muted { font-size: 14.5px; margin-bottom: 12px; }
.call .btn .ic { width: 14px; height: 14px; fill: currentColor; }
.search { position: relative; flex: 1; min-width: 220px; max-width: 380px; display: block; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-3); }
.search input { padding-left: 38px !important; background: var(--card) !important; border-color: transparent !important; box-shadow: var(--shadow); }

/* calculator */
#results > * + * { margin-top: 16px; }
@media (max-width: 760px) { #results > * + * { margin-top: 12px; } }
.hero-result .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-result .pair div { padding: 12px 14px; border-radius: var(--r-sm); background: var(--fill-2); }
.hero-result .pair span { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.hero-result .pair b { font-size: 20px; font-variant-numeric: tabular-nums; }
.check-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.check-row .dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: none; font-weight: 700; font-size: 13px; }
.check-row .dot .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.check-row.pass .dot { background: var(--green-soft); color: var(--green); }
.check-row.fail .dot { background: var(--amber-soft); color: var(--amber); }
.check-row span:nth-child(2) { flex: 1; }
.check-row b { display: block; font-weight: 500; font-size: 14.5px; }
.check-row small { display: block; color: var(--ink-3); font-size: 12.5px; }
.check-row strong { font-variant-numeric: tabular-nums; font-weight: 650; }
.warn { background: var(--amber-soft); box-shadow: none; }
.warn h3 { margin-bottom: 4px; }
.save-row { display: flex; gap: 10px; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 12px; text-align: right; border-top: 1px solid var(--line-2); white-space: nowrap; }
thead th { border-top: 0; color: var(--ink-3); font-weight: 600; font-size: 12.5px; vertical-align: bottom; }
tbody th, thead th:first-child { text-align: left; font-weight: 600; color: var(--ink-2); }
td.good { color: var(--green); font-weight: 600; }
td.bad { color: var(--red); font-weight: 600; }
.th-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.th-actions .link { font-size: 12.5px; }

/* coach */
.tiles .tile { padding: 16px 18px; }
.tile strong { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.tile span { color: var(--ink-2); font-size: 13.5px; }
.tile.green strong { color: var(--green); }
.tile.amber strong { color: var(--amber); }
.table-card { padding: 4px 8px; margin-top: 16px; }
.client-head, .client-row { display: grid; grid-template-columns: minmax(200px, 2.2fr) 1fr 1.6fr 1.6fr 1fr 18px; gap: 12px; align-items: center; padding: 12px; }
.client-head { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.client-row { border-top: 1px solid var(--line-2); border-radius: 12px; transition: background .15s; font-size: 14.5px; }
.client-row:hover { background: var(--fill-2); }
.client-row:active { transform: scale(.995); }
.client-row.paused { opacity: .55; }
.client-row small { display: block; font-size: 12.5px; color: var(--ink-3); }
.who-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who-cell b { font-weight: 600; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: var(--ink-3); vertical-align: 1px; }
.dot.green { background: var(--green); }
.dot.amber { background: #ff9f0a; }
.dot.red { background: var(--red); }
.back { display: inline-flex; align-items: center; gap: 2px; margin-top: 16px; color: var(--accent-ink); font-weight: 600; font-size: 14.5px; }
.back .ic { width: 18px; height: 18px; }
.client-hero { display: flex; gap: 18px; align-items: center; padding: 16px 0 18px; }
.client-hero .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 12px; font-weight: 600; font-size: 14.5px; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-color: var(--accent); }
.sub { max-width: none; }
.sub .page-head { display: none; }
.sub .hello { display: none; }
.private { border: 1px solid var(--accent-soft); }
.private textarea { width: 100%; border: 0; background: var(--fill-2); border-radius: var(--r-sm); padding: 12px; resize: vertical; font-size: 15px; line-height: 1.5; }
.private textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.item-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line-2); }
.item-row:first-child { border-top: 0; }
.item-row .n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 8px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; font-size: 13px; }
.item-fields { flex: 1; display: grid; gap: 6px; }
.item-fields input { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 15px; }
.item-fields .it-detail { font-size: 14px; color: var(--ink-2); }
.item-fields input:focus { outline: none; border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 4px var(--accent-soft); }
.item-act { display: flex; gap: 4px; margin-top: 4px; }
.item-row .pill { margin-top: 10px; }
#add-item { margin-top: 10px; }
.week-link { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px; margin: 0 -10px; border-radius: 10px; }
.week-link:hover { background: var(--fill-2); }
.week-link.on { background: var(--accent-soft); }
.week-link b { display: block; font-size: 14.5px; }
.week-link small { display: block; font-size: 12.5px; color: var(--ink-3); }
.coming { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.success { margin-top: 16px; }
.success blockquote { margin: 10px 0 0; padding: 14px 16px; border-radius: var(--r-sm); background: var(--fill-2); font-size: 14.5px; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; align-content: center; padding: 24px 16px; gap: 18px; }
.login-card { width: min(400px, 100%); background: var(--card); border-radius: 26px; padding: 32px 28px 28px; box-shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 18px 48px rgba(0, 0, 0, .08); text-align: center; }
.login-card form { text-align: left; margin-top: 8px; }
.login-mark { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 18px; }
.login-card h1 { font-size: 26px; margin-bottom: 8px; }
.login-card > p.muted { font-size: 15px; }
.login-card .btn { margin-top: 18px; min-height: 48px; font-size: 16px; }
.login-card .small { margin-top: 16px; }
.login-card .link { margin-top: 12px; }
.code { text-align: center; font-size: 26px !important; letter-spacing: .35em; font-variant-numeric: tabular-nums; font-weight: 600; }
.login-foot { font-size: 13px; color: var(--ink-3); }
.login-foot a { text-decoration: underline; text-underline-offset: 3px; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--fill); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 50;
  padding: 11px 18px; border-radius: 999px; background: rgba(29, 29, 31, .92); color: #fff; font-weight: 500; font-size: 14.5px;
  backdrop-filter: blur(12px); transition: opacity .2s, transform .3s var(--ease); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--red); }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.calc, .grid.one-one { grid-template-columns: 1fr; }
  .sticky { position: static; margin-top: 0; }
  .client-head { display: none; }
  .client-row { grid-template-columns: 1fr auto; grid-template-areas: "who chev" "a chev" "b chev"; row-gap: 6px; }
  .client-row > .who-cell { grid-area: who; }
  .client-row > span[data-l] { grid-column: 1; font-size: 13.5px; color: var(--ink-2); }
  .client-row > span[data-l="Step"], .client-row > span[data-l="Active"] { display: none; }
  .client-row > .chev { grid-row: 1 / span 3; grid-column: 2; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .side { display: none; }
  .main { margin-left: 0; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .top { padding: 0 16px; padding-top: env(safe-area-inset-top); height: calc(48px + env(safe-area-inset-top)); }
  .top-title { opacity: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-brand { display: flex; align-items: center; flex: none; margin-right: 10px; min-height: 44px; }
  .top-brand img { width: 30px; height: 30px; border-radius: 9px; }
  .save { flex: none; font-size: 11.5px; padding-left: 10px; }
  .page { padding: 0 16px 32px; }
  .hello { padding: 10px 0 18px; }
  .hello h1 { font-size: 30px; }
  .page-head { padding: 8px 0 18px; flex-direction: column; align-items: stretch; }
  .page-head .btn { align-self: flex-start; }
  h1 { font-size: 28px; }
  .grid.two, .grid.three, .grid.two-one { grid-template-columns: 1fr; }
  .grid.four { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid { gap: 12px; }
  .page > * + .grid, .page > * + .card, .sub > * + .grid, .sub > * + .card { margin-top: 12px; }
  .card { padding: 16px; }
  .card-h { flex-wrap: wrap; }
  .btn, .btn.sm { min-height: 46px; }
  .icon-btn { min-width: 44px; min-height: 44px; }
  .section-h .link, .card-f .link { min-height: 44px; }
  .hello h1, .page-head h1 { text-wrap: balance; overflow-wrap: anywhere; }
  .steps-strip ol { grid-template-columns: repeat(3, 1fr); }
  .field-row, .field-row.three, .field-grid { grid-template-columns: 1fr; }
  .field-grid .field:nth-child(2) { margin-top: 14px; }
  .kv-grid { grid-template-columns: 1fr 1fr; }
  .step-hero { gap: 14px; padding-top: 14px; }
  .step-num { width: 52px; height: 52px; font-size: 24px; border-radius: 16px; }
  .kpi-row { flex-wrap: wrap; }
  .client-hero .avatar.xl { width: 52px; height: 52px; font-size: 18px; }
  .form-f { flex-wrap: wrap; }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--card) 80%, transparent); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
    border-top: 1px solid var(--line-2); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; min-height: 52px; border-radius: 14px; font-size: 11px; font-weight: 600; color: var(--ink-3); transition: transform .1s, background .15s; }
  .tabbar a:active { transform: scale(.92); }
  .tabbar a .ic { width: 25px; height: 25px; }
  .tabbar a.on { color: var(--accent-ink); background: var(--accent-soft); }

  .sheet-scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .3); z-index: 20; opacity: 0; transition: opacity .25s; }
  .sheet { display: block; position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 21; background: var(--card); border-radius: 26px; padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
    max-height: calc(100vh - env(safe-area-inset-top) - 24px); max-height: calc(100dvh - env(safe-area-inset-top) - 24px); overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(110%); transition: transform .32s var(--ease); box-shadow: 0 -10px 40px rgba(0, 0, 0, .15); }
  body.more-open { overflow: hidden; }
  .sheet-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 8px 14px; }
  .more-open .sheet { transform: none; }
  .more-open .sheet-scrim { opacity: 1; }
  .sheet[hidden], .sheet-scrim[hidden] { display: none; }
  .grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--fill); margin: 2px auto 8px; }
  .sheet a { display: flex; align-items: center; gap: 14px; padding: 14px 14px; border-radius: 14px; font-weight: 500; font-size: 16px; }
  .sheet a:active { background: var(--fill-2); }
  .sheet a .chev { margin-left: auto; }
  .sheet a + a { border-top: 1px solid var(--line-2); }

  .sheet-dialog { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .sheet-dialog form { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) { .top, .tabbar { background: var(--card); backdrop-filter: none; } }

/* ---------- drop a call ---------- */
.drop { margin-bottom: 16px; padding: 0; overflow: hidden; }
.drop > summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; }
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary > span:nth-child(2) { flex: 1; }
.drop > summary b { display: block; font-size: 16px; }
.drop > summary small { display: block; color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }
.drop[open] > summary .chev { transform: rotate(90deg); }
.drop-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; }
.drop-body { padding: 0 20px 20px; border-top: 1px solid var(--line-2); }
.drop-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.file-btn { cursor: pointer; }
.spinner.sm { width: 15px; height: 15px; border-width: 2px; border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
.draft-note { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--green-soft); display: grid; gap: 8px; }
.private-note { padding: 12px 14px; border-radius: 10px; background: var(--card); }
.private-note b { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent-ink); }
.private-note b .ic { width: 15px; height: 15px; }
.private-note p { white-space: pre-wrap; font-size: 14px; color: var(--ink-2); margin: 6px 0 8px; }
.target-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.target-row:first-child { border-top: 0; }
.target-row span { font-size: 14.5px; }
.target-row small { display: block; color: var(--ink-3); font-size: 12.5px; }
.field .target-row input { flex: none; width: 76px !important; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); text-align: center; font-variant-numeric: tabular-nums; }
.field .target-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.banner.soft { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.banner.soft small { color: var(--ink-2); opacity: 1; }
.banner.soft .banner-ic { background: var(--accent-soft); color: var(--accent); }
.banner.soft .btn { margin-left: auto; }
.banner.soft .icon-btn { margin-left: 4px; }
.banner.soft > span:nth-child(2) { flex: 1; }
@media (max-width: 760px) {
  #remind-slot .banner { display: grid; grid-template-columns: 38px 1fr 44px; gap: 10px; }
  #remind-slot .banner > span:nth-child(2) { min-width: 0; }
  #remind-slot .banner [data-on] { grid-column: 2; grid-row: 2; justify-self: start; margin-left: 0; }
  #remind-slot .banner [data-x] { grid-column: 3; grid-row: 1; align-self: start; margin-left: 0; }
}

/* ---------- money ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg-nav { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--fill); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: 100%; }
.seg-nav a { padding: 7px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.seg-nav a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.year-pick select { padding: 8px 34px 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 8px center / 18px; font-weight: 600; font-size: 14px; -webkit-appearance: none; appearance: none; }
.stat strong { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.stat small { color: var(--ink-3); font-size: 13px; }
.stat.net strong { color: var(--ink); }
.neg { color: var(--red) !important; }
.pos { color: var(--green); }
.label.in { color: var(--s-in); }
.label.out { color: var(--accent-ink); }
.rot-in { transform: rotate(135deg); }
.rot-out { transform: rotate(-45deg); }
.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.04); } }
.capital-note { margin: 10px 2px 0; }
.money .grid + .grid, .money .grid + .card, .money .card + .grid, .money .card + .card, .money p + .grid { margin-top: 16px; }
.money .grid > * + * { margin-top: 0 !important; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line-2); stroke-width: 1; }
.chart .axis { fill: var(--ink-3); font-size: 11px; }
.chart .bar.in { fill: var(--s-in); }
.chart .bar.out { fill: var(--s-out); }
.chart .hit { fill: transparent; }
.chart .mgroup.on .hit { fill: var(--fill-2); }
.legend { display: flex; gap: 16px; margin-bottom: 10px; font-size: 13px; color: var(--ink-2); }
.legend span, .tip span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.sw.in { background: var(--s-in); }
.sw.out { background: var(--s-out); }
.tip { position: absolute; top: 34px; width: 140px; padding: 9px 11px; border-radius: 10px; background: var(--card); box-shadow: 0 6px 24px rgba(0, 0, 0, .14); display: grid; gap: 3px; font-size: 13px; pointer-events: none; z-index: 2; }
.table-view { margin-top: 8px; }
.table-view summary { font-size: 13px; color: var(--ink-3); cursor: pointer; }
.checks .card-h.pad { margin: 18px 0 2px; }
.week-check { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border-radius: var(--r-sm); border: 1.5px dashed var(--accent); background: var(--accent-soft); color: var(--ink); transition: transform .1s, background .2s; }
.week-check:active { transform: scale(.98); }
.week-check > span:nth-child(2) { flex: 1; }
.week-check b { display: block; }
.week-check small { display: block; color: var(--ink-2); font-size: 13px; }
.week-check .box { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.7px solid var(--accent); }
.week-check .box .ic { width: 15px; height: 15px; color: #fff; opacity: 0; stroke-width: 2.6; }
.week-check.done { border-style: solid; border-color: transparent; background: var(--green-soft); }
.week-check.done .box { background: var(--green); border-color: var(--green); }
.week-check.done .box .ic { opacity: 1; }
.week-check.sm { padding: 10px 12px; margin-top: 12px; }
.streak { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--accent-ink); font-size: 14px; }
.streak .ic { width: 16px; height: 16px; }
.checklist.auto .check { text-decoration: none; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; }
.hbars li span { color: var(--ink-2); }
.hbars li b { font-variant-numeric: tabular-nums; font-weight: 600; }
.hbars li i { grid-column: 1 / -1; display: block; height: 8px; border-radius: 0 4px 4px 0; background: var(--s-out); min-width: 3px; }
.prop-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.prop-row:first-of-type { border-top: 0; }
.prop-row .pname { flex: 1; min-width: 0; }
.prop-row b { display: block; font-weight: 600; }
.prop-row small { color: var(--ink-3); font-size: 12.5px; }
.prop-row strong { font-variant-numeric: tabular-nums; }
.ref { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 7px; border-radius: 7px; background: var(--fill); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ref.lg { height: 28px; font-size: 13px; }
.vat-q { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.vat-q div { padding: 12px; border-radius: var(--r-sm); background: var(--fill-2); }
.vat-q span { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.vat-q b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.vat-q small { color: var(--ink-3); font-size: 12px; }
.month-group { padding: 4px 6px; }
.month-group + .month-group { margin-top: 12px; }
.month-h { display: flex; justify-content: space-between; padding: 12px 12px 8px; font-size: 14px; }
.month-h span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.entry { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-top: 1px solid var(--line-2); background: none; text-align: left; border-radius: 10px; transition: background .15s; }
.entry:hover { background: var(--fill-2); }
.entry:active { transform: scale(.995); }
.entry:disabled { cursor: default; }
.entry .e-date { width: 52px; flex: none; font-size: 13px; color: var(--ink-3); }
.entry .e-main { flex: 1; min-width: 0; }
.entry .e-main b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry .e-main small { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry strong { font-variant-numeric: tabular-nums; font-weight: 650; }
.rcpt { color: var(--ink-3); opacity: .45; display: grid; }
.rcpt .ic { width: 17px; height: 17px; }
.rcpt.has { color: var(--green); opacity: 1; }
.prop-card { text-align: left; border: 0; width: 100%; color: var(--ink); }
.prop-card:not(:disabled):active { transform: scale(.985); }
.prop-card h3 { margin-bottom: 2px; }
.prop-card .faint { margin-bottom: 8px; }
.spa-tag { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.fab { display: none; }
table.tax th, table.tax td { white-space: normal; }
table.tax tr.sec th { padding-top: 18px; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; border-top: 0; }
table.tax tr.tot th, table.tax tr.tot td { font-weight: 700; color: var(--ink); }
table.tax tr.big th, table.tax tr.big td { font-size: 16px; border-top: 2px solid var(--line); }
.toggle { display: flex; align-items: center; gap: 12px; margin-top: 16px; cursor: pointer; font-size: 15px; }
.toggle input { position: absolute; opacity: 0; }
.sw-t { position: relative; flex: none; width: 46px; height: 28px; border-radius: 99px; background: var(--fill); transition: background .2s; }
.sw-t::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .22s var(--ease); }
.toggle input:checked + .sw-t { background: var(--green); }
.toggle input:checked + .sw-t::after { transform: translateX(18px); }
.toggle input:focus-visible + .sw-t { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.money-sheet form { display: block; }
.kind-seg { display: flex; width: 100%; margin: 6px 0 4px; }
.kind-seg button { flex: 1; }
.amount { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 14px 0 8px; }
.amount span { font-size: 30px; font-weight: 600; color: var(--ink-3); }
.amount .suffix { font-size: 18px; }
.amount input { width: 70%; max-width: 280px; border: 0; background: none; font-size: 46px; font-weight: 700; letter-spacing: -.03em; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; color: var(--ink); }
.amount input::-webkit-inner-spin-button { -webkit-appearance: none; }
.amount input:focus { outline: none; }
.chips-pick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 4px; }
.chips-pick button { border: 1px solid var(--line); background: var(--card); padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s, transform .1s; }
.chips-pick button:active { transform: scale(.95); }
.chips-pick button.on { background: var(--pill-dark); border-color: var(--pill-dark); color: var(--card); }
.receipt-box { margin-top: 14px; display: flex; align-items: center; gap: 12px; min-height: 44px; }
.receipt-box .has { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; flex: 1; }
.receipt-box .has .ic { width: 17px; height: 17px; }
.snap { border: 1.5px dashed var(--line); background: transparent; cursor: pointer; }
.more { margin-top: 14px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--ink-2); font-size: 14px; }
.center { text-align: center; }
.money-tile { margin-top: 16px; }
.mt-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mt-row span { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.mt-row b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.portfolio .stat strong { font-size: 28px; }
@media (max-width: 760px) {
  .page.money { padding-bottom: 100px; }
  .money-hero { grid-template-columns: 1fr 1fr; }
  .stat strong { font-size: 24px; }
  .vat-q { grid-template-columns: 1fr 1fr; }
  .fab { display: grid; place-items: center; position: fixed; right: 18px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 9; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(255, 75, 0, .35); transition: transform .12s var(--ease); }
  .fab:active { transform: scale(.92); }
  .fab .ic { width: 26px; height: 26px; stroke-width: 2.2; }
  .money .toolbar [data-add] { display: none; }
  .mt-row b { font-size: 18px; }
  .entry .e-date { width: 44px; }
}

/* ---------- ask si ---------- */
.ask { max-width: 820px; }
.about { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.about select { padding: 8px 34px 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 8px center / 18px; font-weight: 600; -webkit-appearance: none; appearance: none; }
.thread { display: grid; gap: 18px; padding-bottom: 8px; }
.qa-pair { display: grid; gap: 8px; animation: arrive .3s var(--ease) both; }
.q-bubble { justify-self: end; max-width: 82%; padding: 11px 15px; border-radius: 18px 18px 4px 18px; background: var(--accent); color: #111; font-weight: 500; white-space: pre-wrap; }
.a-bubble { justify-self: start; max-width: 92%; padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: var(--card); box-shadow: var(--shadow); }
.a-who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); margin-bottom: 6px; }
.a-who img { border-radius: 6px; }
.a-text p { margin: 0 0 10px; line-height: 1.55; }
.a-text p:last-child { margin-bottom: 0; }
.a-text ul { margin: 0 0 10px; padding-left: 20px; }
.a-text li { margin: 3px 0; }
.srcs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.srcs > span { font-size: 12px; color: var(--ink-3); font-weight: 600; margin-right: 2px; }
.src { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; background: var(--fill-2); font-size: 12.5px; color: var(--ink-2); font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.src:hover { background: var(--fill); color: var(--ink); }
.src .ic { width: 12px; height: 12px; fill: currentColor; }
.helpful { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.helpful button { border: 1px solid var(--line); background: none; border-radius: 99px; padding: 4px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.helpful button:active { transform: scale(.95); }
.thinking .dots { display: flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 14px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite both; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; margin-right: 6px; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.ask-empty { text-align: center; padding: 40px 16px 10px; }
.ask-empty h2 { margin: 12px 0 4px; }
.ideas { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0 6px; }
.ideas button { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow); text-align: left; }
.ideas button:active { transform: scale(.97); }
.composer { position: sticky; bottom: 16px; display: flex; gap: 8px; align-items: flex-end; margin-top: 14px; padding: 8px; border-radius: 24px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 6px 26px rgba(0, 0, 0, .1); }
.composer textarea { flex: 1; border: 0; background: none; resize: none; padding: 9px 10px; font-size: 16px; line-height: 1.4; max-height: 160px; }
.composer textarea:focus { outline: none; }
.send { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; transition: transform .1s, opacity .15s; }
.send:active { transform: scale(.92); }
.send:disabled { opacity: .45; }
.send .ic { width: 19px; height: 19px; stroke-width: 2.2; transform: rotate(-90deg); }
.disclaimer { text-align: center; margin-top: 8px; }
.ask-tile { margin-top: 16px; }
.ask-row { display: flex; gap: 8px; margin-top: 10px; }
.ask-row input { flex: 1; padding: 11px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; }
.ask-row input:focus { outline: none; border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 4px var(--accent-soft); }
.asked summary { align-items: flex-start; }
.asked .asked-q { flex: 1; }
.asked .asked-q b { display: block; font-weight: 600; }
.asked .asked-q small { display: block; color: var(--ink-3); font-size: 12.5px; font-weight: 400; }
.asked .a-text { padding: 0 0 14px 44px; color: var(--ink-2); font-size: 14.5px; }
.avatar.sm { width: 30px; height: 30px; font-size: 11.5px; }
@media (max-width: 760px) { .composer { bottom: calc(86px + env(safe-area-inset-bottom)); } .q-bubble { max-width: 90%; } .a-bubble { max-width: 100%; } }

/* ---------- portfolio & finance ---------- */
.mini-stats { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 2px 0; color: var(--ink-2); font-size: 14px; }
.mini-stats b { color: var(--ink); font-variant-numeric: tabular-nums; }
.needs { margin-top: 16px; }
.need { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.need:first-of-type { border-top: 0; }
.need > span { flex: 1; }
.need b { display: block; font-weight: 600; }
.need small { color: var(--ink-3); font-size: 13px; }
.need:hover .chev { transform: translateX(2px); }
.prop-tile h3 { margin-bottom: 2px; }
.tile-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.tile-nums span { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.tile-nums b { font-size: 16px; font-variant-numeric: tabular-nums; }
.ltv-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.ltv-row.big { margin-top: 14px; flex-direction: column; align-items: stretch; gap: 6px; }
.ltv { position: relative; flex: 1; height: 8px; border-radius: 99px; background: var(--fill); }
.ltv i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--s-in); }
.ltv i.over { background: var(--red); }
.ltv b.red { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--ink-2); border-radius: 1px; }
.next-date { display: flex; align-items: center; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.loan-card, .prop-card { display: block; text-align: left; border: 0; width: 100%; color: var(--ink); font: inherit; }
.loan-card:not(:disabled):active { transform: scale(.985); }
.loan-card h3 { margin-bottom: 2px; }
.todo { display: flex; gap: 6px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--fill-2); font-size: 14px; color: var(--ink-2); }
.todo .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--accent); flex: none; }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.entry .days { width: 64px; text-align: right; font-size: 13px; color: var(--ink-2); }
.warn-t { color: var(--amber); }
.fin-tiles { margin-top: 16px; }
.portfolio-page .grid + .grid, .portfolio-page .grid + .card, .portfolio-page .card + .grid, .portfolio-page .card + .card { margin-top: 16px; }
.portfolio-page .grid > * + * { margin-top: 0 !important; }
@media (max-width: 760px) { .tile-nums b { font-size: 15px; } .portfolio-hero { grid-template-columns: 1fr 1fr; } .entry .days { width: 48px; } }
.ltv-row.big .ltv { flex: none; width: 100%; }
.hbars.in li i { background: var(--s-in); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.split div { padding: 10px 12px; border-radius: var(--r-sm); background: var(--fill-2); }
.split span { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.split b { font-size: 18px; font-variant-numeric: tabular-nums; }
.grid.one-col { grid-template-columns: 1fr; }

/* ---------- news ---------- */
.feed { display: grid; gap: 16px; margin-top: 16px; }
.post h2 { font-size: 21px; margin-bottom: 8px; }
.post.unread { box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow); }
.post-av { border-radius: 6px; }
.post-body p { margin: 0 0 10px; line-height: 1.55; }
.post-body ul { margin: 0 0 10px; padding-left: 20px; }
.post-body a { color: var(--accent-ink); font-weight: 600; }
.post-imgs { display: grid; gap: 6px; margin: 12px 0; border-radius: var(--r-sm); overflow: hidden; }
.post-imgs.n2 { grid-template-columns: 1fr 1fr; }
.post-imgs.n3 { grid-template-columns: 1fr 1fr 1fr; }
.post-imgs img { display: block; width: 100%; height: 100%; max-height: 420px; object-fit: cover; background: var(--fill-2); }
.post-imgs.n2 img, .post-imgs.n3 img { aspect-ratio: 1; }
.post-docs { display: grid; gap: 8px; margin: 12px 0; }
.doc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--fill-2); }
.doc:hover { background: var(--fill); }
.doc > span { flex: 1; min-width: 0; }
.doc b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc small { color: var(--ink-3); font-size: 12.5px; }
.doc .ic { color: var(--ink-3); }
.post .btn.sm { margin-top: 6px; }
.post-f { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.file-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 11px; border-radius: 99px; background: var(--fill-2); font-size: 13px; font-weight: 600; }
.chip button { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--fill); color: var(--ink-2); }
.chip .ic { width: 12px; height: 12px; }
.toggles { display: grid; gap: 4px; align-content: end; }
.toggles .toggle { margin-top: 8px; }
.news-tile { margin-top: 16px; }
.news-tile h3 { margin-bottom: 4px; }

/* Mortgage rates */
.rate-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; }
.rates-list .rate-row + .rate-row { border-top: 1px solid var(--line-2); }
.rate-row > div:first-child { display: grid; gap: 2px; min-width: 0; }
.rate-row b { font-weight: 600; }
.rate-n { display: grid; justify-items: end; gap: 2px; font-variant-numeric: tabular-nums; }
.rate-n strong { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.rate-n small.good { color: var(--green); font-weight: 600; }
.rate-n small.bad { color: var(--red); font-weight: 600; }
.rates-tile { margin-top: 16px; }
.rates-tile .rate-row { padding-bottom: 0; }
.rate-use { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.rate-use p { margin: 0; }
.rates .faint.small { margin: 12px 4px; }
.rate-edit { display: grid; grid-template-columns: 2.4fr 1fr 1fr auto; grid-template-areas: "p r l x" "f d n n"; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.rate-edit > :nth-child(1) { grid-area: p; } .rate-edit > :nth-child(2) { grid-area: l; } .rate-edit > :nth-child(3) { grid-area: r; }
.rate-edit > :nth-child(4) { grid-area: f; } .rate-edit > :nth-child(5) { grid-area: d; } .rate-edit > :nth-child(6) { grid-area: n; } .rate-edit > :nth-child(7) { grid-area: x; align-self: center; }
.rate-edit .unit-in input { padding-right: 30px !important; }
#rate-rows { display: grid; margin: 6px 0 8px; }
@media (max-width: 560px) {
  .rate-edit { grid-template-columns: 1fr 1fr auto; grid-template-areas: "p p x" "r l l" "f d d" "n n n"; }
}

/* Onboarding questionnaire */
.q-progress { display: grid; gap: 6px; margin: 0 0 12px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.stepper-dots.compact { gap: 6px; }
.stepper-dots.compact button { padding: 4px; }
.stepper-dots.compact .on button { padding-right: 14px; }
fieldset.field { border: 0; margin: 22px 0 0; padding: 0; min-width: 0; }
.form-card > .field + .field, .form-card > fieldset.field { margin-top: 22px; }
fieldset.field legend { padding: 0; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
fieldset.field legend em, .field span em { font-style: normal; color: var(--ink-3); font-weight: 500; }
.field small.why { color: var(--ink-3); }
.field small.why b { font-weight: 600; color: var(--ink-2); }
.chips-in { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-in { position: relative; cursor: pointer; }
.chip-in input, .scale-in input { position: absolute; opacity: 0; pointer-events: none; }
.chip-in span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: var(--fill-2); color: var(--ink-2); font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.chip-in input:checked + span { background: var(--accent); color: #111; }
.chip-in input:focus-visible + span, .scale-in input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.scale-in { display: grid; gap: 6px; }
.scale-in.n5 { grid-template-columns: repeat(5, 1fr); }
.scale-in.n10 { grid-template-columns: repeat(10, 1fr); }
.scale-in label { cursor: pointer; }
.scale-in span { display: grid; place-items: center; height: 44px; border-radius: 12px; background: var(--fill-2); font-weight: 600; font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
.scale-in input:checked + span { background: var(--accent); color: #111; }
.scale-ends { display: flex; justify-content: space-between; margin-top: 4px; }
.scale-ends small { color: var(--ink-3); font-size: 12px; }
@media (max-width: 420px) { .scale-in.n10 { grid-template-columns: repeat(5, 1fr); } }

/* Member navigation and task-first overview, informed by the October Mobbin review. */
.top { gap: 10px; }
.account-menu { border: 0; width: 44px; height: 44px; }
.seg-nav { padding: 0; background: none; border-radius: 0; gap: 16px; }
.seg-nav a { border-radius: 0; border-bottom: 2px solid transparent; padding: 12px 2px; min-height: 44px; }
.seg-nav a.on { box-shadow: none; background: none; border-color: var(--accent); color: var(--ink); }
.section-nav { max-width: 1056px; margin: 12px auto 16px; padding: 0 32px; width: 100%; }
.today-hero .plan-card { margin-bottom: 0; }
.today-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.summary-tile { min-width: 0; }
.summary-tile > a { display: block; height: 100%; }
.summary-tile strong { display: block; font: 700 32px/1.2 'Nekst Mono', ui-monospace, monospace; margin: 16px 0 8px; overflow-wrap: anywhere; }
.summary-tile strong small { font-size: 18px; color: var(--ink-3); }
.summary-tile p { font-size: 13px; color: var(--ink-2); margin: 0; }
.summary-tile p .ic { width: 15px; height: 15px; vertical-align: middle; }
.summary-open { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.summary-open .ic { width: 15px; height: 15px; }
.stat > strong { font-family: 'Nekst Mono', ui-monospace, monospace; }
.welcome-card { position: relative; padding-right: 58px; }
.welcome-card .icon-btn { position: absolute; top: 8px; right: 8px; }
.portfolio-tools { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 16px; }
.plan-deals { display: inline-flex; margin-bottom: 16px; min-height: 44px; align-items: center; }
.ask-bar { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 20px; }
.ask-bar > label { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; color: var(--accent-ink); }
.ask-bar .ask-row { margin-top: 4px; }
.ask-bar input { background: none; }
.figure-controls { margin: 12px 0; }
.figure-controls .link { min-height: 44px; }
.figure-controls p { max-width: 52ch; margin: 0 0 10px; }
.private-figure { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.private-figure:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 5px; border-radius: 4px; }
.private-figure.figure-hidden { color: var(--ink) !important; }
.row-icon { width: 38px; height: 38px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; background: var(--fill-2); color: var(--ink-2); }
.row-icon .ic { width: 20px; height: 20px; }
.incoming { color: var(--green); }
.row-icon.incoming { background: var(--green-soft); }
.entry strong { flex: none; }
.entry .e-main b, .entry .e-main small { white-space: normal; overflow-wrap: anywhere; }
.rate-description { display: grid; gap: 3px; flex: 1; min-width: 0; }
.loan-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.loan-heading h3 { flex: 1; min-width: 0; font-size: 16px; }
.loan-heading small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 400; margin-top: 3px; }
.loan-heading > strong { text-align: right; font-variant-numeric: tabular-nums; }
.q-segments { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; margin-bottom: 16px; }
.q-segments span { display: block; height: 5px; border-radius: 4px; background: var(--fill); }
.q-segments .on { background: var(--accent); }
.q-segments .past { background: var(--ink-2); }
.q-progress select { height: 44px; min-height: 44px; width: 100%; appearance: none; padding: 0 14px; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
#view:has(.onboarding-page) { animation: none; }
.onboarding-page { padding-bottom: 120px; }
.onboarding-actions { position: fixed; bottom: 0; left: var(--side-w); right: 0; z-index: 8; margin: 0; padding: 16px 32px calc(16px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
.onboarding-actions .btn { min-width: 110px; }
.skeleton { display: block; height: 14px; border-radius: 8px; background: var(--fill); margin: 10px 0; }
.skeleton-heading { width: 45%; height: 28px; margin: 28px 0; }
.skeleton-label { width: 40%; }
.skeleton-value { width: 64%; height: 40px; margin: 22px 0; }
.skeleton-card { min-height: 152px; }
@media (max-width: 760px) {
  .section-nav { padding: 0 16px; margin-top: 6px; gap: 18px; }
  .today-summary { gap: 10px; margin: 12px 0; }
  .summary-tile { padding: 16px 12px; }
  .summary-tile .label { font-size: 11px; }
  .summary-tile strong { font-size: 26px; }
  .summary-tile .label .ic { display: none; }
  .onboarding-actions { left: 0; bottom: calc(70px + env(safe-area-inset-bottom)); padding: 12px 16px; }
  .onboarding-page { padding-bottom: 110px; }
  .entry { gap: 8px; }
  .entry .ref { display: none; }
  .loan-heading { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .summary-tile strong { font-size: 22px; }
  .tabbar a { font-size: 10px; }
  .top .save { max-width: 80px; }
}
