/* Pulse: dark-first, data up front, mint accent. Light follows the device. */
@font-face { font-family: "DM Sans"; font-weight: 100 1000; font-display: swap; src: url(fonts/dm-sans.woff2) format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 100 800; font-display: swap; src: url(fonts/sora.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0e1116; --card: #161b22; --card2: #1c232d; --fg: #e6edf3; --mu: #8b98a8; --ln: #262e39;
  --acc: #3ddc97; --onacc: #06231a; --warn: #ffb454; --bad: #ff6b6b;
  --c1: #6cb6ff; --c2: #3ddc97; --c3: #ffb454; --c4: #b39dfa; --scrim: rgba(3, 6, 10, .62);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .6);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4f6f9; --card: #ffffff; --card2: #eef2f6; --fg: #131a24; --mu: #5b6778; --ln: #e1e6ed;
    --acc: #0f9d63; --onacc: #ffffff; --warn: #b36f00; --bad: #d63c3c;
    --c1: #1f6fd1; --c2: #0f9d63; --c3: #c47a00; --c4: #6d4fd6; --scrim: rgba(20, 28, 40, .38);
    --shadow: 0 24px 60px -24px rgba(20, 30, 50, .35);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 14px/1.45 "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
svg { display: block; overflow: visible; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 20px 16px 72px; display: grid; gap: 16px; }
.n { font-variant-numeric: tabular-nums; }
.k { font-size: 11px; color: var(--mu); text-transform: uppercase; letter-spacing: .07em; }
.big { font: 700 36px/1.05 "Sora", sans-serif; letter-spacing: -.025em; }
.mid { font: 600 20px "Sora", sans-serif; letter-spacing: -.01em; }
.up { color: var(--acc); } .down { color: var(--bad); } .muted { color: var(--mu); }
.sm { font-size: 12px; }
h1, h2, h3 { margin: 0; font-family: "Sora", sans-serif; letter-spacing: -.01em; font-weight: 600; }
h2 { font-size: 15px; } h3 { font-size: 16px; }
.card { background: var(--card); border: 1px solid var(--ln); border-radius: 14px; padding: 16px; min-width: 0; }
.sechead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.sechead .acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ln); }
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row:first-child { padding-top: 0; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--acc) 16%, transparent); color: var(--acc); }
.pill.bad { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.pill.info { background: var(--card2); color: var(--mu); font-weight: 600; }
.notice { background: color-mix(in srgb, var(--warn) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--ln)); border-radius: 12px; padding: 12px 14px; }
.notice ul { margin: 4px 0 0; padding-left: 18px; }
.empty { border: 1px dashed var(--ln); border-radius: 12px; padding: 20px; text-align: center; color: var(--mu); }

/* controls */
.btn { background: var(--card); border: 1px solid var(--ln); border-radius: 10px; padding: 7px 12px; font-size: 13px; cursor: pointer; white-space: nowrap; min-height: 34px; }
.btn:hover { border-color: color-mix(in srgb, var(--acc) 45%, var(--ln)); }
.btn.pri { background: var(--acc); border-color: var(--acc); color: var(--onacc); font-weight: 700; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .55; cursor: default; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--acc); font-weight: 700; cursor: pointer; }
.field { display: grid; gap: 4px; min-width: 0; }
.field > label, .field > .lbl { font-size: 12px; color: var(--mu); }
.inp { background: var(--bg); border: 1px solid var(--ln); border-radius: 10px; padding: 8px 10px; width: 100%; min-width: 0; font-size: 14px; min-height: 38px; }
.inp:focus { outline: 2px solid color-mix(in srgb, var(--acc) 60%, transparent); outline-offset: 0; border-color: var(--acc); }
.money { position: relative; } .money::before { content: "$"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--mu); }
.money .inp { padding-left: 22px; }
.seg { display: inline-flex; background: var(--card2); border-radius: 11px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: transparent; border-radius: 8px; padding: 6px 14px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--mu); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.err { color: var(--bad); font-size: 13px; }
.hint { font-size: 12px; color: var(--mu); background: var(--card2); border-radius: 10px; padding: 9px 11px; }
.formrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.formbtns { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--acc); flex: none; }

/* top bar */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.mark { width: 30px; height: 30px; border-radius: 9px; background: var(--acc); display: grid; place-items: center; flex: none; }
.brand h1 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.ctl { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ctl form { margin: 0; }
.toast { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--card2); border-radius: 12px; padding: 8px 8px 8px 14px; }

