:root {
  --bg: #f4f3ef;
  --card: #ffffff;
  --ink: #16181d;
  --muted: #6a6f78;
  --faint: #9a9fa7;
  --line: #e5e2da;
  --soft: #eeece6;
  --accent: #1d6f52;
  --accent-ink: #ffffff;
  --pos: #18794e;
  --warn: #b4450f;
  --warn-bg: #fbefe6;
  --good: #18794e;
  --good-bg: #e8f4ec;
  --info-bg: #eef1f6;
  --info: #3b5b8c;
  --spent: #d9622b;
  --income: #2f6fd1;
  --invested: #1a9e77;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 22, 26, 0.05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --card: #171a1f;
    --ink: #eceef1;
    --muted: #949aa4;
    --faint: #6c727c;
    --line: #262a31;
    --soft: #1e2228;
    --accent: #4cc38a;
    --accent-ink: #062014;
    --pos: #4cc38a;
    --warn: #f0925a;
    --warn-bg: #2a1d15;
    --good: #4cc38a;
    --good-bg: #13241b;
    --info-bg: #182030;
    --info: #8fb0e3;
    --spent: #dc6a30;
    --income: #5b93e6;
    --invested: #22a57e;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.num, .amt { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 28px 4px 10px; }

/* logo: three bars, like a spending chart */
.logo { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); position: relative; flex: none; }
.logo::before { content: ""; position: absolute; inset: 22%; background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='12' width='4.5' height='9' rx='1.2'/%3E%3Crect x='9.75' y='4' width='4.5' height='17' rx='1.2'/%3E%3Crect x='16.5' y='9' width='4.5' height='12' rx='1.2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='12' width='4.5' height='9' rx='1.2'/%3E%3Crect x='9.75' y='4' width='4.5' height='17' rx='1.2'/%3E%3Crect x='16.5' y='9' width='4.5' height='12' rx='1.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.logo.sm { width: 26px; height: 26px; border-radius: 8px; }

/* auth */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 360px; display: grid; gap: 14px; }
.auth-card h1 { margin: 4px 0 0; font-size: 28px; letter-spacing: -0.02em; }
.auth-card p { margin: 0; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
input, textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  font-size: 16px; font-weight: 400; color: var(--ink); outline: none;
}
input:focus-visible, textarea:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.error { color: var(--warn); min-height: 1.2em; font-size: 14px; }
.btn { border: 1px solid var(--line); background: var(--card); padding: 12px 18px; border-radius: 12px; font-weight: 600; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.block { width: 100%; }
.link { background: none; border: 0; color: var(--accent); font-weight: 600; padding: 6px; }
.icon-btn { background: none; border: 0; color: var(--muted); padding: 8px; border-radius: 10px; display: grid; place-items: center; }
.icon-btn:hover { background: var(--soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* shell */
.app { max-width: 560px; margin: 0 auto; padding: env(safe-area-inset-top) 16px calc(84px + env(safe-area-inset-bottom)); }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 6px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: center; gap: 4px;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.tabs button { flex: 0 1 140px; display: grid; justify-items: center; gap: 2px; background: none; border: 0; padding: 6px 4px;
  font-size: 11.5px; font-weight: 600; color: var(--faint); border-radius: 10px; }
.tabs svg { width: 22px; height: 22px; }
.tabs button[aria-current="page"] { color: var(--accent); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* overview */
.month-nav { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 2px; }
.month-nav h1 { font-size: 17px; margin: 0; font-weight: 650; }
.month-nav .icon-btn:disabled { opacity: 0.3; cursor: default; }
.month-nav .icon-btn:disabled:hover { background: none; }
.range { text-align: center; color: var(--faint); font-size: 13px; margin: 0 0 12px; }
.hero { padding: 18px 18px 14px; }
.hero .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.hero .big { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 2px 0 6px; }
.hero .big small { font-size: 18px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.hero .sub { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--muted); }
.hero .sub b { color: var(--ink); font-weight: 600; }
.chart { display: block; width: 100%; height: 92px; margin-top: 14px; }
.chart .bar { fill: var(--accent); opacity: 0.85; }
.chart .bar.zero { fill: var(--line); opacity: 1; }
.chart .avg { stroke: var(--faint); stroke-dasharray: 3 3; stroke-width: 1; }
.chart text { fill: var(--faint); font-size: 10px; }

.rows { padding: 4px 0; }
.seg + .month-nav { margin-top: 4px; }
.range-pick { display: flex; align-items: end; gap: 8px; margin: 4px 0 10px; }
.range-pick label { flex: 1; font-size: 12px; }
.range-pick select { padding: 10px 12px; appearance: auto; }
.range-pick span { color: var(--faint); padding-bottom: 12px; }
.pie-card { padding: 18px 0 4px; }
.donut-wrap { position: relative; width: min(220px, 64vw); margin: 0 auto 10px; }
.donut { display: block; width: 100%; height: auto; overflow: visible; }
.slice { stroke: var(--card); stroke-width: 2; stroke-linejoin: round; cursor: pointer; transition: opacity 0.15s, transform 0.15s; transform-origin: 100px 100px; }
.slice.dim { opacity: 0.28; }
.slice:focus { outline: none; }
.slice:focus-visible { stroke: var(--ink); }
.slice.sel { transform: scale(1.045); }
.donut-center { position: absolute; inset: 22%; display: grid; place-content: center; text-align: center; pointer-events: none; gap: 1px; }
.donut-center .c-name { font-size: 12.5px; color: var(--muted); font-weight: 600; max-width: 120px; margin: 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donut-center b { font-size: 24px; letter-spacing: -0.02em; }
.donut-center .c-sub { font-size: 12px; color: var(--faint); }
.legend { border-top: 1px solid var(--line); }
.legend .row.sel { background: var(--soft); }
.mchart { position: relative; height: 200px; margin-top: 12px; padding-left: 40px; }
.m-grid { position: absolute; left: 0; right: 0; top: 4px; bottom: 22px; pointer-events: none; }
.m-tick { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.m-tick:first-child { border-top-color: var(--faint); }
.m-tick span { position: absolute; left: 0; top: -8px; font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; background: var(--card); padding-right: 4px; }
.m-cols { position: relative; height: 100%; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 56px)); justify-content: space-around; gap: 2px; }
.mc { all: unset; box-sizing: border-box; position: relative; display: grid; grid-template-rows: 1fr 22px; height: 100%; padding-top: 4px; cursor: pointer; min-width: 0; border-radius: 8px; }
.mc:disabled { cursor: default; }
.mc::before { content: ""; position: absolute; inset: 0 0 20px; border-radius: 8px; background: var(--soft); opacity: 0; transition: opacity 0.12s; }
.mc.active::before { opacity: 1; }
.mc:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mc-track { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 100%; transition: opacity 0.12s; }
.mchart.has-active .mc:not(.active) .mc-track { opacity: 0.35; }
.mc-bar, .mc-stack { flex: 1 1 0; max-width: 16px; border-radius: 4px 4px 0 0; }
.mc-bar.income { background: var(--income); }
.mc-stack { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.mseg { display: block; min-height: 2px; flex-basis: 0; }
.mseg.spent { background: var(--spent); }
.mseg.invested { background: var(--invested); }
.mc .m-label { position: relative; align-self: end; font-size: 10.5px; color: var(--faint); text-align: center; white-space: nowrap; line-height: 20px; }
.mc.active .m-label { color: var(--ink); font-weight: 700; }
.mtip { position: absolute; top: 0; z-index: 3; display: grid; grid-template-columns: auto auto; gap: 3px 14px; align-items: center; min-width: 168px;
  padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14); font-size: 13px; pointer-events: none; }
.mtip b { grid-column: 1 / -1; font-size: 13.5px; margin-bottom: 2px; }
.mtip span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.mtip .num { justify-content: flex-end; color: var(--ink); font-weight: 600; }
.mtip .t-left { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 2px; }
.mtip .num.pos { color: var(--pos); }
.mtip .num.neg { color: var(--warn); }
.mtip em { grid-column: 1 / -1; font-style: normal; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.legend-inline { display: flex; gap: 14px; margin-top: 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.legend-inline span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw.spent { background: var(--spent); }
.sw.income { background: var(--income); }
.sw.invested { background: var(--invested); }
.mtable { padding: 4px 0; }
.mt-row { display: grid; grid-template-columns: 0.8fr 1fr 1fr 1fr 1.05fr; gap: 6px; align-items: center; width: 100%; padding: 10px 14px;
  background: none; border: 0; text-align: right; font-size: 13.5px; }
.mt-row > :first-child { text-align: left; font-weight: 600; }
button.mt-row:hover { background: var(--soft); }
.mt-row + .mt-row { border-top: 1px solid var(--line); }
.mt-head { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding-top: 8px; padding-bottom: 8px; }
.mt-head > :first-child { font-weight: 700; }
.mt-foot { font-weight: 700; }
.mt-row .pos { color: var(--pos); font-weight: 600; }
.mt-row .neg { color: var(--warn); font-weight: 600; }
.row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 11px 16px; width: 100%;
  background: none; border: 0; text-align: left; border-radius: 0; }
.row + .row { border-top: 1px solid var(--line); }
button.row:hover { background: var(--soft); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.row .name { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .meta { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .amt { font-weight: 600; text-align: right; white-space: nowrap; }
.row .amt.in { color: var(--pos); }
.row .amt small { display: block; font-size: 12px; color: var(--faint); font-weight: 500; }
.meter { height: 4px; border-radius: 2px; background: var(--soft); margin-top: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 2px; }

.finds { display: grid; gap: 10px; }
.find { padding: 14px 16px; border-radius: var(--radius); border: 1px solid transparent; text-align: left; width: 100%; display: block; }
.find b { display: block; font-size: 15px; margin-bottom: 3px; }
.find p { margin: 0; font-size: 13.5px; color: var(--muted); }
.find.warn { background: var(--warn-bg); }
.find.warn b { color: var(--warn); }
.find.good { background: var(--good-bg); }
.find.good b { color: var(--good); }
.find.info { background: var(--info-bg); }
.find.info b { color: var(--info); }
button.find { cursor: pointer; }
button.find .more { display: inline-block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink); opacity: 0.7; }

.empty { text-align: center; padding: 48px 20px; }
.empty h1 { font-size: 22px; margin: 16px 0 6px; letter-spacing: -0.01em; }
.empty p { color: var(--muted); margin: 0 0 18px; }
.empty .logo { margin: 0 auto; }

/* activity */
.search { position: sticky; top: 0; z-index: 3; background: var(--bg); padding: 8px 0 10px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .dot { width: 8px; height: 8px; }
.chip .n { color: var(--faint); font-weight: 500; }
.chip[aria-pressed="true"] .n { color: inherit; opacity: 0.7; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.filters .chip { padding: 5px 10px; }
.day { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 600; margin: 18px 4px 6px; }
.more-btn { margin: 14px auto 0; display: block; }

/* sheet */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 92dvh; border-radius: 20px 20px 0 0;
  background: var(--card); color: var(--ink); overflow: auto; }
.sheet::backdrop { background: rgba(8, 10, 12, 0.45); }
@media (min-width: 620px) { .sheet { margin: auto; border-radius: 20px; } }
.sheet-in { padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-head h2 { all: unset; font-size: 19px; font-weight: 700; display: block; }
.sheet .big { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.sheet .big.in { color: var(--pos); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; word-break: break-word; }
.cat-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-grid .chip { padding: 6px 10px; font-size: 12.5px; }
.cat-section { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; align-items: center; }
.cat-section + .cat-section { margin-top: 4px; }
.sec-name { width: 100%; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); margin: 4px 0 0 2px; }
.sheet-actions.sticky { position: sticky; bottom: 0; margin: 0 -18px calc(-18px - env(safe-area-inset-bottom));
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.sheet-actions { display: flex; gap: 10px; }
.sheet-actions .btn { flex: 1; }

/* import */
.import-head h1 { font-size: 22px; letter-spacing: -0.01em; margin: 10px 0 6px; }
.steps { margin: 0 0 16px; padding-left: 20px; color: var(--muted); }
.steps li { margin: 4px 0; }
.drop { display: grid; place-items: center; gap: 8px; text-align: center; padding: 30px 16px; border: 1.5px dashed var(--line);
  border-radius: var(--radius); background: var(--card); cursor: pointer; }
.drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.drop b { font-size: 16px; }
.drop span { font-size: 13px; color: var(--muted); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
details.paste { margin-top: 12px; }
details.paste summary { color: var(--muted); font-size: 14px; cursor: pointer; padding: 6px 2px; }
details.paste textarea { min-height: 140px; font: 12px/1.4 ui-monospace, monospace; margin: 8px 0; }
.preview { padding: 16px; margin-top: 16px; display: grid; gap: 12px; }
.preview h3 { margin: 0; font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { background: var(--soft); border-radius: 10px; padding: 10px; }
.stats b { display: block; font-size: 16px; }
.stats span { font-size: 12px; color: var(--muted); }
.ok { color: var(--good); font-size: 13.5px; font-weight: 600; }
.warns { margin: 0; padding-left: 18px; color: var(--warn); font-size: 13.5px; }

.top-actions { display: flex; align-items: center; gap: 4px; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.pill-btn:hover { background: var(--soft); }
.tabs button { position: relative; }
.badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: var(--warn); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#b-passkey { display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.small { font-size: 13px; }
.pad { padding: 12px 16px; margin: 0; }
.flag { font-size: 20px; line-height: 1; width: 22px; text-align: center; }
.row .flag + span { min-width: 0; }
.sub-rows { background: var(--soft); border-top: 1px solid var(--line); }
.row.sub { padding: 9px 16px 9px 50px; grid-template-columns: 0 1fr auto; }
.row.sub .name { font-weight: 500; }
.row.sub + .row.sub { border-top-color: color-mix(in srgb, var(--line) 60%, transparent); }
.more-link .name { color: var(--accent); font-weight: 600; }
.amt small.in { color: var(--pos); }
.page-head h1 { font-size: 24px; letter-spacing: -0.02em; margin: 10px 0 4px; }
.page-head p { margin: 0 0 16px; font-size: 14px; }
.triage { padding: 16px; display: grid; gap: 8px; margin-bottom: 8px; animation: rise 0.22s ease-out; }
.triage.leaving { opacity: 0.4; transition: opacity 0.15s; pointer-events: none; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.triage-top { display: flex; justify-content: space-between; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--warn); }
.triage-name { all: unset; cursor: pointer; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.triage .cat-grid { margin-top: 6px; }
.triage-alt { display: flex; gap: 14px; flex-wrap: wrap; }
.triage-alt .link { padding: 4px 0; font-size: 13.5px; color: var(--muted); }
.chip.big { padding: 9px 14px; font-size: 14px; }
.chip.dashed { border-style: dashed; color: var(--muted); }
.new-group { display: flex; gap: 6px; flex: 1 1 100%; }
.new-group input { padding: 8px 12px; }
.new-group .btn { padding: 8px 14px; }
.done { padding: 14px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; margin-bottom: 8px; }
.done b { color: var(--good); }
.yours-tag { color: var(--accent); font-weight: 600; }
.status { font-size: 13.5px; color: var(--muted); background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.status b { color: var(--ink); }
.status.yours { background: var(--good-bg); }
.status.yours b { color: var(--good); }
.link.inline { padding: 0; font-size: 13.5px; }
.label-h { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 4px 0 8px; }
.rows.flat { box-shadow: none; }
.link-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 1px solid var(--line); background: var(--soft); border-radius: 12px; padding: 11px 12px; font-size: 14px; }
.link-row .go { color: var(--accent); font-weight: 600; font-size: 13px; white-space: nowrap; }
.seg { display: flex; background: var(--soft); border-radius: 12px; padding: 3px; margin: 14px 0 12px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 6px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.group-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.group-card { padding: 12px 14px; display: grid; gap: 2px; }
.g-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.g-sent { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.g-sent.in { color: var(--pos); }
.toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
  transition: opacity 0.2s, transform 0.2s; pointer-events: none; max-width: calc(100% - 32px); z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.actionable { pointer-events: auto; display: flex; align-items: center; gap: 14px; }
.toast button { background: none; border: 0; color: inherit; font-weight: 700; text-decoration: underline; padding: 2px 0; }

@media (prefers-reduced-motion: reduce) { .toast, .triage.leaving, .slice, .mc::before, .mc-track { transition: none; } .triage { animation: none; } }
