/* Общие стили интерфейса конкурентного анализа.
   Ванильный CSS, без сборки и без внешних ресурсов (шрифтов, иконок, CDN):
   интерфейс должен открываться в закрытом контуре и офлайн.

   Визуальная основа — система отчётности seo-rep: тёмно-синее меню слева,
   светлый тёплый фон, белые карточки с радиусом 14, акцент #2a78d6.
   Светлая тема по умолчанию; тёмная включается кнопкой в шапке
   (атрибут data-theme="dark" на <html>, выбор хранится в localStorage). */

:root {
  color-scheme: light;

  /* ══ Токены v13 (SEO_Competitor_Dashboard_v13) ══════════════════════
     Старые имена сохранены — экраны на них опираются; значения взяты
     из палитры v13. Новые роли v13 (--canvas, --ink, --blue…) — ниже
     в отдельном блоке-псевдониме, чтобы оба словаря работали. */

  /* Поверхности: canvas → --bg, paper → --bg-card */
  --bg: #f3f6fa;
  --bg-card: #ffffff;
  --bg-sunken: #eef3f8;       /* дорожки, шапки таблиц, сегменты */
  --bg-hover: #eef4fb;        /* нейтральный hover строки/пункта */
  --bg-row: #f9fbfd;          /* зебра таблиц, paper-2 */

  /* Текст: ink / muted / quiet */
  --fg: #172237;
  --fg-muted: #4a5d77;
  --fg-faint: #586a82;        /* ≥4,9:1 на всех светлых поверхностях */

  /* Линии: border v13 */
  --line: #dce5f0;
  --line-strong: #c9d5e3;
  /* Граница полей ввода: ≥3:1 к фону (WCAG 1.4.11). */
  --ctl-line: #7a8ba3;

  /* Акцент — синий v13 (он же цвет «нашего» бренда). */
  --accent: #175ec0;
  --accent-2: #3f86e0;
  --accent-ink: #0d4d9c;
  --accent-soft: #eaf3ff;
  --accent-line: #b7d3f3;
  --accent-ring: rgba(23, 94, 192, .30);
  /* Кольцо фокуса ≥ 3:1 к белому и холсту (A4-09: было #6fa6e7 — 2,5:1). */
  --focus: #2f6fd6;
  --accent-btn: #175ec0;
  --accent-btn-hover: #0d4d9c;
  --bad-btn: #a13442;
  --on-brand: #ffffff;
  /* Бейдж «демо» — свои роли вместо литералов в ui.css (A1-41). */
  --demo: #7a2fb8;
  --demo-soft: #f5e8ff;
  --demo-line: #e0c4f5;

  /* Rail меню: v13 --rail / --rail-on */
  --nav-bg: #172943;
  --nav-ink: #c3d1e4;
  --nav-grp: #8ea3c2;
  --nav-active: #263f63;
  --nav-hover: #1f3453;
  --nav-mark: #6aa9f7;

  /* Статусы: green / amber / red v13. Янтарный — «конкурент впереди». */
  --bad: #a13442;
  --bad-soft: #fff0f0;
  --warn: #875c0a;
  --warn-soft: #fff4df;
  --good: #137450;
  --good-soft: #e9f7f0;
  --none: #5f6b7c;
  --none-soft: #eef1f5;

  /* Цвета брендов (волна 3, G4, A1-04/A2-15): постоянный слот 1…12
     (ci_brand.color_slot → ui.brandColor). Синий — только «мы». Палитра
     подобрана так, что ΔE76 между любыми двумя слотами и нашим синим ≥ 25,
     до янтарного «конкурент впереди» ≥ 27 (прежний --brand-7 #806319 был
     в 8 единицах от --warn), до красного/зелёного статусов ≥ 22/16;
     контраст к белому ≥ 5:1. Проверка — tests/test_wave3_G4.py. */
  --brand-own: #175ec0;
  --brand-own-soft: #eaf3ff;
  --brand-1: #8d387a; --brand-1-soft: #f5edf3;
  --brand-2: #076d64; --brand-2-soft: #e9f2f1;
  --brand-3: #a54e2e; --brand-3-soft: #f7efec;
  --brand-4: #27627e; --brand-4-soft: #ecf1f3;
  --brand-5: #647300; --brand-5-soft: #f1f2e8;
  --brand-6: #736e41; --brand-6-soft: #f2f2ee;
  --brand-7: #965a64; --brand-7-soft: #f6f0f1;
  --brand-8: #1e7d1e; --brand-8-soft: #ebf3eb;
  --brand-9: #73649b; --brand-9-soft: #f2f1f6;
  --brand-10: #be2869; --brand-10-soft: #f9ecf2;
  --brand-11: #8c55b9; --brand-11-soft: #f5f0f9;
  --brand-12: #23551e; --brand-12-soft: #ebf0eb;

  /* Серии графиков = цвета брендов (старые имена --c1…--c12). */
  --c1: #8d387a;
  --c2: #076d64;
  --c3: #a54e2e;
  --c4: #27627e;
  --c5: #647300;
  --c6: #736e41;
  --c7: #965a64;
  --c8: #1e7d1e;
  --c9: #73649b;
  --c10: #be2869;
  --c11: #8c55b9;
  --c12: #23551e;
  --c-other: #9aa8ba;

  /* Радиусы */
  --radius: 14px;
  --radius-lg: 17px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --ctl-h: 34px;

  /* Глубина: мягкая многослойная тень v13 */
  --shadow: 0 3px 9px rgba(20, 47, 81, .035), 0 14px 30px rgba(20, 47, 81, .065);
  --shadow-sm: 0 1px 2px rgba(20, 47, 81, .05), 0 4px 12px rgba(20, 47, 81, .045);
  --shadow-lift: 0 9px 18px rgba(20, 47, 81, .10), 0 21px 33px rgba(20, 47, 81, .10);
  --shadow-menu: 0 18px 44px rgba(17, 42, 77, .22), 0 4px 12px rgba(17, 42, 77, .11);
  --shadow-drawer: -14px 0 36px rgba(13, 26, 44, .18);
  --scrim: rgba(13, 26, 44, .32);

  /* Шкала отступов (4-пиксельная сетка) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;

  /* Типографика: системный стек как в v13, без внешних шрифтов */
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Menlo", "Consolas", monospace;
  /* Шкала кеглей (волна 3, G4, A1-11): 10 размеров на всё приложение.
     В css/*.css font-size — только через эти токены (линтер в
     tests/test_wave3_G4.py). Роли: подпись/бейдж 10–11, мелкий текст и
     таблицы 12–13, основной 14, заголовок карточки 15, h2 раздела 17,
     число KPI 26, h1 экрана 32, число «Главного сигнала» 48. */
  --fs-2xs: 10px;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-md: 13px;
  --fs-base: 14px;
  --fs-lg: 15px;
  --fs-xl: 17px;
  --fs-kpi: 26px;
  --fs-h1: 32px;
  --fs-hero: 48px;
  --fs-ios-input: 16px;   /* H2-05: меньше — Safari на iPhone/iPad увеличивает страницу при фокусе */
  --fs-num: var(--fs-lg);
  /* Начертания: четыре. У Segoe UI (Windows 10) нет вариативной оси —
     550/650/720/750 округлялись непредсказуемо, иерархия схлопывалась. */
  --fw-regular: 400;
  --fw-medium: 600;
  --fw-bold: 700;
  --fw-heavy: 800;

  /* Шкала высот контролов (A1-05, A1-07, A1-08, A1-25): 34 — формы и
     шапки (экрана и приложения), 32 — фильтры и панели инструментов,
     28 — только строки таблиц и компактные действия внутри карточек. */
  --ctl-h-sm: 32px;
  --ctl-h-xs: 28px;

  /* Отступы карточек (A1-10, A1-16): обычная карточка и плитка/строка. */
  --card-pad: 18px 20px 16px;
  --card-pad-sm: 14px 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: .17s;
}

