/* ─── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  --bg: #f6f5f3;
  --card: #ffffff;
  --border: #e7e5e4;
  --text: #1c1917;
  --text-2: #57534e;
  --muted: #78716c;
  --primary: #ea580c;
  --primary-strong: #c2410c;
  --primary-soft: #fff7ed;
  --primary-soft-border: #fed7aa;
  --success: #15803d;
  --success-soft: #f0fdf4;
  --success-soft-border: #bbf7d0;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --neutral-soft: #f5f5f4;
  --hero: linear-gradient(135deg, #c2410c 0%, #f97316 100%);
  --cta: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, .05);
  --shadow-hero: 0 10px 28px rgba(234, 88, 12, .28);
  --radius: 16px;
  --nav-h: 64px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e0d;
    --card: #1c1a18;
    --border: #2e2a27;
    --text: #fafaf9;
    --text-2: #d6d3d1;
    --muted: #a8a29e;
    --primary: #fb923c;
    --primary-strong: #fdba74;
    --primary-soft: #2a1a0e;
    --primary-soft-border: #7c2d12;
    --success: #4ade80;
    --success-soft: #0f2417;
    --success-soft-border: #14532d;
    --danger: #f87171;
    --danger-soft: #2a1212;
    --neutral-soft: #292524;
    --shadow-sm: none;
    --shadow-hero: 0 10px 28px rgba(0, 0, 0, .45);
  }
}

/* ─── BASE ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
h1:focus { outline: none; }

#app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
}
@media (min-width: 480px) {
  body { background: color-mix(in srgb, var(--bg) 88%, var(--text)); }
  #app { box-shadow: 0 0 0 1px var(--border); }
}

#screen {
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 28px);
  animation: fade-up .22s ease;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.pad { padding: 16px 20px; }
.stack > * + * { margin-top: 12px; }

/* ─── HEADER ─────────────────────────────────────────────────────────────── */
.top {
  padding: calc(env(safe-area-inset-top, 0px) + 20px) 20px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.top h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.top p { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.top-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.top .hello { font-size: 13px; color: var(--muted); margin: 0 0 2px; }
.back {
  display: inline-flex; align-items: center; gap: 2px;
  background: none; border: 0; padding: 6px 8px 6px 0; margin: -6px 0 6px -4px;
  color: var(--primary-strong); font-size: 14px; font-weight: 600; border-radius: 8px;
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--hero); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 17px; flex-shrink: 0;
}

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  background: var(--hero); color: #fff;
  border-radius: 22px; padding: 22px;
  box-shadow: var(--shadow-hero);
  position: relative; overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .09);
}
.hero::before { width: 140px; height: 140px; top: -46px; right: -36px; }
.hero::after { width: 84px; height: 84px; bottom: -30px; right: 34px; background: rgba(255, 255, 255, .06); }
.hero > * { position: relative; z-index: 1; }
.hero-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .88; }
.hero-amount { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 6px; }
.hero-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 12px; }
.hero-row .since { opacity: .85; }
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, .2); border-radius: 999px;
  padding: 4px 10px; font-weight: 600; font-size: 12px;
}
.hero-split { display: flex; gap: 24px; margin-top: 14px; }
.hero-split span { display: block; font-size: 12px; opacity: .85; }
.hero-split strong { font-size: 15px; font-weight: 600; }

/* ─── CARDS / LISTS ──────────────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm);
}
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 10px; }
.section-head h2 { font-size: 16px; font-weight: 700; }
.section-head .meta { font-size: 12px; color: var(--muted); font-weight: 500; }
.link {
  background: none; border: 0; padding: 6px 0 6px 8px;
  color: var(--primary-strong); font-size: 13px; font-weight: 600; border-radius: 8px;
}

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.action {
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm);
  transition: border-color .15s, transform .1s;
}
.action:active, .option:active { transform: scale(.985); }
.ic {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary-strong);
}
.ic.neutral { background: var(--neutral-soft); color: var(--text-2); }
.ic.lg { width: 48px; height: 48px; border-radius: 14px; }
.ic.solid { background: var(--cta); color: #fff; }

.tx-list { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.tx { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.tx + .tx { border-top: 1px solid var(--border); }
.tx-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.tx-ic.in { background: var(--success-soft); color: var(--success); }
.tx-ic.out { background: var(--neutral-soft); color: var(--text-2); }
.tx-main { flex: 1; min-width: 0; }
.tx-label { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-meta { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-amt { font-size: 14px; font-weight: 700; white-space: nowrap; }
.tx-amt.in { color: var(--success); }
.tx-amt.out { color: var(--text); }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 13px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 14px; min-height: 36px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--card);
  color: var(--text-2); font-size: 13px; font-weight: 600;
  transition: all .15s;
}
.chip[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-strong); }

/* ─── GOAL ───────────────────────────────────────────────────────────────── */
.goal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.goal-top strong { font-size: 14px; }
.goal-top span { color: var(--muted); }
.bar { height: 8px; border-radius: 999px; background: var(--neutral-soft); overflow: hidden; margin: 10px 0 8px; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--hero); }
.goal-note { font-size: 12px; color: var(--text-2); }

