/* Админка QADAM (VER-248, VER-268, VER-294; редизайн — VER-294, 06.11; цвета приложения — VER-455, 23.11).
 *
 * Цвета — как в приложении водителя, тема «Ночь» (просьба Мейіржана 23.11: «желтые цвета надо убрать», дизайн — как
 * в приложении): qadamai/qadam-mobile, packages/design_system/lib/src/tokens/app_colors.dart (AppColors.dark) — те же
 * значения, что --app-* в app-phone.css. Брендбук 2.0: ночь и белый, маджента — действие. Слой — цветом, без теней
 * и градиентов, цвет никогда не говорит один — рядом подпись. Жёлтого нет: «внимание» — розово-красный danger.
 * Шрифты бренда лежат здесь же (/static/fonts, SIL OFL 1.1, лицензии рядом): Golos Text и Montserrat из google/fonts
 * (06.11.2026), урезаны fontTools — вес 400–700 и 500–700, латиница и кириллица с казахскими буквами, ₸ и №,
 * все возможности OpenType (tnum — цифры одной ширины). Внешних запросов нет: CSP — только свой адрес.
 */

@font-face {
  font-family: "Golos Text";
  src: url("/static/fonts/GolosText-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/Montserrat-Variable.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* цвет — AppColors.dark приложения (в скобках — имя там) */
  --ground: #0b0b0e;          /* фон (ground) */
  --surface: #141418;         /* единственный слой над фоном (surface) */
  --surface-hover: #1b1b21;   /* строка под курсором (surfaceRaised) */
  --ink: #f5f5f7;             /* текст (ink) */
  --text-2: #c2c2cc;          /* обычный текст абзаца; в приложении нет — между ink и textMuted */
  --muted: #9a9aa6;           /* подпись под цифрой (textMuted) */
  --faint: #8a8a96;           /* выключенное, «—» и нули; не темнее 4.5:1 и на строке под курсором */
  --line: #26262e;            /* линии таблиц, края (border) */
  --line-strong: #34343e;     /* поля ввода, активная граница; светлее line */
  --accent: #ff2d95;          /* маджента — действие, ссылка, выбранное (accent) */
  --on-accent: #0b0b0e;       /* текст на маджента (onAccent) */
  --success: #a3ff47;         /* в порядке (success) */
  --danger: #ff5c7a;          /* внимание, ошибка (danger) */
  --info: #5ac8fa;            /* справка (info) */
  --grow: #ac8cff;            /* грейд — как в приложении: метка грейда, рядом всегда название (grow) */

  /* шрифты */
  --font-text: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Montserrat", "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-id: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* отступы, шаг 4 px */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --s10: 40px;
  --s12: 48px;

  /* скругления — по иерархии: поле 8, панель 12, метка — капсула */
  --r-sm: 8px;
  --r-md: 12px;
  --r-pill: 999px;

  --control: 40px;            /* высота поля и кнопки; на сенсорных — 44 */
  --side: 232px;
}

@media (pointer: coarse) {
  :root { --control: 44px; }
}

@media (pointer: fine) {
  html { overscroll-behavior: none; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: var(--s12);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font: 400 14px/20px var(--font-text);
  font-feature-settings: "kern";
  touch-action: manipulation;
}

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font: 700 28px/34px var(--font-head); letter-spacing: -0.01em; }
h2 { font: 600 20px/26px var(--font-head); letter-spacing: -0.01em; }
h3 { font: 600 16px/22px var(--font-text); }
p { margin: 0; }
p + p { margin-top: var(--s2); }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: rgba(255, 45, 149, 0.35); color: var(--ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.id { font-family: var(--font-id); font-size: 13px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.text { white-space: pre-line; overflow-wrap: anywhere; }
.icon { flex: none; width: 16px; height: 16px; vertical-align: -3px; }

/* ── Каркас ─────────────────────────────────────────────────────────────────────────────── */

.skip {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 10;
  padding: var(--s2) var(--s4);
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.skip:focus { top: var(--s4); }

.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.shell--bare { display: block; }

.side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: var(--s5) var(--s3);
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding: 0 var(--s3) var(--s6);
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .logo { display: block; width: 112px; height: auto; }
.brand span { color: var(--muted); font-size: 12px; line-height: 16px; }

.menu { display: flex; flex-direction: column; gap: 2px; }
.menu a {
  display: flex;
  align-items: center;
  min-height: var(--control);
  padding: 0 var(--s3);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font: 600 15px/20px var(--font-text);
  transition: background-color 120ms ease, color 120ms ease;
}
.menu a:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.menu a.active { background: var(--surface); color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }

.who {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-top: auto;
  padding: var(--s4) var(--s3) 0;
  border-top: 1px solid var(--line);
}
.who__phone { color: var(--text-2); font-variant-numeric: tabular-nums; }
.who form { margin: 0; }

.page {
  width: 100%;
  max-width: 1360px;
  padding: var(--s8) var(--s10) var(--s12);
}
.page--narrow { max-width: 1120px; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3) var(--s6); margin-bottom: var(--s6); }
.page-head p { margin-top: var(--s2); max-width: 72ch; color: var(--text-2); }

.loading-bar { position: fixed; inset: 0 0 auto 0; z-index: 20; height: 3px; overflow: hidden; opacity: 0; pointer-events: none; }
.loading-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--accent);
  transform: translateX(-100%);
}
html.is-loading .loading-bar { opacity: 1; }
/* «Загрузка…» — видно, если страница не открылась за четверть секунды (карточка собирается из шести сервисов) */
.loading-note {
  position: fixed;
  top: var(--s3);
  right: var(--s4);
  z-index: 20;
  margin: 0;
  padding: 6px var(--s3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  line-height: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}
.loading-note:empty { display: none; }
html.is-loading .loading-note { opacity: 1; transition-delay: 250ms; }
html.is-loading main { opacity: 0.55; transition: opacity 150ms ease 250ms; }
html.is-loading .loading-bar::after { animation: loading 1.1s ease-in-out infinite; }
@keyframes loading {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}

/* ── Кнопки, поля ───────────────────────────────────────────────────────────────────────── */

.btn, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: var(--control);
  padding: 0 var(--s5);
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--on-accent);
  font: 600 14px/20px var(--font-text);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:hover, button:hover { background: #ff4fa6; border-color: #ff4fa6; text-decoration: none; }
button:disabled, button[aria-disabled="true"] { cursor: progress; opacity: 0.6; }

.btn--quiet, button.secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--quiet:hover, button.secondary:hover { background: var(--surface); border-color: var(--faint); }

.btn--warn, button.danger { background: var(--danger); border-color: var(--danger); color: var(--on-accent); }
.btn--warn:hover, button.danger:hover { background: #ff7790; border-color: #ff7790; }

button.link {
  min-height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 500;
}
button.link:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }

label { display: block; margin: 0 0 var(--s2); color: var(--text-2); font-weight: 500; }
label.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  margin: var(--s4) 0 0;
  color: var(--ink);
  font-weight: 400;
  cursor: pointer;
}

input, select, textarea {
  width: 100%;
  min-height: var(--control);
  padding: 0 var(--s3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font: 400 15px/20px var(--font-text);
  transition: border-color 120ms ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--faint); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { padding: var(--s3); line-height: 22px; resize: vertical; }
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: var(--s8);
  background: var(--surface) url("/static/icons/chevron-down.svg") no-repeat right 10px center / 16px;
  cursor: pointer;
}
input[type="checkbox"] {
  flex: none;
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--accent);
}
input[type="datetime-local"], input[type="date"] { color-scheme: dark; }

