/* Лидоруб — мини-апп. Полная дизайн-система по макету «Лидоруб — макет панели».
   Тёмный неон, Neoneon + Montserrat + Caveat, два цвета неона (оранж/жёлтый). */

@font-face {
  font-family: 'Neoneon';
  src: url('Neoneon.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --vh: 100dvh;                 /* переопределяется из Telegram в app.js */
  --bg: #0E0E0F;
  --ink: #F5F5F6;
  --muted: #B9BBC2;
  --muted2: #8D9099;
  --soft: #C9CBD1;
  --near-white: #E9E9EC;
  --dark-ink: #1C1300;
  --line: rgba(255,255,255,0.13);
  --card-line: rgba(255,255,255,0.09);
  --glass: rgba(255,255,255,0.06);
  --divider: rgba(255,255,255,0.08);
  /* оранжевый неон (Лиды) */
  --o1: #FF9229; --o2: #FFA54F; --o3: #FFB56B; --o4: #FFDDB8; --o5: #FFE9D2; --o-badge: #FF8A1F;
  /* жёлтый неон (Чаты) */
  --y1: #FFD84A; --y-badge: #FFD360; --y-ans: #FFE7A3; --y5: #FFF3CC; --y-mark: #FFEDB8; --y-menu: #FFF0B8;
  /* приписки / предупреждения */
  --red: #FF4D66; --warn-ic: #FF6B80; --warn-tx: #FF8A9A;
  --gold1: #FFDC7C; --gold2: #FFD360; --gold3: #FFC740;
}

* { box-sizing: border-box; }
:root { --vh: 100vh; }
@supports (height: 100dvh) { :root { --vh: 100dvh; } }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Montserrat','Segoe UI',system-ui,sans-serif;
  font-size: 14px; line-height: 22px; font-weight: 500;
  -webkit-font-smoothing: antialiased;
  min-height: var(--vh);
}
a { color: var(--ink); text-decoration: none; }
button { font-family: inherit; color: inherit; }
::placeholder { color: var(--muted2); opacity: 1; }

/* ── Фон: текстура стружки + свечение color-dodge (как в макете) ── */
.ground { position: fixed; inset: 0; z-index: -2; background-color: var(--bg);
  background-image:
    radial-gradient(70% 22% at 30% 8%, rgba(178,80,18,0.65) 0%, rgba(0,0,0,0) 74%),
    linear-gradient(118deg, rgba(120,120,124,0) 0%, rgba(120,120,124,0.5) 24%, rgba(120,120,124,0) 50%),
    url('bg.webp');
  background-size: 100% 100%, 100% 100%, cover;
  background-position: center top, center top, center top;
  background-repeat: no-repeat;
  background-blend-mode: color-dodge, color-dodge, normal; }
.ground.yellow { background-image:
    radial-gradient(70% 22% at 30% 8%, rgba(176,132,14,0.62) 0%, rgba(0,0,0,0) 74%),
    linear-gradient(118deg, rgba(120,120,124,0) 0%, rgba(120,120,124,0.5) 24%, rgba(120,120,124,0) 50%),
    url('bg.webp');
  background-size: 100% 100%, 100% 100%, cover;
  background-position: center top, center top, center top;
  background-repeat: no-repeat;
  background-blend-mode: color-dodge, color-dodge, normal; }
.ground.gsplash { background-image:
    radial-gradient(88% 31% at 50% 35%, rgba(178,80,18,0.6) 0%, rgba(0,0,0,0) 74%),
    radial-gradient(125% 78% at 50% 42%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.17) 60%, rgba(0,0,0,0.42) 100%),
    url('splash.webp');
  background-size: 100% 100%, 100% 100%, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
  background-blend-mode: color-dodge, normal, normal; }
.ground-dim { position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.12) 45%, rgba(0,0,0,0.38) 100%); }

/* ── Экран: прокручивается вся страница целиком (шапка едет вместе с контентом) ── */
.screen, .screen.flow { position: relative; min-height: var(--vh); display: block; }
.app-header { padding: 16px 20px 0; display: flex; flex-direction: column; gap: 14px; overflow: visible; }
main.content { padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 14px; }
main.has-nav { padding-bottom: 96px; }

