/* Mizan — one stylesheet. "Paper and ink": the same palette, type and depth as
   mohdkhizerhayat.com. Light is warm paper, dark is warm ink; both are first-class
   (data-theme, following the system by default). Phone first, two columns on a desktop. */

@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #0d0e11; --card: #16181d; --chip: #1d2026; --ink: #f3f1ec; --ink-2: #c9ccd3; --muted: #a4a8b1;
  --line: #25282f; --line-ui: #656b75;
  --accent: #ff7a4d; --accent-ink: #0d0e11; --accent-soft: rgba(255, 122, 77, .14);
  --in: #6aa8f0; --c-income: #3987e5; --c-spend: #d95926; --bar: var(--c-spend); --bar-dim: #2e323b; --track: #20232b;
  --meter-ok: #7c8494;
  /* Status colours are colour-blind-safe: blue / amber / rose, not green / amber / red. Green and
     red are the pair people with red-green colour blindness cannot tell apart (about 1 in 12 men),
     so "good" is blue and "bad" is a rose that stays apart from both. --good/--warn/--bad are for
     text, --s-* for fills and borders (--s-bad also sits behind white text). Every status also
     carries a word or a shape (✓ ▲ ✕), so colour is never the only signal. tests/test_palette.py
     checks contrast and that the three stay distinguishable under protan, deutan and tritan vision. */
  --good: #4da3ff; --warn: #f0c419; --bad: #ff5c7a;
  --s-good: #2f7fd6; --s-warn: #e0ae12; --s-bad: #d6334f;
  --warn-bg: rgba(224, 174, 18, .12); --bad-bg: rgba(214, 51, 79, .16); --good-bg: rgba(47, 127, 214, .16);
  --axis: #383c46;
  /* depth: a faint lit top edge and a soft drop, so cards sit above the page */
  --elev: inset 0 1px 0 rgba(255, 255, 255, .045), 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .75);
  --wash-1: rgba(255, 122, 77, .16); --wash-2: rgba(255, 92, 140, .08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --tabbar-h: 60px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #faf8f5; --card: #ffffff; --chip: #f3f0ea; --ink: #14151a; --ink-2: #3a3d46; --muted: #5c616b;
  --line: #e9e5dd; --line-ui: #8a8e96;
  --accent: #c2410c; --accent-ink: #ffffff; --accent-soft: rgba(194, 65, 12, .1);
  --in: #1f66bd; --c-income: #2a78d6; --c-spend: #eb6834; --bar-dim: #ddd8cf; --track: #efebe4;
  --meter-ok: #9aa0aa;
  --good: #1b67aa; --warn: #8a6500; --bad: #a8204f;
  --s-good: #1f6fb5; --s-warn: #b07a00; --s-bad: #a8204f;
  --warn-bg: #fff1cf; --bad-bg: #fbe4ec; --good-bg: #e3eefa;
  --axis: #d5d0c6;
  --elev: 0 1px 2px rgba(40, 30, 20, .05), 0 12px 30px -14px rgba(40, 30, 20, .16);
  --wash-1: rgba(255, 140, 90, .2); --wash-2: rgba(255, 120, 170, .1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 16px/1.5 var(--font); -webkit-tap-highlight-color: transparent;
       background-color: var(--bg);
       background-image: radial-gradient(52rem 34rem at 95% -12%, var(--wash-1), transparent 62%),
         radial-gradient(40rem 30rem at 55% -25%, var(--wash-2), transparent 60%);
       background-attachment: fixed; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* type roles: the serif for big titles and numbers (it has one weight, so never faked bold),
   Inter for small headings and everything else, mono for labels */
h1, .hero, .nw, .big, .kval { font-family: var(--display); font-weight: 400; font-synthesis-weight: none; }
h2 { font-size: 18px; font-weight: 600; margin: 0; letter-spacing: -.005em; }
.label, .hero-label, .kpi .l, .klabel, .group-label, .daygroup, .eyebrow, .legend-row, .listsum, table.plain th,
.monthnav .title span, .seg a, .tabbar a, .themebtn, .tagx, .pill, .tagk, .footer-health, .back, .link.mono, .viewtoggle button {
  font-family: var(--mono); }
.hero-label, .kpi .l, .klabel, .group-label, .daygroup, .eyebrow, table.plain th {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 400; }
.eyebrow { color: var(--accent); }
.amt, .a, .r, .b, .kval, .hero, .nw, .big, .v { font-variant-numeric: tabular-nums; }
.sub { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.note { color: var(--muted); font-size: 14px; }
.center { text-align: center; }

/* --- header & navigation ------------------------------------------------- */
.sitebar { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent);
       padding-top: env(safe-area-inset-top); }
.top-in { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
               background: var(--ink); color: var(--bg); font: 400 15px/1 var(--display); font-style: italic; letter-spacing: -.01em; }
.brand .word { font: 400 24px/1 var(--display); letter-spacing: -.01em; }
.themebtn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px;
            border: 1px solid var(--line-ui); background: transparent; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.themebtn span:first-child { font-size: 14px; }

/* phone: a tab bar on the bottom edge */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(6, 1fr);
          background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
          border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
            height: var(--tabbar-h); text-decoration: none; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.tabbar a svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.on { color: var(--accent); }
.tabbar a.on::before { content: ""; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; background: var(--accent); }
.badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
         background: var(--s-bad); color: #fff; font: 600 10px/18px var(--mono); text-align: center; letter-spacing: 0; }

/* --- frame ------------------------------------------------------------------ */
main { max-width: 720px; margin: 0 auto; padding: 18px 16px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 28px); }
.screen-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 18px; }
.screen-title h1 { font-size: 44px; line-height: 1.02; font-weight: 400; margin: 0; letter-spacing: -.012em; }
.screen-title.stack { flex-direction: column; align-items: flex-start; gap: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--elev); padding: 18px; margin-bottom: 16px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-size: 14px; cursor: pointer; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--accent); border-radius: 999px;
       background: var(--accent); color: var(--accent-ink); padding: 11px 20px; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line-ui); }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.btn.danger.armed { background: var(--s-bad); border-color: var(--s-bad); color: #fff; }
.back { display: inline-block; color: var(--accent); text-decoration: none; font-size: 13px; margin: 0 0 -4px; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font: 600 20px var(--font); margin-bottom: 6px; }
.banner { border-radius: 12px; padding: 11px 14px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.banner.warn { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--s-warn) 40%, transparent); }
.banner.bad { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--s-bad) 45%, transparent); }
.banner.tappable { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none; }
.banner .chev { font-size: 22px; }
.gap { margin: 12px 0 0; }
.skeleton { height: 120px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); margin-bottom: 16px;
            animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* tags: outlined, mono, like the portfolio's GOOD / WATCH */
