/* Запас — приложение клиента: общие стили оболочки и набора элементов (ui/kit.js). Каркас этапа 1
   (docs/SKELETON.md). Стили экранов — в /screens.css, /css/map.css и /css/more.css; здесь только общее.
   Цвета, шрифт и тёмная тема — только из /shared/tokens.css; фирменные элементы — /shared/ui.css.
   Телефон в первую очередь (390 px): человек стоит у станции. С 900 px — шапка сверху и та же колонка по центру;
   экран с full: true (routes.js) занимает всю область между шапкой и нижним меню. */

:root {
  --badge: #E5484D;
  --hdr: 0px;                                          /* высота шапки ПК */
  --tabbar: calc(64px + env(safe-area-inset-bottom));  /* высота нижнего меню телефона */
  --fab-rise: 26px;                                    /* на сколько круглая кнопка «Сканер» выступает над меню */
  --col: 560px;                                        /* ширина колонки содержимого */
}
@media (min-width: 900px) { :root { --hdr: 64px; --tabbar: 0px; --fab-rise: 0px; } }

html { scroll-padding-top: calc(var(--hdr) + 64px); }
html.no-scroll { overflow: hidden; }
body { min-height: 100dvh; overflow-x: hidden; }
#app { min-height: 100dvh; }

/* ───────── типографика и утилиты ───────── */
.h1 { font-size: 30px; letter-spacing: -.025em; }
.h2 { font-size: 24px; letter-spacing: -.02em; }
.h3 { font-size: 19px; letter-spacing: -.01em; }
.h4 { font-size: 16px; }
.muted { color: var(--muted); }
.sm { font-size: var(--fs-sm); }
.block { display: block; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grow { flex: 1 1 auto; }
.min0 { min-width: 0; }
.row { display: flex; align-items: center; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; }
.center { text-align: center; justify-content: center; }
.center-col { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.stack { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.ok-t { color: var(--ok); }
.accent-t { color: var(--accent-ink); }
.brand-t { color: var(--primary-ink); }
.urgent-t { color: var(--urgent); }
.danger-t { color: var(--danger); }
.err { color: var(--danger); font-size: 14px; }
.link { color: var(--primary-ink); background: none; border: 0; padding: 0; font-weight: 600; cursor: pointer; min-height: 32px; }
.link:disabled { color: var(--muted); cursor: default; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.d-only, .d-inline { display: none !important; }
.m-only { display: flex; }
@media (min-width: 900px) { .d-only { display: inline-flex !important; } .d-inline { display: inline !important; } .m-only { display: none !important; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--surface); padding: 10px 14px; border-radius: 10px; box-shadow: var(--sh-2); }
.skip:focus { left: 12px; }

/* ───────── раскладка ───────── */
.main { padding-bottom: calc(var(--tabbar) + var(--fab-rise) + 12px); outline: none; }
.app.bare { --tabbar: 0px; --fab-rise: 0px; }   /* экран без нижнего меню */
/* колонка содержимого: на телефоне — во всю ширину с полями, на ПК — по центру */
.pad { padding-inline: 16px; max-width: calc(var(--col) + 32px); margin-inline: auto; }
.pad.wide { max-width: 1100px; }
@media (min-width: 900px) { .main { padding-bottom: 56px; } }
.page { min-height: 40vh; }
.route { animation: page-in .26s var(--ease) both; }
/* экран во всю область (full: true): карта, камера. Страница не прокручивается — экран сам решает, что внутри */
.app.full { height: 100dvh; display: flex; flex-direction: column; }
.app.full .main { flex: 1 1 auto; min-height: 0; padding: 0; margin-bottom: var(--tabbar); overflow: hidden; position: relative; }
.app.full .route { height: 100%; }
/* появление (кривые и кадры Brain Motion) */
.in-up { animation: bm-fade-up var(--bm-slow, .42s) var(--bm-ease-out, var(--ease)) var(--d, 0ms) both; }
.in-pop { animation: bm-pop .6s var(--bm-ease, var(--ease)) var(--d, 0ms) both; }
@keyframes page-in { from { opacity: 0; } }

/* заголовок экрана */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 4px; min-height: 56px;
  padding: calc(4px + env(safe-area-inset-top)) 8px 4px; background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tb-title { flex: 1; min-width: 0; padding-inline: 4px; }
.tb-title h1 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-title p { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-gap { width: 8px; flex: none; }
.tb-gap + .tb-title h1 { font-size: 26px; letter-spacing: -.025em; }
.tb-act { display: flex; gap: 2px; }
/* поверх карты или камеры: без фона, кнопки — на «стекле» */
.topbar.float { position: absolute; left: 0; right: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
.topbar.float > * { pointer-events: auto; }
.topbar.float .icon-btn { background: color-mix(in oklab, var(--surface) 92%, transparent); box-shadow: var(--sh-2); color: var(--ink); }
@media (min-width: 900px) {
  .topbar { position: static; max-width: calc(var(--col) + 32px); margin: 0 auto; padding: 22px 8px 6px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .topbar.float { position: absolute; max-width: none; padding: 12px; }
  .tb-title h1 { font-size: 26px; letter-spacing: -.025em; }
  .tb-gap + .tb-title h1 { font-size: 30px; }
}

.offline { position: sticky; top: 0; z-index: 60; display: flex; gap: 8px; align-items: center; justify-content: center; padding: 6px 12px; background: var(--ink); color: var(--bg); font-size: 13px; flex: none; }

/* ───────── кнопки ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 16px;
  border: 1px solid transparent; font-weight: 650; font-size: 15px; line-height: 1.1; text-decoration: none !important; white-space: nowrap;
  cursor: pointer; transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t-fast) var(--ease); }
.btn > span { overflow: hidden; text-overflow: ellipsis; }
/* главная — лаймовая с тёмным текстом; одна на экран */
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: inset 0 0 0 1px var(--primary-edge), 0 10px 20px -12px rgba(95, 123, 0, .8); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--ink-2); }
.btn-soft { background: var(--primary-soft); color: var(--primary-soft-ink); }
.btn-soft:hover { background: color-mix(in oklab, var(--primary-soft) 86%, var(--brand-500)); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger); color: var(--on-danger); }
.btn-ghost-danger { background: transparent; color: var(--danger); border-color: var(--line); }
.btn-ghost-danger:hover { background: var(--danger-soft); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn-lg { min-height: 56px; padding: 0 24px; font-size: 17px; border-radius: 18px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.is-loading > span:not(.spin) { opacity: .8; }
.spin { display: inline-block; width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: zp-spin .7s linear infinite; flex: none; }
@keyframes zp-spin { to { transform: rotate(360deg); } }
.row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }

.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); flex: none; text-decoration: none !important; transition: background var(--t) var(--ease); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.on { color: var(--primary-soft-ink); background: var(--primary-soft); }
.badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--badge); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.badge.dot { min-width: 0; width: 10px; height: 10px; padding: 0; top: 1px; right: 10px; border: 2px solid var(--surface); }
.badge.in { position: static; margin-right: 4px; }

/* ───────── заготовки загрузки и картинки ───────── */
.sk { display: block; border-radius: 10px; background: linear-gradient(100deg, var(--surface-2) 40%, var(--surface-3) 50%, var(--surface-2) 60%) 0 0 / 200% 100%; animation: zp-shimmer 1.3s linear infinite; }
@keyframes zp-shimmer { to { background-position: -200% 0; } }
.img { position: relative; overflow: hidden; background: var(--surface-2); }
.img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s var(--ease); }
.img.ok img { opacity: 1; }
.img.ph { display: grid; place-items: center; background: var(--device); }
.img.ph .ph-mark { color: var(--device-hollow); width: 34%; height: auto; max-width: 72px; }

.ava { border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.ava-ph { display: inline-grid; place-items: center; font-weight: 700; color: hsl(var(--h) 45% 28%); background: hsl(var(--h) 55% 88%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ava-ph { color: hsl(var(--h) 60% 82%); background: hsl(var(--h) 28% 24%); } }
:root[data-theme="dark"] .ava-ph { color: hsl(var(--h) 60% 82%); background: hsl(var(--h) 28% 24%); }

/* ───────── чипы и метки ───────── */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 14px; font-weight: 550; color: var(--ink-2); white-space: nowrap; flex: none; text-decoration: none !important; }
.chip:hover { border-color: var(--faint); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-reset { color: var(--danger); border-style: dashed; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--tone-mute-bg); color: var(--tone-mute); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.tag.info { background: var(--info-soft); color: var(--info); }
.tag.brand { background: var(--primary-soft); color: var(--primary-soft-ink); }
.tag.urgent { background: var(--urgent-soft); color: var(--urgent); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
/* прокрутка вбок «до края экрана»: поля выносятся на --bleed (по умолчанию 16 px — как у .pad). Внутри блока со своими
   отступами задайте свои: style="--bleed: 10px" или класс .flush (без выноса) — иначе страница поедет вбок */
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--bleed, 16px) * -1); padding: 2px var(--bleed, 16px); }
.chips.scroll.flush { --bleed: 0px; }
.chips.scroll::-webkit-scrollbar { display: none; }

/* ───────── формы ───────── */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field-l { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.field-h { font-size: 12px; color: var(--muted); }
.field-err { font-size: 13px; color: var(--danger); }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--field-line); background: var(--surface); font-size: 16px; color: var(--ink); transition: border-color var(--t), box-shadow var(--t); }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--primary-ink); box-shadow: var(--ring); }
textarea.input { resize: vertical; min-height: 76px; line-height: 1.4; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.has-err .input { border-color: var(--danger); }
/* крупное поле кода станции / суммы: цифры одной ширины, по центру */
.input.code { text-align: center; font-size: 26px; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; text-transform: uppercase; min-height: 60px; }
.checkline { display: flex; gap: 10px; align-items: center; font-size: 14px; min-height: 44px; cursor: pointer; }
.checkline input { width: 20px; height: 20px; accent-color: var(--brand-600); margin: 0; flex: none; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--field-line); flex: none; transition: border var(--t-fast); }
.radio.on { border: 6px solid var(--primary-ink); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 14px; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg-i { min-height: 40px; padding: 0 14px; border: 0; background: transparent; border-radius: 11px; font-weight: 650; color: var(--muted); white-space: nowrap; font-size: 14px; }
.seg-i.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
/* в тёмной теме выбранная вкладка светлее дорожки, а не темнее */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg-i.on { background: var(--surface-3); } }
:root[data-theme="dark"] .seg-i.on { background: var(--surface-3); }
.seg-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 11px; margin-left: 4px; }
.switch { position: relative; width: 52px; height: 32px; border-radius: 999px; border: 0; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); flex: none; transition: background var(--t); }
.switch i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform var(--t) var(--ease), background var(--t); }
.switch.on { background: var(--primary); box-shadow: inset 0 0 0 1px var(--primary-edge); }
.switch.on i { transform: translateX(20px); background: #10180A; box-shadow: none; }
.switch:disabled { opacity: .5; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--info-soft); color: var(--ink); font-size: 14px; margin: 10px 0; }
.notice > .ic { margin-top: 1px; color: var(--info); }
.notice.warn { background: var(--warn-soft); } .notice.warn > .ic { color: var(--warn); }
.notice.err { background: var(--danger-soft); } .notice.err > .ic { color: var(--danger); }
.notice.ok { background: var(--ok-soft); } .notice.ok > .ic { color: var(--ok); }
.notice.brand { background: var(--primary-soft); } .notice.brand > .ic { color: var(--primary-soft-ink); }

