/* Фирменный стиль «Альфа Радон» — токены взяты из лендинга Express Recovery (qmedia_express, css/styles.css):
   Georgia — заголовки, Roboto — текст; #42272A — бренд, #D4AE62 — золото, #FAF5E6 — фон.
   Roboto лежит локально: CSP не пускает шрифты с внешних CDN. */
@font-face {
  font-family: "Roboto";
  src: url("/static/fonts/roboto-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Roboto";
  src: url("/static/fonts/roboto-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --brand: #42272A;        /* шапка, подвал, заголовки, второстепенные кнопки */
  --brand-dark: #2f1b1d;
  --gold: #D4AE62;         /* основные кнопки */
  --gold-hover: #C69B47;
  --gold-ink: #8A6526;     /* «золотой» текст на светлом фоне, контраст ≥ 4.5:1 */
  --cream: #FAF5E6;
  --rule: rgba(66, 39, 42, .14);
  --input-border: rgba(66, 39, 42, .25);

  /* Имена, которыми пользуются правила ниже. */
  --accent: var(--gold);
  --accent-strong: var(--gold-ink);
  --accent-soft: var(--gold);
  --border: var(--rule);
  --text: #212121;
  --muted: #5E5E5E;
  --error: #b3261e;
  --bg: var(--cream);
  --card: #fff;
  --radius: 4px;
  --shadow: 0 8px 24px rgba(66, 39, 42, .06);
  --font-head: Georgia, "Times New Roman", serif;
  --font-body: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

input[type="checkbox"], input[type="radio"] { accent-color: var(--accent-strong); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font-body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Фирменная шапка и подвал — как боковая панель и футер лендинга. */
.brandbar { background: var(--brand); color: #fff; }
.brandbar__inner { max-width: 960px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.brandbar__logo { flex: none; width: 56px; height: 56px; background: url("/static/brand/logo.png") center / contain no-repeat; }
.brandbar__name { font-family: var(--font-head); font-size: 20px; line-height: 1.25; }
.brandbar__sub { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
/* Навигация админки — вторая строка тёмной шапки. */
.adminnav { border-top: 1px solid rgba(212, 174, 98, .25); }
.adminnav__inner { max-width: 1132px; margin: 0 auto; padding: 0 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.adminnav__links { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.adminnav__links a { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 14px; padding: 12px 10px 10px; border-bottom: 2px solid transparent; }
.adminnav__links a:hover { color: #fff; }
.adminnav__links a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.adminnav__user { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.adminnav__logout { background: none; border: 1px solid rgba(212, 174, 98, .6); color: var(--gold); border-radius: 6px; padding: 5px 12px; font: inherit; cursor: pointer; }
.adminnav__logout:hover { background: var(--gold); color: var(--brand); }
/* Телефон: шапка компактнее, разделы — одной строкой с прокруткой вбок (как вкладки), «Выйти» всегда видна. */
@media (max-width: 720px) {
  .brandbar__inner { padding: 10px 14px; gap: 10px; justify-content: flex-start; }
  .brandbar__logo { width: 38px; height: 38px; }
  .brandbar__name { font-size: 16px; }
  .brandbar__sub { font-size: 10px; letter-spacing: .12em; }
  .adminnav__inner { flex-wrap: nowrap; padding: 0 10px 0 0; gap: 8px; }
  .adminnav__links {
    flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    padding-left: 4px; position: relative;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
    mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .adminnav__links::-webkit-scrollbar { display: none; }
  .adminnav__links--end { -webkit-mask-image: none; mask-image: none; }
  .adminnav__links a { white-space: nowrap; padding: 11px 10px 9px; }
  .adminnav__user { flex: none; }
  .adminnav__user span { display: none; }
  .adminnav__logout { padding: 4px 10px; font-size: 13px; }
}
.page { flex: 1 0 auto; padding: 32px 16px 72px; }
.brandfoot { background: var(--brand); color: rgba(255, 255, 255, .72); font-size: 12px; line-height: 1.6; text-align: center; padding: 24px 16px; }
.brandfoot__inner { max-width: 960px; margin: 0 auto; }
.brandfoot p { margin: 0 0 4px; }
.brandfoot a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.brandfoot a:hover { color: #fff; }
.brandfoot__dev { margin-top: 10px !important; color: rgba(255, 255, 255, .5); }

h1, h2, h3, .q, .preview-title { font-family: var(--font-head); color: var(--brand); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: rgba(212, 174, 98, .35); }

.sheet { max-width: 640px; margin: 0 auto; overflow-wrap: anywhere; }
.sheet--narrow { max-width: 440px; }
.sheet--wide { max-width: 1100px; }

.hero {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  background-color: #e9f4ea;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.header-preview[hidden] { display: none; }

.sheet-head {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 12px;
}

.sheet-head h1 { margin: 0 0 12px; font-size: 32px; font-weight: 400; line-height: 1.15; }

.intro { margin: 0 0 14px; white-space: normal; }
.intro:last-child { margin-bottom: 0; }

/* Заголовок в превью настроек — те же 24px/400, что у h1 клиентской анкеты. */
.preview-title { margin: 0 0 12px; font-size: 28px; font-weight: 400; }

.req-legend { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 12px;
}

.card--center { text-align: center; }
.card--invalid { border-left: 4px solid var(--error); }

.q { margin: 0 0 10px; font-size: 20px; font-weight: 400; line-height: 1.3; }

.help { margin: 0 0 14px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.req { color: var(--error); }
.opt { color: var(--muted); font-weight: 400; font-size: 13px; }
.err { color: var(--error); margin: 10px 0 0; }

/* Причина отказа в ячейке статуса отправки: цвет ошибки без её отступа и без растягивания таблицы —
   целиком текст лежит в title, здесь только начало. */
.err--cell { display: block; margin: 0; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.err--banner {
  background: #fdf0ef;
  border: 1px solid rgba(179, 38, 30, .35);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 14px;
}

/* Тот же баннер, что ошибка, но в цвет темы: «пароль изменён» — не неполадка, а подтверждение. */
.ok--banner {
  background: #fff;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 14px;
}

.field {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font: inherit;
  color: inherit;
  background: #fff;
}

.field::placeholder { color: #8b8b8b; }
.field:focus, .field:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 174, 98, .25); }
.field--area { resize: vertical; }

/* Поля ответа — в рамке, как формы лендинга. */
.sheet-body textarea.field { min-height: 96px; }

/* Телефон — двумя частями, как в Google: страна из списка, номер без кода страны. */
.phone { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.phone .field { max-width: none; }
.phone-country { flex: 0 1 180px; min-width: 120px; }
.phone-number { flex: 1 1 190px; }

.choices, .scale { list-style: none; margin: 0; padding: 0; }
.choices { border: 1px solid var(--border); border-radius: var(--radius); }
.choices li { margin-bottom: 0; }
.choices li + li { border-top: 1px solid var(--border); }
.choices label, .scale label { display: flex; align-items: center; gap: 10px; padding: 12px 15px; cursor: pointer; }
.choices input { width: 16px; height: 16px; flex-shrink: 0; }

.scale { display: flex; flex-wrap: wrap; gap: 8px; }
.scale li { border: 1px solid var(--border); border-radius: var(--radius); }
.scale label { padding: 9px 15px; }
.scale-legend { margin: 12px 0 0; font-size: 12px; }

/* Тип «Оценка» — звёзды без рамок и без кружка-радио, как в Google-форме. */
.scale--stars { gap: 2px; }
.scale--stars li { border: 0; }
.scale--stars label { padding: 4px 6px; gap: 0; }
.scale--stars input { width: 0; height: 0; margin: 0; opacity: 0; }
.scale--stars span { font-size: 27px; line-height: 1; color: var(--border); }
.scale--stars input:checked + span { color: var(--accent-strong); }
.scale--stars input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.stack { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.stack[hidden] { display: none; }
.stack > span { color: var(--muted); }
.stack.check { justify-content: center; }
.row .stack { flex: 1 1 180px; min-width: 0; max-width: 100%; }
.row .check { flex: 0 1 auto; }
.question-form .row .stack { margin-bottom: 0; }

/* Редактор вариантов: строки с подводкой и «×» справа. */
.option-rows { list-style: none; margin: 0 0 6px; padding: 0; }
.option-row { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.option-row:focus-within { border-bottom-color: var(--accent-strong); }
.option-input { flex: 1; border: 0; border-radius: 0; background: transparent; padding: 9px 0; }
.option-input:focus { outline: 0; }
.option-remove { font: inherit; font-size: 20px; line-height: 1; border: 0; background: transparent; color: var(--muted); padding: 0 6px; cursor: pointer; }
.option-remove:hover { color: var(--error); }
.option-add { align-self: flex-start; padding: 8px 16px; }

/* Навигация переносится целыми кнопками, в том числе в узких карточках настроек. */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
.actions > * { min-width: 0; max-width: 100%; }
.actions .inline-form { display: flex; }
.actions--center { justify-content: center; }

.submit, .ghost, .danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  text-align: center;
  font: inherit;
  border-radius: var(--radius);
  padding: 11px 22px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}

/* Основная кнопка — золото лендинга. Текст тёмный, а не белый: белый на #D4AE62 даёт контраст около 2:1. */
.submit { background: var(--gold); color: var(--brand); font-weight: 500; letter-spacing: .04em; min-height: 48px; transition: background .2s, box-shadow .2s; }
.submit:hover { background: var(--gold-hover); box-shadow: 0 6px 18px rgba(212, 174, 98, .35); }
.submit[disabled], .submit[disabled]:hover { background: #efe6cf; color: var(--muted); box-shadow: none; cursor: default; }
.ghost {
  min-height: 38px;
  padding: 8px 14px;
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
  transition: background .2s, color .2s;
}
.ghost:hover { background: var(--brand); color: #fff; }
.ghost:active { background: var(--brand-dark); color: #fff; }
.ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.danger { background: #fff; color: var(--error); border-color: var(--border); padding: 7px 14px; }
.inline-form { display: inline; }

/* Единые кнопки навигации; плотнее расположены, чем основные действия формы. */
.sheet-head .actions {
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.sheet-head .actions .ghost { white-space: nowrap; }
.sheet-head .actions .inline-form { margin-left: auto; }
.sheet-head .actions .inline-form .ghost { width: 100%; }
.sheet--narrow .sheet-head .actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sheet--narrow .sheet-head .actions .inline-form { margin-left: 0; }
.sheet--narrow .sheet-head .actions > :last-child:nth-child(odd) { grid-column: 1 / -1; }


/* Кнопки клиентской анкеты: «Отправить» — основная золотая кнопка лендинга, «Очистить форму» — текстовая. */
.send, .clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  font: inherit;
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, box-shadow .2s, color .2s;
}
.send { padding: 0 40px; background: var(--gold); color: var(--brand); border: 1px solid var(--gold); }
.send:hover { background: var(--gold-hover); color: var(--brand); box-shadow: 0 6px 18px rgba(212, 174, 98, .35); }
/* «Очистить форму» — неяркая, но кнопка: тонкая рамка, приглушённый текст. */
.clear { padding: 0 22px; background: transparent; border: 1px solid rgba(66, 39, 42, .28); color: var(--muted); }
.clear:hover { border-color: var(--brand); color: var(--brand); }
/* Кнопки анкеты: «Отправить» справа — под большой палец правой руки, «Очистить» слева, подальше от неё.
   В разметке «Отправить» первая — она же первая по Tab и срабатывает по Enter. */
.actions--submit { flex-direction: row-reverse; justify-content: space-between; }
.sheet-body .actions { justify-content: space-between; margin-top: 12px; }

/* Согласие на обработку ПД перед кнопкой отправки. Подпись — обычным цветом: в .stack span по умолчанию
   приглушён, а это не подсказка, то человек подтверждает отметкой. */
.consent .stack { margin-bottom: 8px; }
.consent .stack > span { color: inherit; }
.consent .help { margin: 0; }

/* Широкие таблицы прокручиваются внутри карточки, а не растягивают страницу. */
.table-wrap { max-width: 100%; overflow-x: auto; }
.table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.table { width: 100%; min-width: 600px; border-collapse: collapse; }
.table th { text-align: left; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--border); padding: 8px; }
.table td { border-bottom: 1px solid var(--rule); padding: 12px 8px; vertical-align: top; }
.table code { background: var(--cream); padding: 2px 6px; border-radius: 4px; }

/* Окно списка анкет: на экране не больше десяти анкет, остальные — прокруткой.
   Высота подобрана замером в браузере: шапка 38,2px, строка списка 65,3px, десять строк = 691px.
   Если название переносится на две строки, анкет влезет меньше — «не больше десяти» это не нарушает. */
.table-scroll { max-width: 100%; max-height: 691px; overflow: auto; }
.table-scroll thead th { position: sticky; top: 0; background: var(--card); }
/* Плашка «черновик» со своей line-height добавляет строке 2px — из-за этого десятой анкете в окне
   уже не хватает места. Возвращаем ей обычный межстрочный: все строки списка одной высоты. */
.table-scroll .pill { line-height: 1; }

/* Окно списка отправок: на экране не больше восьми строк, дальше — прокрутка, как в списке анкет.
   Замерена та же ширина (.sheet--wide) и та же высота строки, что у анкет: шапка 38,2px, строка
   65,28px — вторым рядом в обеих таблицах идёт служебная строка (адрес анкеты / отметка согласия),
   поэтому 38,2 + 8 × 65,3 = 560,6 → 561px. Восьмёрка запрошена пользователем 2026-11-06; список
   анкет при этом остаётся на десяти строках.
   На узком экране строки переносятся и их влезет меньше — «не больше восьми» это не нарушает. */
.table-scroll--subs { max-height: 561px; }

.link { color: var(--brand); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.link:hover { color: var(--gold-ink); }

.row-actions { white-space: nowrap; }
.row-actions .inline-form { margin-left: 4px; }
.row--closed td { color: var(--muted); }
.nowrap { white-space: nowrap; }
/* Главная админки: сортировка по заголовку столбца и «Показать все». */
.th-sort { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--gold); }
.th-sort:hover { color: var(--gold-ink); }
.th-sort--on { border-bottom-style: solid; }
.th-sort--on::after { content: " ↓"; color: var(--gold-ink); }
.sort-line { margin: -4px 0 10px; }
.list-more { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px 0 0; }
.row-actions .ghost, .row-actions .danger { padding: 6px 12px; font-size: 13px; }
.ghost[disabled], .ghost[disabled]:hover { color: var(--muted); opacity: .45; cursor: default; }

.pill {
  display: inline-block;
  background: var(--cream);
  color: var(--gold-ink);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-left: 6px;
}


.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha-card { --altcha-color-primary: var(--gold-ink); --altcha-color-border: var(--input-border); --altcha-border-radius: var(--radius); --altcha-max-width: 100%; }

@media (max-width: 480px) {
  .page { padding: 16px 12px 48px; }
  .brandbar__logo { width: 44px; height: 44px; }
  .sheet-head h1 { font-size: 26px; }
  .sheet-head, .card { padding: 18px 16px; }
  .phone-country { flex-basis: 120px; }
  .phone-number { flex-basis: 0; }
  .sheet-head .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
  }
  .sheet-head .actions .inline-form { margin-left: 0; }
  .sheet-head .actions > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Текст только для экранных читалок: подпись к галочке в таблице контактного блока. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Списки — со стрелкой лендинга вместо системной. */
select.field {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--brand) 50%), linear-gradient(135deg, var(--brand) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}

/* В таблицах слова не рвём посередине: .sheet разрешает перенос где угодно ради длинных ссылок. */
.table th, .table td { overflow-wrap: normal; word-break: normal; }
.table th { white-space: nowrap; }

/* Пометка «необязательно» рядом с заголовком вопроса — текстовым шрифтом, не заголовочным. */
.opt { font-family: var(--font-body); }

/* Раздел анкеты — заголовок блока вопросов, без поля ответа. */
.card--section { background: var(--brand); border-color: var(--brand); color: #fff; margin-top: 24px; }
.card--section .section-title { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: 24px; color: #fff; }
.card--section .help { margin: 8px 0 0; color: rgba(255, 255, 255, .75); }

/* Скрытые условием карточки и прочие [hidden] не должен показывать ни один display из правил выше. */
[hidden] { display: none !important; }
/* Карточки по центру («Спасибо», ошибки): кнопки тоже по центру. */
.card--center .actions { justify-content: center; }

/* Публикация анкеты — плашка и кнопка в шапке страницы анкеты. */
.publish-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 0; }
.publish-row .pill { margin-left: 0; }
.pill--live { background: #e7f3e9; color: #2e6b3a; }
/* Вопрос-пример новой анкеты, который ещё не заменили: его легко опубликовать незаметно. */
.pill--warn { background: #fbe9c8; color: #7a4b00; margin-left: 0; }
.row--example td { background: #fff8ea; }
.warn--banner {
  background: #fff8ea;
  border: 1px solid #e2b04a;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 12px 0 0;
}
.row--section td { background: var(--cream); font-family: var(--font-head); }
/* Поле под строкой «Тип / обязательный» в редакторе вопроса: отступ, как у остальных полей. */
.question-form .row + .stack { margin-top: 16px; }

/* Статистика анкеты. Полосы — <progress>: CSP запрещает inline-стили, ширину через style не задать. */
.stats-period { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.stats-totals { display: flex; flex-wrap: wrap; gap: 32px; margin-bottom: 8px; }
.stats-totals > div { display: flex; flex-direction: column; }
.stats-big { font-family: var(--font-head); font-size: 44px; line-height: 1.1; color: var(--brand); }
.stats-mid { font-family: var(--font-head); font-size: 24px; line-height: 1.6; color: var(--brand); }
.stats-options { width: 100%; border-collapse: collapse; table-layout: fixed; }
.stats-options th { text-align: left; font-weight: 400; padding: 6px 12px 6px 0; width: 40%; vertical-align: middle; }
.stats-options td { padding: 6px 0; vertical-align: middle; }
.stats-num { text-align: right; white-space: nowrap; color: var(--muted); width: 110px; padding-left: 12px !important; }
.stats-options progress { display: block; width: 100%; height: 14px; -webkit-appearance: none; appearance: none; border: 0; border-radius: 2px; background: var(--cream); }
.stats-options progress::-webkit-progress-bar { background: var(--cream); border-radius: 2px; }
.stats-options progress::-webkit-progress-value { background: var(--gold); border-radius: 2px; }
.stats-options progress::-moz-progress-bar { background: var(--gold); border-radius: 2px; }
.stats-chart { display: block; width: 100%; height: 120px; }
.stats-chart__bg { fill: var(--cream); }
.stats-chart__bar { fill: var(--gold); }
.stats-chart__axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
@media (max-width: 480px) { .stats-options th { width: 45%; } .stats-num { width: 84px; } }
.stats-texts { margin: 0; padding-left: 18px; }
.stats-texts li { padding: 4px 0; border-bottom: 1px solid var(--rule); }

/* Отчёт на странице статистики: две формы рядом, на телефоне — друг под другом. */
.report-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }
.report-form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1 1 260px;
  padding: 16px; border: 1px solid var(--rule); border-radius: var(--radius); }
.report-form .check { display: flex; gap: 8px; align-items: center; color: var(--muted); }