.pill, .tagk, .tagx { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; line-height: 1;
        padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line-ui); color: var(--ink); white-space: nowrap; background: transparent; }
.pill.ok, .tagk.good { border-color: var(--s-good); }
.pill.warn, .tagk.watch, .tagx { border-color: var(--s-warn); }
.pill.bad, .tagk.alert { border-color: var(--s-bad); }
.pill.info { border-color: var(--c-income); }
.pill.no, .tagk.note { border-color: var(--line-ui); color: var(--muted); }
.tagx { margin-right: 6px; vertical-align: 1px; }
.up { color: var(--bad); }
.down { color: var(--good); }

/* --- headline numbers -------------------------------------------------------- */
.hero { font-size: 60px; font-weight: 400; line-height: 1; letter-spacing: -.02em; margin: 6px 0 6px; }
.hero .per { font-size: 20px; color: var(--muted); letter-spacing: 0; margin-left: 2px; font-weight: 500; }
.delta { font-size: 14px; color: var(--ink-2); }
.nw { display: block; font-size: 38px; font-weight: 400; letter-spacing: -.012em; line-height: 1.1; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 16px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: color-mix(in srgb, var(--bg) 50%, var(--card)); }
.kpi .l { display: block; }
.kpi .v { font-size: 21px; font-weight: 600; margin-top: 2px; }
.kpi .h { color: var(--muted); font-size: 12px; }
.kpi.edit { display: block; cursor: text; }
.kpi.edit .l, .kpi.edit .h { display: block; }

/* KPI cards with a sparkline (Home) */
.kpirow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.kcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--elev); padding: 14px; text-decoration: none; min-width: 0;
         transition: transform .15s cubic-bezier(.2, .7, .2, 1), border-color .15s; }
