/* KashCub app preview */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--font-body); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

/* Shell */
.app { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
@media (min-width: 600px) {
  body { background: var(--surface-2); }
  .app { max-width: 460px; margin: 0 auto; background: var(--bg); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
}
.ribbon { position: sticky; top: 0; z-index: 30; background: var(--forest-900); color: #F6C35F; text-align: center; font-size: .76rem; font-weight: 700; padding: 6px 12px; }
.ribbon a { color: #EEF1EC; }
#view { flex: 1; padding: 14px 16px 110px; outline: none; display: flex; flex-direction: column; gap: 16px; }
#view.no-tabs { padding-bottom: 32px; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-width: 460px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.tabs[hidden] { display: none; }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: .74rem; font-weight: 700; }
.tabs a[aria-current="page"] { color: var(--accent-text); background: var(--forest-50); }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Headers */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.top h1 { flex: 1; font-size: 1.25rem; font-weight: 800; }
.top .title-xl { font-size: 1.9rem; font-weight: 900; }
.kicker { color: var(--muted); font-weight: 500; }
.title-l { font-size: 1.6rem; font-weight: 900; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; cursor: pointer; flex: none; text-decoration: none; color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--honey); color: #1D2421; display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; text-decoration: none; flex: none; }
.spacer { width: 44px; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 1rem/1.1 var(--font-body); text-decoration: none; text-align: center;
  transition: background .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn-block { display: flex; width: 100%; }
.btn-honey { background: var(--honey); color: #1D2421; }
.btn-honey:hover { background: #F6BE57; }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { background: var(--forest-700); }
.btn-ghost-light { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .22); }
.btn-outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-quiet { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--danger-bg); color: var(--danger); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-small { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-text); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.section-head h2 { font-size: 1.15rem; font-weight: 800; }
.section-head a { font-weight: 700; text-decoration: none; font-size: .95rem; }

/* Chips */
.chip { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; line-height: 1.5; }
.chip-pending { background: var(--pending-bg); color: var(--pending); }
.chip-ready { background: var(--ready-bg); color: var(--ready); }
.chip-paid { background: var(--paid-bg); color: var(--paid); }
.chip-way { background: var(--honey-50); color: var(--pending); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-danger { background: var(--danger-bg); color: var(--danger); }

/* Stash card (home) */
.stash-card { background: var(--forest); color: #fff; border-radius: var(--radius-l); padding: 20px; position: relative; overflow: hidden; }
.stash-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(244, 178, 62, .16); }
.sc-label { font-size: .9rem; opacity: .9; }
.sc-amount { font-family: var(--font-display); font-weight: 900; font-size: 2.8rem; line-height: 1.1; margin: 2px 0 4px; }
.sc-sub { font-size: .88rem; opacity: .92; }
.sc-pending { color: #F6C35F; font-weight: 700; }
.sc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; position: relative; z-index: 1; }

/* Nudges */
.nudges { display: grid; gap: 10px; }
.nudge { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.nudge .n-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--honey-50); font-size: 1.2rem; flex: none; }
.nudge .n-main { flex: 1; min-width: 0; }
.nudge b { display: block; font-size: .95rem; }
.nudge small { color: var(--muted); font-size: .84rem; }
.nudge .chev { color: var(--muted); font-size: 1.3rem; }

/* Offers */
.offer-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 8px; margin: 0 -16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.offer-scroll::-webkit-scrollbar { display: none; }
.offer-card { flex: 0 0 150px; scroll-snap-align: start; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.offer-card .o-name { font-weight: 700; font-size: .92rem; line-height: 1.25; }
.offer-card .o-rate { font-family: var(--font-display); font-weight: 900; color: var(--accent-text); font-size: 1.3rem; }
.logo { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--c); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: .9rem; }
.logo-l { width: 60px; height: 60px; border-radius: 18px; font-size: 1.15rem; }
.boost { display: inline-block; background: var(--honey); color: #1D2421; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }

.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; min-height: 50px; }
.search:focus-within { border-color: var(--forest); }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; flex: none; }
.search input { flex: 1; border: 0; background: transparent; color: var(--ink); font: 400 1rem var(--font-body); min-width: 0; height: 46px; outline: none; }
.cats { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; }
.cat[aria-current="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.count { color: var(--muted); font-size: .9rem; }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.offer-row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; cursor: pointer; }
.offer-row:hover, .offer-card:hover { border-color: color-mix(in srgb, var(--forest) 40%, var(--line)); }
.o-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.o-main .o-name { font-weight: 700; }
.o-tag { color: var(--muted); font-size: .86rem; }
.o-on { color: var(--accent-text); font-size: .78rem; font-weight: 700; }
.o-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.o-side .o-rate { font-family: var(--font-display); font-weight: 900; color: var(--accent-text); font-size: 1.15rem; line-height: 1.1; }
.o-side s { color: var(--muted); font-size: .78rem; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.empty .cub { width: 64px; margin: 0 auto 10px; }

/* Explain */
.explain h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.flow li { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: start; font-size: .92rem; color: var(--muted); }
.flow .chip { text-align: center; }

/* Stash screen */
.stash-hero { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; }
.jar { width: 92px; height: auto; }
.stash-hero .big { font-family: var(--font-display); font-weight: 900; font-size: 2.3rem; line-height: 1.1; }
.stash-hero .btn { grid-column: 1 / -1; }
.stash-hero .need { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat b { font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { border: 1.5px solid var(--line); background: var(--surface); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.activity { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.act-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; cursor: pointer; }
.activity li:first-child .act-row { border-top: 0; }
.act-row:hover { background: var(--surface-2); }
.a-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.a-main b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-main small { color: var(--muted); font-size: .82rem; }
.a-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.a-side b { font-family: var(--font-display); font-weight: 900; }
.a-side .plus { color: var(--accent-text); }

/* Timeline (sheet) */
.tl { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 0; }
.tl li { position: relative; padding: 0 0 16px 30px; }
.tl li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--line); background: var(--surface); }
.tl li::after { content: ""; position: absolute; left: 11.5px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.tl li:last-child::after { display: none; }
.tl li.done::before { background: var(--forest); border-color: var(--forest); }
.tl li.now::before { background: var(--honey); border-color: var(--honey-600); }
.tl b { display: block; }
.tl small { color: var(--muted); }

/* Sheet */
dialog.sheet {
  border: 0; padding: 0; width: 100%; max-width: 460px; max-height: 90dvh;
  margin: auto auto 0; border-radius: 26px 26px 0 0;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
dialog.sheet[open] { animation: up .22s ease-out; }
dialog.sheet::backdrop { background: rgba(8, 18, 14, .5); }
@media (min-width: 600px) { dialog.sheet { margin: auto; border-radius: 26px; } }
@keyframes up { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog.sheet[open] { animation: none; } }
.sheet-inner { padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); max-height: 90dvh; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.sheet-grip { width: 42px; height: 5px; border-radius: 999px; background: var(--line); margin: 0 auto 2px; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 14px; }
.sheet-head h2 { font-size: 1.35rem; font-weight: 900; }
.sheet-close { margin-left: auto; }
.os-rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; background: var(--forest-50); border-radius: var(--radius); padding: 14px 16px; }
.os-rate .big { font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; color: var(--accent-text); line-height: 1; }
.facts { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); font-size: .95rem; }
.facts b { color: var(--ink); }
.tip { font-size: .88rem; background: var(--honey-50); border-radius: 12px; padding: 10px 12px; }
.activated { color: var(--accent-text); font-weight: 700; text-align: center; }
.sheet-actions { display: grid; gap: 10px; }

/* Withdraw */
.steps-dots { display: flex; gap: 6px; justify-content: center; }
.steps-dots span { width: 28px; height: 5px; border-radius: 999px; background: var(--line); }
.steps-dots span.on { background: var(--forest); }
.q { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; }
.amount-wrap { display: flex; align-items: center; justify-content: center; gap: 4px; font-family: var(--font-display); font-weight: 900; font-size: 3.2rem; color: var(--ink); padding: 18px 0 6px; }
.amount-wrap input { width: 5.2ch; font: inherit; color: inherit; border: 0; border-bottom: 3px solid var(--line); background: transparent; text-align: left; outline: none; padding: 0; }
.amount-wrap input:focus { border-bottom-color: var(--forest); }
.quick { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.quick button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
.hint { text-align: center; color: var(--muted); font-size: .92rem; }
.hint.err { color: var(--danger); font-weight: 700; }
.bank-card { display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px solid var(--forest); border-radius: var(--radius); background: var(--forest-50); }
.bank-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--forest); color: #fff; display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.bank-card b { display: block; }
.bank-card small { color: var(--muted); }
.secure { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 6px 16px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row span:first-child { color: var(--muted); }
.row b { text-align: right; }
.success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 0 8px; }
.success .cub { width: 96px; }
.success h1 { font-size: 2rem; font-weight: 900; }

/* Plan */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg a { text-align: center; padding: 9px 0; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .92rem; }
.seg a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }
.goal-list, .bill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.goal-card, .bill-row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; }
.g-emoji { width: 48px; height: 48px; border-radius: 14px; background: var(--honey-50); display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.g-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.g-main b { font-size: 1rem; }
.g-main small { color: var(--muted); font-size: .84rem; }
.g-pct { font-family: var(--font-display); font-weight: 900; color: var(--accent-text); }
.bar { display: block; height: 10px; background: var(--forest-50); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--forest); border-radius: 999px; }
.bar.honey > span { background: var(--honey); }
.add-card { width: 100%; border: 2px dashed var(--line); background: transparent; border-radius: var(--radius); padding: 16px; font-weight: 700; color: var(--accent-text); cursor: pointer; }
.add-card:hover { border-color: var(--forest); }
.note { font-size: .86rem; color: var(--muted); text-align: center; }
.b-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.b-main small { color: var(--muted); font-size: .84rem; }
.b-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.b-side b { font-family: var(--font-display); font-weight: 900; }
.sum-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sum-card .big { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; }

.snap-total { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.snap-total .big { font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; line-height: 1.1; }
.delta { font-weight: 700; font-size: .9rem; }
.delta.down { color: var(--ready); }
.delta.up { color: var(--warn); }
.bars { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; gap: 4px; }
.bars .lbl { display: flex; justify-content: space-between; font-size: .92rem; }
.bars .lbl b { font-weight: 700; }
.bars .lbl span { color: var(--muted); }
.merchants { list-style: none; margin: 0; padding: 0; }
.merchants li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.merchants li:first-child { border-top: 0; }
.merchants .m-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.merchants small { color: var(--muted); font-size: .82rem; }
.m-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.insight { background: var(--honey-50); border-color: transparent; display: flex; gap: 12px; align-items: flex-start; }
.insight .cub { width: 44px; flex: none; }
.insight b { display: block; margin-bottom: 2px; }
.insight p { font-size: .92rem; }

/* Forms */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: 400 1rem var(--font-body);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px color-mix(in srgb, var(--forest) 16%, transparent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--forest); flex: none; }
.consents { display: grid; gap: 8px; }
.consent { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; font-size: .92rem; color: var(--muted); }
.consent .c-text { flex: 1; }
.consent-all { background: var(--forest-50); border-color: transparent; color: var(--ink); }
.consent:has(input:checked) { border-color: color-mix(in srgb, var(--forest) 45%, var(--line)); }
.emoji-pick { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.emoji-pick legend { font-weight: 700; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.emoji-pick label { position: relative; }
.emoji-pick input { position: absolute; opacity: 0; inset: 0; }
.emoji-pick span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; border: 1.5px solid var(--line); font-size: 1.4rem; cursor: pointer; background: var(--surface); }
.emoji-pick input:checked + span { border-color: var(--forest); background: var(--forest-50); box-shadow: 0 0 0 2px var(--forest); }
.emoji-pick input:focus-visible + span { outline: 3px solid var(--honey); outline-offset: 2px; }
.form-err { color: var(--danger); font-weight: 700; font-size: .9rem; min-height: 1.2em; }

/* Welcome / sign up */
.welcome { display: flex; flex-direction: column; gap: 18px; padding-top: 18px; }
.welcome .cub { width: 88px; }
.welcome h1 { font-size: 2.3rem; font-weight: 900; }
.welcome .lede { color: var(--muted); font-size: 1.08rem; }
.w-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.w-steps li { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.w-steps .n { width: 36px; height: 36px; border-radius: 12px; background: var(--honey); color: #1D2421; display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; flex: none; }
.w-steps b { display: block; }
.w-steps small { color: var(--muted); }
.fine { font-size: .82rem; color: var(--muted); text-align: center; }

/* Me */
.profile { display: flex; align-items: center; gap: 14px; }
.profile .avatar { width: 60px; height: 60px; font-size: 1.5rem; }
.profile b { display: block; font-size: 1.15rem; font-family: var(--font-display); }
.list-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.list-group h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 16px 4px; font-family: var(--font-body); }
.li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; }
.list-group h2 + .li { border-top: 0; }
.li .li-main { flex: 1; min-width: 0; }
.li small { display: block; color: var(--muted); font-size: .84rem; }
.li .chev { color: var(--muted); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked + span { background: var(--forest); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--honey); outline-offset: 2px; }
.theme-pick { display: flex; gap: 6px; }
.theme-pick button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .85rem; cursor: pointer; }
.theme-pick button[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 16px; font-weight: 700; font-size: .92rem;
  max-width: min(420px, calc(100vw - 32px)); width: max-content; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 100; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