/* ─── FORMS ──────────────────────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-wrap > .unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; font-weight: 700; color: var(--muted); pointer-events: none; }
input[type="text"] {
  width: 100%; padding: 13px 14px; font-size: 16px;
  border: 1.5px solid var(--border); border-radius: 12px; outline: none;
  background: var(--card); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]::placeholder { color: var(--muted); opacity: .7; }
input[type="text"]:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
input[aria-invalid="true"] { border-color: var(--danger); }
.input-wrap > svg + input { padding-left: 40px; }
input.amount { font-size: 24px; font-weight: 700; padding: 14px 44px 14px 16px; border-radius: 14px; }
.error { font-size: 12px; color: var(--danger); margin-top: 6px; font-weight: 500; }
.error:empty { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 18px; border-radius: 14px; border: 0;
  font-size: 15px; font-weight: 700; letter-spacing: .01em;
  transition: transform .1s, opacity .15s;
}
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 6px 18px rgba(194, 65, 12, .28); }
.btn-ghost { background: var(--neutral-soft); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-danger { color: #1c1917; } }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }

.strip {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--primary-soft); border: 1px solid var(--primary-soft-border);
  border-radius: 14px; padding: 12px 16px; margin-bottom: 20px;
}
.strip span { font-size: 13px; font-weight: 600; color: var(--primary-strong); }
.strip strong { font-size: 17px; font-weight: 700; }

.option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 16px; box-shadow: var(--shadow-sm); transition: transform .1s;
}
.option .grow { flex: 1; min-width: 0; }
.option strong { display: block; font-size: 15px; font-weight: 700; }
.option small { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; line-height: 1.35; }
.option > svg:last-child { color: var(--muted); }

.note {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12px; color: var(--muted); line-height: 1.5;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  margin-top: 20px;
}
.note svg { margin-top: 1px; }

.summary { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.summary .total { font-size: 20px; font-weight: 700; }
.summary hr { grid-column: 1 / -1; width: 100%; border: 0; border-top: 1px solid var(--border); margin: 2px 0; }

.done { text-align: center; padding: 28px 20px 8px; }
.done-ic {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; background: var(--success-soft); color: var(--success);
  border: 1px solid var(--success-soft-border);
}
.done h2 { font-size: 20px; font-weight: 700; }
.done p { font-size: 14px; color: var(--text-2); margin-top: 4px; }

/* ─── STATS ──────────────────────────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-sm); }
.kpi span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.kpi strong { display: block; font-size: 17px; font-weight: 700; margin: 4px 0 2px; line-height: 1.2; white-space: nowrap; }
.kpi .accent { color: var(--primary-strong); }
.kpi .up { color: var(--success); }
.kpi .down { color: var(--danger); }

.chart-card h2 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; touch-action: pan-y; overflow: visible; }
.chart text { font-family: inherit; font-size: 10px; fill: var(--muted); }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--primary); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .bar-rect { fill: var(--primary); }
.chart .bar-label { fill: var(--text-2); font-weight: 600; }
.chart .c-cursor { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .c-dot { fill: var(--card); stroke: var(--primary); stroke-width: 2.5; }
.chart-tip {
  position: absolute; transform: translate(-50%, calc(-100% - 12px));
  background: var(--text); color: var(--card);
  border-radius: 10px; padding: 6px 10px; font-size: 12px; line-height: 1.3;
  white-space: nowrap; pointer-events: none; text-align: center;
}
.chart-tip span { display: block; opacity: .75; font-size: 11px; }

/* ─── MÁS ────────────────────────────────────────────────────────────────── */
.profile { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.profile .avatar { width: 52px; height: 52px; font-size: 21px; background: rgba(255, 255, 255, .22); }
.profile strong { display: block; font-size: 16px; line-height: 1.2; }
.profile span { font-size: 13px; opacity: .88; }
.card h2 { font-size: 15px; font-weight: 700; }
.card .hint { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.card form { margin-top: 12px; }
.menu { padding: 0; overflow: hidden; }
.menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: none; border: 0; padding: 14px 16px;
}
.menu button + button { border-top: 1px solid var(--border); }
.menu button:disabled { opacity: .5; cursor: not-allowed; }
.menu .grow { flex: 1; }
.menu strong { display: block; font-size: 14px; font-weight: 600; }
.menu small { display: block; font-size: 12px; color: var(--muted); }
.menu .danger strong { color: var(--danger); }
.foot { text-align: center; font-size: 12px; color: var(--muted); margin-top: 24px; }

/* ─── NAV ────────────────────────────────────────────────────────────────── */
#nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 50;
  display: flex; background: var(--card); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .05);
}
#nav button {
  flex: 1; min-width: 0; height: var(--nav-h);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px;
  padding: 0 0 10px; background: none; border: 0; color: var(--muted);
  font-size: 11px; font-weight: 500;
}
#nav button[aria-current="page"] { color: var(--primary-strong); font-weight: 700; }
#nav .fab {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--cta); color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(194, 65, 12, .4); border: 3px solid var(--card);
  box-sizing: content-box;
}