.kcard:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.kcard .ktop { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 6px; }
.kval { font-size: 32px; font-weight: 400; letter-spacing: -.01em; line-height: 1.05; white-space: nowrap; }
.kspark { width: 64px; height: 24px; flex: none; }
.kspark path { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.kspark circle { fill: var(--accent); }
.ksub { font-size: 12px; color: var(--muted); margin-top: 6px; }
.ksub .up, .ksub .down { font-weight: 600; }

.cta { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.cta .dot { flex: none; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; font: 600 15px var(--mono);
            border: 1px solid var(--s-warn); color: var(--warn); }
.dot.plan { border-color: var(--accent); color: var(--accent); font-size: 20px; }
.cta .t { flex: 1; min-width: 0; }
.cta .t strong { display: block; }
.cta .chev { color: var(--muted); font-size: 22px; }

/* --- insights (alerts) ----------------------------------------------------------- */
.headsup .alert { display: flex; align-items: flex-start; gap: 6px; border-top: 1px solid var(--line); }
.headsup .alert:first-of-type, .headsup .card-head + .alert { border-top: 0; }
.alert .abody { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; text-decoration: none; }
.alert .tagk { flex: none; width: 58px; text-align: center; margin-top: 2px; }
.alert .mid { min-width: 0; }
.alert .mid strong { display: block; font-size: 15px; font-weight: 600; }
.alert .mid .note { display: block; font-size: 13px; }
.alert .dismiss { flex: none; width: 34px; height: 34px; margin-top: 6px; border-radius: 6px; border: 0; background: transparent;
                  color: var(--muted); font-size: 14px; cursor: pointer; }
.alert .dismiss:hover { background: var(--chip); color: var(--ink); }
.withbell { position: relative; padding-right: 54px; }
.bell { position: absolute; right: 0; top: 0; width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center;
        border: 1px solid var(--line-ui); color: var(--ink); }
.bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.bell .badge { top: -7px; left: auto; right: -7px; border: 2px solid var(--bg); }

/* --- charts --------------------------------------------------------------------------- */
.chart { position: relative; margin-top: 8px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--muted); font: 10.5px var(--mono); }
.chart text.sel { fill: var(--ink); font-weight: 600; }
.chart .gl { stroke: var(--line); }
.chart .ax { stroke: var(--axis); }
.chart .col { cursor: pointer; }
.chart .hit { fill: transparent; }
.chart .bi { fill: var(--c-income); }
.chart .bs { fill: var(--c-spend); }
.chart .dim .bi, .chart .dim .bs { opacity: .38; }
.chart .net { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.chart .netdot { fill: var(--card); stroke: var(--ink); stroke-width: 1.6; }
.pacechart { margin: 14px 0 4px; }
.pacechart .ln { fill: none; stroke: var(--c-spend); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.pacechart .ln.last { stroke: var(--line-ui); stroke-width: 1.6; stroke-dasharray: 4 4; }
.pacechart .dot { fill: var(--c-spend); stroke: var(--card); stroke-width: 2; }
.pacechart .cross { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 11px; margin: 6px 0; align-items: center; }
.legend-row i { display: inline-block; vertical-align: 0; margin-right: 6px; }
.sw-line { width: 14px; height: 2px; background: var(--c-spend); vertical-align: 3px !important; }
.sw-line.last { background: var(--line-ui); }
.sw-bar { width: 10px; height: 10px; background: var(--c-spend); border-radius: 2px; }
.sw-in { width: 10px; height: 10px; background: var(--c-income); border-radius: 2px; }
.sw-net { width: 14px; height: 2px; background: var(--ink); vertical-align: 3px !important; }
.sw-usual { width: 2px; height: 12px; background: var(--ink-2); }
.legend-usual { margin-left: auto; }
.viewtoggle { display: inline-flex; border: 1px solid var(--line-ui); border-radius: 999px; overflow: hidden; }
.viewtoggle button { border: 0; background: transparent; padding: 6px 14px; font-size: 12px; color: var(--muted); cursor: pointer; }
.viewtoggle button.on { background: var(--ink); color: var(--bg); }
#tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: var(--bg); font: 12px/1.45 var(--mono);
       padding: 7px 10px; border-radius: 6px; opacity: 0; transition: opacity .1s; white-space: nowrap; }
#tip.on { opacity: 1; }

/* category bars */
.cats { list-style: none; margin: 4px 0 0; padding: 0; }
.cat { border-top: 1px solid var(--line); }
.cat:first-child { border-top: 0; }
.cat > button, .cats a.catlink { all: unset; display: block; width: 100%; padding: 11px 0; cursor: pointer; box-sizing: border-box; }
.cat > button:focus-visible, .cats a.catlink:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.cat .top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.cat .top .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat .top .amt { font-weight: 600; white-space: nowrap; }
.bar { position: relative; height: 6px; margin-top: 8px; background: var(--track); border-radius: 3px; }
.bar .fill { position: absolute; left: 0; top: 0; height: 6px; background: var(--c-spend); border-radius: 3px; min-width: 3px; max-width: 100%; }
.bar .usual { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--ink); border-radius: 1px; }
.cat .cmp { color: var(--muted); font-size: 12px; margin-top: 5px; }
.ic { margin-right: 7px; }

/* --- meters (budget, goals) ------------------------------------------------------ */
.meter { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--track); margin: 9px 0 6px; overflow: hidden; }
.meter.lg { height: 10px; border-radius: 5px; overflow: visible; }
.meter .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--meter-ok); max-width: 100%; }
.meter .fill.close { background: var(--s-warn); }
.meter .fill.over { background: var(--s-bad); }
.meter .fill.done { background: var(--s-good); }
.meter .today { position: absolute; top: -4px; width: 2px; height: 18px; border-radius: 1px; background: var(--ink); }
.budgetcard .meter .fill, .bsum .meter .fill { background: var(--c-spend); }
.budgetcard .meter .fill.over { background: var(--s-bad); }
.budgetcard .nw.neg { color: var(--bad); }