/* tabs: in the top bar on wide screens, a bottom bar in thumb reach on phones */
.tabs { display: inline-flex; background: var(--card2); border-radius: 11px; padding: 3px; gap: 3px; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--mu); text-decoration: none; }
.tabs a:hover { color: var(--fg); }
.tabs a[aria-current="page"] { background: var(--card); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.tabs svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* overview */
.netparts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ln); }
.otiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.otiles .tile { display: grid; gap: 4px; align-content: start; }
.otiles .goto { margin-top: 6px; justify-self: start; }
/* investing */
.istats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.istats > div { background: var(--card2); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.istats b { font: 600 17px "Sora", sans-serif; }
.akey { display: grid; gap: 7px; font-size: 13px; }
.akey > div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 44px; gap: 8px; align-items: center; }
.akey i { width: 10px; height: 10px; border-radius: 3px; }
.akey .muted { text-align: right; }
.hrow { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 90px 80px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--ln); font-size: 13px; }
.hrow:last-of-type { border-bottom: 0; }
.hrow.head { font-size: 11px; color: var(--mu); text-transform: uppercase; letter-spacing: .07em; padding-top: 0; }
.hrow .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow .r { text-align: right; }
a.goto { color: var(--acc); font-size: 12px; font-weight: 700; text-decoration: none; }
a.goto:hover { text-decoration: underline; }

/* changes an AI proposed */
.approvals { border-left: 4px solid var(--warn); }

/* coming up */
.brow { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--ln); font-size: 13px; }
.brow:last-child { border-bottom: 0; }
.brow .when { color: var(--mu); } .brow .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow.paid .what { color: var(--mu); text-decoration: line-through; }

/* the everyday card (docs/plans/spending-card.md) beside Coming up */
.ev-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.ev { display: grid; gap: 10px; }
.ev-sentence { font: 600 22px/1.3 "Sora", sans-serif; letter-spacing: -.01em; text-wrap: balance; }
.ev-sentence .hl { color: var(--acc); }
.ev-barwrap { position: relative; }
.ev-bar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--card2); }
.ev-bar i { display: block; height: 100%; }
.ev-tick { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--fg); border-radius: 2px; }
.ev-key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--mu); }
.ev-key i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
button.pill { border: 0; cursor: pointer; font-family: inherit; }
.ev-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ev-cal .dh { font-size: 10px; color: var(--mu); text-align: center; }
.ev-d { aspect-ratio: 1; border: 0; border-radius: 7px; display: grid; place-items: center; font-size: 12px; background: var(--card2); color: var(--mu); padding: 0; font-family: inherit; }
.ev-d.past { color: var(--fg); cursor: pointer; }
.ev-d.past:hover { outline: 1px solid var(--mu); }
.ev-d.today { outline: 2px solid var(--fg); outline-offset: 1px; }
.ev-d[aria-pressed="true"] { outline: 2px solid var(--acc); outline-offset: 1px; }
.ev-d.bill { box-shadow: inset 0 -3px 0 var(--c4); }
.ev-readout { min-height: 40px; font-size: 13px; background: var(--card2); border-radius: 10px; padding: 8px 10px; }
button.tile { text-align: left; cursor: pointer; width: 100%; }
button.tile:hover { border-color: color-mix(in srgb, var(--acc) 45%, var(--ln)); }

/* savings goals */
.goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.goal { display: grid; gap: 8px; align-content: start; }
.goal-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.goal-head b { font: 600 15px "Sora", sans-serif; letter-spacing: -.01em; }
.gbar { height: 8px; border-radius: 8px; background: var(--card2); overflow: hidden; } .gbar i { display: block; height: 100%; border-radius: 8px; background: var(--acc); }
.goal .meta { display: grid; gap: 2px; font-size: 12px; color: var(--mu); }
.goal form, .newgoal form { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--ln); }
.newgoal { border-style: dashed; display: grid; align-content: start; gap: 8px; }