/* Тёмная тема — ТОЛЬКО по кнопке (data-theme="dark"), не от настройки ОС.
   Те же роли v13: глубокий синий холст, бумага чуть светлее, акценты
   брендов осветлены до AA на бумаге. */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0d1420;
  --bg-card: #141d2c;
  --bg-sunken: #1a2436;
  --bg-hover: #1f2b40;
  --bg-row: #172131;

  --fg: #e8eef7;
  --fg-muted: #b4c1d3;
  --fg-faint: #95a5bb;

  --line: #26344a;
  --line-strong: #34465f;
  --ctl-line: #63768f;

  --accent: #6aa6f5;
  --accent-2: #86b8f7;
  --accent-ink: #9cc4f8;
  --accent-soft: #18294a;
  --accent-line: #2f4f80;
  --accent-ring: rgba(106, 166, 245, .38);
  --focus: #7fb3f7;
  /* Кнопка: белый на фоне кнопки ≥ 4,5:1 */
  --accent-btn: #2563c4;
  --accent-btn-hover: #1d55ad;
  --bad-btn: #b3302c;
  --on-brand: #0d1420;
  --demo: #d4a8f5;
  --demo-soft: #2e1e3d;
  --demo-line: #4d3266;

  --nav-bg: #0a1322;
  --nav-ink: #b5c4d9;
  --nav-grp: #8196b5;
  --nav-active: #1c3354;
  --nav-hover: #14243b;
  --nav-mark: #6aa6f5;

  --bad: #ff8f8c;
  --bad-soft: #3a1f25;
  --warn: #e7b560;
  --warn-soft: #33291a;
  --good: #5fd0a0;
  --good-soft: #12302a;
  --none: #a2aec0;
  --none-soft: #232c3a;

  --brand-own: #6aa6f5;
  --brand-own-soft: #18294a;
  --brand-1: #cd73be;  --brand-1-soft: #28263c;
  --brand-2: #00cdcd;  --brand-2-soft: #12303e;
  --brand-3: #d77d4b;  --brand-3-soft: #29282f;
  --brand-4: #559bb4;  --brand-4-soft: #1b2b3b;
  --brand-5: #b4c35f;  --brand-5-soft: #262f32;
  --brand-6: #a0915f;  --brand-6-soft: #232a32;
  --brand-7: #c38782;  --brand-7-soft: #272935;
  --brand-8: #46a55f;  --brand-8-soft: #1a2c32;
  --brand-9: #cdaaff;  --brand-9-soft: #282d43;
  --brand-10: #faa0c3;  --brand-10-soft: #2d2b3d;
  --brand-11: #a58cb4;  --brand-11-soft: #24293b;
  --brand-12: #96c3a0;  --brand-12-soft: #222f39;

  --c1: #cd73be;
  --c2: #00cdcd;
  --c3: #d77d4b;
  --c4: #559bb4;
  --c5: #b4c35f;
  --c6: #a0915f;
  --c7: #c38782;
  --c8: #46a55f;
  --c9: #cdaaff;
  --c10: #faa0c3;
  --c11: #a58cb4;
  --c12: #96c3a0;
  --c-other: #5d6d84;

  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .30);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 3px 10px rgba(0, 0, 0, .25);
  --shadow-lift: 0 4px 12px rgba(0, 0, 0, .45), 0 16px 36px rgba(0, 0, 0, .40);
  --shadow-menu: 0 18px 44px rgba(0, 0, 0, .55), 0 4px 12px rgba(0, 0, 0, .40);
  --shadow-drawer: -14px 0 36px rgba(0, 0, 0, .5);
  --scrim: rgba(3, 7, 14, .6);
}