/* --- budget ------------------------------------------------------------------------- */
.seg { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 16px; border: 1px solid var(--line-ui); border-radius: 999px; overflow: hidden; }
.seg a { text-align: center; padding: 9px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-decoration: none; }
.seg a + a { border-left: 1px solid var(--line-ui); }
.seg a.on { background: var(--ink); color: var(--bg); }
.monthnav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.monthnav button { border: 1px solid var(--line-ui); background: transparent; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.monthnav button:disabled { opacity: .3; cursor: default; }
.monthnav .title { text-align: center; }
.monthnav .title strong { display: block; font: 600 19px var(--font); }
.monthnav .title span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.zb { border-radius: 12px; padding: 12px 14px; font-size: 15px; border: 1px solid; }
.zb strong { font-size: 24px; font-weight: 600; }
.zb.ok { background: var(--good-bg); color: var(--good); border-color: color-mix(in srgb, var(--s-good) 45%, transparent); font-weight: 600; font-size: 16px; }
.zb.warn { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--s-warn) 40%, transparent); }
.zb.bad { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--s-bad) 45%, transparent); }
.zb .note { color: inherit; opacity: .85; margin-top: 2px; }
.amtwrap { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 0 9px; }
.amtwrap span { color: var(--muted); }
.amtwrap input { width: 92px; border: 0; background: transparent; padding: 8px 0; font-size: 16px; font-weight: 600;
                 text-align: right; font-variant-numeric: tabular-nums; outline: none; }
.amtwrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.amtwrap.big { display: flex; margin: 2px 0; }
.amtwrap.big input { width: 100%; font-size: 19px; text-align: left; }
input.saving { opacity: .5; }
.bsum { margin-top: 16px; }
.bsum .legend { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-2); }
.blines { list-style: none; margin: 0; padding: 0; }
.bline { border-top: 1px solid var(--line); padding: 11px 0; }
.bline:first-child { border-top: 0; }
.brow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bname { all: unset; display: flex; align-items: center; min-width: 0; font-size: 15px; font-weight: 600; cursor: pointer; }
.bname span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bname:focus-visible { outline: 2px solid var(--accent); border-radius: 4px; }
.bstat { font-size: 13px; color: var(--ink-2); }
.bstat .mk { font-family: var(--mono); margin-right: 4px; }
.bstat .mk.close { color: var(--warn); }
.bstat .mk.over { color: var(--bad); }
.bstat .mk.ok { color: var(--good); }
.btx, .addline, .addchips { margin-top: 10px; }
.empty-plan { text-align: center; padding: 30px 18px; }
.empty-plan h2 { font-size: 24px; }
.big-ic { font-size: 38px; margin-bottom: 8px; }
.stack-btns { display: grid; gap: 10px; max-width: 360px; margin: 18px auto 0; }
.stack-btns .note { margin: -4px 0 4px; }