.field { margin-top: var(--s4); }
.field:first-child { margin-top: 0; }
.field__hint { margin-top: var(--s2); color: var(--muted); font-size: 13px; line-height: 18px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s5); }

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

.note {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border: 1px solid var(--line);
  border-left: 3px solid var(--info);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-2);
}
.note .icon { margin-top: 2px; color: var(--info); }
.note--ok { border-left-color: var(--success); }
.note--ok .icon { color: var(--success); }
.note--warn, .nodata { border-left-color: var(--danger); }
.note--warn .icon, .nodata .icon { color: var(--danger); }
.note strong, .nodata strong { color: var(--ink); font-weight: 600; }
.note ul { margin: 0; padding-left: var(--s5); }
.note + .note { margin-top: var(--s3); }

.nodata {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border: 1px solid var(--line);
  border-left: 3px solid var(--danger);
  border-radius: var(--r-sm);
  color: var(--text-2);
}

.empty {
  padding: var(--s10) var(--s4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  text-align: center;
}
.empty h3, .empty__title { margin-bottom: var(--s2); font: 600 16px/22px var(--font-text); }
.empty p { color: var(--muted); }
.empty p + p, .empty .btn { margin-top: var(--s4); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(194, 194, 204, 0.12);
  color: var(--text-2);
  font: 500 12px/16px var(--font-text);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.badge::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge--ok { background: rgba(163, 255, 71, 0.14); color: var(--success); }
.badge--info { background: rgba(90, 200, 250, 0.14); color: var(--info); }
.badge--warn { background: rgba(255, 92, 122, 0.14); color: var(--danger); }
.badge--accent { background: rgba(255, 45, 149, 0.14); color: var(--accent); }
.badge--plain::before { display: none; }

/* ── Таблицы ───────────────────────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px var(--s3); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
th { color: var(--muted); font: 500 12px/16px var(--font-text); letter-spacing: 0.01em; white-space: nowrap; }
td.num { white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tr.current td { background: rgba(255, 45, 149, 0.06); }
.cell-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 18px; }

/* ── Водители: список ─────────────────────────────────────────────────────────────────── */

.search { display: flex; gap: var(--s2); max-width: 640px; }
.search__field { position: relative; flex: 1; min-width: 0; }
.search__field .icon { position: absolute; left: var(--s3); top: 50%; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.search__field input { padding-left: 38px; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin: var(--s6) 0 0;
  padding: 0;
  list-style: none;
}
.tabs a {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s2);
  min-height: 36px;
  padding: 8px var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-weight: 500;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.tabs a:hover { border-color: var(--line-strong); color: var(--ink); text-decoration: none; }
.tabs a[aria-current="page"] { border-color: var(--accent); background: rgba(255, 45, 149, 0.08); color: var(--ink); }
.tabs .count { color: var(--muted); font-variant-numeric: tabular-nums; }
.tabs a[aria-current="page"] .count { color: var(--accent); }

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--s3) var(--s4);
  margin-top: var(--s4);
  padding: var(--s4) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.filters .field { margin: 0; min-width: 168px; }
.filters label { margin-bottom: var(--s1); font-size: 12px; line-height: 16px; }
.filters select, .filters input { min-height: 36px; font-size: 14px; }
.filters__sort { display: none; }
.filters__actions { display: flex; align-items: center; gap: var(--s4); min-height: 36px; }
html.js .filters__actions:not(.has-reset) { display: none; }
.filters__actions button { min-height: 36px; }
html.js .filters__apply { display: none; }

.filters + .nodata, .filters + .note, .tabs + .note { margin-top: var(--s5); }
.results { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s4); margin: var(--s5) 0 var(--s2); color: var(--muted); }
.results strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.results__lacking { color: var(--danger); }

.drivers th { position: sticky; top: 0; z-index: 1; background: var(--ground); box-shadow: inset 0 -1px 0 var(--line); }
.drivers th a { display: inline-flex; align-items: center; gap: var(--s1); color: inherit; }
.drivers th a:hover { color: var(--ink); text-decoration: none; }
.drivers th[aria-sort] a { color: var(--ink); }
.drivers th .icon { width: 12px; height: 12px; vertical-align: 0; }
/* Длинные названия колонок работы — в две строки; под «₸ в час» — доход в час парка (VER-519, 26.11) */
.drivers th.wrap { white-space: normal; }
.drivers .th-sub { display: block; margin-top: 2px; color: var(--faint); font-weight: 400; }
.results__park { display: none; }
.drivers tbody tr { transition: background-color 100ms ease; }
.drivers tbody tr:hover { background: var(--surface-hover); }
.drivers td { padding-top: 12px; padding-bottom: 12px; }
.drivers .name { color: var(--ink); font-weight: 600; }
.drivers .name:hover { color: var(--accent); }
.drivers .who-cell .phone { display: block; width: fit-content; margin-top: 2px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.drivers .who-cell a.phone:hover { color: var(--ink); }
.zero { color: var(--faint); }
.drivers .nameless { color: var(--muted); font-weight: 500; }
.dash { color: var(--faint); }
.tel { color: var(--ink); }
.tel:hover { color: var(--accent); }

.grade { display: inline-flex; align-items: center; gap: var(--s2); white-space: nowrap; }
.grade::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--grow); }

