/* Budget for Keeps 2: the app's look. Same colours and fonts as the website (site/assets/base.css). */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --forest: #0E1914; --forest-2: #17271E; --cream: #EFE9DC; --sage: #A9B5A8; --mint: #9FD8B6;
  --amber: #F0B24A; --amber-soft: #FBE7BF; --paper: #F4F5EC; --paper-2: #E8EEE0; --white: #FFFEFA;
  --ink: #0E1914; --muted: #475850; --green: #1E6B52; --red: #A63D2F; --line: rgb(14 25 20 / 0.12);
  --display: "Fraunces", Georgia, serif; --text: "Geist", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
  --shadow: 0 1px 2px rgb(14 40 28 / 0.08), 0 12px 32px -14px rgb(14 40 28 / 0.28);
  --shadow-lg: 0 2px 6px rgb(14 40 28 / 0.1), 0 40px 70px -28px rgb(14 40 28 / 0.45);
  --ease: cubic-bezier(.22, .8, .25, 1); --r: 22px; --tabh: 68px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
button, a, label, input { touch-action: manipulation; }
body { margin: 0; min-height: 100vh; overscroll-behavior-y: none; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); color: var(--ink); font: 400 16px/1.5 var(--text); -webkit-font-smoothing: antialiased;
  background: radial-gradient(70% 50% at 100% 0%, rgb(159 216 182 / 0.35), transparent 70%), radial-gradient(60% 40% at 0% 100%, rgb(240 178 74 / 0.16), transparent 70%), var(--paper); background-attachment: fixed; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.55) 0 1px, transparent 1px 14px); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--green); text-underline-offset: .16em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--amber); color: var(--forest); border: 1px solid #D89A33; border-radius: 999px;
  font-weight: 600; font-size: 15px; padding: 12px 20px; text-decoration: none; min-height: 46px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 10px 22px -12px rgb(176 112 10 / .75); transition: transform 160ms var(--ease), background-color 160ms; }