/* Словарь ролей v13 — псевдонимы на те же значения: новым компонентам
   удобно писать var(--ink), старым экранам — var(--fg). */
:root {
  --canvas: var(--bg);
  --paper: var(--bg-card);
  --paper-2: var(--bg-row);
  --ink: var(--fg);
  --muted: var(--fg-muted);
  --quiet: var(--fg-faint);
  --border: var(--line);
  --blue: var(--accent);
  --blue-soft: var(--accent-soft);
  --amber: var(--warn);
  --amber-soft: var(--warn-soft);
  --green: var(--good);
  --green-soft: var(--good-soft);
  --red: var(--bad);
  --red-soft: var(--bad-soft);
  --rail: var(--nav-bg);
  --rail-on: var(--nav-active);
}

* { box-sizing: border-box; }

html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: var(--fs-base)/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* v13: едва заметное синее свечение у верхнего края холста. */
body:has(> .app) {
  background: radial-gradient(ellipse 50% 340px at 74% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent), var(--bg);
  background-attachment: fixed;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }

h1, h2, h3 { margin: 0; font-weight: var(--fw-bold); line-height: 1.22; letter-spacing: -.012em; }
h1 { font-size: var(--fs-kpi); letter-spacing: -.03em; }
h2 { font-size: var(--fs-xl); letter-spacing: -.02em; }
h3 { font-size: var(--fs-lg); }

p { margin: 0 0 10px; }
/* A1-11: «bolder» от 700 давал 900 — пятое начертание. <b>/<strong> — 700. */
b, strong { font-weight: var(--fw-bold); }

code, kbd, .mono { font-family: var(--mono); font-size: var(--fs-md); }

::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* ── Старая горизонтальная шапка (осталась для совместимости) ─────── */

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 14px; padding: 12px 18px;
  background: var(--bg-card); border-bottom: 1px solid var(--line);
}
.topbar__brand { font-weight: var(--fw-heavy); white-space: nowrap; color: var(--accent); }
.topbar__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.topbar__nav a { padding: 5px 10px; border-radius: 7px; text-decoration: none; color: var(--fg-muted); }
.topbar__spacer { flex: 1 1 auto; }
.topbar__scope { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-md); color: var(--fg-muted); }

/* ── Общая раскладка страницы ─────────────────────────────────────── */

.page { max-width: 1400px; margin: 0 auto; padding: 18px 16px 64px; }

/* Заголовок экрана v13: надзаголовок капсом, крупный вопрос, одна фраза,
   справа действия. Надзаголовок (.page__overline) ставит common.js. */
.page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 18px;
  margin-bottom: 4px;
  min-height: 36px;
}
.page__headmain { flex: 1 1 auto; min-width: min(100%, 280px); max-width: 100%; }
.page__head > h1, .page__headmain > h1 { flex: 1 1 auto; min-width: min(100%, 280px); max-width: 100%; }
.appmain .page__head h1 { font-size: var(--fs-h1); line-height: 1.12; letter-spacing: -.045em; font-weight: var(--fw-bold); }
.page__overline {
  flex: 1 1 100%;
  margin: 0 0 -4px;
  color: var(--accent);
  font-size: var(--fs-xs); font-weight: var(--fw-heavy); letter-spacing: .11em; text-transform: uppercase;
  line-height: 1.3;
}
/* Распорка из старой разметки больше не нужна: кнопки прижимаются вправо
   сами (margin-left:auto), а при переносе встают отдельной строкой справа. */
.page__head > span[style*="flex:1"] { display: none; }
.page__head > #actions, .page__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-left: auto; justify-content: flex-end;
}
/* B6-07 (регресс A1-06): на широком окне действия стоят в строку с h1 —
   переносится сам заголовок, а не кнопки под него (Репутация на 1440:
   кнопки уезжали на 44 px ниже, лид отрывался от h1). */