/* ── Заголовки ── */
.neon { margin: 0; font-family: 'Neoneon','Montserrat',sans-serif; font-weight: 400;
  letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap; color: var(--o1);
  text-shadow: 0 0 0.013em #FFA347, 0 0 0.04em rgba(255,105,10,1), 0 0 0.08em rgba(255,105,10,0.95),
    0 0 0.14em rgba(250,95,5,0.85), 0 0 0.2em rgba(240,85,0,0.6); }
.neon.yellow { color: var(--y1);
  text-shadow: 0 0 0.013em #FFE27A, 0 0 0.04em rgba(255,196,20,1), 0 0 0.08em rgba(255,190,10,0.95),
    0 0 0.14em rgba(250,175,5,0.85), 0 0 0.2em rgba(240,160,0,0.6); }
.neon.xl { font-size: clamp(40px, 13.5vw, 54px); line-height: 0.94; }
.neon.lg { font-size: clamp(34px, 12vw, 44px); line-height: 1.02; }
.neon.stat { font-size: clamp(32px, 11vw, 46px); line-height: 1.02; }
.script { margin: 0; font-family: 'Caveat',cursive; font-weight: 600; color: var(--red);
  text-shadow: 0 0 6px rgba(215,20,50,0.9), 0 0 18px rgba(200,15,45,0.55);
  transform: rotate(-5deg); transform-origin: 0% 100%; white-space: nowrap; }
.script.md { font-size: clamp(20px, 6.5vw, 26px); line-height: 1.1; }
.script.sm { font-size: 24px; line-height: 28px; transform: rotate(-4deg); }