.step { display: inline-flex; align-items: center; gap: var(--s2); white-space: nowrap; }
.stairs { flex: none; display: block; }
.stairs rect { fill: var(--line-strong); }
.stairs .on { fill: var(--text-2); }
.stairs .now { fill: var(--accent); }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.pager__links { display: flex; align-items: center; gap: var(--s3); }
.pager__links .btn { min-height: 36px; padding: 0 var(--s3); }
.pager__links .disabled { opacity: 0.35; pointer-events: none; }
.pager__where { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── Карточка водителя ─────────────────────────────────────────────────────────────────── */

.back { display: inline-flex; align-items: center; gap: var(--s1); margin-bottom: var(--s4); color: var(--text-2); }
.back:hover { color: var(--ink); }

.profile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4) var(--s8); padding-bottom: var(--s6); border-bottom: 1px solid var(--line); }
.profile h1 { overflow-wrap: anywhere; }
.profile__badges { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.profile__ids { display: grid; grid-template-columns: repeat(2, max-content); gap: var(--s2) var(--s8); margin: 0; align-content: start; }
.profile__ids dt { color: var(--muted); font-size: 12px; line-height: 16px; }
.profile__ids dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; }

.jump { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin: var(--s4) 0 var(--s6); padding: 0; list-style: none; }
.jump a { color: var(--text-2); font-weight: 500; }
.jump a:hover { color: var(--ink); }