/* ───────── листы ───────── */
.sheet-wrap { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(8, 11, 9, .55); animation: zp-fade .2s var(--ease); }
.sheet { position: relative; width: 100%; max-height: 92dvh; background: var(--surface); border-radius: 28px 28px 0 0; display: flex; flex-direction: column;
  box-shadow: var(--sh-3); animation: zp-up .34s var(--bm-ease-out, var(--ease)); padding-bottom: env(safe-area-inset-bottom); outline: none; }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 2px 20px; }
.sheet-head h2 { font-size: 19px; }
.sheet-x { position: absolute; top: 8px; right: 8px; z-index: 2; }
.sheet-body { padding: 8px 20px 20px; overflow: auto; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.sheet-foot { padding: 12px 20px; border-top: 1px solid var(--line); }
@keyframes zp-fade { from { opacity: 0; } }
@keyframes zp-up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 700px) {
  .sheet-wrap { align-items: center; padding: 24px; }
  .sheet { max-width: 480px; border-radius: 28px; max-height: 86vh; animation-name: zp-pop; }
  .sheet.wide { max-width: 880px; }
  .sheet-grip { display: none; }
  .sheet-head { padding-top: 14px; }
}
@keyframes zp-pop { from { transform: scale(.96) translateY(8px); opacity: 0; } }
/* лист во весь экран на телефоне */
@media (max-width: 699px) { .sheet.full { height: 92dvh; } }