@media (min-width: 1240px) {
  .page__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 18px; }
  .page__head > .page__overline { grid-column: 1 / -1; }
  .page__head > h1, .page__head > .page__headmain { grid-column: 1; min-width: 0; }
  .page__head > #actions, .page__head > .page__actions { grid-column: 2; flex-wrap: nowrap; margin-left: 0; }
  .page__head > :not(.page__overline):not(h1):not(.page__headmain):not(#actions):not(.page__actions) { grid-column: 1 / -1; }
}

.page__lead {
  margin: 6px 0 16px;
  max-width: 80ch;
  color: var(--fg-muted);
  font-size: var(--fs-base);
  line-height: 1.55;
}

/* «Как пользоваться экраном» — подробное пояснение свёрнуто, чтобы не
   отнимать первый экран у данных. */
details.howto {
  margin: -6px 0 18px;
  max-width: 80ch;
  font-size: var(--fs-md);
  color: var(--fg-muted);
}
details.howto > summary {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; list-style: none;
  color: var(--accent); font-weight: var(--fw-bold); font-size: var(--fs-md);
  padding: 2px 6px 2px 2px; border-radius: 6px;
}
details.howto > summary:hover { background: var(--accent-soft); }
details.howto > summary::-webkit-details-marker { display: none; }
details.howto > summary::before {
  content: ""; display: inline-block;
  width: 16px; height: 16px; flex: none;
  background: currentColor;
  -webkit-mask: no-repeat center / 16px 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E");
          mask: no-repeat center / 16px 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E");
}
details.howto[open] > summary { margin-bottom: 6px; }
details.howto > p, details.howto > ul {
  margin: 0; padding: 12px 15px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); line-height: 1.55;
  box-shadow: var(--shadow-sm);
}
details.howto > ul { padding-left: 30px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── Кнопки ───────────────────────────────────────────────────────── */
/* Виды v13: основная (синяя), вторичная (белая с рамкой), тихая (без рамки),
   опасная (красная рамка). Иконка + текст, иконка 16 px. Высота 34 px,
   маленькая — 28 px. Подъём на 1 px при наведении. */

button, select, input, textarea { font: inherit; color: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: var(--ctl-h);
  padding: 6px 13px;
  /* B6-26: контур вторичной кнопки на белой карточке был 1,4:1 — кнопка
     выглядела слабее поля (3,5:1). Смесь рамки поля и линии ≈ 2,2:1. */
  border: 1px solid color-mix(in srgb, var(--ctl-line) 60%, var(--line-strong));
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--fg);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease,
              box-shadow var(--dur) ease, transform var(--dur) ease;
}
.btn svg, .btn .ico { width: 16px; height: 16px; flex: none; }
a.btn { color: var(--fg); }
.btn:hover:not(:disabled) {
  background: var(--bg-card); border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong)); color: var(--accent);
  transform: translateY(-1px); box-shadow: 0 5px 13px rgba(28, 54, 87, .11);
}
.btn:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn--primary, a.btn--primary {
  background: var(--accent-btn);
  border-color: var(--accent-btn);
  color: #fff;
  box-shadow: 0 1px 2px rgba(23, 94, 192, .25);
}
/* Фон обязателен: у `.btn:hover` та же специфичность, и без него наведение
   на главную кнопку красило её в светлый фон, оставляя белый текст. */
.btn--primary:hover:not(:disabled) {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: #fff;
  box-shadow: 0 7px 16px rgba(24, 89, 184, .24);
}
.btn--primary:hover:not(:disabled) { background: var(--accent-btn-hover); border-color: var(--accent-btn-hover); }

.btn--secondary { background: var(--bg-card); }
.btn--quiet, .btn--ghost { border-color: transparent; background: transparent; color: var(--fg-muted); }
a.btn--ghost, a.btn--quiet { color: var(--fg-muted); }
.btn--quiet:hover:not(:disabled), .btn--ghost:hover:not(:disabled) {
  background: var(--accent-soft); border-color: transparent; color: var(--accent); box-shadow: none; transform: none;
}

.btn--danger, a.btn--danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line-strong)); background: var(--bg-card); }
.btn--danger:hover:not(:disabled) { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }

.btn--small { min-height: 28px; padding: 3px 10px; font-size: var(--fs-md); border-radius: 7px; gap: 6px; }
.btn--small svg, .btn--small .ico { width: 15px; height: 15px; }

.btn--link, button.btn--link {
  display: inline; min-height: 0;
  border: 0; background: none; padding: 0 2px;
  color: var(--accent); font-weight: var(--fw-medium); font-size: inherit;
  text-decoration: none; cursor: pointer;
}
.btn--link:hover:not(:disabled) { background: none; color: var(--accent-ink); text-decoration: underline; transform: none; box-shadow: none; }
.btn--link svg { width: 14px; height: 14px; vertical-align: -2px; }

.btn--icon { padding: 0; width: var(--ctl-h); }
.btn--small.btn--icon { width: 28px; }

