/* SunLedger — светлая тема в тёплых «солнечных» тонах: кремовые карточки, золотой градиент, тонкая типографика. */
:root {
  color-scheme: light;
  --gold: #e9a21c;
  --gold-deep: #c98500;
  --gold-soft: #f6d98a;
  --bg-base: #ecebe6;
  --panel: rgba(236, 236, 232, 0.94);
  --card-top: rgba(255, 252, 240, 0.96);
  --card-bot: rgba(250, 238, 198, 0.92);
  --glass: rgba(255, 255, 255, 0.62);
  --surface: #fbf4dc;
  --surface-2: rgba(60, 50, 20, 0.055);
  --ink: #2a2926;
  --ink-2: #66655e;
  --ink-3: #98968c;
  --line: rgba(70, 55, 20, 0.11);
  --line-strong: rgba(70, 55, 20, 0.22);
  --primary: #45443f;
  --on-primary: #ffffff;
  --focus: #3b73c9;
  --imp: #3b73c9; /* взято из сети */
  --exp: #e9a21c; /* отдано в сеть */
  --bank: #2f9e78; /* зачтено / остаток */
  --tan: #b9a58a;
  --good: #1f7a56;
  --good-bg: rgba(47, 158, 120, 0.14);
  --warn: #8a5a00;
  --warn-bg: rgba(233, 162, 28, 0.2);
  --bad: #b3261e;
  --bad-bg: rgba(179, 38, 30, 0.1);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 10px 30px rgba(140, 100, 20, 0.09);
  --r: 24px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg-base); }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 15px/1.45 var(--font); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, #f1c35d 0, #f4dc9c 230px, #efe7cf 430px, var(--bg-base) 720px) no-repeat, var(--bg-base);
  background-size: 100% 760px, auto;
}
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.sec { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.right { text-align: right; }
.hide { display: none !important; }

/* ── каркас ── */
.shell { padding: 10px 10px calc(92px + var(--safe-b)); min-height: 100vh; }
.panel { max-width: 1240px; margin: 0 auto; background: var(--panel); border-radius: 30px; padding: 14px 14px 26px; box-shadow: 0 20px 60px rgba(120, 80, 10, 0.12); backdrop-filter: blur(14px); }
.topnav { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 2px 4px 10px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 500; letter-spacing: -0.01em; font-size: 18px; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: var(--gold-deep); }
.brand-mark svg { width: 28px; height: 28px; }
.pillnav { display: none; }
.topright { display: flex; align-items: center; gap: 10px; }
.topright .who { display: none; color: var(--ink-3); font-size: 13px; }
.topright .cta { display: none; }
.main { padding: 4px 4px 0; }
.tabbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px; background: rgba(250, 244, 222, 0.88); backdrop-filter: blur(18px); border-radius: 28px;
  box-shadow: 0 10px 40px rgba(110, 80, 10, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border-radius: 20px; color: var(--ink-3); text-decoration: none; font-size: 11px; font-weight: 500; min-height: 50px; }
.tab svg { width: 23px; height: 23px; }
.tab[aria-current='page'] { color: var(--ink); background: rgba(255, 255, 255, 0.7); }
.tab.add .plus { background: var(--primary); color: #fff; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-top: -22px; box-shadow: 0 8px 20px rgba(60, 50, 30, 0.35); border: 3px solid rgba(250, 244, 222, 1); }
.tab.add[aria-current='page'] { background: transparent; }

@media (min-width: 900px) {
  .shell { padding: 26px 26px 40px; }
  .panel { padding: 18px 26px 34px; }
  .topnav { padding: 4px 0 18px; }
  .pillnav { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(60, 50, 20, 0.07); }
  .pillnav a { padding: 8px 18px; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 500; color: var(--ink-2); }
  .pillnav a:hover { color: var(--ink); }
  .pillnav a[aria-current='page'] { background: rgba(255, 255, 255, 0.85); color: var(--ink); box-shadow: 0 1px 3px rgba(60, 50, 20, 0.12); }
  .topright .who, .topright .cta { display: inline-flex; }
  .tabbar { display: none; }
  .main { padding: 0; }
}

/* ── базовые компоненты ── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 6px 0 18px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(30px, 5.5vw, 44px); font-weight: 300; letter-spacing: -0.025em; line-height: 1.08; }
.page-head .sub { color: var(--ink-2); margin-top: 6px; font-size: 14px; }
.card {
  background: linear-gradient(180deg, var(--card-top), var(--card-bot)); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.65);
}
.card.glass { background: var(--glass); backdrop-filter: blur(8px); }
.card + .card, .stack > * + * { margin-top: 14px; }
.card h2 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.card .card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: 1fr; }
.grid.three { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.grid > .card { margin-top: 0 !important; }
.stack > *, .grid > *, .step { min-width: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.6); font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; font-size: 14px;
}
.btn:hover { background: rgba(255, 255, 255, 0.9); }
.btn svg { width: 18px; height: 18px; }
.btn.primary, .btn.dark { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.btn.primary:hover, .btn.dark:hover { background: #33322e; }
.btn.danger { color: var(--bad); border-color: rgba(179, 38, 30, 0.3); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.6); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.icon-btn { width: 40px; height: 40px; padding: 0; min-height: 0; }

.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-3); }
.input, select.input {
  width: 100%; min-height: 48px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.72);
  font-size: 17px; appearance: none; -webkit-appearance: none;
}
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.input:focus { border-color: var(--focus); outline: 3px solid rgba(59, 115, 201, 0.25); outline-offset: 0; background: #fff; }
.input.invalid { border-color: var(--bad); }
.input-wrap { position: relative; }
.input-wrap .unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 13px; pointer-events: none; }
.input-wrap .input { padding-right: 56px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.fields { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields.sel { grid-template-columns: 1fr; } }

.seg { display: inline-flex; padding: 4px; gap: 2px; background: rgba(60, 50, 20, 0.07); border-radius: 999px; }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 500; font-size: 13px; color: var(--ink-2); cursor: pointer; min-height: 36px; }
.seg button[aria-pressed='true'] { background: rgba(255, 255, 255, 0.9); color: var(--ink); box-shadow: 0 1px 3px rgba(60, 50, 20, 0.15); }
.seg.full { display: flex; } .seg.full button { flex: 1; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.imp { background: var(--imp); } .dot.exp { background: var(--exp); } .dot.bank { background: var(--bank); } .dot.tan { background: var(--tan); }

.notice { display: flex; gap: 10px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.55); color: var(--ink-2); font-size: 14px; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.notice.good { background: var(--good-bg); color: var(--good); }

/* ── сводка ── */
.dash { display: grid; gap: 14px; }
.hero-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: stretch; } }
.hero-left { position: relative; padding: 6px 4px 0; display: flex; flex-direction: column; }
.hero-left .kicker { font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.hero-title { font-size: clamp(28px, 4.6vw, 40px); font-weight: 300; letter-spacing: -0.025em; line-height: 1.1; margin-top: 4px; }
.hero-amount { font-size: clamp(54px, 13vw, 84px); font-weight: 200; letter-spacing: -0.045em; line-height: 1; margin: 12px 0 2px; }
.hero-amount small { font-size: 0.3em; font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-left: 8px; }
.hero-sub { color: var(--ink-2); font-size: 14px; max-width: 360px; }
.house { position: relative; margin: 6px -14px -46px; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 97%); mask-image: linear-gradient(180deg, #000 52%, transparent 97%); }
.house svg { width: 100%; height: auto; display: block; }
.hero-left .chips { margin-top: auto; position: relative; z-index: 2; padding-top: 6px; }
.period-nav { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(60, 50, 20, 0.07); }
.period-nav .label-now { min-width: 140px; text-align: center; font-weight: 500; font-size: 14px; text-transform: capitalize; }
.period-nav .btn.icon-btn { width: 34px; height: 34px; }
.statbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stat .k { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 26px; font-weight: 300; letter-spacing: -0.03em; margin-top: 2px; }
.stat .v small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.stat .s { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
@media (min-width: 760px) { .stat .v { font-size: 32px; } }
.statbar .stat { padding: 0 6px 0 0; }
.chart-card { display: flex; flex-direction: column; gap: 10px; }

.gauge { text-align: center; }
.gauge svg { width: 100%; max-width: 250px; height: auto; display: block; margin: 8px auto 0; overflow: visible; }
.gauge .g-big { font-size: 25px; font-weight: 300; letter-spacing: -0.02em; fill: var(--ink); }
.gauge .g-sub { font-size: 10.5px; fill: var(--ink-3); }
.gauge-title { display: flex; align-items: center; gap: 10px; text-align: left; }
.gauge-title .gt { font-size: 17px; font-weight: 500; }
.gauge-title .gs { font-size: 12px; color: var(--ink-3); }
.mini-icon { width: 34px; height: 34px; border-radius: 12px; background: rgba(255, 255, 255, 0.7); display: grid; place-items: center; color: var(--gold-deep); flex: none; }
.mini-icon svg { width: 20px; height: 20px; }
.legend-list { display: grid; gap: 7px; margin-top: 12px; font-size: 13px; text-align: left; }
.legend-list div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.legend-list span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }

.meta-list { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.meta-list > div { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: 14px; }
.meta-list b { color: var(--ink); font-weight: 600; }

.zone-row + .zone-row { margin-top: 16px; }
.zone-row .zhead { display: flex; justify-content: space-between; gap: 8px; font-weight: 500; margin-bottom: 6px; flex-wrap: wrap; }
.flow { display: flex; height: 16px; gap: 3px; border-radius: 999px; overflow: hidden; background: rgba(60, 50, 20, 0.08); }
.flow > i { display: block; height: 100%; min-width: 0; border-radius: 999px; }
.flow .covered { background: var(--bank); } .flow .billed { background: var(--imp); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.progress { height: 8px; border-radius: 999px; background: rgba(60, 50, 20, 0.09); overflow: hidden; margin-top: 8px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); border-radius: 999px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); font-weight: 600; padding: 8px 8px; border-bottom: 1px solid var(--line-strong); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; } .tbl th.r { text-align: right; }
.tbl tr.total td { font-weight: 700; border-top: 2px solid var(--line-strong); }
.tbl tr.sub td { font-weight: 600; background: rgba(255, 255, 255, 0.5); }
.tbl-wrap { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }

details.card > summary { cursor: pointer; font-weight: 500; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 28px; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: '＋'; color: var(--ink-3); }
details.card[open] > summary::after { content: '－'; }
details.card[open] > summary { margin-bottom: 14px; }

/* ── графики ── */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .axis-t { fill: var(--ink-3); font-size: 11px; }
.chart .tip { position: absolute; pointer-events: none; z-index: 5; background: #24231f; color: #fff; border-radius: 12px; padding: 8px 12px; font-size: 12.5px; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25); white-space: nowrap; transform: translate(-50%, -100%); }
.chart .tip b { display: block; margin-bottom: 3px; font-weight: 600; }
.chart .tip div { display: flex; align-items: center; gap: 6px; }
.chart-empty { padding: 30px 12px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-strong); border-radius: 18px; }

/* ── журнал ── */
.rlist { display: grid; gap: 10px; }
.ritem { display: grid; gap: 8px; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.62); }
.ritem .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ritem .date { font-weight: 500; font-size: 17px; }
.ritem .vals { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 14px; }
.ritem .vals .k { color: var(--ink-3); font-size: 12px; }
.ritem .delta { color: var(--ink-2); font-size: 13px; }
.pitem { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.62); cursor: pointer; }
.pitem:hover { background: rgba(255, 255, 255, 0.9); }
.pitem .name { font-weight: 500; text-transform: capitalize; font-size: 17px; }
.pitem .amt { font-weight: 300; font-size: 24px; letter-spacing: -0.02em; text-align: right; }
.pitem .det { color: var(--ink-2); font-size: 13px; }