.panel {
  padding: var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.panel + .panel { margin-top: var(--s4); }
.grid-2 > .panel + .panel { margin-top: 0; }
.panel > .table-wrap { margin-top: var(--s4); }
.note + .panel, .note + .section--first { margin-top: var(--s4); }
.journal th { white-space: normal; vertical-align: bottom; }
.queue-item .post__meta { margin-top: var(--s3); }
.panel h2 { margin-bottom: var(--s4); }

.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s6) var(--s8); }
.hero__block + .hero__block { padding-left: var(--s8); border-left: 1px solid var(--line); }
.hero__label { color: var(--muted); font-size: 12px; line-height: 16px; }
.figure { display: block; margin-top: var(--s1); font: 700 34px/40px var(--font-head); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.figure--grade { display: inline-flex; align-items: center; gap: var(--s3); }
.figure--grade::before { content: ""; width: 18px; height: 18px; border-radius: 5px; background: var(--grow); }
.figure-sub { margin-top: var(--s1); color: var(--text-2); }
.hero .badge { margin-top: var(--s2); }

.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s1); margin-top: var(--s5); padding: 0; list-style: none; }
.ladder li { padding-top: var(--s2); border-top: 3px solid var(--line-strong); color: var(--muted); font-size: 12px; line-height: 16px; }
.ladder li strong { display: block; color: var(--text-2); font-size: 13px; font-weight: 600; }
.ladder .reached { border-top-color: var(--text-2); }
.ladder .current { border-top-color: var(--accent); }
.ladder .current strong { color: var(--accent); }
.ladder__term { display: block; }

.progress { margin-top: var(--s4); }
.progress__text { display: flex; justify-content: space-between; gap: var(--s3); color: var(--text-2); }
.progress__text .tnum { flex: none; white-space: nowrap; }
.progress svg { display: block; width: 100%; height: 6px; margin-top: var(--s2); }
.progress .track { fill: var(--line-strong); }
.progress .fill { fill: var(--accent); }
.progress .fill--keep { fill: var(--danger); }
/* Условия до порога (VER-429, 17.11): строка на условие — «Заказы за месяц … 137 из 300», отстающее — цветом. */
.progress__criteria { margin: var(--s2) 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; line-height: 16px; }
.progress__criteria li { display: flex; justify-content: space-between; gap: var(--s3); }
.progress__criteria li + li { margin-top: 2px; }
.progress__criteria .tnum { flex: none; color: var(--text-2); white-space: nowrap; }
.progress__criteria .progress__lag, .progress__criteria .progress__lag .tnum { color: var(--danger); font-weight: 600; }

.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s5); margin: var(--s4) 0 0; }
.metrics dt { color: var(--muted); font-size: 12px; line-height: 16px; }
.metrics dd { margin: 2px 0 0; font: 600 16px/22px var(--font-text); font-variant-numeric: tabular-nums; white-space: nowrap; }

.big-step { display: flex; align-items: flex-end; gap: var(--s3); margin-top: var(--s2); }
.big-step .stairs { width: 54px; height: 36px; }
.big-step strong { font: 700 24px/30px var(--font-head); }
.big-step--none span { color: var(--muted); font-size: 15px; }
.node + .empty-line { margin: var(--s2) 0 0 var(--s4); }

.section { margin-top: var(--s10); scroll-margin-top: var(--s6); }
.section--first { margin-top: var(--s6); }
.section > h2 { padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.field--inline { max-width: 360px; }
.section__lead { margin-top: var(--s3); color: var(--muted); max-width: 80ch; }
.section h3 { margin: var(--s6) 0 var(--s2); }
.section > .table-wrap, .section > table, .section > .facts, .section > .nodata, .section > .note, .section > .empty { margin-top: var(--s4); }

dl.facts { display: grid; grid-template-columns: minmax(160px, max-content) minmax(0, 1fr); gap: var(--s2) var(--s6); margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
dl.facts dd .badge { margin-left: var(--s2); }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s4) var(--s6); margin: var(--s3) 0 0; }
.fields dt { color: var(--muted); font-size: 12px; line-height: 16px; }
.fields dd { margin: 2px 0 0; font-size: 15px; line-height: 22px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fields dd.fields__source { margin: 0; color: var(--faint); font-size: 12px; line-height: 16px; }
.empty-line { margin-top: var(--s2); color: var(--muted); }
.profile__wide { grid-column: 1 / -1; }
.issues { margin: var(--s3) 0 0; padding: 0; list-style: none; }
.issues li { padding: 6px 0; color: var(--text-2); }
.issues li strong { color: var(--danger); font-weight: 600; }

/* Сеть водителя — дерево: пригласивший → водитель → друзья (доход — с первого уровня, VER-218) */
.tree { margin: var(--s5) 0 0; padding: 0; list-style: none; }
.tree ol { margin: 0; padding: 0 0 0 var(--s6); list-style: none; border-left: 1px solid var(--line-strong); margin-left: 11px; }
.tree li { position: relative; }
.tree ol > li { padding-top: var(--s3); }
.tree ol > li::before { content: ""; position: absolute; left: calc(-1 * var(--s6)); top: 32px; width: 16px; border-top: 1px solid var(--line-strong); }
.node { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-sm); }
.node--self { border-color: var(--accent); background: rgba(255, 45, 149, 0.05); }
.node__role { flex-basis: 100%; color: var(--muted); font-size: 12px; line-height: 16px; }
.node__name { font-weight: 600; }
.node__name a { color: var(--ink); }
.node__name a:hover { color: var(--accent); }
.node__facts { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); color: var(--text-2); font-variant-numeric: tabular-nums; }
.friends { margin-top: var(--s3); }
.friends th, .friends td { padding-top: 8px; padding-bottom: 8px; }
.friends td a { color: var(--ink); font-weight: 600; }
.friends td a:hover { color: var(--accent); }