.list { display: flex; flex-direction: column; }
.row-i { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; width: 100%; color: var(--ink); text-decoration: none !important; font-size: 15px; }
.row-i:last-child { border-bottom: 0; }
.row-i.on { color: var(--primary-ink); font-weight: 650; }

/* ───────── шапка ПК ───────── */
.hdr { display: none; }
@media (min-width: 900px) {
  .hdr { display: block; position: sticky; top: 0; z-index: 50; height: 64px; flex: none; background: color-mix(in oklab, var(--bg) 86%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
  .hdr-in { max-width: 1200px; margin: 0 auto; height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 24px; }
  .hdr-nav { display: flex; align-items: center; gap: 4px; }
  .hdr-link { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 12px; color: var(--ink-2); font-weight: 650; font-size: 14px; text-decoration: none !important; transition: background var(--t) var(--ease); }
  .hdr-link:hover { background: var(--surface-2); }
  .hdr-link.on { background: var(--primary-soft); color: var(--primary-soft-ink); }
  .hdr-link.hdr-scan { background: var(--primary); color: var(--on-primary); box-shadow: inset 0 0 0 1px var(--primary-edge); }
  .hdr-link.hdr-scan:hover { background: var(--primary-hover); }
  .hdr-link.hdr-scan.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary-ink); }
  .hdr-link .badge.in { margin: 0 -4px 0 0; }
  .hdr-r { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
  .hdr-me { border-radius: 50%; margin-left: 4px; display: block; }
}

/* ───────── нижнее меню телефона ─────────
   Четыре пункта: «Карта» занимает левую половину, «Сканер» — ровно по центру экрана, «Аренды» и «Профиль» — справа. */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  height: var(--tabbar); padding: 0 6px env(safe-area-inset-bottom); background: color-mix(in oklab, var(--surface) 94%, transparent);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none !important; border-radius: 14px; }