.titstack { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.titstack .script { margin-left: 6px; }
.hdr-top { display: flex; align-items: center; gap: 8px; }
.hdr-top .listen { flex: 1 1 auto; min-width: 0; }

.listen { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px;
  color: var(--near-white); font-weight: 500; text-shadow: 0 0 8px rgba(10,10,12,0.9); }
.listen .dot { width: 7px; height: 7px; border-radius: 50%; background: #FFC98A; box-shadow: 0 0 2px #FFC98A, 0 0 10px #FF7A1A; flex-shrink: 0; }
.ground.yellow ~ #app .listen .dot, .y .listen .dot { background: #FFE39A; box-shadow: 0 0 2px #FFE39A, 0 0 10px #FFC21A; }
.title-row { display: flex; align-items: flex-end; gap: 12px; max-width: 100%; overflow: hidden; }
.title-row .script { flex-shrink: 1; min-width: 0; overflow: hidden; margin-bottom: 4px; }
.title-row .spacer { flex: 1 1 auto; }

/* ── Шапка вложенного экрана ── */
.back { display: inline-flex; align-items: center; gap: 10px; color: var(--soft);
  font-size: 14px; font-weight: 600; cursor: pointer; background: none; border: none; padding: 0; height: 44px; }
.sq { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(14,14,16,0.6); color: var(--near-white); display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07); cursor: pointer; }

/* ── Кнопки ── */
.btn { height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass);
  color: var(--ink); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; padding: 0 16px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
  white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.gold { border: none; color: var(--dark-ink); font-weight: 700;
  background: linear-gradient(180deg, var(--gold1) 0%, var(--gold2) 46%, var(--gold3) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -1px 0 rgba(170,95,0,0.3),
    0 0 3px rgba(255,190,90,0.9), 0 0 14px rgba(255,120,20,0.6), 0 0 30px rgba(240,85,0,0.32); }
.btn.outline { border: 1px solid rgba(255,255,255,0.32); background: rgba(255,255,255,0.09); color: #fff; }
.btn.dashed { border: 1px dashed rgba(255,255,255,0.24); background: transparent; color: var(--soft); }
.btn.ghost { background: transparent; border: none; color: var(--muted); height: 44px; }
.btn.grow { flex: 1 1 0; min-width: 0; }
.btn.icon { width: 46px; flex-shrink: 0; padding: 0; color: var(--muted); }
.btn.tall { height: 50px; }
/* оранжевая кнопка (цвет «Лиды») */
.btn.orange { border: none; color: #2a1403; font-weight: 700;
  background: linear-gradient(180deg, #FFB45A 0%, #FF8A1F 52%, #F56A00 100%);
  box-shadow: inset 0 1px 0 rgba(255,232,205,0.55), inset 0 -1px 0 rgba(150,70,0,0.3),
    0 0 3px rgba(255,165,80,0.9), 0 0 14px rgba(255,120,20,0.6), 0 0 30px rgba(240,85,0,0.3); }
/* неоновые стрелки направления */
.narr { filter: drop-shadow(0 0 4px currentColor); }
.btn.gold .narr, .btn.orange .narr { filter: drop-shadow(0 0 3px rgba(60,20,0,0.35)); }
/* корзина — насыщенно-красная #c81509 с неоном */
.btn.icon.danger { color: #fff; border: 1px solid #e0260f; background: #c81509;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 0 12px rgba(200,21,9,0.9), 0 0 26px rgba(200,21,9,0.5); }
.btn.icon.danger svg { filter: drop-shadow(0 0 2px rgba(0,0,0,0.35)); }
/* «Это лид?» — Да/Нет с анимацией раскрытия */
.ynq { font-size: 13px; color: var(--muted); margin: 4px 2px 7px; font-weight: 600; }
.ynrow { display: flex; gap: 8px; }
.ynrow .yn { flex: 1 1 50%; min-width: 0; height: 50px; border-radius: 14px; border: none; font-weight: 700; font-size: 15px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; white-space: nowrap;
  transition: flex-basis .3s ease, opacity .22s ease, margin .3s ease, padding .22s ease; }
.yn.yes { color: #06300f; background: linear-gradient(180deg,#78E894 0%,#2ECB58 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 0 14px rgba(46,203,88,0.55), 0 0 30px rgba(46,203,88,0.28); }
.yn.no { color: #3a0510; background: linear-gradient(180deg,#FF8498 0%,#FF3B5C 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 0 14px rgba(255,59,92,0.55), 0 0 30px rgba(255,59,92,0.28); }
.ynrow.picked-yes .yes, .ynrow.picked-no .no { flex-basis: 100%; }
.ynrow.picked-yes .no, .ynrow.picked-no .yes { flex-basis: 0; opacity: 0; margin-left: -8px; padding: 0; pointer-events: none; }
.yn .tick { display: none; }
.ynrow.picked-yes .yes .tick, .ynrow.picked-no .no .tick { display: inline-flex; }
.row { display: flex; gap: 8px; }
.exp-row .btn { height: 40px; font-size: 13px; color: var(--soft); }
.tpl-text { max-height: 58px; overflow: hidden; position: relative; transition: max-height .2s; }
.card.open .tpl-text { max-height: 1200px; }

/* ── Карточки ── */
.card { border-radius: 22px; background: linear-gradient(180deg, #1D1E22 0%, #141517 100%);
  border: 1px solid var(--card-line); box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 28px 44px -30px rgba(0,0,0,0.95);
  padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card.pad0 { padding: 0 16px; }
.hot { border-radius: 23px; padding: 1px;
  background: linear-gradient(140deg, #FFA54F 0%, rgba(255,150,60,0.5) 20%, rgba(255,255,255,0.16) 55%, rgba(255,255,255,0.06) 100%);
  box-shadow: 0 22px 46px -26px rgba(255,110,20,0.6), 0 0 28px -12px rgba(255,110,20,0.6); }
.hot > .inner { border-radius: 22px; background: linear-gradient(180deg, #231D19 0%, #151517 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.hot.y { background: linear-gradient(140deg, #FFD360 0%, rgba(255,205,70,0.5) 20%, rgba(255,255,255,0.16) 55%, rgba(255,255,255,0.06) 100%);
  box-shadow: 0 22px 46px -26px rgba(255,185,30,0.55), 0 0 28px -12px rgba(255,185,30,0.5); }
.hot.y > .inner { background: linear-gradient(180deg, #221F17 0%, #151517 100%); }

.meta { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; }
.meta .chat { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-weight: 500; }
.meta .time { flex-shrink: 0; color: var(--muted2); font-weight: 600; font-size: 14px;
  background: none; border: none; padding: 0; box-shadow: none; text-shadow: none; }
.meta .time.hot { color: var(--o2); }
.meta .time.hot.y { color: var(--y-badge); }
.meta .pt { width: 7px; height: 7px; border-radius: 50%; background: #FFD2A1; box-shadow: 0 0 10px #FF7A1A; flex-shrink: 0; }
.who { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.who b { font-size: 17px; line-height: 24px; font-weight: 600; }
.who span { font-size: 13px; line-height: 18px; color: var(--muted); }
.msg { margin: 0; font-size: 14px; line-height: 22px; color: var(--ink); overflow-wrap: anywhere; }
.msg mark { background: rgba(255,130,30,0.2); color: var(--o4); border-radius: 6px; padding: 2px 5px; }
.y .msg mark, .msg.y mark { background: rgba(255,200,40,0.18); color: var(--y-mark); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .k { font-size: 12px; line-height: 16px; color: var(--muted); background: rgba(255,255,255,0.06);
  border-radius: 8px; padding: 4px 9px; white-space: nowrap; }

/* блок «Ответ без продаж» */
.answer { border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 10px 12px; }
.answer .h { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--y-badge); margin-bottom: 4px; }
.answer p { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink); white-space: pre-wrap; }

/* ── Сегменты ── */
.seg { display: flex; height: 48px; border-radius: 16px; background: rgba(14,14,16,0.82);
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.11); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.seg button { flex: 1 1 0; min-width: 0; height: 46px; border: none; background: transparent; padding: 4px;
  color: var(--soft); font-size: 13px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.seg button .pill { width: 100%; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; overflow: hidden; }
.seg button .pill span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg button[aria-pressed="true"] .pill { background: linear-gradient(180deg, rgba(255,140,40,0.3) 0%, rgba(255,105,15,0.16) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,160,70,0.62), inset 0 1px 0 rgba(255,225,190,0.28), 0 0 16px rgba(255,120,20,0.3);
  color: var(--o5); font-weight: 700; }
.seg button[aria-pressed="true"] .count { color: var(--o3); }
.seg.y button[aria-pressed="true"] .pill { background: linear-gradient(180deg, rgba(255,210,60,0.26) 0%, rgba(255,185,25,0.13) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,215,90,0.6), inset 0 1px 0 rgba(255,235,190,0.28), 0 0 16px rgba(255,190,30,0.26); color: var(--y5); }
.seg.y button[aria-pressed="true"] .count { color: var(--y-badge); }
.seg .count { color: var(--muted2); font-weight: 600; }

/* ── Переключатель ── */
.toggle { width: 44px; height: 26px; border-radius: 13px; padding: 0 3px; display: flex; align-items: center;
  background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); cursor: pointer; border: none; transition: background .15s; flex-shrink: 0; }
.toggle .knob { width: 20px; height: 20px; border-radius: 50%; background: var(--muted2); transition: transform .15s, background .15s; }
.toggle[aria-checked="true"] { background: linear-gradient(180deg, #FFB45A 0%, #FF8A1F 100%);
  box-shadow: inset 0 1px 0 rgba(255,230,200,0.5), 0 0 12px rgba(255,120,20,0.5); }
.toggle[aria-checked="true"] .knob { transform: translateX(18px); background: #fff; }
.toggle.y[aria-checked="true"] { background: linear-gradient(180deg, #FFE27A 0%, #FFC21A 100%);
  box-shadow: inset 0 1px 0 rgba(255,245,200,0.6), 0 0 12px rgba(255,196,30,0.5); }

/* ── Список строк ── */
.set-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; }
.set-row + .set-row { border-top: 1px solid var(--divider); }
.set-row .tile { width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: var(--o3); }
.set-row .tile.y { color: var(--y-badge); } .set-row .tile.sys { color: var(--soft); } .set-row .tile.warn { color: var(--warn-ic); }
.set-row .lbl { flex: 1 1 auto; min-width: 0; }
.set-row .lbl b { font-size: 14px; line-height: 20px; font-weight: 600; display: block; }
.set-row .lbl span { font-size: 12px; line-height: 16px; color: var(--muted); }
.set-row .num { font-size: 16px; font-weight: 700; color: var(--o4); }
.set-row .arrow { color: var(--muted2); flex-shrink: 0; }
.set-row.link { cursor: pointer; }

.section-h { margin: 6px 4px 0; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted2); display: flex; justify-content: space-between; }
.section-h span { font-weight: 500; letter-spacing: 0; text-transform: none; }
.hint { margin: 0 4px; display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.hint svg { flex-shrink: 0; margin-top: 1px; }

/* ── Поля ── */
textarea, input.text { width: 100%; border: 1px solid rgba(255,255,255,0.14); border-radius: 14px;
  background: rgba(14,14,16,0.72); color: var(--ink); font-family: inherit; font-size: 15px; line-height: 22px;
  padding: 11px 14px; outline: none; resize: none; }
textarea.draft { font-size: 14px; line-height: 21px; border-color: rgba(255,160,70,0.4); border-radius: 16px;
  box-shadow: 0 0 22px -10px rgba(255,120,20,0.55); }
.field-label { margin: 0 4px 6px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); display: block; }

/* ── Нижнее меню ── */
.nav { position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 50; height: 64px; border-radius: 24px;
  background: rgba(24,25,28,0.95); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,0.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 24px 40px -16px rgba(0,0,0,0.95); display: flex; padding: 0 6px; }
.nav a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; }
.nav .lbl { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 10px;
  font-size: 11px; line-height: 14px; color: var(--muted2); font-weight: 500; border-radius: 16px; }
.nav a.active .lbl { background: rgba(255,130,30,0.16); box-shadow: inset 0 1px 0 rgba(255,225,190,0.16); color: var(--o4); font-weight: 600; }
.nav a.active.y .lbl { background: rgba(255,205,60,0.15); color: var(--y-menu); }
.nav a.active svg { filter: drop-shadow(0 0 5px rgba(255,120,20,0.9)); }
.nav a.active.y svg { filter: drop-shadow(0 0 5px rgba(255,196,30,0.9)); }
.badge { position: absolute; top: -2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--o-badge); box-shadow: 0 0 0 2px #18191C, 0 0 10px rgba(255,120,20,0.85);
  color: var(--dark-ink); font-size: 10px; line-height: 18px; font-weight: 800; text-align: center; }
.badge.y { background: var(--y-badge); box-shadow: 0 0 0 2px #18191C, 0 0 10px rgba(255,196,40,0.75); }

/* ── Этапы (карточка лида) ── */
.steps { display: flex; flex-direction: column; }
.step { display: flex; align-items: center; gap: 12px; height: 44px; background: none; border: none; text-align: left; cursor: pointer; padding: 0; color: var(--muted2); font-size: 14px; font-weight: 500; }
.step .dot { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.step.done { color: var(--ink); } .step.done .dot { background: linear-gradient(180deg, #FFB45A, #FF8A1F); color: var(--dark-ink); box-shadow: 0 0 10px rgba(255,120,20,0.5); }
.step.cur { color: var(--o5); font-weight: 700; } .step.cur .dot { background: #141416; border: 2px solid var(--o2); box-shadow: 0 0 12px rgba(255,120,20,0.5); }
.step.cur .dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--o3); }
.step .dot.todo { background: #141416; border: 2px solid rgba(255,255,255,0.18); }
.step .t { flex: 1 1 auto; } .step .when { font-size: 12px; color: var(--muted2); font-weight: 500; }

/* ── Статистика ── */
.bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 140px; padding-top: 18px; }
.bar { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar .num { font-size: 11px; color: var(--muted); }
.bar .col { width: 22px; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column-reverse; background: rgba(255,255,255,0.16); }
.bar .col .taken { background: var(--o1); box-shadow: 0 0 10px rgba(255,120,20,0.6); }
.bar .day { font-size: 11px; color: var(--muted2); }
.legend { display: flex; gap: 14px; font-size: 11px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.statgrid { display: flex; border-top: 1px solid var(--divider); padding-top: 12px; }
.statgrid div { flex: 1 1 0; text-align: center; border-right: 1px solid var(--divider); }
.statgrid div:last-child { border-right: none; }
.statgrid b { display: block; font-size: 20px; font-weight: 800; color: var(--o4); }
.statgrid span { font-size: 11px; color: var(--muted); }
.bignum { font-size: clamp(34px,11vw,42px); line-height: 1; font-weight: 800; color: var(--o4); text-shadow: 0 0 18px rgba(255,110,20,0.6); }
.track { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.track .ln { flex: 1 1 auto; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); overflow: hidden; }
.track .ln i { display: block; height: 4px; border-radius: 2px; background: var(--o1); box-shadow: 0 0 8px rgba(255,120,20,0.6); }
.track .nm { width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.track .v { color: var(--o4); font-weight: 700; }

/* ── Заставка ── */
.splash { position: relative; height: var(--vh); display: flex; align-items: center; justify-content: center; }
.splash .logo { text-align: center; margin-top: -80px; }
.splash .logo .neon { font-size: clamp(56px, 22vw, 76px); line-height: 0.95; animation: neon-flicker 4.8s infinite; }
@keyframes neon-flicker {
  0%,19%,21%,23%,80%,100% { opacity: 1; }
  20% { opacity: 0.35; } 22% { opacity: 0.85; }
  55% { opacity: 1; } 56% { opacity: 0.45; } 57% { opacity: 1; }
  82% { opacity: 0.6; } 84% { opacity: 1; }
}
.splash .logo .by { font-family: 'Caveat',cursive; font-weight: 600; font-size: 34px; color: #fff; display: inline-block; transform: rotate(-8deg); margin-top: -6px;
  text-shadow: 0 0 4px #fff, 0 0 9px rgba(255,255,255,0.8), 0 0 18px rgba(255,255,255,0.5), 0 0 34px rgba(255,255,255,0.28); }
.loader { position: absolute; left: 60px; right: 60px; bottom: 96px; display: flex; flex-direction: column; gap: 12px; }
.loader .top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; text-shadow: 0 0 8px rgba(10,10,12,0.95); }
.loader .top .l { letter-spacing: 0.24em; } .loader .top .p { letter-spacing: 0.06em; color: var(--soft); }
.loader .bar2 { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.18); overflow: hidden; }
.loader .bar2 i { display: block; height: 4px; width: 0%; border-radius: 2px; background: var(--o1); box-shadow: 0 0 9px rgba(250,95,5,0.9); transition: width .12s linear; }
.loader p { margin: 6px 0 0; text-align: center; color: var(--soft); font-size: 14px; text-shadow: 0 0 8px rgba(10,10,12,0.95); }

/* ── Прочее ── */
.empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.spin { width: 28px; height: 28px; border: 3px solid rgba(255,255,255,0.15); border-top-color: var(--o1); border-radius: 50%; animation: sp .8s linear infinite; margin: 44px auto; }
@keyframes sp { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 20;
  background: rgba(24,25,28,0.98); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px;
  font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,0.6); opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 80%; text-align: center; }
.toast.show { opacity: 1; }
.tiles { display: flex; gap: 10px; } .tiles .t { flex: 1 1 0; border-radius: 18px; background: var(--glass); border: 1px solid var(--card-line); padding: 14px; }
.tiles .t b { font-size: 28px; font-weight: 800; color: var(--o4); display: block; } .tiles .t span { font-size: 12px; color: var(--muted); }
.key-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 7px 0; }
.key-row + .key-row { border-top: 1px solid var(--divider); }
.key-row .kt { flex: 1 1 auto; min-width: 0; } .key-row .kt b { font-size: 14px; font-weight: 600; display: block; overflow-wrap: anywhere; }
.key-row .kt span { font-size: 12px; color: var(--muted2); }
.key-row .tier { font-size: 11px; font-weight: 700; color: var(--o3); background: rgba(255,130,30,0.14); border-radius: 8px; padding: 3px 8px; flex-shrink: 0; }
.key-sub { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted2);
  padding: 12px 0 2px; }
.key-sub:first-child { padding-top: 6px; }
.kacts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.kbtn { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); color: var(--soft); font-size: 15px; line-height: 1; cursor: pointer; }
.kbtn svg { width: 18px; height: 18px; }
.kbtn.on { border-color: rgba(255,160,70,0.55); background: rgba(255,130,30,0.16); box-shadow: 0 0 10px rgba(255,120,20,0.25); }
.kbtn.del { color: var(--muted2); } .kbtn.del:active { color: #FF6B5A; border-color: rgba(255,90,70,0.4); }
.addbar { display: flex; gap: 8px; align-items: stretch; }
.addbar input.text { flex: 1 1 auto; }
.addbar .btn { flex-shrink: 0; width: 48px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.st-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; margin-left: 2px; }
.st-dot.ok { background: #6BE08A; box-shadow: 0 0 2px #6BE08A, 0 0 9px rgba(80,220,120,0.8); }
.st-dot.off { background: #6a6a70; box-shadow: none; }
.howto { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.howto li { font-size: 13px; line-height: 19px; color: var(--soft); }
.howto code { font-family: ui-monospace,Menlo,Consolas,monospace; font-size: 12px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; padding: 1px 6px; color: var(--o5); }