.money { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s10); margin-top: var(--s4); }
.money dt { color: var(--muted); font-size: 12px; line-height: 16px; }
.money dd { margin: 2px 0 0; }
.money .figure { margin: 0; font-size: 28px; line-height: 34px; }

/* «Деньги» → «Выводы» (VER-317): таблица — как список водителей; дату выбором не применить, поэтому
   «Показать» у фильтра периода видна и со скриптом. */
html.js .filters--manual .filters__actions { display: flex; }
.filters input[type="date"] { min-height: 36px; font-size: 14px; color-scheme: dark; }
.withdrawals td.created { white-space: nowrap; }

.post { padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); color: var(--muted); font-size: 13px; line-height: 18px; }
.post .text { margin-top: var(--s2); max-width: 80ch; color: var(--ink); }
.post.pinned { padding-left: var(--s4); border-left: 3px solid var(--accent); }

/* Заметки в карточке водителя (VER-315): форма в панели, под ней — список, как публикации */
.notes-form { margin-top: var(--s4); }
.notes-form > .field { margin-top: 0; } /* перед полем — только скрытые поля формы */
.notes { margin-top: var(--s2); }
.poll { margin: var(--s3) 0 0; padding: 0; list-style: none; max-width: 520px; }
.poll li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s1) var(--s3); padding: 6px 0; }
.poll svg { grid-column: 1 / -1; display: block; width: 100%; height: 4px; }
.poll .track { fill: var(--line-strong); }
.poll .fill { fill: var(--info); }
.reports { margin: var(--s2) 0 0; padding-left: var(--s5); color: var(--text-2); }

blockquote { margin: var(--s2) 0 0; padding: var(--s3) var(--s4); border-left: 3px solid var(--line-strong); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--surface); }
blockquote.context { color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s3); margin-top: var(--s4); }
.actions form { margin: 0; }
details.confirm summary {
  display: inline-flex;
  align-items: center;
  min-height: var(--control);
  padding: 0 var(--s4);
  border: 1px solid rgba(255, 92, 122, 0.5);
  border-radius: var(--r-sm);
  color: var(--danger);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
details.confirm summary::-webkit-details-marker { display: none; }
details.confirm summary:hover { border-color: var(--danger); }
details.confirm[open] summary { border-color: var(--danger); }
details.confirm > div { margin-top: var(--s3); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-sm); max-width: 520px; }
details.confirm p { margin-bottom: var(--s3); color: var(--text-2); }

.queue-item { padding: var(--s6) 0; border-bottom: 1px solid var(--line); }
.queue-item:first-of-type { padding-top: var(--s2); }
.queue-item h2 { font-size: 18px; line-height: 24px; }
.queue-item__meta { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin-top: var(--s2); color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); align-items: start; }

.form-table th, .form-table td { vertical-align: middle; }
.form-table input { max-width: 140px; }
.form-table select { min-width: 200px; }

/* ── Вход ─────────────────────────────────────────────────────────────────────────────── */

.login { display: grid; place-items: center; min-height: 100vh; padding: var(--s6) var(--s4); }
.login__box { width: 100%; max-width: 400px; }
.login__brand { display: block; margin-bottom: var(--s10); }
.login__brand .logo { display: block; width: 132px; height: auto; }
.login h1 { margin-bottom: var(--s2); }
.login__lead { margin-bottom: var(--s6); color: var(--text-2); }
.login form { margin-top: var(--s6); }
.login button[type="submit"] { width: 100%; margin-top: var(--s5); }
.login__alt { margin-top: var(--s5); }
.login .note { margin-top: var(--s4); }
.login__code { font-size: 22px; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }

.error-page { max-width: 560px; padding-top: var(--s12); }
.error-page .nodata { margin-top: var(--s4); }
.error-page p.next { margin-top: var(--s5); }

/* ── Работа водителя по дням (VER-519): окна с медианой парка и «По дням» ───────────────── */

.work th[scope="row"] { min-width: 168px; color: var(--text-2); font: 500 14px/20px var(--font-text); letter-spacing: 0; white-space: normal; }
.work thead th { color: var(--ink); font-size: 13px; font-weight: 600; }
.work thead th .cell-sub { font-weight: 400; }
.work td { min-width: 120px; }
.work .cell-sub, .work-days .cell-sub { font-size: 12px; line-height: 16px; }
.work__tariffs strong { font-weight: 600; }
/* Разница с медианой — нейтральным цветом: без светофора (решение 4 спеки; дополнение 26.11) */
.diff--up, .diff--down { color: var(--text-2); }
.cell-sub.warn { color: var(--danger); }
.section h3 + .table-wrap { margin-top: var(--s2); }
.work-days th, .work-days td { padding-top: 8px; padding-bottom: 8px; }
.work-day--off td { color: var(--faint); }

/* Читаемый вид (дополнение 26.11): окно ссылками, итог словами, плитки, тарифы, столбики «По дням».
 * Сравнение с парком — без светофора (решение 4 спеки): текст нейтральный, рядом стрелка. Размеры столбиков
 * и долей — атрибутами SVG: CSP (default-src 'self') не пускает встроенные стили. */
