:root {
  --bg: #0B0B0D; --panel: #17171B; --panel2: #222228; --line: #2E2E36;
  --fg: #F2EEE8; --muted: #A9A49C; --red: #D32A24; --red-l: #FF6A5E; --gold: #E0B04A; --ok: #5BBE86; --bad: #D32A24; --bad-l: #FF6A5E;
  --display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --text: 'Inter', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--red) 16%, transparent), transparent 60%) no-repeat, var(--bg); background-attachment: fixed; color: var(--fg); font-family: var(--text); font-size: 15px; line-height: 1.45;
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 84px) max(16px, env(safe-area-inset-left, 0px)); }
body.wide { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 32px); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 520px; margin: 0 auto; padding-top: 16px; display: flex; flex-direction: column; gap: 14px; }
body.wide .wrap { max-width: 1180px; }
.center { text-align: center; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.logo { font-family: var(--display); font-size: 30px; letter-spacing: 1px; text-transform: uppercase; margin: 0; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo img { height: 34px; width: auto; display: block; }
.logo span { color: var(--fg); font-size: 24px; letter-spacing: 4px; padding-top: 4px; }
.who { font-weight: 600; }
.sub, .muted { color: var(--muted); font-size: 13px; }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 0; font-size: 13px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.big { font-family: var(--display); font-size: 40px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.big.gold { color: var(--gold); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--red); border-radius: 3px; }
.bar i.done { background: var(--ok); }
.metric { display: flex; flex-direction: column; gap: 6px; }
.metric .row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.btn { border: 0; border-radius: 12px; padding: 14px 16px; font-weight: 700; font-size: 15px; background: var(--red); color: #fff; width: 100%; }
.btn.ghost { background: none; border: 1px solid var(--line); color: var(--fg); }
.btn.gold { background: var(--gold); color: #1B1B21; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.sm { padding: 8px 12px; font-size: 13px; width: auto; border-radius: 9px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--line); color: var(--fg); white-space: nowrap; }
.chip.ok { background: rgba(91,190,134,.18); color: var(--ok); }
.chip.bad { background: rgba(211,42,36,.2); color: var(--bad-l); }
.chip.warn { background: rgba(224,176,74,.18); color: var(--gold); }
.list { display: flex; flex-direction: column; gap: 8px; }
.item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.item.clickable { cursor: pointer; text-align: left; width: 100%; }
.item .t { font-weight: 600; }
.item .d { color: var(--muted); font-size: 12px; }
.timer { font-family: var(--display); font-size: 64px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; line-height: 1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; }
.inp, .ctrow input[type=text], .ctrow input[type=tel], .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field textarea, .field select {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.field textarea { min-height: 64px; resize: vertical; }
.stock { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.step button { border: 0; background: var(--bg); width: 40px; height: 40px; font-size: 18px; }
.step output, .step .stk { width: 56px; min-width: 40px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; border: 0; background: transparent; color: var(--fg); font-size: 16px; padding: 0; -moz-appearance: textfield; }
.step .stk::-webkit-outer-spin-button, .step .stk::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.toggle[aria-pressed="true"] { background: var(--gold); color: #1B1B21; border-color: var(--gold); }
.photo { display: flex; gap: 10px; align-items: center; }
.photo img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.photo label { flex: 1; border: 1px dashed var(--line); border-radius: 10px; padding: 12px; text-align: center; font-size: 13px; font-weight: 600; cursor: pointer; }
.photo input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.note { font-size: 12px; color: var(--muted); margin: 0; }
.warnbox { border-left: 3px solid var(--gold); padding: 8px 12px; background: rgba(224,176,74,.08); border-radius: 0 8px 8px 0; font-size: 13px; }
.okbox { border-left: 3px solid var(--ok); padding: 8px 12px; background: rgba(91,190,134,.08); border-radius: 0 8px 8px 0; font-size: 13px; }
.errbox { border-left: 3px solid var(--bad); padding: 8px 12px; background: rgba(211,42,36,.12); border-radius: 0 8px 8px 0; font-size: 13px; }

nav.bottom { position: fixed; left: 0; right: 0; bottom: 0; background: var(--panel); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); z-index: 5; }
nav.bottom button { border: 0; background: none; padding: 14px 4px; font-size: 12px; font-weight: 600; color: var(--muted); border-top: 2px solid transparent; }
nav.bottom button[aria-current="page"] { color: var(--fg); border-top-color: var(--red); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--red); }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td.num, th.num { text-align: right; }
td .inp { padding: 6px 8px; min-width: 90px; }
tr:last-child td { border-bottom: 0; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.formrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.formrow .field { flex: 1 1 160px; }
.shot { width: 100%; max-width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; background: var(--panel2); }
.noshot { width: 100%; aspect-ratio: 4/3; border-radius: 10px; background: var(--panel2); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 80px); background: var(--fg); color: var(--bg);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; z-index: 10; max-width: calc(100% - 32px); }

/* ---------- фирменное: Hell ---------- */
.hero { text-align: center; padding: 7vh 0 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero img { width: min(260px, 70vw); height: auto; filter: drop-shadow(0 6px 30px rgba(211,42,36,.35)); }
.hero-v { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: 12px; text-transform: uppercase; margin: 6px 0 0 12px; }
.vg { display: block; width: 150px; margin: 18px auto 0; opacity: .45; }
.btn { box-shadow: 0 6px 22px color-mix(in srgb, var(--red) 25%, transparent); }
.btn.ghost, .btn.gold { box-shadow: none; }
.big.red { color: var(--bad-l); }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.card.alert { border-color: rgba(211,42,36,.55); background: linear-gradient(180deg, rgba(211,42,36,.10), transparent 70%), var(--panel); }
.tile-act { cursor: pointer; }
.tile-act:hover { border-color: var(--red); }
.bdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
/* история точки */
.vname { font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.1; text-transform: uppercase; letter-spacing: .5px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stats > div { background: var(--panel2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.stats .label { font-size: 10px; letter-spacing: 1px; }
.stats b { font-variant-numeric: tabular-nums; font-size: 15px; }
@media (max-width: 420px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spark { display: flex; gap: 8px; align-items: flex-end; height: 130px; }
.spark > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.spark b { font-size: 12px; font-variant-numeric: tabular-nums; }
.spark .col { flex: 1; width: 100%; max-width: 34px; display: flex; flex-direction: column-reverse; gap: 1px; }
.spark .col i { display: block; width: 100%; border-radius: 2px; }
.spark .d { font-size: 10px; color: var(--muted); white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
details.vis { display: block; padding: 0; }
details.vis summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; }
details.vis summary::-webkit-details-marker { display: none; }
details.vis[open] { border-color: var(--red); }
.vbody { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.stockline { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; background: var(--panel2); display: block; }
.vlink { color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14px; text-align: left; }
.vlink:hover { color: var(--red-l); text-decoration: underline; }
.bulk { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; }
.bulk summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.bulk[open] summary { margin-bottom: 10px; }
.bulkform { display: flex; flex-direction: column; gap: 10px; }
.bulkform textarea { min-height: 150px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.bowls { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.bowls-v { display: flex; gap: 8px; }
.bowls-v > div { flex: 1; background: var(--panel2); border-radius: 10px; padding: 8px 12px; display: flex; justify-content: space-between; align-items: baseline; }
.bowls-v b { font-family: var(--display); font-size: 24px; font-variant-numeric: tabular-nums; }
.bowls-edit summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.bowls-edit[open] summary { margin-bottom: 8px; }
.bowls-edit .field { flex: 1 1 100px; }
/* карта */
.maptools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.maptools .inp { width: auto; flex: 1 1 150px; }
.maptools .btn.sm { margin-left: auto; }
.map { height: 62vh; min-height: 320px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: #1a1a1f; z-index: 0; }
body.wide .map { height: 68vh; }
.map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.6); }
.map .leaflet-popup-content-wrapper, .map .leaflet-popup-tip { background: var(--panel); color: var(--fg); border: 1px solid var(--line); }
.map .leaflet-popup-content { margin: 12px 14px; font: 14px/1.4 var(--text); }
.map .leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.map .leaflet-control-attribution { background: rgba(0,0,0,.55); color: #aaa; }
.map .leaflet-control-attribution a { color: #ccc; }
.map .leaflet-bar a { background: var(--panel); color: var(--fg); border-color: var(--line); }
.pop { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.pop-b { display: flex; gap: 6px; margin-top: 4px; }
.pop-b .btn { flex: 1; text-align: center; text-decoration: none; color: #fff; }
.pop-b .btn.ghost { color: var(--fg); }
.bdot.ring { background: transparent; border: 2px dashed #fff; width: 10px; height: 10px; box-shadow: none; }
nav.bottom button { font-size: 11px; }

/* несколько фото полки в отчёте */
.shots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.shotw { position: relative; }
.shotw img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--panel2); display: block; }
.rm { border: 0; background: var(--panel2); color: var(--fg); width: 28px; height: 28px; border-radius: 50%; font-size: 18px; line-height: 1; padding: 0; flex: none; }
.shotw .rm { position: absolute; top: -8px; right: -8px; border: 1px solid var(--line); }

/* было → стало */
.delta { display: inline-block; margin-left: 4px; font-size: 12px; font-weight: 700; padding: 0 5px; border-radius: 6px; }
.delta.up { color: var(--ok); background: rgba(91, 190, 134, .14); }
.delta.down { color: var(--red-l); background: rgba(211, 42, 36, .16); }
.was { display: block; font-size: 11px; color: var(--muted); margin-left: 16px; }
.shelfnow { margin: 12px 0; display: grid; gap: 6px; }

/* контакты точки */
.contacts { margin: 12px 0; display: grid; gap: 8px; }
.contact { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.contact .tel { color: var(--fg); font-weight: 700; white-space: nowrap; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.lpr { font-size: 10px; font-weight: 800; letter-spacing: 1px; color: var(--gold); border: 1px solid var(--gold); border-radius: 5px; padding: 1px 5px; vertical-align: 1px; }
.ctrow { margin-bottom: 8px; display: grid; grid-template-columns: 1.25fr 1fr auto; gap: 6px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.ctrow input[type=text], .ctrow input[type=tel] { width: 100%; min-width: 0; padding: 8px 10px; font-size: 14px; }
.ctrow [data-cf=phone] { grid-column: 1; grid-row: 2; }
.ctrow .lprbox { grid-column: 2; grid-row: 2; }
.ctrow .lprbox { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--gold); }
.ctrow .rm { grid-column: 3; grid-row: 1; }
.mediabox { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.formrow > .inp { flex: 1 1 160px; width: auto; margin-top: 8px; } .formrow > .inp + .btn { margin-top: 8px; }

/* Значок «Powered by Netlify» (вставляет хостинг на бесплатном тарифе) закрывал нижнее меню */
#nl-badge-frame { display: none !important; }

/* KPI: фокус месяца и ступени (2026-12-05) */
.kblock { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.steps { display: flex; flex-wrap: wrap; gap: 6px; }
.steps span { font-size: 12px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.steps span.on { border-color: var(--ok); color: var(--ok); background: rgba(91,190,134,.1); }
.planbox { margin-bottom: 14px; }
.planbox summary b { color: var(--gold); }
.planform { display: grid; gap: 14px; margin-top: 12px; }
.plrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; margin-top: 6px; }
.plrow .inp { width: 74px; }
b.gold { color: var(--gold); } b.red { color: var(--bad-l); }
b.kind { color: var(--gold); font-weight: 600; }
/* Задачи на точку */
.tasks { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid rgba(224,176,74,.35); border-radius: 10px; background: rgba(224,176,74,.05); margin: 8px 0; }
.task { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.task > div:first-child { display: grid; gap: 2px; flex: 1 1 200px; }
.task .d { font-size: 12px; color: var(--muted); }
.task.done { opacity: .7; }
.task .formrow { flex: 1 1 100%; }
/* Отчёты: полосы конкурентов, строка пропущенной отгрузки */
.bars { display: grid; gap: 6px; margin: 6px 0 12px; }
.barrow { display: grid; grid-template-columns: minmax(90px, 140px) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.barrow .bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.barrow .bar i { display: block; height: 100%; background: var(--red); }
tr.miss td { background: rgba(211,42,36,.08); }

/* калькулятор закупа (2026-12-05) */
nav.bottom { grid-template-columns: repeat(5, 1fr); }
.cbox { display: flex; flex-direction: column; gap: 8px; }
.cstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 10px; }
.cstats > div { background: var(--panel2); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cstats b { font-size: 22px; }
.cstats .label { font-size: 10px; letter-spacing: 1px; }
.cstats .muted { font-size: 12px; }
.okc { color: var(--ok); }
.cbar { margin-bottom: 8px; }
.cbar .row span { font-size: 13px; }
.bar i.comp { background: var(--muted); }
@media (max-width: 420px) { .cstats { grid-template-columns: 1fr; } .cstats > div { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; } .cstats .label { flex-basis: 100%; } }
.cstats b.red { color: var(--bad-l); }
/* Удаление тестовых данных */
th.sel, td.sel { width: 28px; text-align: center; }
.danger { color: var(--bad-l) !important; }
.btn.danger { border-color: rgba(211,42,36,.6); }

/* Экран визита: вкладки Полка / Точка / Итог (2026-12-06) */
.vhead .vname { font-size: 1.25rem; font-weight: 700; margin-top: 2px; }
.vtabs { display: flex; gap: 6px; margin: 14px 0 16px; position: sticky; top: 0; z-index: 3; background: var(--panel); padding: 6px 0; }
.vtabs button { flex: 1; padding: 10px 6px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.vtabs button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.okmark { color: var(--ok); font-weight: 700; }
.vtabs button[aria-selected="true"] .okmark { color: #fff; }
.todo { color: var(--gold); font-weight: 700; }
.okbox { background: rgba(91,190,134,.08); border-left: 3px solid var(--ok); border-radius: 0 8px 8px 0; padding: 10px 12px; margin: 8px 0; font-size: 13px; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.subtabs button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.subtabs button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.vhead .timer { font-size: 28px; white-space: nowrap; line-height: 1; }
.okline { font-size: 13px; margin: 4px 0 8px; } .okline .linkbtn { font-size: 13px; }

/* Стартовая страница: девиз, сменные фразы, логотипы брендов (2026-12-07) */
.tagwrap { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 6px 0 0; min-height: 44px; }
.tagwrap .muted { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }
.tagline { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: 1px; color: var(--red-l); transition: opacity .45s, transform .45s; }
.tagline.fade { opacity: 0; transform: translateY(6px); }
.brands { display: flex; justify-content: center; align-items: center; gap: 14px 24px; flex-wrap: wrap; margin: 16px auto 20px; max-width: 360px; opacity: .9; }
.brands img { width: auto; max-width: 42vw; }
@media (prefers-reduced-motion: reduce) { .tagline { transition: none; } }

/* Итог дня, серии и значки, маршрут, голос, анимации (2026-12-07) */
.daycard { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 10px 40px -12px var(--red); }
.dayhero { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 10px; }
.dayhero b { font-family: var(--display); font-size: 54px; line-height: 1; color: var(--red-l); }
.newbadges { margin: 10px 0; font-size: 14px; }
.streaks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 12px; }
.streaks > div { background: var(--panel2); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.streaks b { font-family: var(--display); font-size: 26px; }
.streaks .muted { font-size: 12px; }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.badge-i { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 12px; opacity: .45; filter: grayscale(1); }
.badge-i.got { opacity: 1; filter: none; border-color: var(--gold); background: rgba(224,176,74,.06); }
.badge-i .bi { font-size: 26px; line-height: 1.1; }
.badge-i .bn { font-size: 12px; font-weight: 700; }
.badge-i .bd { font-size: 10.5px; color: var(--muted); line-height: 1.25; }
.route { list-style: none; padding: 0; margin: 6px 0 10px; counter-reset: r; display: flex; flex-direction: column; gap: 6px; }
.route li { counter-increment: r; display: flex; gap: 8px; align-items: center; }
.route li::before { content: counter(r); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.route li .item { flex: 1; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.mic { border: 1px dashed var(--line); background: none; color: var(--muted); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; margin: -4px 0 10px; cursor: pointer; }
.mic.on { color: #fff; background: var(--red); border-color: var(--red); animation: glow 1.2s ease-in-out infinite; }

.btn { transition: transform .12s ease, box-shadow .2s ease, background .2s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.pulse { animation: glow 1.8s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 55%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; } }
#app.anim .card, #app.anim .tiles > .card, #app.anim .list > * { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
#app.anim .card:nth-of-type(2) { animation-delay: .05s; } #app.anim .card:nth-of-type(3) { animation-delay: .1s; }
#app.anim .card:nth-of-type(4) { animation-delay: .15s; } #app.anim .card:nth-of-type(n+5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero img { animation: heroin .8s cubic-bezier(.2,.8,.2,1) both; }
.tagline { animation: rise .6s .35s both; }
.brands img { animation: rise .5s both; } .brands img:nth-child(2) { animation-delay: .5s; } .brands img:nth-child(3) { animation-delay: .6s; } .brands img:nth-child(4) { animation-delay: .7s; } .brands img:nth-child(1) { animation-delay: .4s; }
@keyframes heroin { from { opacity: 0; transform: scale(.92); filter: blur(6px) drop-shadow(0 6px 30px rgba(211,42,36,.35)); } to { opacity: 1; transform: none; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { top: 105%; transform: translateX(40px) rotate(720deg); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { #app.anim .card, #app.anim .list > *, .hero img, .tagline, .brands img, .btn.pulse, .mic.on { animation: none !important; } }

/* Пульт легче (2026-12-07): компактные цифры, команда списком, панель без второй рамки */
body.wide .tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
body.wide .tiles > .card { padding: 12px 14px; }
body.wide .tiles .big { font-size: 30px; margin: 2px 0; }
body.wide .tiles .muted { font-size: 12px; }
body.wide #mpanel { background: none; border: 0; padding: 4px 0 0; box-shadow: none; }
.team { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.trow { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.trow[open] { border-color: color-mix(in srgb, var(--red) 50%, var(--line)); }
.trow summary { list-style: none; display: grid; grid-template-columns: 36px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; }
.trow summary::-webkit-details-marker { display: none; }
.ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: hsl(var(--h) 35% 30%); }
.tname { display: flex; flex-direction: column; min-width: 0; }
.tname .muted { font-size: 12px; }
.flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.flag { font-size: 11px; padding: 1px 7px; border-radius: 999px; }
.flag.bad { background: rgba(211,42,36,.15); color: var(--bad-l); }
.tvis { display: flex; flex-direction: column; align-items: flex-end; min-width: 92px; }
.tvis b, .tpay b { font-size: 16px; font-variant-numeric: tabular-nums; }
.tbar { display: block; width: 84px; height: 4px; border-radius: 2px; background: var(--panel2); margin: 4px 0 2px; overflow: hidden; }
.tbar i { display: block; height: 100%; background: var(--red); border-radius: 2px; }
.tpay { display: flex; flex-direction: column; align-items: flex-end; min-width: 96px; }
.small { font-size: 11.5px; }
.ok.small { color: var(--ok); } .bad.small { color: var(--bad-l); }
.tmore { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 18px; padding: 4px 14px 14px 62px; font-size: 13px; }
.tmore > div { display: flex; flex-direction: column; gap: 1px; }
.tmore .muted { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.howto { margin-top: 12px; } .howto summary { color: var(--muted); font-size: 13px; cursor: pointer; }
@media (max-width: 560px) { body.wide .tiles .big { font-size: 24px; } body.wide .tiles .label { font-size: 10px; } .trow summary { grid-template-columns: 32px 1fr auto; row-gap: 6px; } .tpay { grid-column: 3; grid-row: 1; } .tvis { grid-column: 2 / 4; grid-row: 2; align-items: flex-start; flex-direction: row; gap: 6px; flex-wrap: wrap; } .tmore { padding-left: 14px; } }