/* ── шаги расчёта ── */
.steps { display: grid; gap: 0; counter-reset: s; min-width: 0; }
.step { position: relative; padding: 0 0 18px 44px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.step::after { content: ''; position: absolute; left: 13px; top: 32px; bottom: 4px; width: 2px; background: var(--line-strong); }
.step:last-child { padding-bottom: 0; } .step:last-child::after { display: none; }
.step h3 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.step .why { color: var(--ink-2); font-size: 14px; margin-bottom: 8px; }
.formula { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: rgba(255, 255, 255, 0.6); border-radius: 14px; padding: 10px 12px; margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.formula b { color: var(--ink); }

/* ── вход ── */
.auth { min-height: 100dvh; display: grid; place-items: start center; padding: clamp(28px, 10vh, 120px) 20px 20px; position: relative; overflow: hidden; }
.auth-card { width: 100%; max-width: 430px; position: relative; z-index: 2; padding: 26px; background: rgba(250, 247, 232, 0.9); backdrop-filter: blur(16px); }
.auth-card .brand { justify-content: center; margin-bottom: 8px; font-size: 24px; font-weight: 400; }
.auth-card .brand-mark svg { width: 34px; height: 34px; }
.auth-card .lead { text-align: center; color: var(--ink-2); margin: 0 0 20px; font-size: 14px; }
.auth .house { position: absolute; left: 50%; margin: 0; width: min(760px, 125vw); transform: translateX(-50%); bottom: -6px; opacity: 0.9; z-index: 1; }

/* ── тост, диалог ── */
.toasts { position: fixed; left: 0; right: 0; top: 14px; z-index: 100; display: grid; gap: 8px; justify-items: center; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; background: var(--primary); color: var(--on-primary); padding: 12px 20px; border-radius: 999px; font-weight: 500; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.25); max-width: 480px; animation: pop 0.18s ease-out; font-size: 14px; }
.toast.bad { background: var(--bad); color: #fff; }
@keyframes pop { from { transform: translateY(-8px); opacity: 0; } }
dialog { border: 0; padding: 0; border-radius: 28px; background: #faf5e1; color: var(--ink); width: min(540px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); box-shadow: 0 24px 80px rgba(60, 40, 0, 0.35); }
dialog::backdrop { background: rgba(60, 45, 10, 0.4); backdrop-filter: blur(3px); }
.dlg { padding: 24px; display: grid; gap: 16px; }
.dlg h2 { font-size: 21px; font-weight: 400; letter-spacing: -0.01em; }
.dlg .actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ── ввод показаний ── */
.live { position: sticky; bottom: calc(92px + var(--safe-b)); z-index: 10; }
@media (min-width: 900px) { .live { bottom: 16px; } }
.live-card { background: var(--primary); color: var(--on-primary); border-radius: 26px; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 14px 44px rgba(50, 40, 20, 0.35); }
.live-card .a { font-size: 28px; font-weight: 300; letter-spacing: -0.03em; }
.live-card .t { font-size: 12px; opacity: 0.75; }
.live-card .d { font-size: 13px; text-align: right; opacity: 0.9; }
.group-title { display: flex; align-items: center; gap: 8px; font-weight: 500; margin-bottom: 6px; flex-wrap: wrap; }
.group-title small { color: var(--ink-3); font-weight: 400; flex-basis: 100%; padding-left: 18px; margin-top: -4px; font-size: 12px; }
.prev { font-size: 12px; color: var(--ink-3); }

.settings-item { display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.55); }
.settings-item .fields { grid-template-columns: repeat(2, 1fr); }
.savebar { position: sticky; bottom: calc(92px + var(--safe-b)); z-index: 10; margin-top: 16px; display: flex; gap: 10px; justify-content: flex-end; padding: 10px; border-radius: 999px; background: rgba(250, 244, 222, 0.92); backdrop-filter: blur(12px); box-shadow: 0 10px 34px rgba(80, 60, 10, 0.2); }
@media (min-width: 900px) { .savebar { bottom: 16px; } }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { width: 22px; height: 22px; accent-color: var(--primary); flex: none; }
.empty { text-align: center; padding: 40px 16px; }
.empty h2 { font-size: 22px; font-weight: 300; margin-bottom: 6px; }
.empty p { color: var(--ink-2); max-width: 440px; margin: 0 auto 16px; }
.skeleton { height: 120px; border-radius: var(--r); background: linear-gradient(90deg, rgba(255,255,255,.3), rgba(255,255,255,.7), rgba(255,255,255,.3)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.steps-onb { display: grid; gap: 10px; }
.onb { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.55); }
.onb .n { width: 34px; height: 34px; border-radius: 50%; background: rgba(60, 50, 20, 0.08); display: grid; place-items: center; font-weight: 600; }
.onb.done .n { background: var(--good-bg); color: var(--good); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