/* bills */
.blist { margin-top: 4px; }
.bill { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; }
.blist .bill:first-child { border-top: 0; }
.bill .mid { min-width: 0; }
.bill .m, .bill .c { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bill .m { font-weight: 600; }
.bill .c { color: var(--muted); font-size: 13px; }
.bill .r { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.bill .a { font-weight: 600; white-space: nowrap; }
.foot { margin: 12px 0 0; }
.hrow { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.hrow:first-of-type { border-top: 0; }
.hist { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.hist li { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hist li:first-child { border-top: 0; }

/* goals */
.goal .ghead { display: flex; align-items: center; gap: 12px; }
.goal .gem { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--chip); display: grid; place-items: center; font-size: 21px; flex: none; }
.goal .gmid { flex: 1; min-width: 0; }
.goal .gmid h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goal .gnum { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.goal .gnum strong { font-size: 24px; font-weight: 600; }
.goal .pct { margin-left: auto; font: 12px var(--mono); color: var(--ink-2); }
.goalbar .fill { background: var(--accent); }
.ok-t { color: var(--good); font-weight: 600; }
.addmoney { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.addmoney .amtwrap input { width: 90px; }
.center-chips { justify-content: center; margin-top: 16px; }
.emojis .chip { font-size: 19px; padding: 6px 10px; }
.section.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.section.two label { display: block; font-weight: 600; margin-bottom: 6px; }
.section.two .amtwrap.big input { font-size: 17px; }
.radio { display: grid; gap: 10px; }
.radio > label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; cursor: pointer; font-weight: 400; }
.radio > label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.radio input[type=radio] { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.lowrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.lowrow:first-of-type { border-top: 0; }
.lowrow > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plainlist { margin: 8px 0 12px; padding-left: 0; list-style: none; font-size: 14px; line-height: 1.9; }
.plainlist .tagk { width: 58px; text-align: center; margin-right: 8px; }

/* --- transaction rows ------------------------------------------------------------ */
.daygroup { margin: 18px 4px 8px; }
.daygroup:first-child { margin-top: 0; }
.txgroup { border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--elev); overflow: hidden; background: var(--card); }
.tx { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 0;
      background: transparent; text-align: left; cursor: pointer; border-top: 1px solid var(--line); }
.txgroup .tx:first-child { border-top: 0; }
.tx:hover { background: var(--chip); }
.av, .bill .av { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: var(--chip);
      border: 1px solid var(--line); font-size: 18px; flex: none; }
.av.in { border-color: color-mix(in srgb, var(--c-income) 55%, transparent); }
.av.need { border-color: var(--s-warn); }
.av.lg { width: 48px; height: 48px; border-radius: 10px; font-size: 23px; }
.tx .mid { min-width: 0; }
.tx .m, .tx .c { display: block; }
.tx .m { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx .c { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx .c .need { color: var(--warn); font-weight: 600; }
.tx .a { font-weight: 600; white-space: nowrap; text-align: right; }
.tx .a.in { color: var(--in); }
.tx .a.xfer { color: var(--muted); font-weight: 500; }

/* search & filters */
.searchbar { position: sticky; top: 0; z-index: 5; margin: 0 -16px 12px; padding: 8px 16px 8px;
             background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.search { width: 100%; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-ui); background: var(--card); font-size: 16px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters select, .filters .toggle { flex: none; appearance: none; -webkit-appearance: none; border: 1px solid var(--line-ui); background: transparent;
          border-radius: 6px; padding: 6px 11px; font: 12px var(--mono); max-width: 220px; cursor: pointer; }
.filters .on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.listsum { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin: 2px 4px 12px; }
.more { display: block; margin: 16px auto 0; }

/* chips (category picker) */
.group-label { margin: 14px 0 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-ui); background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--ink-2); }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip:disabled { opacity: .5; cursor: wait; }
.chip .ic { margin-right: 5px; }
.morecats { margin-top: 12px; }

/* --- sheet ----------------------------------------------------------------------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .2s; }
.scrim.on { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
         background: var(--card); border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0;
         padding: 8px 18px calc(env(safe-area-inset-bottom) + 20px); transform: translateY(100%); transition: transform .25s ease;
         max-width: 640px; margin: 0 auto; }
.sheet.on { transform: none; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line-ui); margin: 4px auto 12px; }
.sheet .close { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line-ui);
                background: transparent; color: var(--ink-2); font-size: 15px; cursor: pointer; }
.sheet-head { display: flex; align-items: center; gap: 12px; margin: 4px 44px 8px 0; }
.sheet-head h2 { font-size: 20px; }
.sheet .big { font-size: 46px; font-weight: 400; letter-spacing: -.012em; margin: 6px 0 2px; }
.sheet .big.in { color: var(--in); }
.facts { list-style: none; padding: 0; margin: 12px 0; font-size: 15px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.facts li span:first-child { color: var(--muted); white-space: nowrap; }
.facts li span:last-child { text-align: right; overflow-wrap: anywhere; }
.raw { font: 12.5px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
textarea, input[type=text], input[type=password], input[type=month], .sheet select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line-ui); border-radius: 12px; background: var(--bg); font-size: 16px; min-height: 44px; }
textarea { min-height: 72px; resize: vertical; }
input.mono { font-family: var(--mono); font-size: 14px; }
textarea:focus, input[type=text]:focus, input[type=password]:focus, input[type=month]:focus, .sheet select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.section { margin-top: 20px; }
.section > label { display: block; font-weight: 600; margin-bottom: 7px; }
.always { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 12px; }
.always .row { display: flex; align-items: flex-start; gap: 10px; }
.always input[type=checkbox] { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.always .opts { margin-top: 10px; }
.always .row.past { margin-top: 10px; }
.preview { font-size: 13px; color: var(--muted); min-height: 1.4em; margin-top: 6px; }
.preview.warn { color: var(--warn); }
.actions { display: flex; gap: 10px; margin-top: 20px; }
.actions .btn { flex: 1; }

/* review */
.rcard .merchant { font-weight: 600; font-size: 19px; word-break: break-word; }
.rcard .meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.rcard .examples { margin: 8px 0 0; }
.tag { display: inline-block; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px;
       border: 1px solid var(--s-warn); margin-left: 8px; vertical-align: 3px; }
.rcard label.match { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 5px; }
.row-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.gone { opacity: 0; transform: translateX(24px); transition: opacity .25s, transform .25s; }

/* tables */
table.plain { width: 100%; border-collapse: collapse; font-size: 14px; }
table.plain td, table.plain th { padding: 9px 4px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
table.plain th { border-top: 0; }
table.plain .r { text-align: right; white-space: nowrap; }
table.plain .tag2 { color: var(--muted); font-size: 12px; }

/* accounts */
.acct { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.acct:first-of-type { border-top: 0; }
.acct-mid { flex: 1; min-width: 0; }
.acct .n { font-weight: 600; }
.acct .s { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; margin-top: 4px; }
.acct .b { font-weight: 600; white-space: nowrap; }
.rm { border: 1px solid var(--line-ui); background: transparent; border-radius: 6px; padding: 4px 9px; font-size: 12px; cursor: pointer; margin-top: 7px; }
.rm.armed { background: var(--s-bad); color: #fff; border-color: var(--s-bad); }

/* system checks */
.health { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.health li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.health li:first-child { border-top: 0; }
.health .ok { color: var(--good); }
.health .bad { color: var(--bad); font-weight: 600; }
.footer-health { text-align: center; color: var(--muted); font-size: 11px; margin-top: 20px; text-transform: uppercase; letter-spacing: .06em; }
.footer-health button { font: inherit; text-transform: inherit; letter-spacing: inherit; }
.section-head { margin: 24px 2px 10px; }

/* --- live demo (demo/build.py) ----------------------------------------------------- */
.demobar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px;
           padding: calc(env(safe-area-inset-top) + 7px) 16px 7px; background: var(--accent); color: var(--accent-ink);
           font: 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.demobar-act { display: flex; gap: 14px; align-items: center; }
.demobar button, .demobar a { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none;
           border: 1px solid currentColor; border-radius: 4px; padding: 3px 8px; cursor: pointer; text-decoration: none; }
[data-demo] .sitebar { padding-top: 0; }
.demo-loader { margin-top: 24px; }
.loader-step { font: 400 28px/1.15 var(--display); margin: 8px 0 10px; }
.loader-step::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-radius: 50%;
           background: var(--accent); animation: pulse 1s ease-in-out infinite; vertical-align: middle; }

/* toast */
#toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px); z-index: 70; transform: translateX(-50%);
         max-width: calc(100% - 32px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: 14px;
         opacity: 0; transition: opacity .2s; pointer-events: none; }
#toast.on { opacity: 1; }
#toast.err { background: var(--s-bad); color: #fff; }

/* phone: the two Home columns become one list, Insights first */
@media (max-width: 899px) {
  .grid2 { display: flex; flex-direction: column; }
  .grid2 > .col { display: contents; }
  .grid2 .headsup { order: -1; }
}

/* --- desktop: navigation moves to the header, Home gets two columns ---------------- */
@media (min-width: 900px) {
  .sitebar { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .tabbar { position: static; display: flex; gap: 22px; margin-left: 28px; background: none; border: 0; padding: 0;
            backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tabbar a { flex-direction: row; height: 56px; font-size: 13px; text-transform: none; letter-spacing: 0; gap: 0; }
  .tabbar a svg { display: none; }
  .tabbar a.on { color: var(--ink); }
  .tabbar a.on::before { top: auto; bottom: 14px; left: 0; right: 0; }
  .tabbar a:hover { color: var(--ink); }
  .badge { position: static; margin-left: 6px; }
  main { max-width: 1160px; padding: 32px 24px 56px; }
  main[data-screen="home"], main[data-screen="reports"] { max-width: 1160px; }
  main:not([data-screen="home"]):not([data-screen="reports"]) { max-width: 760px; }
  .screen-title h1 { font-size: 44px; }
  .hero { font-size: 56px; }
  .kpirow { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .grid2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0 16px; align-items: start; }
  .searchbar { top: 57px; }
  #toast { bottom: 24px; }
  .sheet { bottom: auto; top: 50%; border-radius: 14px; border-bottom: 1px solid var(--line); transform: translateY(-46%) scale(.98);
           opacity: 0; transition: transform .2s ease, opacity .2s; max-height: 86vh; }
  .sheet.on { transform: translateY(-50%); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Profile */
.prow { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pairs { display: grid; gap: 8px; margin-top: 12px; }
.pair { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; font-weight: 400; }
.pair:has(input:checked) { border-color: var(--accent); }
.pair input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.pair .note { display: block; font-size: 13px; }
.btn.armed:not(.danger) { background: var(--accent-soft); color: var(--ink); }
#notesCard textarea { width: 100%; min-height: 160px; }
.srow { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.srow:first-of-type { border-top: 0; }
.srow .mid { display: grid; gap: 3px; min-width: 0; }
.sbtns { display: flex; gap: 8px; margin-top: 8px; }

/* Learning */
.guessrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 6px; }
.chip.guess { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.guessnote { margin: 0 0 8px; }
.learnlink { margin-top: 4px; }
.tablewrap { overflow-x: auto; }
table.calib { width: 100%; border-collapse: collapse; font-size: 14px; }
table.calib th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 6px 0; }
table.calib td { padding: 7px 0; border-top: 1px solid var(--line); }
table.calib .num { text-align: right; font-variant-numeric: tabular-nums; padding-left: 10px; }
.calbar { display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 8px; }
.calbar .meter { height: 6px; }
details.how summary { cursor: pointer; list-style: none; }
details.how summary::-webkit-details-marker { display: none; }
details.how summary h2 { display: inline; }
details.how summary::after { content: " ›"; color: var(--muted); }
.sdetail { margin-top: 4px; }
.sdetail summary { cursor: pointer; color: var(--accent); font-size: 14px; list-style: none; }
.sdetail summary::-webkit-details-marker { display: none; }
.sdetail summary::after { content: " ›"; }
.sdetail[open] summary::after { content: " ⌄"; }
.sdetail .hist { margin-top: 6px; }

/* an amount in its own currency, under the dollar figure */
.orig { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }

/* a category of your own: the form in the picker and on Profile */
.newcat-wrap { margin-top: 10px; }
.newcat-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; width: 100%; }
.newcat-form .newcat-name { flex: 1 1 180px; min-width: 0; }
.newcat-form select { flex: 0 1 auto; max-width: 100%; }
.catrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; }
.card-head .newcat-form { flex-basis: 100%; }
.newcat-form[hidden] { display: none; }
.card-head:has(.newcat-form:not([hidden])) { flex-wrap: wrap; }
.hist-item { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.hist-item:last-child { border-bottom: 0; }
.hist-item .note { margin: 0 0 4px 48px; }

/* --- Mizan 2.0: Score, month-end close, glossary, what's new ------------------------------------- */
.streak-card { display: flex; align-items: center; gap: 18px;
  background: radial-gradient(120% 140% at 0% 0%, var(--wash-1), transparent 60%), var(--card); }
.streak-num { font-family: var(--display); font-size: 72px; line-height: .9; letter-spacing: -.02em; color: var(--accent);
  min-width: 1.2em; text-align: center; font-variant-numeric: tabular-nums; }
.streak-title { font-size: 20px; font-weight: 600; }
.pace-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 760px) { .pace-row { grid-template-columns: 1fr; } }
.pace-card { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--elev); padding: 14px; min-width: 0; }
.ring-wrap { position: relative; flex: none; width: 64px; height: 64px; }
.ring-pct { position: absolute; inset: 0; display: grid; place-items: center; font: 600 13px var(--font); font-variant-numeric: tabular-nums; }
.ring .track { fill: none; stroke: var(--track); stroke-width: 7; }
.ring .fill { fill: none; stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.ring.good .fill { stroke: var(--s-good); } .ring.warn .fill { stroke: var(--s-warn); } .ring.bad .fill { stroke: var(--s-bad); }
.ring.none .fill { stroke: transparent; }
.pace-val { font-size: 26px; letter-spacing: -.01em; line-height: 1.1; margin-top: 2px; font-variant-numeric: tabular-nums; }
.statlist { display: grid; gap: 2px; margin-top: 8px; }
.statlist a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none; }
.statlist a:last-child { border-bottom: 0; }
.statlist span { color: var(--muted); }
.close-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.close-head h2, .close-card h2 { font-size: 20px; margin: 4px 0 2px; }
.target-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.target { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.target.hit { border-color: color-mix(in srgb, var(--s-good) 55%, var(--line)); background: var(--good-bg); }
.target.miss { border-color: color-mix(in srgb, var(--s-bad) 45%, var(--line)); }
.tval { font-size: 22px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.checklist { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 4px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.ck { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 1px; }
.ck.ok { background: var(--s-good); color: #fff; } .ck.bad { background: var(--s-bad); color: #fff; } .ck.na { background: var(--chip); color: var(--muted); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.close-card.closed { background: radial-gradient(120% 140% at 100% 0%, var(--good-bg), transparent 60%), var(--card); }
.seal { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--s-good); color: var(--good); display: grid; place-items: center;
  font-size: 22px; font-weight: 700; flex: none; }
.closed-list { margin-top: 12px; }
.links-card { padding: 6px 18px; }
.statlink { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border: 0;
  border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.statlink:last-child { border-bottom: 0; }
.statlink .chev { color: var(--muted); font-size: 22px; }
.ghead { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 0 6px; }
.gterm { padding: 10px 0; border-bottom: 1px solid var(--line); }
.gterm p { margin: 4px 0; color: var(--ink-2); }
#gq { margin: 6px 0 4px; }
.wn { text-align: center; padding: 8px 6px 4px; }
.wn-mark { width: 64px; height: 64px; margin: 6px auto 14px; border-radius: 18px; display: grid; place-items: center; font: 700 22px var(--font);
  color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), #ff5c8c); box-shadow: 0 12px 30px -10px var(--accent); }
.wn-title { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; margin: 6px 0 4px; }
.wn-tag { color: var(--muted); margin: 0 0 18px; }
.wn-list { list-style: none; padding: 0; margin: 0 auto 22px; max-width: 460px; text-align: left; display: grid; gap: 14px; }
.wn-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.wn-list svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wn-list p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.wn-go { width: 100%; max-width: 460px; }
.ck.warn { background: var(--s-warn); color: #14151a; }
.plan-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.plan-card h2 { font-size: 20px; margin: 4px 0; }
.statrow { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.statrow > span { color: var(--muted); }
.payrange { padding: 0 2px 10px; border-bottom: 1px solid var(--line); }
.payform .field { display: grid; gap: 4px; margin: 10px 0; }
.payform input { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-ui); background: var(--card); color: var(--ink); font-size: 16px; }
.payform .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.payform .btn { margin-top: 12px; width: 100%; }