.btn:hover { background: #F6BF62; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--block { width: 100%; }
.btn--line { background: var(--white); border-color: rgb(14 25 20 / .2); box-shadow: none; }
.btn--line:hover { background: var(--paper-2); }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgb(239 233 220 / .35); box-shadow: none; }
.btn--ghost:hover { background: rgb(239 233 220 / .1); }
.btn--sm { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.link { background: none; border: 0; padding: 0; color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: .16em; }
.danger { color: var(--red); }

/* ---------- app frame ---------- */
.top { position: sticky; top: 0; padding-top: env(safe-area-inset-top); z-index: 30; background: rgb(14 25 20 / .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--cream); }
.top__in { width: min(1120px, 100% - 32px); margin: 0 auto; display: flex; align-items: center; gap: 14px; min-height: 58px; }
.mark { display: flex; align-items: center; gap: 9px; color: var(--cream); text-decoration: none; font: 600 17px/1 var(--display); white-space: nowrap; }
.mark svg { width: 28px; height: 28px; }
.mark sup { font: 600 10px/1 var(--text); color: var(--forest); background: var(--mint); border-radius: 6px; padding: 3px 5px; margin-left: 2px; vertical-align: 3px; }
.tabs { display: flex; gap: 4px; margin-left: 18px; }
.tabs button { background: none; border: 0; color: var(--sage); font-weight: 500; font-size: 14.5px; padding: 8px 13px; border-radius: 999px; display: flex; gap: 7px; align-items: center; }
.tabs button:hover { color: var(--cream); }
.tabs button[aria-current="page"] { color: var(--forest); background: var(--cream); }
.tabs svg { width: 18px; height: 18px; }
.top__in { position: relative; }
.top .add { margin-left: 10px; }
.saved { margin-left: auto; font-size: 13px; color: var(--mint); opacity: 0; transition: opacity 300ms; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.saved.on { opacity: 1; }
.top .add { min-height: 38px; padding: 7px 16px; font-size: 14px; }
.demo-bar { background: var(--amber); color: var(--forest); font-size: 13.5px; text-align: center; padding: 7px 14px; }
.demo-bar a { color: var(--forest); font-weight: 700; }
main { width: min(1120px, 100% - 32px); margin: 0 auto; padding: 22px 0 calc(var(--tabh) + 40px); }

/* bottom tab bar on phones */
.bottom { display: none; }
@media (max-width: 760px) {
  .tabs { display: none; }
  .top__in { min-height: 54px; width: calc(100% - 24px); }
  .saved { position: absolute; top: 100%; right: 0; background: var(--forest); padding: 4px 12px 6px; border-radius: 0 0 12px 12px; }
  .top .add { margin-left: auto; }
  main { width: calc(100% - 24px); padding-top: 14px; }
  .bottom { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tabh) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgb(14 25 20 / .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgb(239 233 220 / .08); }
  .bottom button { background: none; border: 0; color: var(--sage); font-size: 11.5px; font-weight: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
  .bottom button[aria-current="page"] { color: var(--amber); }
  .bottom svg { width: 23px; height: 23px; }
}

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.col { display: grid; gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.card h2 { font-size: 20px; }
.card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.card__head .right { margin-left: auto; }
.card--tint { background: linear-gradient(160deg, var(--white), var(--paper-2)); }

/* the dark hero card with the big number */
.hero { position: relative; overflow: hidden; isolation: isolate; color: var(--cream); border-radius: 28px; padding: 22px 22px 24px; box-shadow: var(--shadow-lg);
  background: radial-gradient(70% 90% at 100% 0%, rgb(240 178 74 / .35), transparent 65%), radial-gradient(60% 80% at 0% 100%, rgb(159 216 182 / .28), transparent 70%), var(--forest); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: repeating-linear-gradient(90deg, rgb(255 255 255 / .05) 0 1px, transparent 1px 14px); }
.hero__steps { position: absolute; right: -10px; bottom: -6px; width: 46%; max-width: 260px; z-index: -1; opacity: .12; }
.hero__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.month { display: inline-flex; align-items: center; gap: 2px; background: rgb(239 233 220 / .08); border: 1px solid rgb(239 233 220 / .14); border-radius: 999px; padding: 3px; }
.month button { background: none; border: 0; width: 32px; height: 32px; border-radius: 50%; color: var(--cream); font-size: 18px; line-height: 1; }
.month button:hover:not(:disabled) { background: rgb(239 233 220 / .12); }
.month button:disabled { opacity: .3; cursor: default; }
.month span { font-weight: 600; font-size: 14.5px; padding: 0 8px; min-width: 120px; text-align: center; }
.who { display: inline-flex; gap: 4px; margin-left: auto; }
.chip { border: 1px solid rgb(239 233 220 / .22); background: transparent; color: var(--cream); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.chip--light { border-color: var(--line); color: var(--ink); background: var(--white); }
.chip--light[aria-pressed="true"] { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.hero__label { margin-top: 22px; font-size: 15px; color: var(--sage); display: flex; align-items: center; gap: 6px; }
.big { font: 600 clamp(54px, 13vw, 84px)/1 var(--display); letter-spacing: -0.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.big.neg { color: #FFB4A6; }
.hero__sub { margin-top: 10px; color: var(--cream); font-size: 15px; }
.hero__sub b { color: var(--amber); font-weight: 600; }
.meter { margin-top: 18px; height: 12px; border-radius: 99px; background: rgb(239 233 220 / .12); overflow: hidden; display: flex; }
.meter i { display: block; height: 100%; }
.hero__legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--sage); }
.hero__cta { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

/* info icon + popover */
.info { width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; background: none; color: inherit; opacity: .65; font: 600 12px/1 var(--text); display: inline-grid; place-items: center; padding: 0; flex: none; }
.info:hover, .info[aria-expanded="true"] { opacity: 1; }
.pop { margin-top: 10px; font-size: 14px; line-height: 1.5; background: var(--paper-2); color: var(--ink); border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); }
.hero .pop { background: rgb(239 233 220 / .1); color: var(--cream); border-color: rgb(239 233 220 / .16); }

/* category bars */
.stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; margin-bottom: 16px; }
.stack i { display: block; height: 100%; }
.cats { display: grid; gap: 4px; }
.cat { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 8px 8px; border-radius: 14px; background: none; border: 0; text-align: left; width: 100%; }
button.cat:hover { background: var(--paper); }
.cat .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; }
.cat .nm { font-weight: 600; font-size: 15px; }
.cat .bar { height: 6px; border-radius: 99px; background: var(--paper-2); margin-top: 6px; overflow: hidden; }
.cat .bar i { display: block; height: 100%; border-radius: 99px; }
.cat .amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.cat .chg { display: block; font-size: 12.5px; font-weight: 500; }
.up { color: var(--red); } .down { color: var(--green); }

/* lists */
.rows { display: grid; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; width: 100%; }
.row:last-child { border-bottom: 0; }
button.row:hover { background: var(--paper); }
.row .t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .s { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row .a { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.row .a.in { color: var(--green); }
.tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 1px 8px; font-size: 12px; background: var(--paper-2); color: var(--muted); }
.tag--unsure { background: var(--amber-soft); color: #6B4A0A; }
.day { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 16px 4px 4px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat { background: var(--paper); border-radius: 16px; padding: 12px 14px; }
.stat b { display: block; font: 600 24px/1.15 var(--display); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }

/* empty state / drop zone */
.drop { border: 2px dashed rgb(30 107 82 / .35); border-radius: 22px; padding: 28px 20px; text-align: center; background: rgb(255 254 250 / .7); transition: background 160ms, border-color 160ms; }
.drop.over { background: var(--amber-soft); border-color: var(--amber); }
.drop h3 { font-size: 22px; margin-top: 10px; }
.drop p { margin-top: 6px; color: var(--muted); }
.drop .btn { margin-top: 16px; }
.drop__icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; display: grid; place-items: center; background: var(--forest); color: var(--amber); }
.drop__icon svg { width: 32px; height: 32px; }
.trust { display: flex; gap: 8px 16px; justify-content: center; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--muted); }
.trust span::before { content: "✓ "; color: var(--green); font-weight: 700; }
details.how { margin-top: 14px; text-align: left; }
details.how summary { cursor: pointer; font-weight: 600; color: var(--green); list-style: none; text-align: center; }
details.how summary::-webkit-details-marker { display: none; }
details.how summary::after { content: " ▾"; }
details.how[open] summary::after { content: " ▴"; }
.banks { display: grid; gap: 8px; margin-top: 12px; font-size: 14px; }
.banks div { background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.banks b { display: block; }

/* sheets (bottom on phones, centred on desktop) */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgb(14 25 20 / .45); display: flex; align-items: flex-end; justify-content: center; animation: fade 160ms var(--ease); }
.sheet { background: var(--white); width: min(560px, 100%); max-height: 92vh; max-height: 92dvh; overscroll-behavior: contain; overflow: auto; border-radius: 26px 26px 0 0; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: rise 220ms var(--ease); }
@media (min-width: 761px) { .scrim { align-items: center; } .sheet { border-radius: 26px; } }
.sheet__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sheet__head h2 { font-size: 22px; }
.x { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper-2); font-size: 20px; line-height: 1; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pick button { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); text-align: left; font-size: 14px; font-weight: 500; }
.pick button[aria-pressed="true"] { border-color: var(--green); background: rgb(30 107 82 / .08); box-shadow: inset 0 0 0 1px var(--green); }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field > span { font-size: 14px; font-weight: 600; }
.input { width: 100%; border: 1px solid rgb(14 25 20 / .2); border-radius: 14px; background: var(--white); padding: 11px 13px; font-size: 16px; min-height: 46px; }
.input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgb(30 107 82 / .15); }
.money-in { position: relative; } .money-in .input { padding-left: 26px; } .money-in::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.three { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .three { grid-template-columns: 1fr 1fr; } .three > :first-child { grid-column: 1 / -1; } }
.seg { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14.5px; margin: 10px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
input[type=range] { width: 100%; accent-color: var(--green); height: 28px; }

/* debt plan */
.debt-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.debt-hero div span { display: block; font-size: 13.5px; color: var(--sage); }
.debt-hero div b { display: block; font: 600 clamp(30px, 7vw, 44px)/1.05 var(--display); margin-top: 4px; font-variant-numeric: tabular-nums; }
.debt-hero div:last-child b { color: var(--amber); }
.order { counter-reset: n; display: grid; gap: 8px; }
.order li { list-style: none; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; background: var(--paper); border-radius: 14px; padding: 10px 12px; }
.order li::before { counter-increment: n; content: counter(n); width: 26px; height: 26px; border-radius: 50%; background: var(--forest); color: var(--amber); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.order ol, ol.order { padding: 0; margin: 0; }
.debt-card { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: var(--paper); margin-bottom: 10px; }
.debt-card .top-line { display: flex; gap: 8px; align-items: center; }
.debt-card .top-line .input { font-weight: 600; }
.chart { width: 100%; height: auto; display: block; margin-top: 8px; }
.chart text { font: 500 11px var(--text); fill: var(--muted); }
.keep { background: linear-gradient(150deg, var(--amber-soft), var(--white) 70%); }
.keep .big2 { font: 600 clamp(34px, 8vw, 48px)/1 var(--display); color: var(--green); font-variant-numeric: tabular-nums; margin-top: 6px; }
.whatif { margin-top: 12px; background: var(--paper-2); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; }

/* gate / unlock */
.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 28px 16px; }
.gate__box { width: min(980px, 100%); display: grid; grid-template-columns: 1.05fr 1fr; grid-template-areas: "intro card" "feat card"; gap: 0 40px; align-items: center; }
.gate__intro { grid-area: intro; align-self: end; } .gate .feat { grid-area: feat; align-self: start; } .gate__card { grid-area: card; }
@media (max-width: 820px) { .gate__box { grid-template-columns: 1fr; grid-template-areas: "intro" "card" "feat"; gap: 22px; } .gate .feat { margin-top: 0; } }
.gate h1 { font-size: clamp(36px, 7vw, 60px); line-height: 1.02; letter-spacing: -0.025em; margin-top: 16px; }
.gate h1 em { font-style: normal; background: linear-gradient(transparent 64%, rgb(240 178 74 / .6) 64% 92%, transparent 92%); }
.gate .lead { margin-top: 14px; font-size: 18px; color: var(--muted); }
.gate .mark { color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px 7px 12px; box-shadow: var(--shadow); margin-top: 22px; }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgb(30 107 82 / .16); }
.feat { display: grid; gap: 10px; margin-top: 20px; }
.feat div { display: flex; gap: 12px; align-items: flex-start; }
.feat b { width: 34px; height: 34px; flex: none; border-radius: 11px; background: var(--forest); color: var(--amber); display: grid; place-items: center; font-size: 16px; }
.feat p { font-size: 15px; } .feat p strong { display: block; }
.err { color: var(--red); font-size: 14px; margin-top: 8px; }
.ok-msg { color: var(--green); font-size: 14px; margin-top: 8px; }

/* onboarding */
.onb { width: min(620px, 100%); margin: 10px auto 0; }
.steps { display: flex; gap: 6px; margin-bottom: 16px; }
.steps i { height: 5px; flex: 1; border-radius: 99px; background: var(--paper-2); }
.steps i.on { background: var(--green); }
.big-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.big-choice button { border: 1px solid var(--line); background: var(--white); border-radius: 20px; padding: 20px 14px; font-weight: 600; font-size: 16px; box-shadow: var(--shadow); }
.big-choice button span { display: block; font-size: 34px; margin-bottom: 6px; }
.big-choice button[aria-pressed="true"] { border-color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }

/* preview of a file being added */
.file { border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 12px; background: var(--paper); }
.file h3 { font: 600 16px/1.3 var(--text); }
.file .sum { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; font-size: 14px; }
.mini { margin-top: 10px; font-size: 13.5px; border-radius: 12px; background: var(--white); padding: 4px 10px; }
.mini div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.mini div:last-child { border: 0; }
.mini div span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mini div span:last-child { white-space: nowrap; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabh) + 18px); transform: translateX(-50%); z-index: 80; background: var(--forest); color: var(--cream); padding: 12px 18px; border-radius: 16px; box-shadow: var(--shadow-lg); font-size: 14.5px; max-width: calc(100% - 32px); display: flex; gap: 12px; align-items: center; animation: rise 220ms var(--ease); }
.toast button { color: var(--amber); background: none; border: 0; font-weight: 700; }
@media (min-width: 761px) { .toast { bottom: 28px; } }
.search { position: relative; } .search .input { padding-left: 38px; } .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); }
.settings h2 { font-size: 20px; margin-bottom: 6px; }
.settings .card + .card { margin-top: 0; }
.spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp 700ms linear infinite; display: inline-block; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.saved.warn { color: var(--amber); }

/* Home Screen bar (phones, top of every main screen) */
.installbar { display: flex; align-items: center; gap: 12px; background: var(--amber-soft); border: 1px solid #E9C98A; border-radius: 18px; padding: 10px 8px 10px 12px; margin-bottom: 16px; color: var(--ink); }
.installbar img { border-radius: 11px; flex: none; }
.installbar div { flex: 1; min-width: 0; line-height: 1.25; }
.installbar b { display: block; font-size: 15px; }
.installbar span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.installbar .btn { flex: none; }
.installbar .x { margin-left: 0; flex: none; width: 32px; height: 32px; background: transparent; }
.gate { align-content: center; row-gap: 16px; }
.gate > .installbar { width: min(980px, 100%); margin-bottom: 0; }
.gate--onb > .installbar { width: min(620px, 100%); }

/* Cards paid in full every month */
.debt-card--full { opacity: .85; }
.full-note { font-size: 13.5px; color: var(--green); }