.work-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); margin-top: var(--s4); }
.work-bar .tabs { margin: 0; }
.work-bar__period { color: var(--text-2); font-variant-numeric: tabular-nums; }
.work-summary { margin-top: var(--s4); max-width: 78ch; color: var(--ink); font-size: 16px; line-height: 26px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s5); }
.tile { min-width: 0; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.tile p + p { margin-top: 0; }
.tile__label { color: var(--muted); font-size: 13px; line-height: 18px; }
.tile__value { margin-top: var(--s1); font: 700 28px/34px var(--font-head); letter-spacing: -0.02em; white-space: nowrap; }
.tile__value--none { color: var(--faint); }
.tile__note { margin-top: var(--s2); color: var(--text-2); }
.tile__compare { display: flex; align-items: flex-start; gap: 6px; margin-top: var(--s2); color: var(--text-2); }
.tile__compare .icon { flex: none; margin-top: 2px; color: var(--muted); }
.tile__park { margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }

.work-today { display: flex; align-items: flex-start; gap: var(--s2); margin-top: var(--s4); color: var(--text-2); }
.work-today .icon { margin-top: 2px; color: var(--muted); }
.work-today strong { color: var(--ink); font-weight: 600; }

.work-tariffs { margin-top: var(--s6); max-width: 640px; }
.work-tariffs h3 { margin: 0 0 var(--s2); }
.share { display: block; height: 10px; border-radius: var(--r-pill); overflow: hidden; }
.share__part { stroke: var(--ground); stroke-width: 2px; }
.share__legend { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin: var(--s2) 0 0; padding: 0; list-style: none; color: var(--text-2); font-variant-numeric: tabular-nums; }
.share__legend li { display: inline-flex; align-items: center; gap: 6px; }

/* Цвет тарифа — по коду (не по месту): эконом, комфорт, комфорт+; остальные — серые. */
.share__part--econom, .key--econom { fill: var(--info); background: var(--info); }
.share__part--comfort, .key--comfort { fill: var(--grow); background: var(--grow); }
.share__part--comfort_plus, .key--comfort_plus { fill: var(--text-2); background: var(--text-2); }
.share__part--other, .key--other { fill: var(--faint); background: var(--faint); }
.share__part--rest, .key--rest { fill: var(--line-strong); background: var(--line-strong); }

.key { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.key--bar { background: var(--text-2); }
.key--park { width: 16px; height: 0; border-radius: 0; border-top: 2px dashed var(--muted); }
.key--nodata { border: 1px solid var(--faint); background: repeating-linear-gradient(45deg, var(--faint) 0 1.5px, transparent 1.5px 4px); }
.key--none { border: 1px solid var(--line-strong); background: none; }

.chart { margin: var(--s2) 0 0; }
.chart__plot { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: 160px 18px; column-gap: var(--s2); padding-top: var(--s2); }
.chart__ticks { position: relative; color: var(--muted); font-size: 12px; line-height: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.chart__ticks span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; }
.chart__ticks span:nth-child(1) { top: 0; }
.chart__ticks span:nth-child(2) { top: 50%; }
.chart__ticks span:nth-child(3) { top: 100%; }
.chart__bars { display: block; height: 160px; overflow: hidden; }
.chart__dates { grid-column: 2; display: block; height: 18px; overflow: visible; }
.chart__dates text { fill: var(--muted); font: 400 12px var(--font-text); font-variant-numeric: tabular-nums; }
.chart__grid { stroke: var(--line); stroke-width: 1px; }
.chart__base { stroke: var(--line-strong); stroke-width: 1px; }
.chart__park { stroke: var(--muted); stroke-width: 1.5px; stroke-dasharray: 5 4; }
.chart__hit { fill: transparent; }
.chart__bar { fill: var(--text-2); }
.chart__hatch { fill: var(--faint); }
.chart__nodata { stroke: var(--faint); stroke-width: 1px; stroke-opacity: 0.6; }
.chart__day:hover .chart__hit { fill: var(--surface-hover); }
.chart__day:hover .chart__bar { fill: var(--ink); }
.chart__legend { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin: var(--s2) 0 0 48px; padding: 0; list-style: none; color: var(--muted); font-size: 13px; line-height: 18px; }
.chart__legend li { display: inline-flex; align-items: center; gap: 6px; }

details.more { margin-top: var(--s4); border-top: 1px solid var(--line); }
details.more + details.more { margin-top: 0; }
details.more > summary {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  color: var(--text-2);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: ""; width: 7px; height: 7px; margin: 0 4px 0 2px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform 120ms ease; }
details.more[open] > summary::before { transform: rotate(45deg); }
details.more > summary:hover { color: var(--ink); }
details.more > .table-wrap, details.more > .section__lead { margin: 0 0 var(--s4); }

/* ── Узкие экраны ─────────────────────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero__block:first-child { grid-column: 1 / -1; }
  .hero__block + .hero__block { padding-left: 0; border-left: 0; }
  .hero__block:nth-child(3) { padding-left: var(--s8); border-left: 1px solid var(--line); }
}

@media (max-width: 960px) {
  .shell { display: block; }
  .side {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s2) var(--s4);
    padding: var(--s3) var(--s4) 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand { flex-direction: row; align-items: center; gap: var(--s3); padding: 0; }
  .brand .logo { width: 88px; }
  .who { order: 1; flex-direction: row; align-items: center; gap: var(--s3); margin: 0 0 0 auto; padding: 0; border: 0; }
  .menu {
    order: 2;
    flex-basis: 100%;
    flex-direction: row;
    gap: var(--s1);
    margin: 0 calc(-1 * var(--s4));
    padding: var(--s1) var(--s4) var(--s2);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { flex: none; min-height: 40px; }
  .menu a.active { box-shadow: inset 0 -2px 0 var(--accent); }
  .page { padding: var(--s6) var(--s4) var(--s10); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  h1 { font-size: 24px; line-height: 30px; }
  .who__phone { display: none; }
  .search { max-width: none; }
  .filters { gap: var(--s3); }
  .filters .field { flex: 1 1 calc(50% - var(--s3)); min-width: 0; }
  .filters__sort { display: block; }
  .filters__actions { flex-basis: 100%; }

  /* Список водителей: строка — блок; грейд, ступень, заказы и друзья — в ряд с подписями */
  .drivers thead { display: none; }
  .drivers, .drivers tbody, .drivers tr, .drivers td { display: block; }
  .drivers tbody tr {
    display: grid;
    grid-template-columns: 1.15fr 1.25fr 0.8fr 0.8fr;
    gap: var(--s3) var(--s3);
    padding: var(--s4) 0;
    border-bottom: 1px solid var(--line);
  }
  .drivers tbody tr:hover { background: none; }
  .drivers td { padding: 0; border: 0; }
  .drivers td.who-cell, .drivers td.status-cell, .drivers td.inviter-cell { grid-column: 1 / -1; }
  .drivers td.status-cell { margin-top: -4px; }
  .drivers td.metric { text-align: left; }
  .drivers td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: 12px; line-height: 16px; }
  .drivers td.inviter-cell::before { display: inline; margin-right: var(--s2); }
  .drivers td.inviter-cell.is-empty { display: none; }
  .drivers td.inviter-cell .cell-sub { display: inline; margin-left: var(--s2); }
  .drivers td.created-cell { display: none; }
  .results__park { display: block; flex-basis: 100%; color: var(--text-2); }
  /* «Часов за неделю» — подпись в две строки; значения ряда — на одной линии */
  .drivers td.metric { align-self: end; min-width: 0; white-space: normal; }
  .drivers td.last-cell { grid-column: span 2; }
  .drivers .step, .drivers .grade { gap: 6px; }

  /* Друзья в дереве сети — так же блоками */
  .friends-table thead { display: none; }
  .friends-table, .friends-table tbody, .friends-table tr, .friends-table td { display: block; }
  .friends-table tbody tr { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 0.9fr; gap: var(--s2) var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
  .friends-table td { padding: 0; border: 0; text-align: left; }
  .friends-table td:first-child, .friends-table td.wide { grid-column: 1 / -1; }
  .friends-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; line-height: 16px; }
  .friends-table td.wide { display: flex; gap: var(--s2); }
  .friends-table td.wide::before { display: inline; }
  .friends-table .stairs { display: none; }

  /* Выводы: сумма, комиссия и к выплате — в ряд, время — строкой ниже */
  .withdrawals tbody tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .withdrawals td.created { grid-column: 1 / -1; white-space: normal; }

  .profile__ids { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s4); }
  .profile__ids > div { min-width: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__block:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero__block + .hero__block { padding-top: var(--s5); border-top: 1px solid var(--line); }
  .panel { padding: var(--s4); }
  dl.facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  dl.facts dt { margin-top: var(--s3); font-size: 13px; }
  dl.facts dt:first-child { margin-top: 0; }
  .tree ol { padding-left: var(--s3); margin-left: 6px; }
  .tree ol > li::before { left: calc(-1 * var(--s3)); width: 8px; }
  .pager { justify-content: center; }

  /* «Работа»: плитки 2 × 2, цифры меньше; высота столбиков — та же (она в атрибутах SVG) */
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
  .tile { padding: var(--s3); }
  .tile__value { font-size: 22px; line-height: 28px; }
  .work-summary { font-size: 15px; line-height: 24px; }
  .chart__plot { grid-template-columns: 32px minmax(0, 1fr); column-gap: var(--s1); }
  .chart__legend { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  html.is-loading .loading-bar::after { transform: none; width: 100%; }
}

/* ── «Приложение» → «Экраны» (VER-424): конструктор; вид телефона — static/app-phone.css ───── */
/* Всё — внутри .page--app: имена (.phone, .tile, .block) общие, а «Водители» и «Деньги» рисуют номер как .phone. */

.page--app .tabs--section { margin: 0 0 var(--s6); }
.page--app .screens__status { margin: 0 0 var(--s4); color: var(--text-2); }
.page--app .screens__bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.page--app .screens__bar .tabs { margin: 0; }
.page--app .screens__preview { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s3); }
.page--app .screens__preview label { margin-bottom: var(--s1); font-size: 13px; }
.page--app .screens__preview select { width: auto; min-width: 150px; }
html.js .page--app .screens__preview button { display: none; }

