/* Модуль «Оклейка». Тема: виниловая плёнка и госномер.
   Холодный серый «раскройный коврик», графит, кобальт для действий, янтарь — «нужно ваше действие».
   Заголовки — Unbounded, интерфейс — Onest. Главный акцент — номер в виде российского номерного знака. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --mat: #e9ecf1;          /* фон */
  --mat-line: #e1e5eb;     /* сетка коврика */
  --sheet: #ffffff;        /* поверхности */
  --ink: #161a21;          /* основной текст */
  --ink-2: #5b6474;        /* вторичный */
  --ink-3: #8d95a3;        /* приглушённый */
  --rule: #e2e6ec;         /* разделители */
  --graphite: #1f242c;     /* шапка */
  --graphite-2: #2b313b;
  --cobalt: #2f5bff;       /* действия */
  --cobalt-ink: #1e3fd1;
  --cobalt-tint: #e8edff;
  --amber: #f5a524;        /* ждёт действия */
  --amber-ink: #8a5300;
  --amber-tint: #fff4dd;
  --mint: #12a57a;         /* принято */
  --mint-tint: #e3f6ef;
  --red: #e5484d;
  --red-ink: #b42328;
  --red-tint: #fdeced;
  --violet: #6e56cf;       /* в работе */
  --violet-tint: #efebfd;
  --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --lift: 0 1px 0 rgba(22,26,33,.04), 0 8px 24px -12px rgba(22,26,33,.18);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --ui: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--ui); background: var(--mat); color: var(--ink); font-size: 15px; line-height: 1.45;
  min-height: 100vh; padding-bottom: calc(84px + var(--safe-b)); -webkit-font-smoothing: antialiased;
  background-image: linear-gradient(var(--mat-line) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line) 1px, transparent 1px);
  background-size: 32px 32px; background-attachment: fixed; }
a { color: var(--cobalt); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(47,91,255,.45); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ── Шапка ─────────────────────────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--graphite); color: #fff;
  padding: 14px 18px; padding-top: calc(14px + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: 12px; }
.topbar .back { color: #fff; width: 34px; height: 34px; margin-left: -6px; border-radius: 99px; display: grid;
  place-items: center; font-size: 24px; line-height: 1; background: var(--graphite-2); }
.topbar .title { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.2px; flex: 1;
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .title span { color: inherit; }
.topbar .user { font-size: 13px; color: #a9b1bf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }

.wrap { max-width: 720px; margin: 0 auto; padding: 18px 16px; }
.wrap.wide { max-width: 1240px; }

.page-head { margin: 6px 2px 18px; }
.page-head h1 { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -.8px; line-height: 1.1; }
.page-head p { color: var(--ink-2); margin-top: 6px; font-size: 14px; }

/* ── Нижняя навигация ─────────────────────────────────────────────────── */
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-top: 1px solid var(--rule); display: flex; padding: 6px 8px calc(6px + var(--safe-b)); }
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px;
  font-size: 11px; font-weight: 600; color: var(--ink-3); position: relative; border-radius: var(--r-sm); }