/* ── Поля ─────────────────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: var(--fs-md); font-weight: var(--fw-medium); color: var(--fg-muted); }
.field label.checkrow { font-size: var(--fs-md); font-weight: var(--fw-regular); color: var(--fg); }

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]), .field select, .field textarea, select.control, input.control, textarea.control,
.appmain input[type="text"], .appmain input[type="search"], .appmain input[type="email"],
.appmain input[type="password"], .appmain input[type="number"], .appmain input[type="date"],
.appmain input[type="url"], .appmain input:not([type]), .appmain select, .appmain textarea {
  min-height: var(--ctl-h);
  padding: 6px 10px;
  border: 1px solid var(--ctl-line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--fg);
  font-size: var(--fs-base);
  min-width: 0;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.appmain textarea, .field textarea { min-height: 72px; line-height: 1.45; }
.appmain select, select.control { padding-right: 28px; cursor: pointer; }
.field input:not([type="checkbox"]):not([type="radio"]):hover, .appmain input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):hover, .appmain select:hover, .appmain textarea:hover, select.control:hover {
  border-color: var(--accent-2);
}
.field input:focus, .field select:focus, .appmain input:not([type="range"]):focus, .appmain select:focus,
.appmain textarea:focus, select.control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 15px; height: 15px; }
/* B6-12 / B7-10: подсказка в поле не должна выглядеть введённым значением
   («1,5», «120»): курсив и приглушённый цвет. */
::placeholder { color: var(--fg-faint); opacity: 1; font-style: italic; }

/* Фокус с клавиатуры так же заметен, как наведение. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ── Сообщения ────────────────────────────────────────────────────── */

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
  margin-bottom: 14px;
  font-size: var(--fs-base);
  color: var(--fg);
}
.notice__icon {
  flex: none;
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; margin-top: 0;
  color: var(--fg-faint);
}
.notice__icon svg { width: 18px; height: 18px; }
.notice__body { min-width: 0; flex: 1; }
.notice__title { font-weight: var(--fw-bold); }
.notice__body > div + div { color: var(--fg-muted); margin-top: 2px; }

.notice--error { border-color: color-mix(in srgb, var(--bad) 30%, transparent); background: var(--bad-soft); }
.notice--error .notice__icon { color: var(--bad); }
.notice--error .notice__title { color: var(--bad); }
.notice--warn { border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: var(--warn-soft); }
.notice--warn .notice__icon { color: var(--warn); }
.notice--warn .notice__title { color: var(--warn); }
.notice--info { border-color: color-mix(in srgb, var(--accent) 25%, transparent); background: var(--accent-soft); }
.notice--info .notice__icon { color: var(--accent); }
.notice--ok { border-color: color-mix(in srgb, var(--good) 30%, transparent); background: var(--good-soft); }
.notice--ok .notice__icon { color: var(--good); }
.notice--ok .notice__title { color: var(--good); }

/* Пустое состояние: значок, заголовок, одна фраза «что делать», кнопка. */
.empty {
  padding: 40px 24px 36px;
  text-align: center;
  color: var(--fg-muted);
}
.empty::before {
  content: "";
  display: block;
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: var(--accent-soft) no-repeat center / 22px 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23175ec0' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h6l2 2h10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpath d='M12 12v5M9.5 14.5h5'/%3E%3C/svg%3E");
}
.empty__title { font-size: var(--fs-xl); font-weight: var(--fw-bold); color: var(--fg); margin-bottom: 6px; letter-spacing: -.015em; }
.empty__text { max-width: 56ch; margin: 0 auto 16px; font-size: var(--fs-base); line-height: 1.55; }

.skeleton {
  height: 96px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--bg-sunken), var(--bg-hover), var(--bg-sunken));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
  *, *::before, *::after {
    transition: none !important;
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

.muted { color: var(--fg-muted); }
.faint { color: var(--fg-faint); font-size: var(--fs-sm); }
.num { font-variant-numeric: tabular-nums; }

/* ── Полоса режима демонстрации ───────────────────────────────────── */

.mockbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 7px 16px;
  background: var(--warn-soft);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-md); color: var(--warn);
}
.mockbar strong { color: var(--warn); }
.mockbar select { font-size: var(--fs-md); padding: 3px 6px; }

/* ══ Каркас v13: тёмный rail слева, светлая шапка с «пилюлями» контекста ═══ */

.app {
  --side-w: 252px;
  --top-h: 62px;
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "side top" "side main";
  min-height: 100vh;
}

.top {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--top-h);
  padding: 8px 26px;
  background: color-mix(in srgb, var(--bg-card) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
          backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 14px rgba(19, 42, 75, .025);
  position: sticky;
  top: 0;
  z-index: 30;
}
.top__spacer { flex: 1 1 auto; }