.page--app .screens { display: grid; grid-template-columns: minmax(200px, 260px) 414px minmax(260px, 1fr); gap: var(--s6); align-items: start; }
.page--app .screens--solo { grid-template-columns: 414px; justify-content: center; }
.page--app .screens__palette form + form { margin-top: var(--s2); }
.page--app .screens__palette h3 { margin: var(--s5) 0 var(--s2); font-size: 14px; }
.page--app .screens__palette button.secondary { width: 100%; justify-content: flex-start; }
.page--app .screens__reset { margin-top: var(--s5); }
.page--app .screens__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.page--app .screens__regroup { display: flex; gap: var(--s2); }
.page--app .screens__regroup select { width: auto; }
.page--app .screens fieldset { margin: var(--s4) 0 0; padding: 0; border: 0; }
.page--app .screens legend { margin-bottom: var(--s2); padding: 0; color: var(--text-2); font-weight: 500; }
.page--app .field__error { margin: var(--s1) 0 0; color: var(--danger); font-size: 13px; line-height: 18px; }

.page--app .appicon { display: block; flex: none; }
.page--app .icon-picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: var(--s1); }
.page--app .icon-choice { position: relative; display: grid; place-items: center; height: 36px; margin: 0; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.page--app .icon-choice input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.page--app .icon-choice:has(input:checked) { border-color: var(--accent); background: rgba(255, 45, 149, 0.12); }
.page--app .icon-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }

.page--app .mark { display: inline-block; padding: 0 6px; border-radius: var(--r-pill); background: rgba(90, 200, 250, 0.14); color: var(--info); font-size: 10px; line-height: 16px; white-space: nowrap; }
.page--app .mark--off { background: rgba(255, 92, 122, 0.14); color: var(--danger); }
html.js .page--app [data-sortable] > li { cursor: grab; }
.page--app .sortable-ghost { opacity: 0.4; }
.page--app .changes { margin: var(--s4) 0; padding-left: var(--s5); }
.page--app .changes li + li { margin-top: var(--s1); }

@media (max-width: 1180px) {
  .page--app .screens { grid-template-columns: 414px minmax(260px, 1fr); }
  .page--app .screens__palette { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 760px) {
  .page--app .screens { grid-template-columns: minmax(0, 1fr); }
}
.page--app .screens__reset button.link { white-space: normal; text-align: left; }