.bottomnav a .ic { font-size: 19px; line-height: 1.15; filter: grayscale(1); opacity: .7; }
.bottomnav a.active { color: var(--ink); }
.bottomnav a.active .ic { filter: none; opacity: 1; }
.bottomnav a.active::after { content: ''; position: absolute; top: -7px; left: 30%; right: 30%; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--cobalt); }
.bottomnav .dot { position: absolute; top: 2px; left: calc(50% + 6px); background: var(--amber); color: var(--ink);
  border-radius: 99px; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px;
  display: none; align-items: center; justify-content: center; border: 2px solid #fff; }

/* ── Поверхности ──────────────────────────────────────────────────────── */
.card { background: var(--sheet); border-radius: var(--r-lg); box-shadow: var(--lift); padding: 18px; margin-bottom: 14px; }
.card h2 { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: -.2px; margin-bottom: 12px; }
.card h2 .muted { font-family: var(--ui); font-weight: 500; font-size: 13px; letter-spacing: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrapr { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0; font-size: 14px; }
.kv dt, .kv dd { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.kv dt { color: var(--ink-2); padding-right: 16px; }
.kv dd { font-weight: 500; overflow-wrap: anywhere; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: none; }

/* ── Госномер ─────────────────────────────────────────────────────────── */
.rplate { display: inline-flex; align-items: stretch; background: #fff; border: 2px solid var(--ink); border-radius: 7px;
  font-family: var(--ui); font-weight: 700; color: var(--ink); line-height: 1; box-shadow: 0 1px 0 rgba(0,0,0,.08);
  font-size: 18px; height: 1.95em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rplate .rp-main { display: flex; align-items: center; gap: .14em; padding: 0 .45em; letter-spacing: .02em; }
.rplate .rp-main b { font-size: 1.22em; font-weight: 700; letter-spacing: .04em; }
.rplate .rp-reg { display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-left: 2px solid var(--ink); padding: 0 .38em; font-size: .78em; gap: .12em; }
.rplate .rp-reg i { font-style: normal; font-size: .5em; letter-spacing: .08em; display: flex; align-items: center; gap: .25em; }
.rplate .rp-reg i::after { content: ''; width: 1.1em; height: .72em; border: 1px solid rgba(0,0,0,.25);
  background: linear-gradient(#fff 33%, #1c57c9 33% 66%, #d52b1e 66%); }
.rplate.plain .rp-main { padding: 0 .6em; }
.rplate.sm { font-size: 13px; border-width: 1.5px; border-radius: 5px; }
.rplate.sm .rp-reg { border-left-width: 1.5px; }
.rplate.lg { font-size: 26px; border-width: 3px; border-radius: 10px; }
.rplate.lg .rp-reg { border-left-width: 3px; }

/* ── Формы ────────────────────────────────────────────────────────────── */
label.lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 14px 0 6px; }
.input, select.input, textarea.input { width: 100%; padding: 12px 14px; background: #f5f7fa;
  border: 1.5px solid transparent; border-radius: var(--r-sm); font-size: 16px; outline: none; transition: border-color .15s, background .15s; }
.input:hover { background: #f0f3f7; }
.input:focus { border-color: var(--cobalt); background: #fff; }
textarea.input { min-height: 84px; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6474' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.plate-input { font-weight: 700; letter-spacing: .12em; font-size: 22px; text-transform: uppercase;
  background: #fff; border: 2px solid var(--ink); font-variant-numeric: tabular-nums; }
.plate-input:hover { background: #fff; }
.plate-input::placeholder { color: #c3c9d3; letter-spacing: .12em; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Кнопки ───────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px;
  border-radius: 99px; font-size: 15px; font-weight: 600; cursor: pointer; border: 1.5px solid transparent;
  background: #eef1f5; color: var(--ink); min-height: 46px; transition: background .15s, transform .08s, opacity .15s;
  -webkit-tap-highlight-color: transparent; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.primary { background: var(--cobalt); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--cobalt-ink); }
.btn.green { background: var(--mint); color: #fff; }
.btn.red { background: var(--red-tint); color: var(--red-ink); }
.btn.amber { background: var(--amber-tint); color: var(--amber-ink); }
.btn.ghost { background: transparent; border-color: var(--rule); color: var(--ink-2); }
.btn.ghost:hover { background: #f3f5f8; color: var(--ink); }
.btn.sm { padding: 6px 12px; font-size: 13px; min-height: 34px; }
.btns { display: grid; gap: 10px; }
.fab { position: fixed; right: 16px; bottom: calc(86px + var(--safe-b)); z-index: 25; padding: 15px 22px;
  background: var(--ink); color: #fff; box-shadow: 0 12px 28px -10px rgba(22,26,33,.55); }
.fab:hover { background: #000; }

/* ── Статусы ──────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 99px;
  font-size: 12px; font-weight: 600; white-space: nowrap; background: #eef1f5; color: var(--ink-2); }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.st-new { background: var(--cobalt-tint); color: var(--cobalt-ink); }
.st-clarify { background: var(--amber-tint); color: var(--amber-ink); }
.st-rejected { background: #eef1f5; color: var(--ink-3); }
.st-approved, .st-in_work { background: var(--violet-tint); color: var(--violet); }
.st-acceptance { background: var(--cobalt-tint); color: var(--cobalt-ink); }
.st-rework { background: var(--red-tint); color: var(--red-ink); }
.st-accepted { background: var(--mint-tint); color: var(--mint); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600;
  background: var(--amber-tint); color: var(--amber-ink); }
.tag.red { background: var(--red-tint); color: var(--red-ink); }
.tag.gray { background: #eef1f5; color: var(--ink-2); }

/* ── Сообщения ────────────────────────────────────────────────────────── */
.alert { border-radius: var(--r-md); padding: 12px 16px; font-size: 14px; margin-bottom: 14px; border-left: 4px solid; }
.alert.err { background: var(--red-tint); color: var(--red-ink); border-color: var(--red); }
.alert.ok { background: var(--mint-tint); color: #0b6b4f; border-color: var(--mint); }
.alert.warn { background: var(--amber-tint); color: var(--amber-ink); border-color: var(--amber); }
.alert.info { background: var(--sheet); color: var(--ink); border-color: var(--cobalt); box-shadow: var(--lift); }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(92px + var(--safe-b)); z-index: 60;
  background: var(--graphite); color: #fff; padding: 13px 18px; border-radius: var(--r-md); font-size: 14px; font-weight: 500;
  box-shadow: 0 16px 32px -12px rgba(0,0,0,.45); opacity: 0; transform: translateY(12px); transition: .22s;
  pointer-events: none; max-width: 480px; margin: 0 auto; }
.toast.show { opacity: 1; transform: none; }
.toast.err { background: var(--red-ink); }

/* ── Переключатели списков ────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 16px; padding: 4px; background: rgba(255,255,255,.7);
  border-radius: 99px; width: max-content; max-width: 100%; scrollbar-width: none; box-shadow: inset 0 0 0 1px var(--rule); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: none; background: transparent; padding: 8px 14px; border-radius: 99px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tabs button.active { background: var(--ink); color: #fff; }
.tabs .cnt { display: inline-block; background: var(--amber); color: var(--ink); border-radius: 99px;
  font-size: 11px; font-weight: 700; padding: 1px 7px; }

/* ── Список заявок: сгруппированные строки ────────────────────────────── */
.list { background: var(--sheet); border-radius: var(--r-lg); box-shadow: var(--lift); overflow: hidden; }
.req { display: flex; gap: 14px; align-items: center; color: inherit; padding: 14px 16px; position: relative; }
.req + .req { border-top: 1px solid var(--rule); }
.req:hover { background: #fafbfc; }
.req .thumb { width: 58px; height: 58px; border-radius: 12px; background: #eef1f5 center/cover no-repeat;
  flex: none; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--ink-3); }
.req .meta { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.req .meta span + span::before { content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 9px;
  background: var(--ink-3); vertical-align: middle; margin: 0 7px; }
.req .todo { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--amber-ink);
  background: var(--amber-tint); padding: 2px 8px; border-radius: 6px; }
.req .chev { color: var(--ink-3); font-size: 22px; flex: none; }
.empty { text-align: center; color: var(--ink-2); padding: 40px 20px; }
.empty b { display: block; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

/* ── Схема авто ───────────────────────────────────────────────────────── */
.scheme { width: 100%; max-width: 340px; display: block; margin: 4px auto 0; user-select: none; -webkit-user-select: none; }
.scheme .body { fill: #f4f6f9; stroke: var(--ink); stroke-width: 2.2; }
.scheme .glass { fill: #d9dee6; stroke: var(--ink); stroke-width: 1.4; }
.scheme .line { stroke: #b7bec9; stroke-width: 1.5; fill: none; }
.scheme .wheel { fill: var(--ink); }
.scheme .zone { cursor: pointer; }
.scheme .zone circle { fill: #fff; stroke: var(--ink); stroke-width: 1.8; transition: fill .12s, stroke .12s; }
.scheme .zone text { font-family: var(--ui); font-size: 12px; font-weight: 700; fill: var(--ink); text-anchor: middle;
  dominant-baseline: central; pointer-events: none; }
.scheme .zone:hover circle { stroke: var(--cobalt); }
.scheme .zone.on circle { fill: var(--amber); stroke: var(--amber); }
.scheme .zone.done circle { fill: var(--cobalt); stroke: var(--cobalt); }
.scheme .zone.done text { fill: #fff; }
.scheme-legend { display: flex; gap: 14px; justify-content: center; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.scheme-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 99px;
  margin-right: 5px; vertical-align: -1px; }
.scheme-legend .l-on::before { background: var(--amber); }
.scheme-legend .l-done::before { background: var(--cobalt); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { border: 1.5px solid var(--rule); background: #fff; border-radius: 99px; padding: 7px 13px;
  font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── Позиции и фото ───────────────────────────────────────────────────── */
.item { border-radius: var(--r-md); padding: 14px; margin-bottom: 10px; background: #f6f8fa; border: 1.5px solid transparent; }
.card > .item:last-of-type { margin-bottom: 0; }
#items .item { background: var(--sheet); box-shadow: var(--lift); }
.item.missing { border-color: var(--amber); }
.item .head { display: flex; gap: 10px; align-items: flex-start; }
.item .code { flex: none; min-width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: #fff;
  border-radius: 10px; font-family: var(--display); font-weight: 600; font-size: 13px; padding: 0 6px; }
.item .head b { font-weight: 650; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ph { width: 78px; height: 78px; border-radius: 12px; background: #e3e7ed center/cover no-repeat; position: relative; cursor: zoom-in; }
.ph .x { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 99px; border: 2px solid #fff;
  background: var(--ink); color: #fff; font-size: 13px; line-height: 20px; text-align: center; cursor: pointer; }
.ph.add { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; font-size: 11px;
  color: var(--ink-2); border: 1.5px dashed #b7bec9; background: #fff; cursor: pointer; font-weight: 600; }
.ph.add:hover { border-color: var(--cobalt); color: var(--cobalt); }
.ph.add .ic { font-size: 22px; }
.ph .lbl { position: absolute; left: 6px; bottom: 6px; background: rgba(22,26,33,.78); color: #fff;
  font-size: 10px; font-weight: 600; border-radius: 5px; padding: 1px 5px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.compare > div { background: #fff; border-radius: var(--r-sm); padding: 8px 10px 10px; }
.compare .col-h { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.compare .photos { margin-top: 6px; }
.section-h { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-top: 16px; }

/* ── Сумма в заявке ───────────────────────────────────────────────────── */
.sum-strip { display: grid; grid-template-columns: 1fr 1fr 1.2fr; margin-top: 16px; border-top: 1px solid var(--rule); }
.sum-strip div { padding: 12px 0 0; }
.sum-strip div + div { padding-left: 14px; border-left: 1px solid var(--rule); }
.sum-strip .v { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.sum-strip .total .v { font-family: var(--display); font-size: 18px; font-weight: 600; }
.sum-strip .l { font-size: 12px; color: var(--ink-2); }

/* ── Таблицы ──────────────────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 8px 10px;
  border-bottom: 1.5px solid var(--rule); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot td { font-weight: 700; border-top: 1.5px solid var(--rule); }
.tbl input.input { padding: 7px 10px; font-size: 14px; min-width: 84px; }
.tbl select.input { padding: 7px 34px 7px 10px; font-size: 14px; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #f7f9fb; }

/* ── История ──────────────────────────────────────────────────────────── */
.timeline { list-style: none; position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--rule); }
.timeline li { position: relative; margin-bottom: 16px; font-size: 14px; }
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -21px; top: 4px; width: 12px; height: 12px;
  border-radius: 99px; background: var(--ink-3); box-shadow: 0 0 0 3px var(--sheet); }
.timeline li.warn::before { background: var(--amber); }
.timeline li.bad::before { background: var(--red); }
.timeline li.good::before { background: var(--mint); }
.timeline .when { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.timeline .cmt { background: #f5f7fa; border-radius: 4px 12px 12px 12px; padding: 8px 12px; margin-top: 6px; white-space: pre-wrap; }

/* ── Просмотр фото ────────────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,14,18,.94); display: none;
  align-items: center; justify-content: center; padding: 12px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox .close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 14px; color: #fff;
  width: 42px; height: 42px; border-radius: 99px; font-size: 26px; background: rgba(255,255,255,.12); border: none; cursor: pointer; }

/* ── Панель действий ──────────────────────────────────────────────────── */
.actionbar { background: var(--sheet);
  border-radius: var(--r-lg); padding: 16px; margin-bottom: 14px;
  box-shadow: 0 0 0 1.5px var(--ink), 0 18px 40px -18px rgba(22,26,33,.45); }
.actionbar.sticky { position: sticky; bottom: calc(76px + var(--safe-b)); z-index: 15; }
.actionbar > b:first-child { font-family: var(--display); font-weight: 600; font-size: 15px; display: block; margin-bottom: 2px; }
.progress { height: 6px; background: #eef1f5; border-radius: 99px; overflow: hidden; margin-top: 10px; display: none; }
.progress div { height: 100%; width: 0; background: var(--cobalt); transition: width .2s; }
.checklist { font-size: 13px; color: var(--amber-ink); margin-top: 8px; display: grid; gap: 2px; }
.checklist div::before { content: '○ '; }

/* ── Оплата ───────────────────────────────────────────────────────────── */
.seg { display: inline-flex; padding: 3px; background: #eef1f5; border-radius: 99px; gap: 2px; }
.seg button { border: none; background: transparent; padding: 7px 14px; border-radius: 99px; font-size: 13px;
  font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(22,26,33,.15); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: 99px; background: #d5dae2; position: relative; flex: none;
  transition: background .15s; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 99px;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .track { background: var(--mint); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid rgba(47,91,255,.45); outline-offset: 2px; }
.switch .st { font-size: 13px; font-weight: 600; line-height: 1.2; }
.switch .st small { display: block; font-weight: 500; color: var(--ink-3); font-size: 11px; }
.pay-sums { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 14px 0 4px; font-size: 14px; }
.pay-sums b { font-family: var(--display); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.bulk { display: none; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin: 10px 0 4px;
  background: var(--graphite); color: #fff; border-radius: var(--r-md); font-size: 14px; }
.bulk.show { display: flex; }
.bulk .btn.ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.tbl tr.paid td { color: var(--ink-2); }
.tbl input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--cobalt); }

/* ── KPI и графики ────────────────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin-bottom: 14px;
  background: var(--rule); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--lift); }
.kpi { background: var(--sheet); padding: 16px 18px; }
.kpi .v { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.kpi:first-child { background: var(--graphite); color: #fff; }
.kpi:first-child .l { color: #a9b1bf; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.chart-box { position: relative; height: 280px; }

/* ── Вход и регистрация ───────────────────────────────────────────────── */
.auth-hero { padding: 26px 4px 18px; }
.auth-hero h1 { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -1px; line-height: 1.08; }
.auth-hero p { color: var(--ink-2); margin-top: 10px; max-width: 32em; }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bottomnav { position: sticky; top: 62px; bottom: auto; border-top: none; border-bottom: 1px solid var(--rule);
    justify-content: center; gap: 4px; padding: 6px; }
  .bottomnav a { flex: none; flex-direction: row; gap: 8px; padding: 9px 16px; font-size: 14px; border-radius: 99px; }
  .bottomnav a.active { background: var(--ink); color: #fff; }
  .bottomnav a.active::after { display: none; }
  .bottomnav a .ic { font-size: 15px; }
  .bottomnav .dot { position: static; border: none; }
  .fab { bottom: 28px; right: 28px; }
  .actionbar.sticky { bottom: 16px; }
  .toast { bottom: 28px; }
  .page-head h1 { font-size: 34px; }
}