/* Логотип — в rail (v13 «КА»), текст бренда виден в широком меню. */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.brand__logo {
  flex: none;
  width: 37px; height: 37px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #5595ef, #1a59ba);
  color: #fff;
  font-weight: var(--fw-heavy); font-size: var(--fs-base); letter-spacing: -.06em;
  box-shadow: 0 4px 12px rgba(10, 40, 90, .35);
}
.brand__text { font-weight: var(--fw-bold); line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; font-size: var(--fs-base); }
.brand__text small {
  display: block; font-weight: var(--fw-regular); font-size: var(--fs-xs);
  color: var(--fg-faint); letter-spacing: .1px;
}
.side .brand { padding: 2px 8px 18px; color: #fff; }
.side .brand__text small { color: var(--nav-grp); }

/* Хлебные крошки v13: «Конкурентный анализ / Проект / Экран». */
.crumbs {
  display: flex; align-items: center; gap: 7px;
  flex: 0 1 auto; min-width: 0;
  font-size: var(--fs-md); color: var(--fg-muted);
  white-space: nowrap;
}
.crumbs b { color: var(--fg); font-weight: var(--fw-medium); overflow: hidden; text-overflow: ellipsis; }
.crumbs__sep { color: var(--fg-faint); }


.side {
  grid-area: side;
  background: var(--nav-bg);
  color: var(--nav-ink);
  padding: 13px 10px 14px;
  overflow-y: auto;
  overflow-x: hidden;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 35;
  scrollbar-width: thin;
  scrollbar-color: #36577d transparent;
}
.side__nav { display: flex; flex-direction: column; gap: 2px; }
.side__grp {
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--nav-grp);
  margin: 12px 12px 4px;
}
/* A1-33: на 1440×900 последний пункт уходил за край без признака прокрутки —
   пункты ниже (34 px), а у нижнего края меню — затухание, пока есть что крутить. */
