:root {
  /* Ground, paper and ink */
  --page: #f5f7fc; --surface: #ffffff; --panel: #eef1f8; --line: #e4e9f4;
  --ink: #1c2330; --muted: #626b7d; --faint: #a4adbd;
  /* The one accent, plus the two depths that carry white text at 4.5:1 */
  --green: #1f9d78; --green-mid: #17845f; --green-deep: #166049; --dark: #1c2330;
  --hero-green: linear-gradient(135deg, #17845f, #12694c);
  /* Tinted tiles: ground, text, figure */
  --tint-in: #e6f5ef; --ink-in: #166049;
  --tint-out: #ffe9df; --ink-out: #9c4f2c;
  --tint-blue: #e4ecfb; --ink-blue: #2f52a0; --fig-blue: #3a63b8;
  /* Legacy names kept so the deep pages keep working */
  --bg: var(--page); --soft: var(--panel); --accent: var(--green-deep); --accent-ink: #ffffff;
  --focus: #12694c; --warn: #8a5a00; --warn-dark: #ffc46b; --bad: #a23b2c; --good: #166049;
  --radius: 18px; --radius-ctl: 11px; --gutter: 16px;
  --shadow-frame: 0 18px 60px rgba(40, 50, 80, .14);
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
@font-face { font-family: 'Figtree'; font-weight: 300 900; font-display: swap; src: url('/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-weight: 300 900; font-display: swap; src: url('/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); line-height: 1.5; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
.frame { background: var(--surface); min-height: 100vh; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 56px; padding: 0 var(--gutter); background: var(--surface); border-bottom: 1px solid var(--line); }
/* Tabs are the laptop's way around; on a phone the cards' own links are the way in. */
.tabs { display: none; }
@media (min-width: 960px) {
  .tabs { display: flex; gap: 4px; margin: 0 auto 0 24px; }
  .tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: .9375rem; font-weight: 600; color: var(--muted); text-decoration: none; }
  .tab:hover { background: var(--panel); color: var(--ink); }
  .tab.on, .tab.on:hover { background: var(--tint-in); color: var(--ink-in); }
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
.brand .mark { width: 28px; height: 28px; border-radius: 9px; background: var(--hero-green); color: #fff; display: grid; place-items: center; font-size: .82rem; font-weight: 800; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; text-decoration: none; font-weight: 700; }
main { max-width: 960px; margin: 0 auto; padding: 16px var(--gutter) 48px; outline: none; }
@media (min-width: 960px) {
  body { padding: 24px; }
  .frame { max-width: 1320px; margin: 0 auto; min-height: calc(100vh - 48px); border-radius: 24px; box-shadow: var(--shadow-frame); }
  .top { position: static; height: 68px; padding: 0 32px; border-radius: 24px 24px 0 0; }
  main { max-width: none; padding: 28px 32px 48px; }
  .page, .signin { max-width: 960px; margin-left: auto; margin-right: auto; }
}

/* ---- Home ---------------------------------------------------------------- */
.home { display: grid; gap: 16px; align-content: start; }
.greet { display: grid; gap: 4px; }
.greet h1 { margin: 0; font-size: 1.375rem; font-weight: 700; letter-spacing: -.015em; }
.greet-sub { margin: 0; color: var(--muted); }

.hero { position: relative; overflow: hidden; border-radius: var(--radius); padding: 22px 20px; color: #fff; display: flex; flex-direction: column; gap: 10px; }
.hero-mine { background: var(--hero-green); }
.hero-house { background: var(--dark); }
.hero-label { margin: 0; font-size: .9375rem; font-weight: 500; color: #fff; }
.hero-figure { margin: 0; font-size: clamp(40px, 9vw, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.hero-figure .unit { font-size: .4em; font-weight: 700; letter-spacing: 0; }
.hero-delta, .hero-note, .hero-line { margin: 0; font-size: .875rem; font-weight: 500; color: #fff; }
.hero-spark { margin: 6px -20px -22px; }
.spark { display: block; width: 100%; height: var(--chart-h, 48px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 4px; }
.hero-more { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; font-weight: 600; font-size: .9375rem; }
.hero-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero .btn.primary { background: #fff; color: var(--green-deep); }
.hero .btn.primary:hover { background: #f1f5f3; }
.hero :focus-visible { outline-color: #fff; }
.warn-dark { color: var(--warn-dark); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 14px; border-radius: 999px; background: rgba(0, 0, 0, .18); color: #fff; font-size: .875rem; font-weight: 600; text-align: left; }
.pill.due::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--warn-dark); flex: none; }
.pill-action { appearance: none; border: 0; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; min-height: 44px; background: rgba(0, 0, 0, .18); text-decoration: underline; text-underline-offset: 3px; }
.pill-action:hover { background: rgba(0, 0, 0, .32); }

.meter { display: grid; gap: 7px; margin-top: 6px; }
.meter-note { margin: 0; font-size: .875rem; font-weight: 500; color: #fff; }
.bar-svg { display: block; width: 100%; }
.tap.tap-dark { color: #fff; display: grid; gap: 6px; width: 100%; text-decoration: none; padding: 4px 0; }
.tap.tap-dark .tap-text { font-size: .9375rem; text-decoration: underline dotted rgba(255, 255, 255, .55); text-underline-offset: 3px; }
.tap.tap-dark:hover .tap-text { text-decoration-color: #fff; }

.panel { background: var(--panel); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; align-content: start; }
.panel-title { margin: 0; font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }
.goal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.goal { display: grid; gap: 6px; }
.goal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.goal-name { font-weight: 600; }
.goal-pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.goal-amount { margin: 0; font-size: .875rem; font-weight: 500; color: var(--muted); }
.goal-status { margin: 0; font-size: .875rem; font-weight: 500; color: var(--muted); }
.goal-empty { margin: 0; color: var(--muted); }
.goal-group { margin: 4px 0 -4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.chart-card { display: flex; flex-direction: column; gap: 12px; }
.chart-box { display: flex; flex-direction: column; }
.chart-plot { position: relative; }
.area { display: block; width: 100%; height: var(--chart-h, 200px); }
.area .cross { opacity: 0; }
.chart-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; }
.chart-box.hovering .cross, .chart-box.hovering .chart-dot { opacity: 1; }
@media (max-width: 959px) { .page .area { height: 210px; } }
.chart-axis { position: relative; height: 20px; margin-top: 2px; }
.chart-axis span { position: absolute; transform: translateX(-50%); font-size: .75rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.chart-axis span:first-child { transform: none; }
.chart-axis span:last-child { transform: translateX(-100%); }
.chart-tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 600; padding: 4px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; }
.chart-caption { margin: 0; font-size: .8125rem; font-style: italic; color: var(--muted); }
.chart-ghost { height: 120px; display: grid; align-content: end; border-bottom: 2px dashed var(--faint); padding-bottom: 10px; }
.chart-single { margin: 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.chart-single.none { font-size: 1.25rem; font-weight: 600; color: var(--muted); }

.tiles { display: grid; gap: 12px; }
.tile { border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; }
.tile-label { margin: 0; font-size: .875rem; font-weight: 700; }
.tile-figure { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; text-align: right; }
.tile-figure.none { font-size: 1.25rem; font-weight: 600; }
.tile-note { margin: 0; grid-column: 1 / -1; font-size: .8125rem; font-weight: 500; }
.tile-in { background: var(--tint-in); color: var(--ink-in); }
.tile-out { background: var(--tint-out); color: var(--ink-out); }
.tile-left { background: var(--tint-blue); color: var(--ink-blue); }
.tile-left .tile-figure { color: var(--fig-blue); }

@media (min-width: 960px) {
  .home { grid-template-columns: 1fr 1fr; gap: 20px; }
  /* Placement is scoped to Home: these classes are reused on the deep pages, which are one column. */
  .home > .greet { grid-column: 1 / -1; grid-row: 1; }
  .home > .hero-mine { grid-column: 1; grid-row: 2; }
  .home > .hero-house { grid-column: 2; grid-row: 2; }
  /* Every row's two cells are the same height. The goals keep their content at the top;
     the chart card spends the slack on the plot and keeps its caption at the foot. */
  .home > .goals { grid-column: 1; grid-row: 3; }
  .home > .chart-card { grid-column: 2; grid-row: 3; }
  .home > .chart-card .chart-box { flex: 1 1 0; }
  /* flex-basis 0, not auto: an svg with a viewBox would otherwise claim its whole intrinsic ratio. */
  .home > .chart-card .chart-plot { flex: 1 1 0; min-height: 140px; }
  .home > .chart-card .chart-plot .area { position: absolute; inset: 0; width: 100%; height: 100%; }
  .home > .chart-card .chart-ghost { flex: 1 1 0; }
  .home > .tiles { grid-column: 1 / -1; grid-row: 4; }
  .hero { padding: 28px; }
  /* The two heroes are one row, so both end with their action line on the same level:
     the actions sit last and the sparkline takes up whatever slack the row leaves. */
  .hero-actions { order: 1; margin-top: auto; padding-top: 4px; }
  .hero-spark { margin: 14px -28px 0; }
  /* flex-basis, not `height: auto`: an svg with a viewBox would otherwise claim its
     whole intrinsic aspect ratio and stretch the row to several hundred pixels. */
  .hero-mine .hero-spark { position: relative; flex: 1 1 0; min-height: 56px; }
  .hero-mine .hero-spark .spark { position: absolute; inset: 0; width: 100%; height: 100%; }
  .home > .chart-card .area { height: 240px; }
  .panel { padding: 24px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { grid-template-columns: 1fr; padding: 20px; gap: 6px; }
  .tile-figure { font-size: 2rem; text-align: left; }
  .tile-note { grid-column: auto; }
}

/* ---- the page pattern ----------------------------------------------------- */
.page { display: grid; gap: 16px; align-content: start; }
.page-head { display: grid; gap: 4px; }
.page-head h1, .page > h1 { margin: 0; font-size: 1.375rem; font-weight: 700; letter-spacing: -.015em; }
.page-sub { margin: 0; color: var(--muted); }
.page h2 { margin: 0; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }
.section { display: grid; gap: 10px; align-content: start; }
.page > .field { margin: 0; }
.stack { display: grid; gap: 12px; align-content: start; }

/* ---- shared building blocks ---------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: grid; gap: 8px; }
.card p { margin: 0; }
.card > .field:first-child { margin-top: 0; }
.card > .field:last-child { margin-bottom: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-head h2 { margin: 0; font-size: .78rem; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.status { font-size: .85rem; color: var(--muted); }
.status.due { color: var(--warn); }
.small, .line.muted { font-size: .875rem; color: var(--muted); }
.line { font-size: .95rem; line-height: 1.35; }
.strip { background: var(--panel); border-radius: var(--radius-ctl); padding: 12px 16px; margin: 0; font-size: .9375rem; }
.strip.out { background: var(--tint-out); color: var(--ink-out); }
.strip-dark { margin: 0; background: var(--dark); color: #fff; border-radius: var(--radius-ctl); padding: 8px 14px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; justify-self: start; }
.btn { appearance: none; border: 0; border-radius: var(--radius-ctl); min-height: 44px; padding: 0 20px; font: inherit; font-weight: 600; cursor: pointer; background: var(--hero-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { background: linear-gradient(135deg, #12694c, #0e5740); }
.btn.secondary { background: var(--panel); color: var(--ink); }
.btn.secondary:hover { background: #e3e8f4; }
.btn.link { background: none; color: var(--green-deep); padding: 0; justify-content: flex-start; text-align: left; }
.btn.link:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
.btn.danger { background: none; color: var(--bad); padding: 0; justify-content: flex-start; }
.btn.danger:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
.btn.wide { width: 100%; }
a.btn { text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, .chip:focus-visible, .tap:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.more { display: inline-flex; align-items: center; min-height: 44px; color: var(--green-deep); text-decoration: none; font-weight: 600; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.tap { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; min-height: 44px; line-height: 1.3; text-decoration: underline dotted var(--muted); text-underline-offset: 3px; }
.field { display: grid; gap: 6px; margin: 12px 0; }
.field label { font-size: .875rem; font-weight: 500; color: var(--muted); }
.field input, .field select { font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-ctl); background: #fff; min-height: 44px; width: 100%; color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--green-deep); }
.amount-field { margin: 0; }
.amount-box { position: relative; }
.amount-box input { height: 76px; font-size: 40px; font-weight: 800; letter-spacing: -.02em; text-align: right; padding: 0 74px 0 16px; }
.amount-cur { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.0625rem; font-weight: 700; color: var(--muted); pointer-events: none; }
.log-form { gap: 14px; padding: 16px 18px 18px; }
/* A column of number fields on a phone; two columns once there is room, so a close
   step stays one screenful instead of a very wide single column. */
.fields-grid { display: grid; gap: 0 24px; }
@media (min-width: 640px) { .fields-grid { grid-template-columns: 1fr 1fr; } }
.fields-grid .field { align-self: start; }
.fields-row { display: grid; gap: 12px; }
.filters { display: grid; gap: 0 14px; }
.filters .field { margin: 6px 0; }
@media (min-width: 640px) { .filters { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .fields-row { grid-template-columns: 1fr 1fr; align-items: end; } }
.hint { font-size: .85rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; min-height: 44px; padding: 0 16px; font: inherit; font-weight: 500; white-space: nowrap; cursor: pointer; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.toggle .chip { text-align: center; border-radius: var(--radius-ctl); }
.cur { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--panel); color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .num { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.list { display: grid; }
/* A whole row that is a button reads as a row, not as a link: the affordance is the hover, not a rule. */
.row.tap { text-decoration: none; padding-inline: 8px; margin-inline: -8px; border-radius: 10px; }
.row.tap:hover { background: var(--panel); }
/* On a phone the two admin links drop to their own line rather than squeezing the balance. */
.row.acct { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; }
.acct-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.acct-actions { grid-column: 1 / -1; display: flex; gap: 16px; }
@media (min-width: 640px) { .row.acct { grid-template-columns: 1fr auto auto; } .acct-actions { grid-column: auto; } }
.goal-actions { gap: 16px; margin-top: 2px; }
.bill { gap: 10px; }
.bill-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bill-name { margin: 0; font-weight: 700; }
.bill .small, .bill p { margin: 0; }
.list .row:last-child { border-bottom: 0; }
.scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { text-align: right; padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tbody tr:last-child td { border-bottom: 0; }
.table th:first-child, .table td:first-child { text-align: left; font-variant-numeric: normal; }
.table th { color: var(--muted); font-weight: 600; font-size: .8125rem; letter-spacing: .01em; }
.table tr.gap td { color: var(--muted); }
.table td.state { text-align: left; }
.table .word { font-weight: 500; color: var(--muted); }
/* Steps: done is green, the current one is ink, the ones still to come are a line. */
.steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.steps span { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--panel); color: var(--muted); font-size: .8125rem; font-weight: 700; }
.steps span.done { background: var(--tint-in); color: var(--ink-in); }
.steps span.on { background: var(--ink); color: #fff; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(28, 35, 48, .38); display: grid; align-items: end; z-index: 20; }
.sheet { background: var(--surface); border-radius: var(--radius) var(--radius) 0 0; padding: 20px var(--gutter) max(20px, env(safe-area-inset-bottom)); max-height: 90vh; overflow: auto; box-shadow: var(--shadow-frame); }
.sheet h2 { margin: 0 0 10px; font-size: 1.125rem; font-weight: 700; }
@media (min-width: 760px) { .sheet-backdrop { align-items: center; justify-items: center; } .sheet { border-radius: var(--radius); width: min(520px, 92vw); padding: 24px; } }
#toast { position: fixed; left: var(--gutter); right: var(--gutter); bottom: 16px; z-index: 30; display: none; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 14px; align-items: center; justify-content: space-between; gap: 12px; }
#toast.show { display: flex; }
#toast button { background: none; border: 0; color: #7fd8b8; font: inherit; font-weight: 600; min-height: 44px; cursor: pointer; }
.empty { background: var(--panel); border-radius: var(--radius); padding: 22px 20px; display: grid; gap: 12px; justify-items: start; }
.empty p { margin: 0; color: var(--muted); }
.bar { height: 8px; background: var(--panel); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); }
.word { font-weight: 600; }
.word.behind { color: var(--bad); }
.word.on-track, .word.reached { color: var(--good); }
.warn { color: var(--warn); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---- bar charts (money in and out, the house's months) --------------------- */
.bars { display: grid; gap: 10px; }
.bars-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.bars-key { display: inline-flex; align-items: center; gap: 7px; font-size: .8125rem; font-weight: 500; color: var(--muted); }
.bars-swatch { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.bars-plot { position: relative; display: flex; align-items: flex-end; gap: 6px; height: var(--bars-h, 180px); border-bottom: 1px solid var(--line); }
.bars-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.bars-stack { width: 100%; max-width: 64px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.bars-group { width: 100%; max-width: 104px; height: 100%; display: flex; align-items: flex-end; gap: 2px; }
.bars-group .bars-piece { flex: 1 1 0; }
.bars-piece { border-radius: 3px; min-height: 2px; }
.bars-tip { white-space: normal; max-width: min(280px, 92%); line-height: 1.35; }
.bars-axis { display: flex; gap: 6px; }
/* min-width:0 is what lets a column shrink; the label may spill into the blank columns beside it
   rather than being clipped once a chart passes eleven months on a phone. */
.bars-axis span { flex: 1 1 0; min-width: 0; text-align: center; font-size: .75rem; font-weight: 500; color: var(--muted); overflow: visible; }
.spent-cell { display: grid; gap: 6px; justify-items: end; }
.panel-out { background: var(--tint-out); }
.panel-out .panel-title { color: var(--ink-out); }
.fold { border-top: 1px solid var(--line); padding-top: 12px; }
.fold summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan-bar { position: relative; height: 6px; width: 92px; background: rgba(28, 35, 48, .09); border-radius: 3px; }
.plan-bar i { display: block; height: 100%; border-radius: 3px; background: rgba(28, 35, 48, .45); }
.plan-bar b { position: absolute; top: -2px; width: 2px; height: 10px; border-radius: 1px; background: var(--ink); }
.dots { display: block; }

/* One-thing-at-a-time screens keep a narrow column on a laptop: a 1,400px amount field
   would be a worse place to type a number than a 600px one. */
@media (min-width: 960px) { .page-narrow { max-width: 620px; } }

/* ---- sign-in --------------------------------------------------------------- */
.signin { max-width: 400px; margin: 12vh auto 0; display: grid; justify-items: center; }
.signin-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-frame); padding: 32px 28px; display: grid; gap: 14px; justify-items: center; text-align: center; width: 100%; }
.signin-mark { width: 44px; height: 44px; border-radius: 14px; background: var(--hero-green); color: #fff; display: grid; place-items: center; font-size: 1.25rem; font-weight: 800; }
.signin-card h1 { margin: 0; font-size: 1.375rem; font-weight: 700; }
.signin-card p { margin: 0; }
@media (prefers-reduced-motion: no-preference) { .sheet { animation: up .18s ease-out; } @keyframes up { from { transform: translateY(12px); opacity: 0; } } }