.tab-ic { position: relative; display: grid; place-items: center; width: 54px; height: 30px; border-radius: 15px; transition: background var(--t) var(--ease), transform var(--t-fast) var(--ease); }
.tab.on { color: var(--primary-soft-ink); }
.tab.on .tab-ic { background: var(--primary-soft); }
.tab:active .tab-ic { transform: scale(.92); }
.tab-ic .badge { top: -4px; right: 4px; }
.tab-ic .badge.dot { top: 0; right: 12px; }
/* «Сканер» — круглая лаймовая кнопка, приподнятая над меню */
.tab-scan { justify-content: flex-end; padding-bottom: 8px; color: var(--ink-2); }
.tab-scan.on { color: var(--primary-soft-ink); }
.tab-fab { position: absolute; left: 50%; top: calc(var(--fab-rise) * -1); width: 58px; height: 58px; margin-left: -29px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); box-shadow: 0 0 0 5px var(--surface), inset 0 0 0 1px var(--primary-edge), 0 14px 22px -10px rgba(95, 123, 0, .9); transition: transform var(--t-fast) var(--ease); }
.tab-scan:active .tab-fab { transform: scale(.94); }
.tab-scan.on .tab-fab { box-shadow: 0 0 0 5px var(--surface), 0 0 0 7px var(--primary-ink); }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ───────── деньги ───────── */
.price { font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }

/* ───────── разделы, карточки, меню ───────── */
.sec { margin-top: 28px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-h h2 { font-size: 21px; letter-spacing: -.02em; }
.sec-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.sec-more { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; font-weight: 650; font-size: 14px; white-space: nowrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin: 12px 0; display: flex; flex-direction: column; gap: 12px; }
/* тёмная карточка-«устройство» (текущая аренда, станция): <div class="card on-device"> — см. .on-device в /shared/ui.css */
.menu { background: var(--surface); border-radius: 20px; border: 1px solid var(--line); overflow: hidden; margin-top: 12px; }
.menu-i { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; width: 100%; text-align: left; color: var(--ink); text-decoration: none !important; font-size: 15px; }
.menu-i:last-child { border-bottom: 0; }
button.menu-i:hover, a.menu-i:hover { background: color-mix(in oklab, var(--surface-2) 60%, transparent); }
.menu-i.static { cursor: default; }
.menu-i > .ic:last-child { color: var(--faint); }
.menu-ic { width: 36px; height: 36px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.menu-ic.brand { background: var(--primary-soft); color: var(--primary-soft-ink); }
.menu-i .grow { min-width: 0; flex: 1 1 0; }
.menu-h { font-size: 13px; color: var(--muted); margin: 24px 6px 8px; font-weight: 700; }

/* ───────── вход ───────── */
.login-in { padding-bottom: 40px; max-width: 460px; }
.login-why-line { margin-bottom: 14px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-grid .btn { min-width: 0; padding: 0 10px; font-size: 14px; }
.demo-grid .btn:first-child { grid-column: 1 / -1; }

/* ───────── пусто, ошибки ───────── */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 44px 16px; }
.empty-ic { width: 76px; height: 76px; border-radius: 24px; background: var(--primary-soft); color: var(--primary-soft-ink); display: grid; place-items: center; margin-bottom: 6px; }
.empty h3 { font-size: 19px; }
.empty p { color: var(--muted); max-width: 360px; }
.empty-act { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ───────── тосты Brain Motion — в стиле Запаса ───────── */
.bm-toasts { bottom: calc(var(--tabbar) + 28px); width: max-content; max-width: calc(100vw - 32px); }
.bm-toast { font: 600 14px/1.35 var(--font); background: var(--ink); color: var(--bg); border-radius: 14px; text-align: center; }
@media (min-width: 900px) { .bm-toasts { bottom: 28px; } }
