/* Kira — iOS-style expense tracker. Light by default, dark via [data-theme="dark"] (set before first paint). */
:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --sheet: #f2f2f7;
  --raised: #ffffff;
  --fill: rgba(118, 118, 128, 0.12);
  --fill2: rgba(118, 118, 128, 0.2);
  --text: #0b0b0f;
  --text2: rgba(60, 60, 67, 0.64);
  --text3: rgba(60, 60, 67, 0.34);
  --sep: rgba(60, 60, 67, 0.16);
  --accent: #5b5bf6;
  --accent-soft: rgba(91, 91, 246, 0.12);
  --grad: linear-gradient(135deg, #7a6bff 0%, #5b5bf6 45%, #4338ca 100%);
  --hero: radial-gradient(130% 140% at 0% 0%, #8f80ff 0%, #5b5bf6 40%, #3b2fb5 75%, #2a1f8f 100%);
  --red: #ff3b30;
  --green: #28a745;
  --orange: #ff9500;
  --bar: rgba(249, 249, 251, 0.8);
  --shadow: 0 1px 1px rgba(16, 16, 40, 0.03), 0 6px 22px rgba(16, 16, 40, 0.06);
  --r: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --card: #1c1c1e;
  --sheet: #111113;
  --raised: #2c2c2e;
  --fill: rgba(118, 118, 128, 0.24);
  --fill2: rgba(118, 118, 128, 0.34);
  --text: #f5f5f7;
  --text2: rgba(235, 235, 245, 0.62);
  --text3: rgba(235, 235, 245, 0.3);
  --sep: rgba(84, 84, 88, 0.6);
  --accent: #7d7dff;
  --accent-soft: rgba(125, 125, 255, 0.18);
  --red: #ff453a;
  --green: #32d74b;
  --orange: #ff9f0a;
  --bar: rgba(18, 18, 20, 0.78);
  --shadow: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 17px/1.35 var(--font); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
button:disabled { opacity: 0.35; cursor: default; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
input, select, textarea { font-size: 16px; } /* 16px stops iOS from zooming in on focus */
h1, h2, h3, h4, p { margin: 0; }
small { font-size: 0.8em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.muted { color: var(--text2); }
.small { font-size: 13px; }
.center { text-align: center; }
.pos { color: var(--green); }
.neg { color: var(--red); }
.dim { opacity: 0.5; }
.grow { flex: 1; min-width: 0; display: grid; }
.grow small { color: var(--text2); font-size: 12.5px; }
.em { font-size: 20px; line-height: 1; }

/* icons */
.i { width: 22px; height: 22px; flex: none; }
.i.tiny { width: 15px; height: 15px; vertical-align: -2px; }
.i.rot90 { transform: rotate(90deg); }

/* ---------- layout ---------- */
.view {
  max-width: 640px; margin: 0 auto;
  padding: calc(var(--safe-t) + 10px) max(16px, env(safe-area-inset-right)) calc(var(--safe-b) + 108px) max(16px, env(safe-area-inset-left));
}
.view > section, .view > .card, .view > .quick, .view > .quickadd, .view > .tiles, .view > .filters, .view > .search, .view > .seg { margin-bottom: 14px; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 6px 2px 14px; }
.title { font-size: 34px; font-weight: 750; letter-spacing: -0.025em; line-height: 1.1; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--text2); margin-bottom: 2px; }
.sec { display: flex; align-items: center; justify-content: space-between; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; padding: 10px 4px 8px; }
.sec .link { font-size: 15px; display: inline-flex; align-items: center; gap: 4px; }

.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.card.pad { padding: 16px; }
.card-t { font-size: 15px; font-weight: 650; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-t small { font-weight: 500; color: var(--text3); font-size: 11.5px; }
.list { overflow: hidden; }
.list > * { position: relative; }
.list > * + *::before { content: ""; position: absolute; top: 0; left: 62px; right: 0; border-top: 0.5px solid var(--sep); z-index: 2; pointer-events: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 20px; border-radius: 14px; font-weight: 600; font-size: 17px;
  background: var(--fill); color: var(--text); transition: transform 0.12s, opacity 0.12s;
}
.btn:active { transform: scale(0.97); opacity: 0.85; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -10px rgba(91, 91, 246, 0.9); }
.btn.danger { background: var(--red); color: #fff; }
.btn.ghost.danger { background: var(--fill); color: var(--red); }
.btn.wide { width: 100%; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.btn .i { width: 19px; height: 19px; }
.link { color: var(--accent); font-weight: 600; font-size: 15px; padding: 6px 4px; }
.link.danger { color: var(--red); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--text); flex: none; transition: transform 0.12s; }
.icon-btn:active { transform: scale(0.92); }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.sm .i { width: 18px; height: 18px; }
.icon-btn.accent { background: var(--accent); color: #fff; }
.mini { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: 13px; }

/* ---------- home ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: var(--hero); border-radius: 28px; padding: 20px 20px 16px;
  box-shadow: 0 22px 44px -22px rgba(67, 56, 202, 0.75);
}
.hero-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 95% 0%, rgba(255, 255, 255, 0.28), transparent 70%), radial-gradient(50% 60% at 100% 100%, rgba(255, 128, 191, 0.35), transparent 70%); }
.hero-label { font-size: 14px; font-weight: 600; opacity: 0.82; }
.hero-amt { font: 750 42px/1.1 var(--round); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 4px 0 12px; }
.meter { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.24); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: #fff; transform-origin: left; animation: grow-x 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.meter.warn i { background: #ffd60a; }
.meter.over i { background: #ff6b6b; }
.hero-note { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; margin-top: 8px; opacity: 0.95; }
.hero-note span + span { opacity: 0.75; }
.hero-set { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.18); color: #fff; padding: 9px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.hero-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 0.5px solid rgba(255, 255, 255, 0.25); }
.hero-foot span { display: grid; gap: 1px; }
.hero-foot small { font-size: 12px; opacity: 0.72; }
.hero-foot b { font: 650 15px var(--round); font-variant-numeric: tabular-nums; }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qbtn { display: flex; align-items: center; gap: 11px; padding: 13px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); text-align: left; transition: transform 0.12s; }
.qbtn:active { transform: scale(0.97); }
.qbtn > .i { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.qbtn-scan > .i { background: var(--grad); color: #fff; }
.qbtn span { display: grid; min-width: 0; }
.qbtn b { font-size: 15px; font-weight: 650; }
.qbtn small { font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.quickadd { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 16px; padding: 6px 6px 6px 14px; box-shadow: var(--shadow); }
.quickadd > .i { color: var(--orange); }
.quickadd input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 8px 0; }
.quickadd input::placeholder { color: var(--text3); }
.quickadd-go { width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.quickadd-go .i { width: 20px; height: 20px; stroke-width: 2.4; }

.alerts { padding: 6px 14px; cursor: pointer; }
.alerts p { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14.5px; }
.alerts p + p { border-top: 0.5px solid var(--sep); }
.alerts .i { color: var(--orange); width: 19px; height: 19px; margin-top: 1px; }

.stack { display: flex; gap: 3px; height: 12px; margin-bottom: 10px; }
.stack i { border-radius: 99px; min-width: 6px; animation: grow-x 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); transform-origin: left; }
.cat-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; width: 100%; padding: 7px 0; text-align: left; font-size: 15.5px; }
.cat-row span:not(.badge) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-row small { color: var(--text2); font-variant-numeric: tabular-nums; }
.cat-row b { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 84px; text-align: right; }

.bill { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.bill-mid { flex: 1; display: grid; min-width: 0; }
.bill-mid b { font-weight: 550; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bill-mid small { color: var(--text2); font-size: 12.5px; }
.bill-mid em { font-style: normal; }
.bill > b { font-variant-numeric: tabular-nums; font-weight: 600; }

.tip { display: flex; gap: 12px; align-items: flex-start; padding: 14px; }
.tip > .i { color: var(--accent); margin-top: 2px; }
.tip p { flex: 1; font-size: 14px; color: var(--text2); }
.tip p b:first-child { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }

/* ---------- entries ---------- */
.badge { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; background: color-mix(in srgb, var(--c) 17%, transparent); }
.badge.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 17px; }
.badge.lg { width: 66px; height: 66px; border-radius: 22px; font-size: 34px; }
.tx { overflow: hidden; touch-action: pan-y; }
.tx-main { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; text-align: left; background: var(--card); position: relative; z-index: 1; transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tx-main:active { background: var(--fill); }
.tx.dragging .tx-main { transition: none; }
.tx.open .tx-main { transform: translateX(-88px); }
.tx-mid { flex: 1; min-width: 0; display: grid; gap: 1px; }
.tx-title { font-size: 16px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-sub { font-size: 13px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.tx-sub .i { color: var(--text3); width: 13px; height: 13px; }
.amt { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx-del { position: absolute; top: 0; right: 0; bottom: 0; width: 88px; display: grid; place-content: center; justify-items: center; gap: 2px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; }
.tx-del .i { width: 20px; height: 20px; }
.day { margin-bottom: 6px; }
.day-head { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; color: var(--text2); padding: 14px 6px 7px; font-variant-numeric: tabular-nums; }
.day-head i { font-style: normal; }
.empty { text-align: center; padding: 30px 20px; display: grid; justify-items: center; gap: 6px; }
.empty-emoji { font-size: 46px; margin-bottom: 4px; }
.empty h3 { font-size: 17px; }
.empty p { color: var(--text2); font-size: 14.5px; max-width: 300px; }
.empty .btn { margin-top: 10px; }

/* ---------- activity ---------- */
.search { display: flex; align-items: center; gap: 8px; background: var(--fill); border-radius: 12px; padding: 0 12px; height: 40px; color: var(--text2); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--text3); }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; }
.filters::-webkit-scrollbar { display: none; }
.fchip { position: relative; flex: none; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 0.5px var(--sep); font-size: 14px; font-weight: 550; white-space: nowrap; }
.fchip[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: none; }
.fchip select { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.month-nav { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 2px; }
.month-nav b { font-size: 17px; font-weight: 650; }
.sumline { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--text2); padding: 6px 6px 0; }
.sumline b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- segmented control ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--fill); border-radius: 11px; padding: 2px; gap: 2px; }
.seg button { padding: 7px 10px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text); transition: background 0.2s; }
.seg button[aria-pressed="true"] { background: var(--raised); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }
.seg.mini button { padding: 5px 9px; font-size: 13px; }

/* ---------- insights ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--card); border-radius: 18px; padding: 13px 14px; box-shadow: var(--shadow); display: grid; gap: 2px; min-width: 0; }
.tile small { color: var(--text2); font-size: 12.5px; font-weight: 550; }
.tile b { font: 700 21px/1.2 var(--round); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; }
.tile em { font-style: normal; font-size: 12px; font-weight: 550; }
.donut-card { display: grid; justify-items: center; gap: 14px; }
.donut { max-width: 100%; height: auto; overflow: visible; }
.donut .arc { animation: arc 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.donut-val { font: 750 23px var(--round); fill: var(--text); text-anchor: middle; dominant-baseline: middle; }
.donut-sub { font-size: 12.5px; fill: var(--text2); text-anchor: middle; dominant-baseline: middle; }
.legend { width: 100%; display: grid; }
.legend .cat-row + .cat-row { border-top: 0.5px solid var(--sep); }
.bars, .pace { width: 100%; height: auto; display: block; overflow: visible; }
.bars .bar { fill: color-mix(in srgb, var(--accent) 38%, transparent); transform-box: fill-box; transform-origin: bottom; animation: grow-y 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.bars .bar.hi { fill: var(--accent); }
.bars .hit { fill: transparent; }
.bars g[data-act] { cursor: pointer; }
.bars g[data-act]:active .bar { fill: var(--accent); }
.ax { font-size: 10px; fill: var(--text3); text-anchor: middle; font-family: var(--font); }
.ax.hi { fill: var(--accent); font-weight: 700; }
.ref { stroke: var(--text3); stroke-width: 1; stroke-dasharray: 4 4; }
.ref-t { text-anchor: end; }
.pace-cur { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.pace-prev { fill: none; stroke: var(--text3); stroke-width: 2; stroke-dasharray: 5 5; }
.pace-dot { fill: var(--accent); stroke: var(--card); stroke-width: 2.5; }
.pace-legend { display: flex; gap: 14px; align-items: center; font-size: 12.5px; color: var(--text2); margin-top: 8px; flex-wrap: wrap; }
.pace-legend .k { display: inline-block; width: 16px; height: 3px; border-radius: 2px; margin-right: -8px; vertical-align: middle; }
.k.cur { background: var(--accent); }
.k.prev { background: repeating-linear-gradient(90deg, var(--text3) 0 4px, transparent 4px 7px); }
.k.ref { background: repeating-linear-gradient(90deg, var(--text3) 0 2px, transparent 2px 4px); }
.heat { margin-top: 16px; }
.heat-wk, .heat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.heat-wk span { text-align: center; font-size: 11px; color: var(--text3); font-weight: 600; padding-bottom: 4px; }
.hc { aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--fill); color: var(--text2); font-variant-numeric: tabular-nums; }
.hc.pad { background: none; }
.hc.l1 { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); }
.hc.l2 { background: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--text); }
.hc.l3 { background: color-mix(in srgb, var(--accent) 70%, transparent); color: #fff; }
.hc.l4 { background: var(--accent); color: #fff; }
.findings p { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; font-size: 15px; }
.findings p::before { left: 48px !important; }
.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 10px; font-size: 14px; }
.hbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar i { display: block; height: 10px; width: var(--w); min-width: 4px; border-radius: 99px; background: var(--grad); transform-origin: left; animation: grow-x 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hbar b { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13.5px; }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 15.5px; }
.kv-row > span:first-child:not(.badge) { color: var(--text2); }
.kv-row b { font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; }
.kv-note { flex-direction: column; align-items: stretch; gap: 4px; }
.kv-note p { white-space: pre-wrap; }

/* ---------- budget ---------- */
.budget-main { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; cursor: pointer; }
.budget-ring { position: relative; display: grid; place-items: center; }
.budget-ring > div { position: absolute; text-align: center; display: grid; }
.budget-ring b { font: 750 24px var(--round); }
.budget-ring small { color: var(--text2); font-size: 12px; }
.ring-fill { animation: arc 1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.budget-text { display: grid; gap: 2px; font-size: 14px; }
.big { font: 750 30px/1.15 var(--round); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.per-day { margin-top: 6px; font-size: 14px; color: var(--text2); }
.per-day b { color: var(--text); }
.pill { grid-column: 1 / -1; font-size: 13.5px; font-weight: 550; padding: 9px 12px; border-radius: 12px; display: flex; gap: 8px; align-items: center; }
.pill.good { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.pill.warn { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
.budget-cta { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 26px 20px; }
.cta-emoji { font-size: 44px; }
.budget-cta p { max-width: 320px; font-size: 14.5px; }
.brow { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 16px; text-align: left; }
.brow-mid { flex: 1; min-width: 0; display: grid; gap: 6px; }
.brow-top { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.brow-top b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow-top span { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 550; }
.brow-top small { color: var(--text2); font-weight: 500; }
.brow > .brow-mid > small { font-size: 12.5px; }
.meter.thin { height: 6px; background: var(--fill); }
.meter.thin i { background: var(--c, var(--accent)); }
.meter.thin.warn i { background: var(--orange); }
.meter.thin.over i { background: var(--red); }
.tiles.two { margin-bottom: 10px; }
.rrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; text-align: left; }
.rrow-mid { flex: 1; min-width: 0; display: grid; }
.rrow-mid b { font-weight: 550; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow-mid small { font-size: 12.5px; color: var(--text2); }
.rrow > b { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- sheets (native <dialog>) ---------- */
dialog.sheet {
  position: fixed; inset: 0; margin: auto auto 0; padding: 0; border: 0;
  width: 100%; max-width: min(640px, 100%); max-height: calc(100dvh - var(--safe-t) - 10px);
  border-radius: 24px 24px 0 0; background: var(--sheet); color: var(--text);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.22); overflow-y: auto; overflow-x: hidden;
}
dialog.sheet:modal { overscroll-behavior: contain; }
dialog::backdrop { background: rgba(0, 0, 0, 0.42); overflow: hidden; overscroll-behavior: contain; }
dialog.sheet[open] { animation: sheet-in 0.44s cubic-bezier(0.16, 1, 0.3, 1); }
dialog.sheet[open]::backdrop { animation: fade-in 0.3s ease; }
dialog.sheet.closing { animation: sheet-out 0.26s cubic-bezier(0.4, 0, 1, 1) forwards; }
dialog.sheet.closing::backdrop { animation: fade-out 0.26s ease forwards; }
.grab { width: 38px; height: 5px; border-radius: 3px; background: var(--fill2); margin: 7px auto 0; touch-action: none; }
.sheet-head { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 6px 12px 10px; background: var(--sheet); touch-action: none; }
.sheet-head h2 { font-size: 17px; font-weight: 650; text-align: center; }
.sheet-head .link { justify-self: start; font-weight: 500; font-size: 17px; }
.sheet-act { justify-self: end; display: flex; gap: 8px; }
.sheet-body { padding: 0 16px calc(var(--safe-b) + 20px); }
.sheet-tall { min-height: 92dvh; }
.sheet-entry { --sheet: var(--card); }
.sheet-entry .sheet-body { padding: 0 16px calc(var(--safe-b) + 12px); }
.sheet-alert .sheet-body { padding-top: 10px; }
.alert { text-align: center; display: grid; gap: 10px; padding: 8px 4px; }
.alert h2 { font-size: 20px; font-weight: 700; }
.alert p { color: var(--text2); font-size: 15px; }
.alert-btns { display: grid; gap: 8px; margin-top: 8px; }

/* add / edit */
.entry { display: flex; flex-direction: column; gap: 11px; }
.entry > .seg { width: 230px; align-self: center; }
.amount-box { text-align: center; padding: 2px 0; }
.amount { display: flex; justify-content: center; align-items: baseline; gap: 6px; font: 750 46px/1.05 var(--round); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.amount small { font-size: 20px; font-weight: 650; color: var(--text2); letter-spacing: 0; }
.amount.neg { color: var(--red); }
.expr { min-height: 19px; font-size: 15px; color: var(--text2); font-variant-numeric: tabular-nums; }
.title-in, .note-in { width: 100%; border: 0; outline: none; background: var(--fill); border-radius: 13px; padding: 12px 14px; color: var(--text); }
.title-in { font-size: 17px; }
.note-in { resize: none; }
.title-in::placeholder, .note-in::placeholder { color: var(--text3); }
.hint { font-size: 13px; color: var(--accent); font-weight: 550; margin: -4px 4px 0; }
.cats { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 72px; gap: 4px 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; scroll-padding-inline: 16px; }
.cats::-webkit-scrollbar { display: none; }
.cat { display: grid; justify-items: center; align-content: start; gap: 3px; padding: 2px 0; }
.cat span { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, var(--c, var(--text3)) 15%, transparent); transition: transform 0.15s, box-shadow 0.15s; }
.cat small { font-size: 10.5px; line-height: 1.15; color: var(--text2); text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 70px; }
.cat.on span { background: color-mix(in srgb, var(--c) 30%, transparent); box-shadow: 0 0 0 2.5px var(--c); transform: scale(1.04); }
.cat.on small { color: var(--text); font-weight: 650; }
.cat-new span { background: var(--fill); color: var(--text2); font-size: 20px; }
.chips { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--fill); font-size: 14px; font-weight: 550; color: var(--text); white-space: nowrap; cursor: pointer; }
.chip .i { width: 16px; height: 16px; color: var(--text2); }
.chip.on { background: var(--accent-soft); color: var(--accent); }
.chip.on .i { color: var(--accent); }
.chip select, .chip input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; -webkit-appearance: none; appearance: none; border: 0; }
.tips { display: flex; flex-wrap: wrap; gap: 8px; }
.items details { background: var(--fill); border-radius: 13px; padding: 10px 14px; font-size: 14px; }
.items summary { font-weight: 600; color: var(--text2); cursor: pointer; }
.items ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.items li { display: flex; justify-content: space-between; gap: 10px; }
.items li b { font-weight: 550; font-variant-numeric: tabular-nums; }
.keypad { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 50px); gap: 8px; margin-top: 2px; }
.sheet-head .seg { width: 196px; }
.sheet-head .seg button { padding: 6px 8px; }
@media (max-height: 700px) {
  .cats { grid-template-rows: auto; }
  .keypad { grid-template-rows: repeat(4, 46px); gap: 6px; }
  .amount { font-size: 40px; }
  .entry { gap: 9px; }
}
.key { border-radius: 15px; background: var(--fill); font: 550 25px var(--round); color: var(--text); display: grid; place-items: center; transition: transform 0.08s, background 0.08s; }
.key:active { transform: scale(0.95); background: var(--fill2); }
.k-op { color: var(--accent); font-size: 28px; }
.k-back { font-size: 22px; }
.k-ok { grid-column: 4; grid-row: 3 / span 2; background: var(--grad); color: #fff; box-shadow: 0 10px 20px -10px rgba(91, 91, 246, 0.9); }
.k-ok:active { background: var(--grad); filter: brightness(0.92); }
.k-ok .i { width: 30px; height: 30px; stroke-width: 2.6; }
.shake { animation: shake 0.4s; }

.scanbox { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; background: var(--fill); border-radius: 16px; padding: 10px; }
.scan-img { position: relative; width: 84px; height: 108px; border-radius: 11px; overflow: hidden; background: #000; }
.scan-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-line { display: none; }
.scan-img.reading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(91, 91, 246, 0.0), rgba(91, 91, 246, 0.25)); }
.scan-img.reading .scan-line { display: block; position: absolute; left: 0; right: 0; height: 3px; top: 0; background: linear-gradient(90deg, transparent, #a5a5ff, transparent); box-shadow: 0 0 12px 3px rgba(125, 125, 255, 0.85); animation: scan 1.5s ease-in-out infinite alternate; z-index: 1; }
.scan-side { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.scan-status { display: flex; gap: 10px; align-items: flex-start; width: 100%; }
.scan-status > span:nth-child(2) { flex: 1; display: grid; min-width: 0; }
.scan-status b { font-size: 15px; }
.scan-status small { font-size: 13px; color: var(--text2); }
.scan-status .link { padding: 0 2px; }
.scan-status.ok > .i { color: var(--accent); }
.scan-status.err b { color: var(--red); }
.scan-status > .i { width: 20px; height: 20px; margin-top: 1px; }
.scan-side > .link.danger { font-size: 13px; padding: 2px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 0.8s linear infinite; flex: none; margin-top: 2px; }

/* entry details */
.detail { display: grid; gap: 14px; }
.detail-top { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 4px 0 6px; }
.detail-amt { font: 750 40px/1.15 var(--round); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 8px; }
.detail-top h3 { font-size: 19px; font-weight: 650; }
.detail-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.detail-btns .btn { padding: 0 8px; font-size: 15px; height: 46px; }
.items-card h4 { font-size: 13px; color: var(--text2); padding: 12px 16px 2px; font-weight: 600; }
.items-card h4::before { display: none; }
.receipt-img { display: block; width: 100%; border-radius: 18px; overflow: hidden; background: #000; }
.receipt-img img { display: block; width: 100%; max-height: 380px; object-fit: contain; }
.sheet-zoom { --sheet: #000; max-height: 100dvh !important; height: 100dvh; border-radius: 0 !important; color: #fff; }
.sheet-zoom .sheet-body { padding: calc(var(--safe-t) + 8px) 0 0; height: 100%; display: grid; grid-template-rows: 1fr auto; }
.zoom { overflow: auto; display: grid; place-items: center; touch-action: pinch-zoom pan-x pan-y; }
.zoom img { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; }
.zoom-bar { display: flex; justify-content: center; gap: 10px; padding: 12px 16px calc(var(--safe-b) + 12px); }
.zoom-bar .btn { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* forms */
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--text2); padding-left: 4px; }
.field input, .field select { height: 48px; border-radius: 13px; border: 0; background: var(--card); padding: 0 14px; color: var(--text); box-shadow: inset 0 0 0 0.5px var(--sep); width: 100%; -webkit-appearance: none; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--text2) 50%), linear-gradient(135deg, var(--text2) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.money-field { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 16px; padding: 4px 16px; box-shadow: inset 0 0 0 0.5px var(--sep); }
.money-field > span { font: 650 22px var(--round); color: var(--text2); padding: 0; }
.money-field input { box-shadow: none; background: none; font: 750 32px var(--round); height: 58px; padding: 0; letter-spacing: -0.02em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--card); border-radius: 14px; padding: 12px 14px; box-shadow: inset 0 0 0 0.5px var(--sep); }
.switch-row span, .srow > span { display: grid; gap: 1px; min-width: 0; }
.switch-row small, .srow small { color: var(--text2); font-size: 12.5px; font-weight: 400; }
input[switch] { accent-color: var(--green); width: 50px; height: 30px; flex: none; margin: 0; }
.cat-preview { display: grid; place-items: center; padding: 4px; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 2px; background: var(--card); border-radius: 14px; padding: 6px; }
.emoji-grid button { height: 42px; font-size: 23px; border-radius: 10px; }
.emoji-grid button:active { background: var(--fill); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px 2px; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; background: var(--c); }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--sheet), 0 0 0 5.5px var(--c); }
.mrow { display: flex; align-items: center; gap: 4px; padding-right: 10px; }
.mrow-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 14px; text-align: left; font-size: 16px; }
.mrow-main > span:not(.badge):not(.em) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow-main > span small { color: var(--text3); font-size: 12px; margin-left: 4px; }
.mrow-main > small { color: var(--text2); font-variant-numeric: tabular-nums; }
.mrow-main input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 6px 0; }
.card.list > .mrow-main { width: 100%; }
.add-line { display: flex; gap: 8px; margin-top: 12px; }
.add-line input { flex: 1; min-width: 0; height: 48px; border-radius: 13px; border: 0; background: var(--card); padding: 0 14px; box-shadow: inset 0 0 0 0.5px var(--sep); }
.add-line .btn { height: 48px; }

/* settings */
.settings .sec { font-size: 13px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.02em; padding: 18px 16px 6px; justify-content: flex-start; gap: 6px; }
.settings .card { margin-bottom: 10px; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 10px 16px; width: 100%; font-size: 16px; text-align: left; }
.srow.col { flex-direction: column; align-items: stretch; gap: 8px; }
.srow > input:not([type="checkbox"]), .srow > select { flex: 1; min-width: 0; text-align: right; border: 0; background: none; color: var(--text2); outline: none; -webkit-appearance: none; appearance: none; direction: ltr; }
.srow > select { text-align-last: right; }
.list > .srow::before, .list > .srow-note::before { left: 16px !important; }
.link-row { color: var(--text); }
.link-row > span { flex: 1; }
.link-row > .i:first-child { color: var(--accent); }
.link-row > small { color: var(--text2); }
.link-row > .i.tiny:last-child { color: var(--text3); }
.link-row.danger, .link-row.danger .i { color: var(--red) !important; }
.key-row { display: flex; gap: 8px; align-items: center; }
.key-row input { flex: 1; min-width: 0; height: 42px; border: 0; border-radius: 11px; background: var(--fill); padding: 0 12px; font-family: ui-monospace, Menlo, monospace; font-size: 15px; outline: none; }
.srow-note { padding: 0 16px 10px; font-size: 13px; color: var(--text2); margin-top: -6px; }
.srow-note::before { display: none; }
.foot-note { font-size: 12.5px; color: var(--text2); padding: 0 16px 6px; }
.foot-note b { color: var(--text); font-weight: 600; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + 92px); z-index: 1000;
  transform: translate(-50%, 16px) scale(0.98); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100% - 32px);
  padding: 12px 14px 12px 16px; border-radius: 16px; background: rgba(28, 28, 32, 0.94); color: #fff;
  font-size: 15px; font-weight: 500; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity 0.25s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
:root[data-theme="dark"] .toast { background: rgba(58, 58, 62, 0.96); }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
.toast.warn { box-shadow: inset 3px 0 0 var(--orange), 0 12px 34px rgba(0, 0, 0, 0.28); }
.toast.err { box-shadow: inset 3px 0 0 var(--red), 0 12px 34px rgba(0, 0, 0, 0.28); }
.toast-btn { color: #a5a5ff; font-weight: 700; padding: 2px 4px; white-space: nowrap; }
dialog .toast { bottom: calc(var(--safe-b) + 24px); }

/* ---------- lock / PIN ---------- */
dialog.lock { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--text); }
dialog.lock::backdrop { background: var(--bg); }
dialog.lock.unlocking { animation: fade-out 0.22s forwards; }
.lock-in { min-height: 100%; display: grid; place-content: center; justify-items: center; gap: 14px; padding: calc(var(--safe-t) + 20px) 24px calc(var(--safe-b) + 20px); }
.lock-logo { border-radius: 18px; box-shadow: 0 10px 28px -12px rgba(67, 56, 202, 0.7); }
.lock-in h2 { font-size: 20px; font-weight: 650; }
.pin-box { display: grid; justify-items: center; gap: 14px; padding: 10px 0 6px; }
.pin-title { font-size: 17px; font-weight: 600; }
.dots { display: flex; gap: 18px; padding: 8px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.6px var(--text2); transition: background 0.12s, transform 0.12s; }
.dots i.on { background: var(--accent); box-shadow: none; transform: scale(1.1); }
.pin-msg { min-height: 20px; font-size: 14px; color: var(--red); }
.pinpad { display: grid; grid-template-columns: repeat(3, 76px); gap: 16px 22px; }
.pinpad button { width: 76px; height: 76px; border-radius: 50%; background: var(--fill); font: 500 30px var(--round); transition: transform 0.08s, background 0.08s; }
.pinpad button:active { background: var(--fill2); transform: scale(0.95); }

/* ---------- welcome ---------- */
.sheet-welcome .sheet-body { padding-top: 14px; }
.welcome { display: grid; gap: 12px; text-align: center; }
.welcome-logo { justify-self: center; border-radius: 20px; box-shadow: 0 14px 30px -14px rgba(67, 56, 202, 0.8); }
.welcome h2 { font-size: 26px; font-weight: 750; letter-spacing: -0.02em; }
.welcome-list { list-style: none; margin: 4px 0; padding: 4px 0; display: grid; gap: 2px; text-align: left; background: var(--card); border-radius: 18px; }
.welcome-list li { display: flex; gap: 12px; align-items: center; padding: 10px 14px; font-size: 14.5px; color: var(--text2); }
.welcome-list li b { color: var(--text); }
.welcome-list .i { color: var(--accent); width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--accent-soft); }
.welcome .form { text-align: left; }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 6px max(6px, calc((100vw - 620px) / 2)) calc(var(--safe-b) + 4px);
  background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  border-top: 0.5px solid var(--sep); view-transition-name: tabbar;
}
.tab { display: grid; justify-items: center; gap: 2px; padding: 4px 0 3px; font-size: 10.5px; font-weight: 600; color: var(--text3); }
:root[data-theme="dark"] .tab { color: rgba(235, 235, 245, 0.42); }
.tab .i { width: 26px; height: 26px; stroke-width: 1.8; }
.tab[aria-current="page"] { color: var(--accent) !important; }
.tab[aria-current="page"] .i { stroke-width: 2.2; }
.tab-add { justify-self: center; align-self: center; width: 52px; height: 52px; border-radius: 50%; margin-top: -16px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 10px 22px -8px rgba(91, 91, 246, 0.85); transition: transform 0.12s; }
.tab-add:active { transform: scale(0.92); }
.tab-add .i { width: 27px; height: 27px; stroke-width: 2.5; }

.fatal { margin: 40px 16px; padding: 22px; display: grid; gap: 8px; }

/* ---------- motion ---------- */
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes arc { from { stroke-dasharray: 0 var(--C); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan { from { top: 4%; } to { top: 94%; } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* tabs slide toward the tab you picked; the tab bar itself stays put */
@keyframes vt-out-left { to { transform: translateX(-28px); opacity: 0; } }
@keyframes vt-in-right { from { transform: translateX(28px); opacity: 0; } }
@keyframes vt-out-right { to { transform: translateX(28px); opacity: 0; } }
@keyframes vt-in-left { from { transform: translateX(-28px); opacity: 0; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.26s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
html:active-view-transition-type(forward)::view-transition-old(root) { animation-name: vt-out-left; }
html:active-view-transition-type(forward)::view-transition-new(root) { animation-name: vt-in-right; }
html:active-view-transition-type(backward)::view-transition-old(root) { animation-name: vt-out-right; }
html:active-view-transition-type(backward)::view-transition-new(root) { animation-name: vt-in-left; }
::view-transition-group(tabbar) { animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  ::view-transition-group(root) { animation: none !important; }
}

/* wide screens (iPad / desktop): a phone-width column */
@media (min-width: 700px) {
  .view { padding-top: calc(var(--safe-t) + 24px); }
  dialog.sheet { border-radius: 24px; margin-bottom: 16px; max-height: calc(100dvh - 32px); }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
}

/* ---------- sign-in and accounts ---------- */
dialog.auth { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--text); overflow-y: auto; }
dialog.auth::backdrop { background: var(--bg); }
.auth-in { min-height: 100%; max-width: 420px; margin: 0 auto; display: grid; align-content: center; gap: 10px; padding: calc(var(--safe-t) + 28px) 24px calc(var(--safe-b) + 28px); text-align: center; }
.auth-logo { justify-self: center; border-radius: 20px; box-shadow: 0 14px 30px -14px rgba(67, 56, 202, 0.8); margin-bottom: 4px; }
.auth-in h1 { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; }
.auth-in > .muted { font-size: 15px; }
.auth-form { text-align: left; margin-top: 10px; }
.auth-form.shake { animation: shake 0.4s; }
.auth-hint { font-size: 12.5px; color: var(--text2); margin-top: -4px; padding-left: 4px; }
.auth-hint b { color: var(--text); font-weight: 600; }
.auth-err, .form-err { min-height: 18px; color: var(--red); font-size: 14px; font-weight: 550; }
.auth-foot { font-size: 13px; color: var(--text2); margin-top: 6px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 48px !important; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; color: var(--text2); }
.pw-eye .i { width: 19px; height: 19px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: 16px; flex: none; }
.avatar.lg { width: 66px; height: 66px; font-size: 27px; }
.srow.account { justify-content: flex-start; gap: 12px; }
.srow .grow b { font-weight: 650; }
.srow > .i.tiny:first-child { color: var(--accent); }
.person { width: 100%; }
.person:disabled { opacity: 1; cursor: default; }
.person-top { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 4px 0 14px; }
.person-top h3 { font-size: 19px; margin-top: 6px; }