/* ─── TOAST / DIALOG ─────────────────────────────────────────────────────── */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 36px);
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none; z-index: 60;
  background: var(--text); color: var(--card); padding: 10px 16px; border-radius: 12px;
  font-size: 13px; font-weight: 600; max-width: min(380px, calc(100vw - 40px)); text-align: center;
  transition: opacity .2s, transform .2s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

dialog {
  border: 1px solid var(--border); border-radius: 20px; padding: 22px;
  background: var(--card); color: var(--text); width: min(340px, calc(100vw - 40px));
}
dialog::backdrop { background: rgba(0, 0, 0, .45); }
dialog h2 { font-size: 17px; font-weight: 700; }
dialog p { font-size: 14px; color: var(--text-2); margin-top: 6px; }
.dialog-actions { display: flex; gap: 10px; margin-top: 18px; }
.dialog-actions > * { flex: 1; }

/* ─── v2.2: PULIDO VISUAL ────────────────────────────────────────────────── */
:root {
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, .04), 0 8px 22px -14px rgba(28, 25, 23, .18);
  --hero: linear-gradient(135deg, #9a3412 0%, #ea580c 55%, #fb923c 100%);
}
@media (prefers-color-scheme: dark) {
  :root { --shadow-sm: none; }
}

#app {
  background:
    radial-gradient(120% 300px at 50% -60px, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%) no-repeat,
    var(--bg);
}

.top-home { background: transparent; border-bottom: 0; padding-bottom: 2px; }
.top-home h1 { font-size: 24px; }

.hero { border-radius: 24px; }
.hero-head { display: flex; justify-content: space-between; align-items: center; }
.eye {
  width: 36px; height: 36px; border-radius: 50%; border: 0; margin: -6px -6px -6px 0;
  display: grid; place-items: center; background: rgba(255, 255, 255, .16); color: #fff;
}
.hero-amount { font-size: 38px; }
.hero-amount small { font-size: .55em; font-weight: 600; opacity: .9; }
.spark { width: calc(100% + 44px); height: 54px; margin: 14px -22px -22px; }

.masked .priv { filter: blur(8px); user-select: none; }
.masked .chart { filter: blur(9px); pointer-events: none; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.quick button {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: none; border: 0; padding: 4px 0; border-radius: 14px;
  font-size: 12px; font-weight: 600; color: var(--text-2);
}
.q-ic {
  width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--border); color: var(--primary-strong);
  box-shadow: var(--shadow-sm); transition: transform .12s;
}
.quick button:active .q-ic { transform: scale(.94); }
.quick button:first-child .q-ic { background: var(--cta); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(194, 65, 12, .3); }

.goal { display: flex; align-items: center; gap: 14px; }
.ring { width: 64px; height: 64px; }
.ring circle { fill: none; stroke-width: 7; }
.ring-bg { stroke: var(--neutral-soft); }
.ring-fg { stroke: var(--primary); stroke-linecap: round; }
.ring text { font-family: inherit; font-size: 15px; font-weight: 700; fill: var(--text); }
.goal strong { display: block; font-size: 14px; }
.goal span { display: block; font-size: 13px; color: var(--text-2); }
.goal small { font-size: 12px; color: var(--muted); }

