:root {
  --bg: #0a0d0c;
  --bg-glow: #0f2a20;
  --card: #161a18;
  --card-2: #1d2220;
  --card-3: #252b28;
  --line: #262c29;
  --text: #f1f5f2;
  --muted: #8b958f;
  --faint: #5d6661;
  --accent: #2ee86b;
  --accent-2: #20c75a;
  --accent-ink: #04210e;
  --accent-soft: rgba(46, 232, 107, .12);
  --red: #ff6b6b;
  --amber: #ffc24b;
  --radius: 22px;
  --radius-sm: 14px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
:root[data-accent="lime"] { --accent: #b5f23d; --accent-2: #9ad627; --accent-ink: #1a2500; --accent-soft: rgba(181, 242, 61, .13); --bg-glow: #1d2a0c; }
:root[data-accent="pink"] { --accent: #ff4fa3; --accent-2: #ff2d8f; --accent-ink: #2a0016; --accent-soft: rgba(255, 79, 163, .14); --bg-glow: #2a0c1c; }
:root[data-accent="violet"] { --accent: #a96bff; --accent-2: #9150ff; --accent-ink: #17052e; --accent-soft: rgba(169, 107, 255, .15); --bg-glow: #1c0f2e; }
:root[data-accent="mint"] { --accent: #3ef2c0; --accent-2: #22d3a3; --accent-ink: #03231a; --accent-soft: rgba(62, 242, 192, .12); --bg-glow: #0c2a25; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
/* Без «потягни вниз — оновити»: поводиться як застосунок, а не сторінка браузера */
html { overscroll-behavior-y: none; }
body {
  background: var(--bg);
  background-image: radial-gradient(120% 55% at 50% -12%, var(--bg-glow) 0%, rgba(10, 13, 12, 0) 62%);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--accent); text-decoration: none; }
.ic { flex: none; display: block; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.pos { color: var(--accent); }
.neg { color: var(--text); }
.red { color: var(--red); }
.hidden-money .money { filter: blur(9px); transition: filter .2s; }
.small { font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.center { text-align: center; }
.mt { margin-top: 16px; } .mt-s { margin-top: 8px; } .mb { margin-bottom: 16px; }

#app { max-width: 480px; margin: 0 auto; min-height: 100%; padding: calc(var(--safe-t) + 14px) 16px calc(var(--nav-h) + 40px + var(--safe-b)); }
#app.no-nav { padding-bottom: 40px; }

/* ---------- Header ---------- */
.top { display: flex; align-items: center; gap: 12px; margin: 4px 2px 18px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--accent-ink);
  background: linear-gradient(140deg, var(--accent), #0f7a3a); }
.top h1 { font-size: 17px; margin: 0; font-weight: 600; }
.top .sub { font-size: 12.5px; color: var(--muted); }
.top h1.date-title { font-size: 20px; font-weight: 700; }
.top h1.date-title::first-letter { text-transform: uppercase; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: transparent; }
.icon-btn:active { background: var(--card-2); }
.icon-btn.filled { background: var(--card); }
.icon-btn:disabled { opacity: .25; }
.period-nav { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 0; }
.period-nav .pl { font-weight: 600; font-size: 15px; padding: 6px 10px; border-radius: 10px; }
.page-head { display: flex; align-items: center; gap: 8px; margin: 2px 0 18px; }
.page-head h2 { flex: 1; text-align: center; margin: 0; font-size: 18px; font-weight: 600; }
.page-head .spacer { width: 40px; }
.dot-badge { position: relative; }
.dot-badge::after { content: ''; position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card + .card { margin-top: 12px; }
.balance-card { position: relative; overflow: hidden; padding: 20px 20px 16px;
  background: linear-gradient(160deg, #1a201d 0%, #141816 100%); }
.balance-card .label { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.balance-card .big { font-size: 36px; font-weight: 700; margin: 4px 0 4px; letter-spacing: -.02em; }
.balance-card .chg { font-size: 13px; display: flex; align-items: center; gap: 4px; }
.balance-card .plus-fab { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 6px 22px -6px var(--accent); }
.spark { display: block; width: calc(100% + 40px); margin: 8px -20px 10px; height: 70px; }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-dark { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 14px; background: #222826;
  border: 1px solid #2d3430; font-weight: 600; font-size: 13.5px; letter-spacing: .02em; text-transform: uppercase; }
.btn-dark .ring { width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid var(--accent); display: grid; place-items: center; color: var(--accent); }
.btn-dark:active { background: #2a312e; }

.purpose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.purpose { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; }
.purpose .pi { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.purpose .pl { font-size: 11.5px; color: var(--muted); }
.purpose .pv { font-weight: 650; font-size: 15px; }

.section-title { display: flex; align-items: center; justify-content: space-between; margin: 24px 2px 12px; }
.section-title h3 { margin: 0; font-size: 17px; font-weight: 600; }
.section-title .link { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 2px; }

/* accounts carousel */
.hscroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.acc-tile { scroll-snap-align: center; flex: none; width: 128px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 10px; text-align: center; }
/* Коли плиток мало — ряд по центру; коли багато — звичайне гортання */
.hscroll > :first-child { margin-left: auto; }
.hscroll > :last-child { margin-right: auto; }
.acc-tile .ring { width: 40px; height: 40px; border-radius: 50%; border: 1.8px solid var(--c, var(--accent)); color: var(--c, var(--accent)); display: grid; place-items: center; margin: 0 auto 14px; }
.acc-tile .v { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-tile .n { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-tile.add { display: grid; place-items: center; color: var(--muted); border-style: dashed; }

/* lists */
.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; width: 100%; text-align: left; }
.item:active { background: var(--card-2); }
.item .t { font-weight: 600; font-size: 15px; }
.item .s { font-size: 12px; color: var(--muted); margin-top: 1px; }
.item .amt { font-weight: 700; font-size: 15.5px; text-align: right; white-space: nowrap; }
.item .amt small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.cat-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; position: relative;
  background: color-mix(in srgb, var(--c, #888) 18%, #151917); color: var(--c, #888); }
.cat-ic.solid { background: var(--c); color: #fff; }
.cat-ic .multi { position: absolute; bottom: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 4px; font-size: 10.5px; font-weight: 700;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; border: 2px solid var(--card); }
.day-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; margin: 14px 4px 2px; }
.day-head span:first-child::first-letter { text-transform: uppercase; }
.split-bar { display: flex; height: 4px; border-radius: 2px; overflow: hidden; margin-top: 6px; gap: 2px; }
.split-bar i { display: block; height: 100%; border-radius: 2px; }
.empty { text-align: center; color: var(--muted); padding: 30px 12px; }
.empty .ic { margin: 0 auto 10px; color: var(--faint); }

/* ---------- Bottom nav (floating green pill) ---------- */
.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-b)); z-index: 30;
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 40px; background: var(--accent);
  box-shadow: 0 12px 40px -10px color-mix(in srgb, var(--accent) 70%, transparent), 0 4px 18px rgba(0,0,0,.5);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .22s ease; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
/* Поки відкрита клавіатура — панель плавно ховається вниз, після введення повертається */
body.typing .nav { transform: translate(-50%, calc(100% + 40px)); opacity: 0; pointer-events: none; }
.nav a { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: var(--accent-ink); opacity: .78; }
.nav a.active { opacity: 1; background: rgba(0,0,0,.14); }
.nav a.add { background: var(--accent-ink); color: var(--accent); opacity: 1; width: 54px; height: 54px; }

/* ---------- Segments, chips, tabs ---------- */
.seg { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px; gap: 4px; }
.seg button { flex: 1; height: 40px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 14px; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.seg.small button { height: 34px; font-size: 13px; }
.tabs { display: flex; gap: 6px; }
.tabs button { flex: 1; height: 34px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.tabs button.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 8px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); font-size: 13.5px; white-space: nowrap; }
.chip .dot { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: var(--card-3); color: var(--c, var(--accent)); }
.chip.on { border-color: var(--accent); background: var(--accent-soft); }
.chip.plain { padding: 0 14px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 600; background: var(--card-3); color: var(--muted); }
.pill.good { background: var(--accent-soft); color: var(--accent); }
.pill.bad { background: rgba(255,107,107,.13); color: var(--red); }
.pill.warn { background: rgba(255,194,75,.13); color: var(--amber); }

/* ---------- Stats ---------- */
.total-box { margin: 18px 4px 6px; }
.total-box .l { color: var(--muted); font-size: 13.5px; }
.total-box .v { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.donut-wrap { position: relative; width: 100%; max-width: 330px; margin: 6px auto 4px; aspect-ratio: 1; }
.donut-wrap svg { width: 100%; height: 100%; overflow: visible; }
.donut-wrap .seg-arc { cursor: pointer; transition: opacity .2s, stroke-width .2s; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-center .cat-ic { margin: 0 auto 6px; }
.donut-center .n { font-size: 14px; color: var(--muted); }
.donut-center .v { font-size: 22px; font-weight: 700; }
.donut-center .p { font-size: 12.5px; color: var(--muted); }
.bars { width: 100%; height: 210px; display: block; }
.pct-bar { height: 4px; background: var(--card-3); border-radius: 2px; margin-top: 7px; overflow: hidden; }
.pct-bar i { display: block; height: 100%; border-radius: 2px; }

/* ---------- Forms ---------- */
label.f { display: block; margin-top: 14px; }
label.f > span { display: block; font-size: 12.5px; color: var(--muted); margin: 0 4px 6px; }
.input, select.input, textarea.input { width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2); padding: 0 14px; outline: none; }
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--accent); }
.amount-row { display: flex; align-items: center; gap: 10px; background: var(--card-2); border: 1px solid var(--line); border-radius: 18px; padding: 10px 10px 10px 18px; margin-top: 14px; }
.amount-row:focus-within { border-color: var(--accent); }
.amount-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.cur-btn { height: 44px; padding: 0 12px; border-radius: 13px; background: var(--card-3); font-weight: 700; display: flex; align-items: center; gap: 4px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 8px 6px 0; min-height: 1em; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; border-radius: 16px; font-weight: 700; font-size: 15.5px;
  background: var(--accent); color: var(--accent-ink); }
.btn:active { filter: brightness(.92); }
.btn:disabled { opacity: .5; }
.btn.ghost { background: var(--card-2); color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: rgba(255,107,107,.12); color: var(--red); }
.btn.sm { height: 40px; font-size: 13.5px; border-radius: 12px; width: auto; padding: 0 14px; }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; margin-top: 10px; }
.cat-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.15; }
.cat-cell .cat-ic { width: 52px; height: 52px; border-radius: 17px; border: 2px solid transparent; }
.cat-cell.on .cat-ic { border-color: var(--c); background: var(--c); color: #fff; }
.cat-cell.on { color: var(--text); }
.split-row { display: flex; align-items: center; gap: 8px; background: var(--card-2); border: 1px solid var(--line); border-radius: 16px; padding: 8px; margin-top: 8px; }
.split-row .cat-ic { width: 38px; height: 38px; border-radius: 12px; }
.split-row input { width: 92px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-3); text-align: right; padding: 0 10px; font-weight: 700; outline: 0; }
.split-row .nm { flex: 1; min-width: 0; font-size: 13.5px; }
.split-row .nm small { display: block; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.tool { display: flex; align-items: center; gap: 8px; justify-content: center; height: 46px; border-radius: 14px; background: var(--card-2); border: 1px dashed #36403b; color: var(--text); font-size: 13.5px; font-weight: 600; }
.tool .ic { color: var(--accent); }
.quick { display: flex; gap: 8px; align-items: center; background: var(--card-2); border: 1px solid var(--line); border-radius: 16px; padding: 6px 6px 6px 14px; }
.quick input { flex: 1; border: 0; outline: 0; background: transparent; height: 36px; min-width: 0; }
.quick button { width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.toggle { position: relative; width: 46px; height: 28px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle span { position: absolute; inset: 0; border-radius: 14px; background: var(--card-3); transition: .2s; }
.toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #cfd6d2; transition: .2s; }
.toggle input:checked + span { background: var(--accent); }
.toggle input:checked + span::after { transform: translateX(18px); background: var(--accent-ink); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; background: var(--c); border: 3px solid transparent; }
.swatch.on { border-color: #fff; }
.icon-pick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.icon-pick button { aspect-ratio: 1; border-radius: 12px; background: var(--card-2); display: grid; place-items: center; color: var(--muted); }
.icon-pick button.on { background: var(--accent); color: var(--accent-ink); }

/* ---------- Sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s; backdrop-filter: blur(2px); }
.sheet { position: absolute; left: 50%; bottom: 0; width: 100%; max-width: 480px; max-height: 92vh; transform: translate(-50%, 100%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
  background: #121614; border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0; display: flex; flex-direction: column; }
.sheet.full { height: 94vh; max-height: 94vh; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-wrap.open .sheet { transform: translate(-50%, 0); }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: #3a423e; margin: 9px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; padding: 6px 10px 4px 20px; flex: none; }
.sheet-head h3 { flex: 1; margin: 0; font-size: 17px; }
.sheet-body { overflow-y: auto; padding: 6px 16px calc(24px + var(--safe-b)); -webkit-overflow-scrolling: touch; }
.sheet-foot { padding: 10px 16px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); flex: none; }

/* ---------- Toast ---------- */
.toast-box { position: fixed; top: calc(12px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { background: #202623; border: 1px solid #2f3733; border-radius: 16px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  animation: tin .25s ease; pointer-events: auto; font-size: 14px; }
.toast .ic { color: var(--accent); }
.toast.err .ic { color: var(--red); }
.toast button { margin-left: auto; color: var(--accent); font-weight: 700; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Settings list ---------- */
.menu { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.menu + .menu { margin-top: 12px; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; width: 100%; text-align: left; border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item:active { background: var(--card-2); }
.menu-item .mi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--card-3); color: var(--accent); flex: none; }
.menu-item .grow b { font-weight: 600; display: block; }
.menu-item .grow small { color: var(--muted); font-size: 12px; }
.menu-item > .ic:last-child { color: var(--faint); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
.svc { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); text-align: center; }
.svc .sq { width: 58px; height: 58px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.insight { display: flex; gap: 12px; align-items: flex-start; }
.insight .cat-ic { width: 38px; height: 38px; }
.insight b { display: block; margin-bottom: 2px; }
.code-box { font: 700 30px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .18em; text-align: center; padding: 18px; border-radius: 18px; background: var(--card-2); border: 1px dashed var(--accent); color: var(--accent); }
.advice { white-space: pre-wrap; line-height: 1.55; }
.progress { height: 6px; background: var(--card-3); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--accent); }

/* ---------- Auth ---------- */
.auth { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; }
.link-btn { display: block; margin: 16px auto 0; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.logo { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.logo .mark { width: 52px; height: 52px; border-radius: 17px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 10px 40px -10px var(--accent); }
.logo h1 { margin: 0; font-size: 26px; }
.auth .hero { font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 8px; }
.loader { display: grid; place-items: center; min-height: 60vh; color: var(--muted); }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--card-3); border-top-color: var(--accent); animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

@media (min-width: 560px) {
  body { padding-top: 12px; }
}
.lang-switch { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 7px 10px; z-index: 5; font-size: 13px; color: var(--muted); cursor: pointer; }
.lang-switch b { color: var(--text); font-weight: 700; }
.lang-switch select { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font-size: 16px; }
.acc-tile .ring { position: relative; }
.acc-tile .ring .multi { position: absolute; bottom: -4px; right: -6px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 4px; font-size: 10.5px; font-weight: 700; background: var(--c, var(--accent)); color: #0b0f0c; display: grid; place-items: center; }
.sub-chips { margin-top: 8px !important; padding-left: 28px !important; border-left: 2px solid var(--line); }
.accent-pick { display: flex; justify-content: space-between; gap: 4px; }
.accent-pick button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; border-radius: 14px; color: var(--muted); }
.accent-pick i { width: 36px; height: 36px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--card), 0 0 0 4px transparent; }
.accent-pick button.on i { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--c); }
.accent-pick button.on { color: var(--text); }
.accent-pick small { font-size: 11px; }
.guest-banner { width: 100%; padding: 12px 14px; margin-bottom: 12px; color: inherit; border-color: var(--amber); }
.or-line { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--muted); font-size: 13px; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Сторінка входу: коротко про застосунок для новачків */
.pitch { display: grid; gap: 10px; margin: 0 0 18px; }
.pitch .row { gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; line-height: 1.4; }
.pitch .row svg { flex: none; color: var(--accent); margin-top: 1px; }

/* Головна сума: підпис з галочкою відкриває список (невидимий select поверх підпису) */
.main-switch { position: relative; cursor: pointer; padding: 4px 0; width: fit-content; }
.main-switch svg { opacity: .8; }
.main-switch select { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font-size: 16px; }