.side { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
        mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
@media (min-height: 980px) { .side { -webkit-mask-image: none; mask-image: none; } }
.side__grp:first-child { margin-top: 2px; }
.side__nav a {
  display: flex; align-items: center; gap: 11px;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 10px;
  color: var(--nav-ink);
  text-decoration: none;
  font-size: var(--fs-base); font-weight: var(--fw-medium);
  white-space: nowrap;
  position: relative;
  transition: background-color var(--dur) ease, color var(--dur) ease;
}
.side__nav a svg { flex: none; width: 20px; height: 20px; opacity: .85; }
.side__nav a > span { overflow: hidden; text-overflow: ellipsis; }
.side__nav a:hover { background: var(--nav-hover); color: #fff; }
.side__nav a:hover svg { opacity: 1; }
.side__nav a[aria-current="page"] { background: var(--nav-active); color: #fff; font-weight: var(--fw-medium); }
.side__nav a[aria-current="page"] svg { opacity: 1; color: #9cc8ff; }
.side__nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--nav-mark);
}
.side__nav a:focus-visible { outline: 3px solid #87b9fc; outline-offset: -3px; }
.side__sep { height: 1px; margin: 8px 6px; background: rgba(255,255,255,.08); }
.side__foot {
  margin: auto 8px 0; padding-top: 18px;
  font-size: var(--fs-xs); line-height: 1.5; color: var(--nav-grp);
}
/* Шапка меню: логотип и кнопка «свернуть панель» рядом. */
.side__head { display: flex; align-items: center; gap: 6px; padding: 0 0 12px; }
.side__head .brand { flex: 1 1 auto; gap: 8px; padding: 2px 0 2px 4px; min-width: 0; }
.side__head .brand__logo { width: 32px; height: 32px; border-radius: 9px; font-size: var(--fs-md); }
.side__head .brand__text { overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-md); }
.side__head .brand__text small { font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; }
.side__collapse {
  flex: none; display: inline-grid; place-items: center;
  width: var(--ctl-h); height: var(--ctl-h); padding: 0;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; background: rgba(255, 255, 255, .04);
  color: var(--nav-ink); cursor: pointer;
  transition: background-color var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease;
}
.side__collapse:hover { background: var(--nav-hover); color: #fff; border-color: rgba(255, 255, 255, .22); }
.side__collapse svg { width: 18px; height: 18px; transition: transform var(--dur) ease; }
.side__collapse:focus-visible { outline: 3px solid #87b9fc; outline-offset: 1px; }

/* Свёрнутое меню (68 px): только иконки, название — подсказкой справа
   (.side-tip, ставит common.js); подписи не обрезаются, их просто нет. */
.app.is-rail { --side-w: 68px; }
.app.is-rail .side { padding: 13px 8px; align-items: stretch; }
.app.is-rail .side__head { flex-direction: column; gap: 10px; padding-bottom: 10px; }
.app.is-rail .side .brand { justify-content: center; padding: 2px 0; flex: none; }
.app.is-rail .side .brand__text, .app.is-rail .side__foot { display: none; }
.app.is-rail .side__collapse svg { transform: rotate(180deg); }
.app.is-rail .side__grp { font-size: 0; height: 1px; margin: 8px 10px; background: rgba(255, 255, 255, .1); }
.app.is-rail .side__grp:first-child { display: none; }
.app.is-rail .side__nav a { justify-content: center; gap: 0; min-height: 42px; padding: 0; }
/* B6-27: на 1440×900 в свёрнутом меню «Словарь» и «Администрирование»
   уходили под нижний край — ниже окна пункты плотнее. */
@media (max-height: 940px) {
  .app.is-rail .side__nav a { min-height: 36px; }
  .app.is-rail .side__grp { margin: 5px 10px; }
  .app.is-rail .side__head { gap: 6px; padding-bottom: 6px; }
}
.app.is-rail .side__nav a > span {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.app.is-rail .side__nav a[aria-current="page"]::before { left: -8px; }
.side-tip {
  position: fixed; z-index: 120; pointer-events: none;
  padding: 6px 10px; border-radius: 8px;
  background: #0f1d33; color: #fff; font-size: var(--fs-md); font-weight: var(--fw-medium); white-space: nowrap;
  box-shadow: 0 8px 24px rgba(8, 20, 40, .35);
  animation: ui-pop-in .12s ease-out;
}
.side-tip::before {
  content: ""; position: absolute; left: -5px; top: 50%; margin-top: -5px;
  border: 5px solid transparent; border-left: 0; border-right-color: #0f1d33;
}

/* Рабочая область — на всю ширину: карточки, таблицы и графики тянутся,
   абзацы держат читаемую ширину (~80 символов). */
.app > main.page, main.page.appmain {
  grid-area: main;
  max-width: none;
  min-width: 0;
  margin: 0;
  width: 100%;
  padding: 25px 30px 64px;
}
@media (min-width: 1700px) {
  .app > main.page, main.page.appmain { padding-left: 36px; padding-right: 36px; }
}
.appmain p:not([class*="ui-"]):not(.faint):not(.muted), .appmain .page__lead, .appmain details.howto,
.appmain .empty__text, .appmain .notice__text { max-width: 80ch; }
.appmain td p, .appmain th p, .appmain .ui-pop p, .appmain .card--wide p { max-width: none; }

/* Контекст в шапке — «пилюли» v13: ПРОЕКТ / РЫНОК / СНИМОК. */
.top__picker { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; font-size: var(--fs-md); min-width: 0; }
.top__field, .ctxpill {
  display: inline-flex; align-items: center; gap: 7px;
  min-width: 0; height: 34px;
  padding: 0 4px 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-card);
  white-space: nowrap;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.top__field:hover, .ctxpill:hover { border-color: var(--accent-line); box-shadow: 0 3px 10px rgba(22, 53, 88, .08); }
.top__field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.ctxpill { padding-right: 10px; }
.top__pickerlabel, .topbar__pickerlabel, .ctxpill small {
  font-size: var(--fs-xs); font-weight: var(--fw-medium); letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg-faint); padding-left: 0; flex: none;
}
.ctxpill b { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--fg); overflow: hidden; text-overflow: ellipsis; }
.top select.control, .top select.control--small {
  min-height: 30px; height: 30px;
  padding: 0 24px 0 2px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--fg);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  max-width: 300px;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2368778d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; background-size: 15px 15px;
  cursor: pointer;
}
.top select.control:focus { outline: none; box-shadow: none; }
.top select.control:disabled { opacity: .6; cursor: default; }
/* Пилюли ПРОЕКТ / РЫНОК — свои выпадающие списки (ui.listMenu). */
.top__field--project, .top__field--market { padding: 0; }
.top__pill {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%;
  height: 32px; padding: 0 8px 0 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--fg); font: inherit; cursor: pointer; white-space: nowrap;
}
.top__pill:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.top__pill:disabled { opacity: .6; cursor: default; }
.top__pillval { font-size: var(--fs-md); font-weight: var(--fw-bold); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top__pill .ui-chevron { flex: none; width: 15px; height: 15px; color: var(--fg-faint); transition: transform var(--dur) ease; }
.top__pill[aria-expanded="true"] .ui-chevron { transform: rotate(180deg); }
.top__field:has(.top__pill[aria-expanded="true"]) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.top__field--project { width: 300px; }
.top__field--project .top__pill { width: 100%; }
.top__field--project .top__pillval { flex: 1 1 auto; text-align: left; }
.top__field--market { flex: none; max-width: 300px; }
/* Код страны — вместо флага (эмодзи-флаги Windows рисует буквами). */
.ui-ccode {
  flex: none; display: inline-grid; place-items: center;
  min-width: 26px; height: 18px; padding: 0 4px; border-radius: 5px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: var(--fs-2xs); font-weight: var(--fw-heavy); letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
@media (max-width: 1360px) { .top__field--project { width: 250px; } }
.page__scope {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px;
  margin: 2px 0 10px;
  font-size: var(--fs-sm); color: var(--fg-faint);
}
.page__scope:empty { display: none; }
.page__scope > span:first-child { color: var(--fg-muted); font-weight: var(--fw-medium); }
.page__scope > span:first-child::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0;
  border-radius: 50%; background: var(--accent);
}

.top__user {
  display: inline-grid; place-items: center;
  width: 33px; height: 33px; border-radius: 50%;
  background: #36577d; color: #dcebff;
  font-weight: var(--fw-bold); font-size: var(--fs-md);
  text-decoration: none; flex: none;
}
.top__user:hover { box-shadow: 0 0 0 3px var(--accent-ring); color: #fff; }

.themebtn, .iconbtn {
  flex: none;
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-card);
  color: var(--fg-muted);
  cursor: pointer;
  transition: border-color var(--dur) ease, color var(--dur) ease, box-shadow var(--dur) ease, transform var(--dur) ease;
}
.themebtn:hover, .iconbtn:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-1px); box-shadow: 0 5px 13px rgba(28, 54, 87, .11); }
.themebtn svg, .iconbtn svg { width: 16px; height: 16px; }