/* categories: ring + trend line; one open at a time, its month bars in a strip under its row */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cat { background: var(--card); border: 1px solid var(--ln); border-radius: 14px; padding: 12px; text-align: left; cursor: pointer; display: grid; gap: 8px; min-width: 0; width: 100%; align-content: start; }
.cat:hover { border-color: color-mix(in srgb, var(--acc) 45%, var(--ln)); }
.cat[aria-expanded="true"] { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc) inset; }
.cat-top { display: flex; gap: 10px; align-items: center; min-width: 0; }
.cat .nm { font-size: 13px; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat .chev { margin-left: auto; color: var(--mu); font-size: 12px; transition: transform .2s; }
.cat[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--acc); }
.strip { grid-column: 1 / -1; background: var(--card); border: 1px solid var(--acc); border-radius: 14px; padding: 16px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: end; }
.strip-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stats { display: grid; gap: 7px; font-size: 13px; }
.stats div { display: flex; justify-content: space-between; gap: 8px; }
/* Clickable month bars and the month's detail under them. */
.barbtn { cursor: pointer; outline: none; }
.barbtn:focus-visible rect:nth-child(2) { stroke: var(--acc); stroke-width: 2; }
.mdetail { grid-column: 1 / -1; display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--ln); }
.mdetail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mchips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.mchips > span { background: var(--card2); border-radius: 999px; padding: 4px 10px; }
.mrow { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--ln); font-size: 13px; }
.mrow:last-child { border-bottom: 0; }
.mrow .when { color: var(--mu); } .mrow .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* edit plan */
.cat.editing { cursor: default; gap: 10px; }
.cat.editing:hover { border-color: var(--ln); }
.ehead { display: flex; gap: 6px; align-items: center; }
.xbtn { border: 0; background: var(--card2); border-radius: 9px; width: 34px; height: 34px; flex: none; cursor: pointer; color: var(--mu); font-size: 16px; }
.xbtn:hover { color: var(--bad); }
.cat.adder { border-style: dashed; place-content: center; text-align: center; color: var(--acc); font-weight: 700; min-height: 120px; background: transparent; }
.movebox { display: grid; gap: 6px; font-size: 13px; background: color-mix(in srgb, var(--warn) 10%, var(--card)); border-radius: 10px; padding: 10px; }
.bankpick { display: grid; gap: 4px; max-height: 220px; overflow-y: auto; padding: 8px; border: 1px solid var(--ln); border-radius: 10px; background: var(--bg); }
.bankpick .check { justify-content: space-between; }
.bankpick .check span { flex: 1; }
.bankpick .check.taken { opacity: .55; }
/* In its own sheet: most of the screen's height, roomy rows. */
.bankpick.tall { max-height: min(62vh, 620px); gap: 0; padding: 4px 10px; }
.bankpick.tall .check { padding: 9px 0; border-bottom: 1px solid var(--ln); }
.bankpick.tall .check:last-child { border-bottom: 0; }
.editbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--ln); border-radius: 14px; padding: 10px 12px; position: sticky; top: 8px; z-index: 2; box-shadow: var(--shadow); }