.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.chart-card .chart-head h2 { margin: 0; }
.seg { display: flex; background: var(--neutral-soft); border-radius: 10px; padding: 3px; }
.seg button {
  min-height: 28px; padding: 4px 10px; border: 0; border-radius: 8px; background: none;
  font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.chart .c-end { fill: var(--primary); stroke: var(--card); stroke-width: 2; }

#nav {
  background: color-mix(in srgb, var(--card) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
}
#nav button { padding-bottom: 8px; }
.nav-ic { display: grid; place-items: center; padding: 3px 14px; border-radius: 999px; transition: background .2s; }
#nav button[aria-current="page"] .nav-ic { background: var(--primary-soft); }

.tx-list .tx { animation: fade-up .32s ease backwards; }
.tx-list .tx:nth-child(2) { animation-delay: 30ms; }
.tx-list .tx:nth-child(3) { animation-delay: 60ms; }
.tx-list .tx:nth-child(4) { animation-delay: 90ms; }
.tx-list .tx:nth-child(5) { animation-delay: 120ms; }
.tx-list .tx:nth-child(6) { animation-delay: 150ms; }
.tx-list .tx:nth-child(n+7) { animation-delay: 180ms; }

/* ─── v2.3: AVISOS, PERFIL Y PIN ─────────────────────────────────────────── */
.top-actions { display: flex; align-items: center; gap: 10px; }
button.avatar { border: 0; padding: 0; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--card); border: 1px solid var(--border);
  color: var(--text-2); box-shadow: var(--shadow-sm);
}
.badge { position: absolute; top: 9px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: #dc2626; border: 2px solid var(--card); }

.notif { display: flex; gap: 12px; padding: 14px; align-items: flex-start; }
.notif + .notif { border-top: 1px solid var(--border); }
.notif .grow { flex: 1; min-width: 0; }
.notif strong { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.notif small { display: block; font-size: 13px; color: var(--text-2); margin-top: 1px; }
.notif small + small { font-size: 12px; color: var(--muted); }
.notif .link { padding: 6px 0 0; }
.new { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

button.hero.profile { width: 100%; border: 0; text-align: left; color: #fff; }
.profile .grow { flex: 1; min-width: 0; }
.profile .grow strong, .profile .grow span { display: block; }

.me { text-align: center; padding: 24px 16px 20px; }
.me h2 { font-size: 19px; margin-top: 12px; line-height: 1.25; }
.me p { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.avatar.xl { width: 76px; height: 76px; font-size: 28px; margin: 0 auto; }
.menu button > svg:last-child { color: var(--muted); }
.about p { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.about p + p { margin-top: 10px; }
.about strong { color: var(--text); font-size: 15px; }

.switch { width: 46px; height: 28px; border-radius: 999px; background: var(--border); padding: 3px; flex-shrink: 0; transition: background .2s; }
.switch i { display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
[aria-checked="true"] .switch { background: var(--primary); }
[aria-checked="true"] .switch i { transform: translateX(18px); }

.pad-screen {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) 28px calc(env(safe-area-inset-bottom, 0px) + 24px);
  text-align: center;
}
#screen:has(.pad-screen) { padding-bottom: 0; }
.pad-screen .back { align-self: flex-start; margin: 0 0 0 -4px; }
.pad-ic { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: var(--cta); color: #fff; margin-top: 7vh; box-shadow: 0 8px 20px rgba(194, 65, 12, .3); }
.pad-screen h1 { font-size: 22px; font-weight: 700; margin-top: 18px; }
.pad-sub { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.dots { display: flex; gap: 16px; margin: 26px 0 10px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); transition: background .12s, border-color .12s; }
.dots i.on { background: var(--primary); border-color: var(--primary); }
.dots.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pad-screen .error { min-height: 18px; display: block; margin: 0; }
.keys { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px 26px; margin: 18px 0 20px; }
.key {
  width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--border); background: var(--card);
  font-size: 26px; font-weight: 600; display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: transform .08s, background .12s;
}
.key:active { transform: scale(.94); background: var(--primary-soft); }
.key.ghost { background: none; border-color: transparent; box-shadow: none; color: var(--text-2); }