.burger {
  display: none;
  flex: none;
  width: 34px; height: 34px;
  place-items: center;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg-card); color: var(--fg);
  cursor: pointer; padding: 0;
}
.burger svg { width: 18px; height: 18px; }
.burger:hover { color: var(--accent); border-color: var(--accent-line); }
/* A1-32, A3-39: на широком экране у свёрнутого меню своя кнопка
   «развернуть» в полосе — второй (бургер в шапке) не нужен. */
.app.is-rail .burger.burger--rail { display: none; }
.side-scrim { display: none; }

@media (max-width: 1320px) {
  .top__snapshot { display: none; }
}
/* Свёрнутое меню освобождает 184 px — «Снимок» помещается и на 1181–1320. */
@media (min-width: 1181px) and (max-width: 1320px) {
  .app.is-rail .top__snapshot { display: inline-flex; }
}
@media (max-width: 1180px) {
  .crumbs { display: none; }
}

@media (max-width: 1000px) {
  .app, .app.is-rail { --side-w: 0px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main"; }
  .side, .app.is-rail .side {
    position: fixed; top: 0; left: 0; bottom: 0; height: auto;
    width: 264px; z-index: 60;
    transform: translateX(-100%); transition: transform .2s ease;
    box-shadow: var(--shadow-lift);
    padding: 13px 10px 14px;
  }
  .side.open { transform: none; }
  .side-scrim.open {
    display: block; position: fixed; inset: 0; z-index: 55;
    background: var(--scrim);
  }
  .burger, .app.is-rail .burger.burger--rail { display: inline-grid; }
  .side__collapse { display: none; }
  /* В выдвижном меню — всегда полный вид. */
  .app.is-rail .side__head { flex-direction: row; padding-bottom: 12px; }
  .app.is-rail .side .brand { justify-content: flex-start; padding: 2px 4px 2px 8px; flex: 1 1 auto; }
  .app.is-rail .side .brand__text, .app.is-rail .side__foot { display: block; }
  .app.is-rail .side__grp { font-size: var(--fs-xs); height: auto; margin: 16px 12px 6px; background: none; }
  .app.is-rail .side__grp:first-child { display: block; margin-top: 2px; }
  .app.is-rail .side__nav a { justify-content: flex-start; gap: 11px; min-height: 38px; padding: 7px 11px; }
  .app.is-rail .side__nav a > span { position: static; width: auto; height: auto; overflow: hidden; clip: auto; clip-path: none; }
  .app > main.page, main.page.appmain { padding: 20px 18px 60px; }
  .top { padding: 8px 16px; }
}

@media (max-width: 720px) {
  .top { flex-wrap: wrap; gap: 8px 10px; padding: 8px 12px; }
  .brand__text small { display: none; }
  .top__picker { order: 10; flex: 1 1 100%; }
  .top__field { flex: 1 1 50%; }
  .top__field--project, .top__field--market { width: auto; max-width: none; min-width: 0; }
  .top__pill { width: 100%; }
  .top__pillval { flex: 1 1 auto; text-align: left; }
  .top select.control, .top select.control--small { width: 100%; max-width: none; }
  .side { top: 0; }
  h1 { font-size: var(--fs-kpi); }
  .appmain .page__head h1 { font-size: var(--fs-kpi); }
  .page__head > #actions, .page__actions { margin-left: 0; justify-content: flex-start; }
  .page__lead { font-size: var(--fs-md); }
  .app > main.page, main.page.appmain { padding: 16px 16px 56px; }
}
@media (max-width: 480px) {
  .top__pill .top__pickerlabel { display: none; }
}

/* B6-15: на узком окне и при масштабе 200 % пилюли «Проект / Рынок» —
   в начале страницы (common.js переносит #scope-picker), липкой остаётся
   одна строка шапки ≤ 56 px. */
.top__sub { display: flex; margin: -4px 0 14px; }
.top__sub .top__picker { flex: 1 1 100%; display: flex; gap: 8px; }
.top__sub .top__field { flex: 1 1 50%; min-width: 0; }
.top__sub .top__field--project, .top__sub .top__field--market { width: auto; max-width: none; min-width: 0; }
.top__sub .top__pill { width: 100%; }
.top__sub:has(> .top__picker:empty) { display: none; }
@media (max-width: 720px) {
  .top { flex-wrap: nowrap; min-height: 52px; }
}
/* B7-12: строка «? — горячие клавиши» в подвале меню. */
.side__keys { display: flex; align-items: center; gap: 4px; margin-top: 10px; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; cursor: pointer; text-align: left; }
.side__keys:hover span { text-decoration: underline; }
.side__keys:focus-visible { outline: 3px solid #87b9fc; outline-offset: 2px; border-radius: 4px; }
.side__keys kbd { min-width: 18px; padding: 0 5px; background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .3); }