/* details */
.details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.col { display: grid; gap: 12px; }
.acct-sec + .acct-sec { margin-top: 14px; }
.acct-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--mu); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }
.netline { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ln); }
.share { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; gap: 10px; align-items: center; padding: 7px 0; }
.bar { height: 6px; border-radius: 6px; background: var(--card2); overflow: hidden; } .bar i { display: block; height: 100%; border-radius: 6px; background: var(--acc); }
.tx { display: grid; grid-template-columns: 44px 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--ln); }
.tx:last-child { border-bottom: 0; }
/* merchant logo over its letter tile (dashboard.js logo()) */
.logo { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; flex: none; overflow: hidden; vertical-align: middle; background: color-mix(in srgb, var(--lc) 20%, var(--card2)); color: var(--lc); font: 700 13px "Sora", sans-serif; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.brow .logo { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; margin-right: 8px; }
.withlogo { display: flex; gap: 10px; align-items: center; min-width: 0; }
.tx .when { font-size: 12px; color: var(--mu); }
.tx .what { min-width: 0; }
.tx .what > div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { display: inline-flex; gap: 5px; align-items: center; border: 0; background: none; padding: 0; font-size: 12px; color: var(--mu); cursor: default; text-align: left; }
button.chip { cursor: pointer; }
button.chip:hover .cn { color: var(--acc); text-decoration: underline; }
.txedit { grid-column: 1 / -1; display: grid; gap: 8px; background: var(--card2); border-radius: 12px; padding: 10px; }

/* sheets (dialogs); a bottom sheet on phones */
.scrim { position: fixed; inset: 0; background: var(--scrim); display: grid; place-items: start center; padding: 8vh 16px 16px; z-index: 10; overflow-y: auto; }
.sheet { width: 100%; max-width: 460px; background: var(--card); border: 1px solid var(--ln); border-radius: 18px; padding: 18px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.sheet.wide { max-width: 720px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rv { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--ln); }
.rv:last-child { border-bottom: 0; }
.rv-top { display: flex; justify-content: space-between; gap: 10px; }
.rv-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
/* One merchant's review group; its transactions open underneath, indented. */
.rvg { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--ln); }
.rvg:last-child { border-bottom: 0; }
.rvg-items { border-left: 2px solid var(--ln); padding-left: 12px; }

/* sign-in */
.login-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.login { width: 100%; max-width: 360px; display: grid; gap: 18px; text-align: center; }
.login .mark { width: 48px; height: 48px; border-radius: 14px; margin: 0 auto; }
.login .card { padding: 24px 20px; display: grid; gap: 14px; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--acc); color: var(--onacc); border: 0; border-radius: 12px; padding: 12px 14px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; }
.gbtn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.gbtn .g { width: 22px; height: 22px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.login .notice { text-align: left; font-size: 13px; }
.login a.priv { color: var(--mu); font-size: 12px; }

/* Edit plan: one colored group per kind (--k), compact rows. */
.plan { display: grid; gap: 12px; }
.pgroup { background: var(--card); border: 1px solid var(--ln); border-left: 4px solid var(--k); border-radius: 14px; padding: 4px 14px 12px; }
.pgroup-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0 8px; }
.pgroup-head h3 { font: 700 12px "DM Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--k); }
.prow { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(130px, .8fr) minmax(110px, .6fr) auto 34px; grid-template-areas: "name amt kind bank x"; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--ln); }
.prow .pname { grid-area: name; } .prow .pamt { grid-area: amt; display: flex; align-items: center; gap: 8px; min-width: 0; } .prow .pamt .money { flex: 1; min-width: 0; }
.prow .pkind { grid-area: kind; } .prow .pbank { grid-area: bank; } .prow .xbtn { grid-area: x; }
.prow .pshare { flex: none; font-size: 12px; color: var(--mu); min-width: 30px; text-align: right; }
.prow .bankpick, .prow .movebox { grid-column: 1 / -1; }
.prow.removed { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: none; }
.prow.removed .pname { grid-area: auto; text-decoration: line-through; color: var(--mu); }
.padd { justify-self: start; margin-top: 8px; color: var(--k); }
.alloc-wrap { position: relative; }
.alloc { display: flex; height: 8px; border-radius: 8px; overflow: hidden; background: var(--card2); }
.alloc i { display: block; height: 100%; }
.alloc-over { position: absolute; top: -2px; bottom: -2px; right: 0; border-radius: 0 8px 8px 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--bad) 55%, transparent) 0 4px, transparent 4px 7px); border-left: 2px solid var(--bad); }
.alloc-key { display: flex; flex-wrap: wrap; gap: 12px; color: var(--mu); }
.alloc-key i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: 0; }

@media (max-width: 860px) {
  .ev-top { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding-top: 14px; gap: 12px; }
  .big { font-size: 32px; }
  .otiles { grid-template-columns: 1fr; }
  .ev-sentence { font-size: 19px; }
  .hrow { grid-template-columns: minmax(0, 1fr) 76px 66px; }
  .istats b { font-size: 15px; }
  .wrap { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 0; padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--card) 94%, transparent); border-top: 1px solid var(--ln); backdrop-filter: blur(10px); }
  .tabs a { flex-direction: column; gap: 2px; padding: 4px 0; font-size: 11px; }
  .tabs a[aria-current="page"] { background: none; box-shadow: none; color: var(--acc); }
  .tabs svg { width: 22px; height: 22px; }
  .hide-phone { display: none !important; }
  .scrim { place-items: end stretch; padding: 0; }
  .sheet, .sheet.wide { max-width: none; border-radius: 18px 18px 0 0; max-height: 92vh; overflow-y: auto; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .formrow { grid-template-columns: 1fr; }
  .editbar { top: 0; border-radius: 0 0 14px 14px; }
  .prow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px; grid-template-areas: "name name x" "amt kind kind" "bank bank bank"; }
  .prow .pbank { justify-self: start; }
  .brow { grid-template-columns: 72px minmax(0, 1fr) auto; } .brow .what { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .cat .chev { transition: none; } }
