/* ============ Warehouse Performance Dashboard — industrial premium dark ============ */
:root {
  --bg: #0a0e14;
  --bg-panel: #10161f;
  --bg-panel-2: #131b26;
  --bg-row: #121a25;
  --bg-row-hover: #182230;
  --border: rgba(148, 163, 184, 0.10);
  --border-strong: rgba(148, 163, 184, 0.22);
  --text: #e6edf6;
  --text-dim: #8b98ab;
  --text-faint: var(--c-text-3);  /* аудит 16.11, A11Y-01: #5b6778 давав контраст 3,2 : 1 */
  --picker: #22d3ee;
  --packer: #fbbf24;
  --up: #34d399;
  --down: #f87171;
  --gold: #fbbf24;
  --silver: #b6c2d4;
  --bronze: #d97706;
  --live: #34d399;
  --final: #60a5fa;
  --stale: #f59e0b;
  --error: #f87171;
  --processing: #a78bfa;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Поля дат на тёмном фоне.
   Chrome рисует значок календаря чёрным и на тёмной теме его просто не видно.
   color-scheme переводит нативный виджет в тёмный режим, а invert делает
   сам значок светлым — без него приходится целиться в невидимую кнопку. */
input[type="date"], input[type="month"] {
  color-scheme: dark;
  background: var(--bg-panel); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 9px;
  padding: 6px 10px; font: inherit; font-size: 13px; outline: none;
}
input[type="date"]:hover, input[type="date"]:focus { border-color: var(--picker); }
/* invert() тут НЕ нужен и был ошибкой: при color-scheme:dark Chrome уже рисует
   значок светлым, а инверсия красила его обратно в чёрный — то есть «починка»
   ровно возвращала исходную проблему. Достаточно поднять непрозрачность. */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
  opacity: .75; cursor: pointer; transition: opacity .15s;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="month"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
/* у ТВ-поля были свои правила — приводим к общему виду */
.tv-day::-webkit-calendar-picker-indicator { opacity: .75; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  background-image:
    radial-gradient(1200px 500px at 80% -10%, rgba(34, 211, 238, 0.05), transparent 60%),
    radial-gradient(900px 400px at 10% 110%, rgba(251, 191, 36, 0.04), transparent 60%);
  overflow-x: hidden;
}
#app { min-height: 100vh; display: flex; flex-direction: column; }

/* ТВ: жёсткая коробка в высоту окна. Без этого #app с min-height растёт под
   содержимое, строки не получают команду ужаться — и хвост рейтинга уезжает
   за нижний край экрана, где на телевизоре его уже никто не прокрутит. */
body.tv-mode { overflow: hidden; }
body.tv-mode #app { height: 100dvh; min-height: 0; overflow: hidden; }
button { font-family: inherit; }

/* ---------- top nav ---------- */
.nav {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 22px; border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.85); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.nav .brand { font-weight: 700; letter-spacing: 0.4px; font-size: 15px; white-space: nowrap; }
.nav .brand span { color: var(--picker); }
.nav .tabs { display: flex; gap: 4px; }
.nav .tab {
  border: 0; background: transparent; color: var(--text-dim);
  padding: 8px 14px; border-radius: 9px; cursor: pointer; font-size: 13.5px; font-weight: 600;
}
.nav .tab:hover { color: var(--text); background: var(--bg-panel-2); }
.nav .tab.active { color: var(--text); background: var(--bg-panel-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.nav .spacer { flex: 1; }
/* Вкладки по центру (Сергій, 17.11.2026): ліва й права частини мають рівну
   основу (flex 1 1 0), тож вкладки стоять посередині сторінки. Не ширші за
   свій вміст — якщо справа не влазить, вкладки зсуваються, а не налазять. */
.nav-l, .nav-r { display: flex; align-items: center; gap: 18px; flex: 1 1 0; min-width: max-content; }
.nav-r { justify-content: flex-end; gap: 12px; }
/* Довідкові «Шлях проєкту» і «Питання» до 1600px — лише значок із підказкою
   (title), інакше права частина ширша за ліву і вкладки з'їжджають з центру. */
@media (max-width: 1600px) {
  .nav-roadmap, .nav-faq { gap: 0; padding: 5px 10px; }
  .nav-roadmap .lb, .nav-faq .lb { display: none; }
}
.nav-more, .nav-more-panel { display: contents; }
.nav-more-btn { display: none; }
.nav #nav-lang { order: 1; }
.nav .session { order: 2; }

/* ---------- status pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.6px; border: 1px solid var(--border-strong); color: var(--text-dim);
  white-space: nowrap;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.LIVE { color: var(--live); border-color: rgba(52, 211, 153, 0.4); }
.pill.LIVE .dot { animation: pulse 1.6s infinite; }
.pill.FINAL { color: var(--final); border-color: rgba(96, 165, 250, 0.4); }
.pill.STALE { color: var(--stale); border-color: rgba(245, 158, 11, 0.45); }
.pill.ERROR { color: var(--error); border-color: rgba(248, 113, 113, 0.45); }
.pill.PROCESSING { color: var(--processing); border-color: rgba(167, 139, 250, 0.45); }
.pill.NO_DATA { color: var(--text-dim); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- nav: посилання на сторінку «Шлях проєкту» (10.08.2026) ---------- */
/* Тиха кнопка: це довідкова сторінка, а не робочий інструмент, і вона не
   повинна конкурувати за увагу з вкладками режимів і сигналом збою даних.
   Тому — тільки контур, без заливки, і колір підказки, а не тексту. */
.nav-roadmap {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 5px 12px; margin-right: 6px;
  font-size: 12.5px; font-weight: 600; text-decoration: none;
  color: var(--text-dim); border: 1px solid var(--border-strong);
  white-space: nowrap; transition: color .15s, border-color .15s;
}
.nav-roadmap::before { content: "◈"; font-size: 12px; opacity: .75; }
.nav-roadmap:hover { color: var(--picker); border-color: var(--picker); }

/* ---------- nav: посилання на FAQ (19.08.2026) ---------- */
/* Той самий тихий стиль, що nav-roadmap — довідкова сторінка, не робочий екран. */
.nav-faq {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 5px 12px; margin-right: 6px;
  font-size: 12.5px; font-weight: 600; text-decoration: none;
  color: var(--text-dim); border: 1px solid var(--border-strong);
  white-space: nowrap; transition: color .15s, border-color .15s;
}
.nav-faq::before { content: "?"; font-size: 12px; opacity: .75; font-weight: 800; }
.nav-faq:hover { color: var(--picker); border-color: var(--picker); }

/* ---------- nav: сигнал збою добування даних (04.08.2026) ---------- */
/* Навмисно з підсвіченим фоном, не просто окантовкою, як .pill — це має
   зачепити око з будь-якої вкладки Manager/Review, а не губитись поруч із
   перемикачем складу й кнопкою «Вийти». Порожній контейнер #nav-acq, поки
   все добре, — mountAcqAlert (acq-alert.js) сам малює кнопку, лише коли
   підряд помилок ≥ 2. */
.nav-acq-alert {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; padding: 5px 12px; margin-right: 2px;
  font-size: 12.5px; font-weight: 700; color: var(--error);
  background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.45);
  cursor: pointer; white-space: nowrap;
}
.nav-acq-alert:hover { background: rgba(248, 113, 113, 0.2); }
.nav-acq-alert .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; animation: pulse 1.1s infinite;
}

/* ---------- дзвіночок сповіщень модуля «Перевірка» (Етап 6, 11.08.2026) ---------- */
.notif-bell {
  position: relative; background: transparent; border: 1px solid var(--border);
  border-radius: 999px; width: 32px; height: 32px; font-size: 15px; cursor: pointer;
  color: var(--text-dim); display: inline-flex; align-items: center; justify-content: center;
}
.notif-bell:hover { color: var(--text); border-color: var(--border-strong); }
.notif-bell.on { color: var(--stale); border-color: rgba(245, 158, 11, 0.5); }
.notif-badge {
  position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 999px; background: var(--down); color: #1a0a0a;
  font-size: 10px; font-weight: 800; line-height: 16px; text-align: center;
}
.notif-panel {
  width: 340px; max-height: 420px; overflow: auto; border-radius: 12px;
  background: var(--bg-panel); border: 1px solid var(--border); box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.notif-head { padding: 12px 14px; font-weight: 700; border-bottom: 1px solid var(--border); display: flex; gap: 8px; align-items: baseline; }
.notif-list { display: flex; flex-direction: column; }
.notif-item { display: flex; gap: 9px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: rgba(245, 158, 11, 0.06); }
.notif-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--stale); }
.notif-item.lvl-critical .notif-dot { background: var(--down); }
.notif-body { min-width: 0; }
.notif-msg { font-size: 13px; line-height: 1.4; }
.notif-meta { font-size: 11.5px; color: var(--text-faint, #5b6778); margin-top: 2px; }
.notif-foot { padding: 8px 14px; border-top: 1px solid var(--border); text-align: center; }
.notif-foot a { color: var(--picker); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.notif-foot a:hover { text-decoration: underline; }

/* ---------- TV MODE ---------- */
.tv { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: clamp(8px, 1.2vw, 22px); gap: clamp(8px, 1vh, 16px); }
.tv-header { display: flex; align-items: baseline; gap: 22px; padding: 0 6px; }
.tv-header h1 { font-size: clamp(20px, 2.6vw, 40px); font-weight: 800; letter-spacing: 0.5px; }
.tv-header .date { font-size: clamp(16px, 1.8vw, 28px); color: var(--text-dim); font-weight: 600; }
.tv-header .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.tv-header .updated { color: var(--text-dim); font-size: clamp(12px, 1.1vw, 17px); }
.tv-day {
  background: transparent; color: var(--text-dim); border: 1px solid var(--border-strong);
  border-radius: 9px; padding: 6px 10px; font-size: clamp(12px, 1vw, 15px); font-family: inherit; outline: none;
  color-scheme: dark;
}
.tv-day:hover, .tv-day:focus { color: var(--text); border-color: var(--picker); }
.tv-day::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.6; }
.tv-day::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.tv-share {
  background: transparent; color: var(--text-dim); border: 1px solid var(--border-strong);
  border-radius: 9px; padding: 6px 13px; font-size: clamp(12px, 1vw, 15px); font-weight: 700; cursor: pointer;
}
.tv-share:hover { color: var(--picker); border-color: var(--picker); }
.tv-nav {
  display: inline-flex; border: 1px solid var(--border-strong); border-radius: 9px; overflow: hidden;
}
.tv-nav button {
  background: transparent; color: var(--text-dim); border: 0; cursor: pointer;
  padding: 6px 11px; font-size: clamp(12px, 1vw, 15px); font-weight: 700;
  border-right: 1px solid var(--border);
}
.tv-nav button:last-child { border-right: 0; }
.tv-nav button:hover { color: var(--picker); background: var(--bg-panel-2); }
.tv-body { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.2vw, 22px); min-height: 0; }

/* мини-драбинка метрик в строке: длина бара = результат относительно лидера */
.avatar {
  width: clamp(26px, 2.6vw, 44px); height: clamp(26px, 2.6vw, 44px); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex: none;
  font-weight: 800; font-size: clamp(10px, 1vw, 16px); color: #0a0e14;
}
.move { min-width: clamp(34px, 3.2vw, 56px); text-align: center; font-size: clamp(11px, 1.05vw, 16px); font-weight: 800; border-radius: 8px; padding: 3px 6px; }
.move.up { color: var(--up); background: rgba(52, 211, 153, 0.12); }
.move.down { color: var(--down); background: rgba(248, 113, 113, 0.10); }
.move.same { color: var(--text-dim); opacity: 0.6; }
.move.new { color: var(--processing); background: rgba(167, 139, 250, 0.12); }
/* У таблиці аналітики (05.08.2026) — той самий бейдж, але помітно менший:
   поруч зі шрифтом рядка (13.5px) стара мінімальна ширина 34px і кегль до
   16px виглядали як окремий елемент інтерфейсу, а не позначка при цифрі. */
.grid .move {
  min-width: 30px; font-size: 12px; font-weight: 700; padding: 2px 5px; border-radius: 6px;
}

/* Локації/замовлення, кількість, вага (05.08.2026) — ті самі кольори, що й
   на ТВ (--c-num-pr/it/wt, tokens.css), і трохи жирніший шрифт, ніж у решти
   показників: три опорні цифри повинні читатись однаково на обох екранах. */
.grid td.num-pr, .grid td.num-it, .grid td.num-wt { font-weight: 600; font-variant-numeric: tabular-nums; }
.num-legend { margin-left: 12px; font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.num-legend i { font-style: normal; margin: 0 4px 0 10px; }
.grid td.num-pr { color: var(--c-num-pr); }
.grid td.num-it { color: var(--c-num-it); }
.grid td.num-wt { color: var(--c-num-wt); }

/* --- ФАЗА 1: лиги, склады, метки --- */

/* ============ ТВ-ЭКРАН ============
   Розмітка ТВ живе у `board.css` (`.tvx` / `.zone` / `.row`) з ФАЗИ 8
   (05.08.2026). Тут раніше лежала попередня розмітка — `.tv`, `.tv-body`,
   `.g-2x2`, `.pn*`, `.r*`, `.pod`, `.pd*`, `.v-wall/.v-board/.v-detail`,
   `.tv-pages` — і її генерував `frontend/js/layouts.js`.

   Видалено 11.08.2026 (BUG-032). Не «про всяк випадок лишимо»: саме ці класи
   міряв `tools/shots.mjs`, і їхня присутність у стилях створювала враження, що
   інструмент дивиться на щось живе. Він друкував «✓» на екрані, якого не бачив,
   і так тривало шість днів. Мертвий код тут коштував не місця, а довіри до
   перевірки.

   Перевірено перед видаленням: жоден із видалених класів не зустрічається в
   `frontend/js/*.js` і `index.html` — ні в розмітці, ні в `classList`, ні в
   `querySelector`. Ті, що зустрічаються (`.av`, `.mk`, `.mks`, `.mv`),
   лишились нижче: ними досі користуються `empcard.js` і `cheat.js`.

   ⚠️ BUG-033, знайдено 11.08.2026 і полагоджено 12.08.2026: `--d`, `--s1`,
   `--lead` визначались ТІЛЬКИ в `.tv`, а клас `.tv` не вішається на жоден
   елемент — ні в розмітці, ні з JS. `calc(... * var(--d))` нижче був недійсний.

   Перевірено, де це справді видно: `.av`, `.mv`, `.mks` рендеряться ЛИШЕ
   всередині `.row` на ТВ (`board.js`), де `board.css` дає їм власні правила
   з вищою специфічністю (`.row .av` тощо) — там усе було й лишається гаразд.
   `.av.xl` в картці працівника теж перекритий: `.empcard .ph .av.xl` нижче.
   Єдиний живий постраждалий — `.mk.rp` («без сповіщень» у Чит-детекторі,
   «поза N рейтинг.» у вікні «Команди»): для нього окремого правила не було,
   і бейдж справді малювався з padding 0 та успадкованими 16px замість
   задуманих ~12px — заміряно в браузері до і після правки.

   Правило нижче спрощено до фіксованих значень: ці класи більше ніколи не
   живуть у vh-масштабованому контексті (той тепер лише `board.css`/`--rh`),
   тож розмір, що плаває від висоти вікна, тут не потрібен — і вже не
   пастка для наступного, хто перевикористає `.mk` поза `.row`. */

.mks { flex: 0 0 auto; display: inline-flex; gap: 4px; }
.mk {
  padding: 1px 8px; border-radius: 999px; font-weight: 800;
  font-size: 12px; line-height: 1.7;
  border: 1px solid currentColor;
}
.mk.f { color: var(--gold); }
.mk.mix { color: #60a5fa; }
.mk.rp { color: var(--text-faint); }
.mv {
  flex: 0 0 auto; font-weight: 800; font-size: 13px;
}
.mv.up { color: var(--up); }
.mv.down { color: var(--down); }

.av { width: 32px; height: 32px;
      border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #06231f;
      font-size: 13px; }
.av.xl { width: 64px; height: 64px; font-size: 22px; }

.tv-wh { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.tv-wh:empty { display: none; }
.tv-wh .wh {
  background: transparent; border: 0; border-right: 1px solid var(--border); color: var(--text-dim);
  font: inherit; font-weight: 700; font-size: clamp(10px, .95vw, 14px); padding: 6px 12px; cursor: pointer;
}
.tv-wh .wh:last-child { border-right: 0; }
.tv-wh .wh:hover { background: var(--bg-panel-2); color: var(--text); }
.tv-wh .wh.on { background: var(--picker); color: #06231f; }

/* Перемикач мови інтерфейсу (CHAT 06, довершено 18.08.2026) — ОДНА кнопка,
   а не чотири: показує поточну мову, клік гортає до наступної по колу.
   Власник прямо попросив цей вигляд замість сегментованого — компактніше й
   органічніше поруч із «Гість / Увійти». */
.lang-sw { display: inline-flex; }
.lang-sw:empty { display: none; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: 1px solid var(--border); border-radius: var(--r-2);
  color: var(--text-dim); font: inherit; font-weight: 700; font-size: 12.5px;
  padding: 5px 11px; cursor: pointer; line-height: 1;
}
.lang-switch:hover { background: var(--bg-panel-2); color: var(--text); border-color: var(--border-strong); }
.lang-switch .lang-ic { font-size: 13px; line-height: 1; }
.lang-switch .lang-code { line-height: 1; }
.tv-layout {
  background: var(--bg-panel); color: var(--text-dim); border: 1px solid var(--border);
  border-radius: 9px; padding: 6px 10px; font: inherit; font-size: clamp(10px, .9vw, 13px); cursor: pointer;
}
.tv-layout:hover { color: var(--text); border-color: var(--border-strong); }
.tv-dens { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.tv-dens button {
  background: transparent; border: 0; border-right: 1px solid var(--border); color: var(--text-dim);
  font: inherit; font-size: clamp(10px, .9vw, 13px); padding: 6px 10px; cursor: pointer;
}
.tv-dens button:last-child { border-right: 0; }
.tv-dens button.on { background: var(--bg-panel-2); color: var(--text); }

/* Значки — фигурами, а не символами: шрифта с эмодзи на телевизоре может
   не оказаться, и на стене цеха вместо паузы будет пустой квадрат. */
.ico { position: relative; width: 2.4em; }
.ico::before, .ico::after { content: ""; position: absolute; top: 50%; translate: 0 -50%; background: currentColor; }
.ico.pause::before, .ico.pause::after { width: .22em; height: .9em; border-radius: 1px; }
.ico.pause::before { left: .8em; }
.ico.pause::after { left: 1.25em; }
.ico.play::before {
  left: .95em; width: 0; height: 0; background: none;
  border-left: .72em solid currentColor;
  border-top: .44em solid transparent; border-bottom: .44em solid transparent;
}

/* `.tv-footer` (і `.page-title`/`.badge`/`.page-dots` усередині) — ще один
   залишок старої розмітки ТВ, пропущений при видаленні BUG-032 (11.08.2026):
   не зустрічається в жодному `frontend/js/*.js` і `index.html`. Знайдено при
   аудиті BUG-019 через `font-size: .85em` без нижньої межі всередині — рядок
   виглядав як живий ризик дрібного шрифту, доки перевірка не показала, що
   елемент, якому цей шрифт належав би, ніде не рендериться. Видалено
   11.08.2026. */

/* ---------- смена данных: жив ли робот ---------- */
.acq { padding: 14px 18px; border-bottom: 1px solid var(--border); display: grid; gap: 7px; }
.acq-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.acq-slots { margin-left: auto; font-variant-numeric: tabular-nums; }
.acq-bad { color: var(--error); font-weight: 600; }
.acq-runs { display: flex; gap: 5px; align-items: center; }
.acq-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.acq-dot.ok { background: var(--up); }
.acq-dot.empty { background: var(--text-faint); }
.acq-dot.error { background: var(--error); }

/* Смуга місця на диску. Колір тут НЕ єдиний носій сенсу — поруч завжди
   написано «зайнято N %» словами (дизайн-система, «Правило цвета»): смугу
   можна не побачити, а речення про те, що дашборд перестане писати дані,
   прочитають. */
.disk-bar { height: 8px; border-radius: 999px; background: var(--border);
  overflow: hidden; }
.disk-fill { display: block; height: 100%; border-radius: 999px;
  background: var(--up); transition: width .4s ease; }
.disk-fill.warn { background: var(--packer); }
.disk-fill.critical { background: var(--error); }
.disk-parts { font-variant-numeric: tabular-nums; }

.league-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px;
  font-weight: 700; border: 1px solid var(--border); color: var(--text-dim); }
.league-pill.boden { background: rgba(52,211,153,.14); color: #34d399; border-color: rgba(52,211,153,.3); }
.league-pill.stapler { background: rgba(96,165,250,.14); color: #60a5fa; border-color: rgba(96,165,250,.3); }
.league-pill.single { background: rgba(251,191,36,.14); color: #fbbf24; border-color: rgba(251,191,36,.3); }
.league-pill.multi { background: rgba(167,139,250,.16); color: #a78bfa; border-color: rgba(167,139,250,.32); }
.tag.f { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px;
  font-size: max(12px, .7em); font-weight: 800; color: var(--gold); border: 1px solid currentColor; }


/* ---------- карточка сотрудника ---------- */
.empcard { display: flex; align-items: flex-start; gap: 16px; padding: 4px 0; }
.empcard .ph { position: relative; flex: 0 0 auto; cursor: pointer; }
.empcard .ph img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border-strong);
}
.empcard .ph .av.xl { width: 64px; height: 64px; font-size: 22px; }
.empcard .ph .ph-x {
  position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-panel-2); border: 1px solid var(--border-strong); color: var(--text-dim);
  display: grid; place-items: center; font-size: 14px; line-height: 1;
}
.empcard .ph .ph-x:hover { color: var(--down); border-color: var(--down); }
.empcard .fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.empcard .line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.empcard h2 { font-size: 21px; font-weight: 700; }
.empcard .nm-in {
  font-size: 21px; font-weight: 700; color: var(--text); background: transparent;
  border: 1px solid transparent; border-radius: 8px; padding: 3px 8px; font-family: inherit;
  min-width: 16ch; max-width: 100%;
}
.empcard .nm-in:hover { border-color: var(--border); }
.empcard .nm-in:focus { border-color: var(--picker); outline: none; background: var(--bg-row); }
.empcard .accs { font-size: 12px; color: var(--text-faint); font-family: ui-monospace, Menlo, monospace; }
.empcard label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); }
.empcard input.f {
  background: var(--bg-row); border: 1px solid var(--border); border-radius: 7px;
  padding: 4px 8px; color: var(--text); font: inherit; font-size: 13px; width: 130px;
}
.empcard input.f:focus { border-color: var(--picker); outline: none; }
.empcard .chip {
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-faint); cursor: pointer; user-select: none;
}
.empcard .chip:hover { border-color: var(--border-strong); color: var(--text-dim); }
.empcard .chip.on { background: color-mix(in srgb, var(--picker) 16%, transparent); color: var(--picker); border-color: color-mix(in srgb, var(--picker) 40%, transparent); }

.mixgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 1px; background: var(--border); margin-top: 12px; border-radius: 10px; overflow: hidden;
}
.mixgrid > div { background: var(--bg-panel-2); padding: 9px 12px; display: flex; flex-direction: column; }
.mixgrid span { font-size: 12px; color: var(--text-dim); }
.mixgrid b { font-size: 19px; font-weight: 800; }
.mixgrid i { font-size: 12px; color: var(--text-faint); font-style: normal; }

/* ---------- видимость и режим «Приховані» ---------- */
.empcard select.f {
  background: var(--bg-row); border: 1px solid var(--border); border-radius: 7px;
  padding: 4px 8px; color: var(--text); font: inherit; font-size: 13px; cursor: pointer;
}
.empcard select.f:focus { border-color: var(--picker); outline: none; }
.mk.hid { background: rgba(167,139,250,.16); color: #a78bfa; border: 1px solid rgba(167,139,250,.35);
  padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.vis-btn.on { border-color: var(--picker); color: var(--picker); }
.vis-panel {
  margin-top: 12px; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--bg-panel-2);
}
.vis-panel p { margin-bottom: 8px; line-height: 1.5; }
.vis-rows { display: flex; flex-direction: column; gap: 6px; }
.vis-panel hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.vrow { display: flex; align-items: baseline; gap: 9px; font-size: 13px; cursor: pointer; }
.vrow i { font-style: normal; font-size: 12px; color: var(--text-faint); }
.vnote { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--text-dim); }
.vnote .wide { flex: 1; }
.btn.on { border-color: var(--picker); color: var(--picker); }
/* Режим отмечается подписью над таблицей, а не полосой по краю:
   цветная кромка читается как украшение, а не как состояние экрана. */
.page.hidden-mode .table-scroll::before {
  content: "Режим «Приховані» — тут ті, кого прибрано з екранів. Функції ті самі.";
  display: block; padding: 9px 16px; font-size: 12.5px; color: #a78bfa;
  background: color-mix(in srgb, #a78bfa 10%, transparent); border-bottom: 1px solid var(--border);
}
table.ts .accs { font-size: 12px; color: var(--text-faint); font-family: ui-monospace, Menlo, monospace; }
table.ts select.f.mini { padding: 2px 6px; font-size: 12px; background: var(--bg-row);
  border: 1px solid var(--border); border-radius: 6px; color: var(--text); }
.chip.sm { padding: 1px 7px; font-size: 12px; }

/* ---------- детектор сканирования ---------- */
.cheat-note {
  padding: 12px 16px; margin: 0 0 4px; font-size: 13.5px; line-height: 1.55;
  color: var(--text-dim); border-bottom: 1px solid var(--border);
}
.cheat-note b { color: var(--text); }
table.grid.cheat td.cool { color: var(--text-dim); }
table.grid.cheat td.warm { color: var(--stale); }
table.grid.cheat td.hot { color: var(--down); font-weight: 700; }
table.grid.cheat .of { display: block; font-size: 12px; color: var(--text-faint); font-weight: 400; }
table.grid.cheat tr.muted { opacity: .5; }
table.grid.cheat .bar { display: block; width: 90px; height: 6px; border-radius: 3px; background: rgba(148,163,184,.12); }
table.grid.cheat .bar i { display: block; height: 100%; border-radius: 3px; background: var(--down); opacity: .75; }
.pad { padding: 32px; text-align: center; }

.modal.wide { width: min(880px, 94vw); max-height: 88vh; padding: 0; gap: 0; }
.modal.wide .mh {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.modal.wide .mh b { font-size: 17px; }
.modal.wide .mute { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); cursor: pointer; }
.mstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
.mstats > div { background: var(--bg-panel); padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.mstats span { font-size: 12px; color: var(--text-dim); }
.mstats b { font-size: 24px; font-weight: 800; }
.mstats b.hot { color: var(--down); }
.mstats b.warm { color: var(--stale); }
.mstats i { font-size: 12px; color: var(--text-faint); font-style: normal; }
.mbody { overflow: auto; padding: 8px 18px 18px; }
.dayblock { margin-top: 16px; }
.dayblock h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
table.grid.tight td, table.grid.tight th { padding: 5px 10px; font-size: 12.5px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }

/* ---------- сессия: гость / вход ---------- */
.session { display: inline-flex; align-items: center; gap: 10px; }
.session .who { font-size: 13px; font-weight: 600; color: var(--text); }
.session .who.guest { color: var(--text-dim); }
.btn.small { padding: 5px 11px; font-size: 12.5px; }
.btn.ghost { background: transparent; }
/* Функция видна, но заперта: пустое место сбивает с толку сильнее, чем замок. */
.btn.locked { opacity: .55; background: transparent; border-style: dashed; }
.btn.locked:hover { opacity: .85; }

.demo-bar {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 8px 18px; font-size: 13px; color: var(--text-dim);
  background: color-mix(in srgb, var(--processing) 10%, var(--bg-panel));
  border-bottom: 1px solid var(--border);
}
.demo-x { display: none; }

.modal-back {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(6, 9, 14, .72); backdrop-filter: blur(3px);
}
.modal {
  width: min(380px, 92vw); background: var(--bg-panel); border: 1px solid var(--border-strong);
  border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.modal h3 { font-size: 19px; font-weight: 700; }
.modal label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-dim); }
.modal input {
  background: var(--bg-row); border: 1px solid var(--border-strong); border-radius: 9px;
  padding: 10px 12px; color: var(--text); font: inherit; font-size: 15px; outline: none;
}
.modal input:focus { border-color: var(--picker); box-shadow: 0 0 0 3px color-mix(in srgb, var(--picker) 18%, transparent); }
.modal .err { color: var(--down); font-size: 13px; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }

/* ---------- екран ознайомлення з протоколюванням (BUG-020) ---------- */
.notice-modal { width: min(480px, 92vw); max-height: 86vh; overflow: auto; }
.notice-modal p { font-size: 13.5px; line-height: 1.55; color: var(--text-dim); }
.notice-lang { display: flex; gap: 6px; align-self: flex-end; }
.notice-lang .btn.active { background: var(--picker); color: #06202b; border-color: var(--picker); }
.modal label.notice-cb { flex-direction: row; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); }

/* ---------- журнал доступу (BUG-020) ---------- */
.audit-filters { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.audit-list { display: flex; flex-direction: column; }
.audit-row { padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.audit-row .audit-ts { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.audit-row .audit-text { flex: 1; }

.audit-access { padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-row); }
.audit-access-title { font-weight: 700; font-size: 13.5px; margin-bottom: 2px; }
.audit-access-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; }
.audit-access-row b { min-width: 110px; }
.audit-ip-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.audit-ip-chips .chip {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 1px solid var(--border); color: var(--text-dim);
  background: var(--bg-panel);
}
.audit-ip-chips .chip button { background: none; border: none; color: inherit; cursor: pointer; margin-left: 4px; font-size: 13px; line-height: 1; }
.audit-ip-input { width: 150px; background: var(--bg-panel); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 5px 9px; color: var(--text); font: inherit; font-size: 12.5px; }

/* переключатель страниц: видно, что показано сейчас */
.tv-pages { display: inline-flex; margin-left: 10px; gap: 6px; }
.tv-pages .pg {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 9px;
  color: var(--text-dim); font: inherit; font-size: clamp(11px, 1vw, 15px);
  font-weight: 800; letter-spacing: 1.2px; padding: 6px 16px; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.tv-pages .pg:hover { color: var(--text); border-color: var(--text-dim); }
.tv-pages .pg.on {
  background: var(--picker); border-color: var(--picker); color: #06231f;
  box-shadow: 0 0 18px rgba(45, 212, 191, .28);
}
.tv-pages .pg.on:nth-child(2) {
  background: var(--packer); border-color: var(--packer); color: #2a1a00;
  box-shadow: 0 0 18px rgba(251, 191, 36, .28);
}

/* переключатель склада */
.tv-wh { display: inline-flex; margin-left: 10px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.tv-wh:empty { display: none; }
.tv-wh .wh {
  background: transparent; border: 0; border-right: 1px solid var(--border);
  color: var(--text-dim); font: inherit; font-size: clamp(11px, .95vw, 14px);
  font-weight: 700; padding: 5px 11px; cursor: pointer; letter-spacing: .3px; white-space: nowrap;
}
.tv-wh .wh:last-child { border-right: 0; }
.tv-wh .wh:hover { background: var(--bg-panel-2); color: var(--text); }
.tv-wh .wh.on { background: var(--picker); color: #06231f; }

/* метки у имени: F-level, repicks */
.tag {
  display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px;
  /* max(), а не голий em: відносний розмір усередині 13.5px-тексту давав
     8.37px — найдрібніший текст усього застосунку (BUG-019, 39 входжень
     бейджем «Перевіряч»). Пропорція збережена там, де батько великий. */
  font-size: max(12px, .62em); font-weight: 800; letter-spacing: .5px; vertical-align: middle;
}
.tag.f { background: rgba(251, 191, 36, .16); color: #fbbf24; border: 1px solid rgba(251, 191, 36, .35); }
.tag.rp { background: rgba(148, 163, 184, .14); color: var(--text-dim); border: 1px solid var(--border); }
/* Ліга пакера в «Перевірці». Кольори — ті самі, що в цих ліг на ТВ-екрані
   (`board.js`: single/multi ідуть акцентом пакінгу), щоб та сама ліга не
   називалась одним кольором на стіні й іншим у керівника. «Не визначено» —
   навмисно тьмяне: це відсутність даних, а не третя ліга. */
.tag.lg { margin-left: 0; }
.tag.lg-single { background: rgba(52, 211, 153, .14); color: var(--up); border: 1px solid rgba(52, 211, 153, .35); }
.tag.lg-multi { background: rgba(251, 191, 36, .14); color: var(--stale); border: 1px solid rgba(251, 191, 36, .35); }
.tag.lg-none { background: transparent; color: var(--text-faint, #5b6778); border: 1px dashed var(--border); }
/* «=» біля місця: люди ділять позицію, бо різниця в межах похибки даних */
.tie { margin-left: 5px; font-weight: 800; color: var(--text-dim); font-size: .85em; }
/* «Універсал» — работал в двух ролях. Голубой, а не золотой: это факт о
   характере работы, а не награда, и рядом с золотом лидера читался бы как
   вторая медаль. */
.tag.dual {
  background: rgba(56, 189, 248, .14); color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, .35); white-space: nowrap;
}
.dp-sub .tag.dual { font-size: 12px; padding: 2px 9px; margin-left: 0; }
.league-pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px;
  font-weight: 700; letter-spacing: .4px; border: 1px solid var(--border); color: var(--text-dim);
}
.league-pill.boden { background: rgba(52, 211, 153, .14); color: #34d399; border-color: rgba(52, 211, 153, .3); }
.league-pill.stapler { background: rgba(96, 165, 250, .14); color: #60a5fa; border-color: rgba(96, 165, 250, .3); }
/* AMR — зона роботів-транспортерів. Фіолетовий: це пікінг, але іншого
   роду, і плутати його з Boden/Stapler на екрані не можна. */
.league-pill.robot { background: rgba(167,139,250,.14); color: #a78bfa; border-color: rgba(167,139,250,.3); }
.league-pill.single { background: rgba(251, 191, 36, .14); color: #fbbf24; border-color: rgba(251, 191, 36, .3); }
.league-pill.multi { background: rgba(167, 139, 250, .16); color: #a78bfa; border-color: rgba(167, 139, 250, .32); }

/* ---------- generic panels / manager ---------- */
.page { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; max-width: 1950px; width: 100%; margin: 0 auto; }
.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.controls .grow { flex: 1; }
select, input[type="date"], input[type="text"], input[type="search"], input[type="number"] {
  background: var(--bg-panel-2); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: 9px; padding: 8px 11px; font-size: 13.5px; font-family: inherit; outline: none;
}
select:focus, input:focus { border-color: var(--picker); }
.btn {
  background: var(--bg-panel-2); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: 9px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.btn:hover { border-color: var(--picker); }
.btn.primary { background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.5); color: var(--picker); }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: transparent; color: var(--text-dim); padding: 8px 16px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.seg button.active.picker { background: rgba(34, 211, 238, 0.14); color: var(--picker); }
.seg button.active.sorter { background: rgba(251, 191, 36, 0.14); color: var(--packer); }
.seg button.active { background: var(--bg-panel-2); color: var(--text); }

/* Права група панелі — робота з даними (11.08.2026, рішення власника).
   `nowrap` навмисно: група мусить переїжджати ЦІЛКОМ. Доти, доки кнопки
   переносились поодинці, «звук» і «CSV» при зумі ≥110 % опинялись на
   наступному рядку ЛІВОРУЧ, під вкладками перегляду — і бік екрана, тобто
   сам смисл поділу «дивитись / працювати з даними», залежав від ширини
   вікна. Тепер розкладка однакова на 50 % і на 150 %. */
/* `margin-left: auto` — не декорація, а ДРУГА половина фіксу. `nowrap` тримає
   групу цілою, але коли вона все-таки не влазить у рядок (зум ≥130 %,
   vw ≤ 1477 — перевірено пікселями 11.08.2026), flex переносить її на новий
   рядок і ставить ЛІВОРУЧ, тобто повертає рівно ту поломку, від якої тікали.
   Автоматичний відступ зліва притискає групу до правого краю того рядка, на
   якому вона опинилась, — тому бік екрана тепер закріплений і при переносі. */
.controls .tools { display: inline-flex; align-items: center; gap: 10px; flex-wrap: nowrap; margin-left: auto; }
/* Меню ⚙ (17.11.2026): рідкісні дії — Колонки, Команди, Приховані, Звук. */
.tools-menu { position: relative; display: inline-flex; }
#tools-btn { min-width: 40px; font-size: 15px; }
#tools-btn.on { border-color: var(--c-warn); color: var(--c-warn); }
.tools-pop {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 70;
  display: flex; flex-direction: column; gap: 6px; min-width: 180px; padding: 8px;
  background: var(--bg-panel); border: 1px solid var(--border-strong);
  border-radius: 10px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
}
.tools-pop[hidden] { display: none; }
.tools-pop .btn, .tools-pop #snd-btn { width: 100%; justify-content: flex-start; text-align: left; }
.tools-pop #snd-settings { display: contents; }
/* Статус даних біля логотипа (17.11.2026) — той самий statusPill, що й на ТВ. */
.nav .nav-live { display: inline-flex; align-items: center; margin-left: 10px; }
.nav .nav-live:empty { display: none; }
.nav .nav-live .pill { font-size: 11px; }
.controls .tabs-data { margin-left: auto; }

/* Три екрани перегляду — кожен своїм кольором. Активна вкладка фарбується
   повністю, неактивна тримає лише кольорову крапку: інакше три однаково
   яскраві кнопки поруч читаються як три ввімкнені режими. */
/* Дерево розділів (03.09.2026, рішення власника).

   «Рейтинг» не рівня «Перевірці» й чит-детектору: у нього є ДВІ гілки —
   пікери й пакери, — і поза ним вони не означають нічого. Доти, доки вони
   стояли окремим сегментом у верхньому рядку, поруч із періодом і пошуком,
   вони читались як третій незалежний перемикач: людина відкривала
   чит-детектор, тиснула «Пакери» й чекала, що екран її послухається.

   Тому тепер це ОДНА пігулка: «Рейтинг», тонка риска, і за нею дві гілки —
   меншим кеглем і на тон тьмяніше, тобто явно підпорядковані. «Перевірка» з
   чит-детектором — сусідня, окрема пігулка; службові вкладки — третя,
   праворуч. Проміжок між пігулками (gap) і робить те, чого бракувало: видно,
   де закінчується одна держава й починається інша.

   `.tabs-view` більше не `.seg` сам по собі — він КОНТЕЙНЕР пігулок. Класи
   кольорів (`t-rank`/`t-check`/`t-cheat`) написані як нащадки, тому працюють
   без змін на будь-якій глибині. */
.tabs-view { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tab-branch .sub-seg {
  display: inline-flex;
  border-left: 1px solid var(--border-strong);
  background: color-mix(in oklab, var(--c-pick) 5%, transparent);
}
.tab-branch .sub-seg button { padding: 8px 13px; font-size: 12.5px; font-weight: 600; }
/* Гілка тьмяніє разом із закритою вкладкою — але лишається натисною: клік по
   ній і означає «відкрий рейтинг на цьому розрізі». Це та сама поведінка, що
   й у коді (`showRankings`), просто сказана оком. */
.tabs-view:has(button[data-t="rankings"]:not(.active)) .sub-seg { opacity: 0.5; }
.tabs-view:has(button[data-t="rankings"]:not(.active)) .sub-seg:hover { opacity: 1; }

/* Крапка — ознака ЕКРАНА, тому тільки в кнопок із `data-t`. Пікери й пакери
   свої кольори носять заливкою (`.seg button.active.picker`), і четверта
   крапка поруч читалась би як ще один рівноправний розділ. */
.tabs-view button[data-t] { position: relative; padding-left: 26px; }
.tabs-view button[data-t]::before {
  content: ""; position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.45;
}
.tabs-view button[data-t].active::before { opacity: 1; }
/* Канонічні токени `--c-*`, а не сумісні аліаси. `--warn` тут спершу й стояв —
   і виявилось, що такого токена НЕМАЄ взагалі (є `--c-warn`, а в списку
   сумісності він зветься `--stale`). CSS на невідому змінну не лається:
   властивість просто стає invalid, колір успадковується, і «Чит-детектор»
   мовчки був білим замість бурштинового. Спіймано перевіркою кольору в
   реальному браузері (11.08.2026), оком на темному тлі це не видно. */
.tabs-view button.t-rank { color: var(--c-pick); }
.tabs-view button.t-check { color: var(--c-up); }
.tabs-view button.t-cheat { color: var(--c-warn); }
.tabs-view button.active.t-rank { background: color-mix(in oklab, var(--c-pick) 14%, transparent); color: var(--c-pick); }
.tabs-view button.active.t-check { background: color-mix(in oklab, var(--c-up) 14%, transparent); color: var(--c-up); }
.tabs-view button.active.t-cheat { background: color-mix(in oklab, var(--c-warn) 16%, transparent); color: var(--c-warn); }
/* «Рейтинг» і його гілка — кольором ліги: пакери → `--c-pack` (Сергій, 17.11:
   «пакери жовтим, а рейтинг лишається синім»). Активна кнопка пакерів має клас
   `sorter` (manager.js, `role-seg`). */
.tabs-view:has(#role-seg button.active.sorter) button.t-rank { color: var(--c-pack); }
.tabs-view:has(#role-seg button.active.sorter) button.active.t-rank { background: color-mix(in oklab, var(--c-pack) 14%, transparent); color: var(--c-pack); }
.tabs-view:has(#role-seg button.active.sorter) .tab-branch .sub-seg { background: color-mix(in oklab, var(--c-pack) 5%, transparent); }
/* Службові вкладки — навмисно тьмяніші за перегляд: у них ходять зрідка й
   за конкретною потребою, а не «подивитись, як справи». */
.tabs-data button { color: var(--text-faint); font-weight: 600; }
.tabs-data button.active { background: var(--bg-panel-2); color: var(--text-dim); }
/* «Акаунти» — налаштування, а не перегляд даних (17.11.2026, Сергій), тому
   окрема пігулка й власний колір `--c-info`: єдиний зі статусних, ще не
   зайнятий вкладками (рейтинг — бірюзовий, перевірка — зелений, детектор —
   бурштиновий). Рамка в колір — щоб пігулку було видно й неактивною. */
/* `.seg` — inline-flex, а це перебиває браузерне [hidden]: без цього рядка
   порожня кольорова рамка стояла б у гостя й у того, кому акаунти закриті. */
.tabs-admin[hidden] { display: none; }
.tabs-admin { border-color: color-mix(in oklab, var(--c-info) 45%, transparent); }
.tabs-admin button.t-accounts { color: var(--c-info); font-weight: 600; }
.tabs-admin button.t-accounts.active { background: color-mix(in oklab, var(--c-info) 16%, transparent); color: var(--c-info); }

.panel { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.panel-title { padding: 13px 18px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.panel-title .muted { color: var(--text-dim); font-weight: 500; font-size: 12.5px; }

.table-scroll { overflow: auto; max-height: calc(100vh - 215px); }
.drawer .table-scroll { max-height: 260px; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; }
/* ЦИФРИ ПО ЦЕНТРУ СВОГО ЗАГОЛОВКА, КОЛОНКИ — ЯКОМОГА ВУЖЧІ (17.08.2026 —
   мобільна, 18.08.2026 — той самий принцип поширено на десктоп, прохання
   власника). Ім'я і Score тут теж закріплені (`.grid-rankings`, ФАЗА 7), тож
   решту колонок гортають убік однаково скрізь — кожен зайвий піксель це
   менше цифр одразу видно. Праве вирівнювання «читалось стовпчиком» лише
   поки заголовки були повними словами; після скорочення («Ефект.», «К-сть»)
   воно відводило число від свого підпису так само на десктопі, як і на
   телефоні. Поля 12px → 5px із тієї самої причини. */
.grid th {
  text-align: center; padding: 8px 5px; color: var(--text-dim); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.7px; border-bottom: 1px solid var(--border);
  cursor: pointer; user-select: none; white-space: nowrap;
  position: sticky; top: 0; background: var(--bg-panel); z-index: 5;
  box-shadow: 0 1px 0 var(--border);
}
/* Ліга й ім'я лишаються ліворуч: це текст, який читають з початку, а не
   число, яке порівнюють стовпчиком. */
.grid th.l, .grid td.l { text-align: left; }
.grid th.sorted { color: var(--text); }
/* Числа в колонці однакової ширини — інакше центрування «стрибає» від
   кількості знаків і стовпчик виглядає розхитаним. */
.grid td { font-variant-numeric: tabular-nums; }

/* ЗНАЧОК ДОВІДКИ В ЗАГОЛОВКУ — абсолютно, а не в потоці тексту (18.08.2026).
   Той самий дефект, що вже ловили на телефоні: `.gl` в рядку заголовка
   розсовує центрований короткий підпис і може потрапити під обрізання
   сусіднього закріпленого стовпця, тому справжній клік іде в `<th>` і
   СОРТУЄ таблицю замість показу пояснення. Абсолютне позиціювання прибирає
   значок із потоку тексту цілком: заголовок центрується сам, а значок сидить
   у правому краю клітинки й не росте разом із рядком. */
.grid th:has(.gl) { padding-right: 22px; }
.grid th .gl { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); margin: 0; }

/* ---------- inline-редагування колонок (ФАЗА 7, 04.08.2026) ----------
   Гвинтик замінив модалку: заголовки тягаються прямо в шапці таблиці. */
table.grid.cols-editing .grid th,
.grid.cols-editing th {
  cursor: grab; background: var(--bg-row);
  border: 1px dashed transparent; padding-right: 26px; position: relative;
}
.grid.cols-editing th.dragging { opacity: .35; cursor: grabbing; }
.grid.cols-editing th.over { border-color: var(--picker); box-shadow: inset 0 0 0 1px var(--picker); }
.grid.cols-editing th.col-hidden-now { opacity: .4; text-decoration: line-through; }
.grid.cols-editing tbody tr { cursor: default; }
.grid.cols-editing tbody tr:hover { background: transparent; }
.col-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; line-height: 14px; padding: 0; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-panel); color: var(--text-dim);
  font-size: 12px; cursor: pointer;
}
.col-toggle:hover { color: var(--text); border-color: var(--text-dim); }
#cols-btn.primary { background: var(--picker); color: #fff; border-color: var(--picker); }
.grid td { padding: 8px 5px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
.grid tbody tr { cursor: pointer; }
.grid tbody tr:hover { background: var(--bg-row-hover); }
.grid .name-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
/* Стискається лише текст імені — аватар і бейдж ⇄ (обидва flex:none за
   замовчуванням, бо не мають цього класу) завжди лишаються повного розміру. */
.grid .name-cell .nm-txt {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.grid .name-cell .tag.dual { flex: none; }
.grid .rank-badge { display: inline-block; min-width: 26px; text-align: center; font-weight: 800; color: var(--text-dim); }
.grid tr.top1 .rank-badge { color: var(--gold); }
.grid tr.top2 .rank-badge { color: var(--silver); }
.grid tr.top3 .rank-badge { color: var(--bronze); }
.grid input.hours { width: 64px; padding: 4px 7px; font-size: 13px; text-align: right; }

/* ---------- закріплені колонки: #, Ліга, Ім'я (05.08.2026) ----------
   При 100% масштабі таблиця не влазить по ширині, і людина гортає вправо
   подивитись метрики — але саме тоді зникають місце, ім'я й ліга, і незрозуміло,
   чий це рядок. Ці три колонки завжди йдуть першими (applyCols/workingOrder
   у columns.js це гарантують незалежно від збереженого порядку), тому зсув
   `left` можна порахувати наперед фіксованими ширинами — без JS.
   Ширини: # 46px, Ліга 96px, Ім'я 210px → зсуви 0 / 46 / 142. */
/* Обмежено саме таблицею рейтингу (.grid-rankings), а не будь-якою .grid —
   ширини й порядок 1-2-3 тут специфічні («#»/Ліга/Ім'я), а .grid ще й у
   профілі співробітника (Дата/Локації/Score/…), і в списку файлів у
   Завантаженнях (Файл/Дата/…) з зовсім іншими першими колонками. */
.grid-rankings th:nth-child(1), .grid-rankings td:nth-child(1) { width: 46px; min-width: 46px; max-width: 46px; }
.grid-rankings th:nth-child(2), .grid-rankings td:nth-child(2) { width: 96px; min-width: 96px; max-width: 96px; }
.grid-rankings th:nth-child(3), .grid-rankings td:nth-child(3) {
  width: 210px; min-width: 210px; max-width: 210px;
  /* 05.08.2026: overflow:hidden прибрано звідси — обрізку тепер робить
     `.nm-txt` (саме ім'я), а не клітинка цілком. Раніше при довгому імені
     "в жертву" йшов той, хто в flex-рядку опинявся останнім, тобто бейдж
     ⇄, а не текст імені — обрізане ім'я прийнятне (є ellipsis), обрізаний
     значок універсала — ні (людина взагалі не бачить, що вона універсал). */
}
.grid-rankings th:nth-child(1), .grid-rankings th:nth-child(2), .grid-rankings th:nth-child(3),
.grid-rankings td:nth-child(1), .grid-rankings td:nth-child(2), .grid-rankings td:nth-child(3) {
  position: sticky; background: var(--bg-panel);
}
.grid-rankings th:nth-child(1), .grid-rankings td:nth-child(1) { left: 0; z-index: 4; }
.grid-rankings th:nth-child(2), .grid-rankings td:nth-child(2) { left: 46px; z-index: 4; }
.grid-rankings th:nth-child(3), .grid-rankings td:nth-child(3) { left: 142px; z-index: 4; }
/* заголовок закріплений і зверху, і зліва одночасно — над ним нічого немає */
.grid-rankings th:nth-child(1), .grid-rankings th:nth-child(2), .grid-rankings th:nth-child(3) { z-index: 6; }
/* тінь відділяє закріплений блок від колонок, що йдуть під нього при скролі */
.grid-rankings th:nth-child(3), .grid-rankings td:nth-child(3) { box-shadow: 2px 0 4px -2px rgba(0,0,0,.35); }
/* ховер рядка інакше не видно крізь суцільний фон закріплених клітинок */
.grid-rankings tbody tr:hover td:nth-child(1), .grid-rankings tbody tr:hover td:nth-child(2),
.grid-rankings tbody tr:hover td:nth-child(3) { background: var(--bg-row-hover); }
/* у режимі редагування колонок закріплені три не тягаються — sticky там не
   заважає, але власна фіксована ширина в drag-режимі не потрібна */
.grid-rankings.cols-editing th:nth-child(1), .grid-rankings.cols-editing th:nth-child(2),
.grid-rankings.cols-editing th:nth-child(3) {
  width: auto; min-width: 0; max-width: none;
}

/* ПЕРШИЙ СТОВПЕЦЬ ЗАКРІПЛЕНИЙ у «Перевірці» та Чит-детекторі (17.08.2026,
   мобільна → 18.08.2026, той самий принцип на десктопі, прохання власника).
   Без цього при гортанні вбік людина втрачала, ПО ЯКОМУ акаунту дивиться
   цифри — рівно та сама скарга, що привела до закріплених колонок у
   рейтингу вище. У рейтингу закріплено три колонки, бо там місце нумерується
   всередині ліги; тут достатньо назви акаунта: вона й є відповідь на
   питання «чий це рядок». */
#q-checkers th:first-child, #q-checkers td:first-child,
#q-packers th:first-child, #q-packers td:first-child,
.grid.cheat th:first-child, .grid.cheat td:first-child {
  position: sticky; left: 0; z-index: 4;
  background: var(--bg-panel);
  text-align: left; max-width: 160px;
  box-shadow: 4px 0 6px -3px rgba(0, 0, 0, .35);
}
#q-checkers th:first-child, #q-packers th:first-child,
.grid.cheat th:first-child { z-index: 6; }
/* Ховер рядка інакше не видно крізь суцільний фон закріпленої клітинки. */
#q-checkers tbody tr:hover td:first-child, #q-packers tbody tr:hover td:first-child,
.grid.cheat tbody tr:hover td:first-child { background: var(--bg-row-hover); }
/* Ім'я в закріпленій клітинці переноситься, а не обрізається. */
#q-checkers td:first-child .name-cell, #q-packers td:first-child .name-cell,
.grid.cheat td:first-child .name-cell,
#q-checkers td:first-child, #q-packers td:first-child,
#q-checkers td:first-child .acc-cell, #q-packers td:first-child .acc-cell { white-space: normal; overflow-wrap: break-word; }
#q-checkers td:first-child, #q-packers td:first-child { min-width: 112px; }

.dim { color: var(--text-dim); }
.small { font-size: 12px; }

/* Неповний період (BUG-023). Бурштиновий — той самий колір, яким у цьому
   застосунку позначається «вимагає уваги», і єдиний такий: якби дірка в даних
   була пофарбована червоним, вона читалась би як поломка, а день без даних
   частіше законний (склад не працював). Токен саме `--c-warn`: змінної `--warn`
   у проєкті не існує, і CSS на невідому змінну не лається — властивість просто
   стає invalid, а колір мовчки успадковується (так «Чит-детектор» був білим). */
.cov-gap {
  color: var(--c-warn); font-weight: 700; cursor: help;
  border-bottom: 1px dotted currentColor;
}

/* drawer (профиль сотрудника) */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(4, 7, 12, 0.6); z-index: 90; opacity: 0; transition: opacity 0.25s; }
.drawer-backdrop.open { opacity: 1; }
/* Закрита шторка ховається `transform: translateX(100%)`, а НЕ `right: -940px`
   (11.08.2026). Стара версія відсувала її на фіксовані 940 px, і це працювало
   рівно доти, доки шторка була вужча за це число. `.drawer.wide` (розділ
   «Перевірка») має width до 1180 px — тобто в закритому стані 240 px її
   лишалось прямо на екрані й затуляло правий край таблиці. Саме це видно на
   скріншотах власника як «бокове меню не пропадає повністю».
   `translateX(100%)` — це 100 % ВЛАСНОЇ ширини елемента, тому воно не може
   розійтись із шириною за жодних майбутніх `.wide`/`.extra-wide`.
   `visibility` прибирає закриту шторку з інтерактиву й малювання цілком
   (з затримкою на час виїзду), інакше невидимий елемент і далі ловив би
   кліки та міг би тягти горизонтальну прокрутку. */
.drawer {
  position: fixed; top: 0; right: 0; width: min(920px, 96vw); height: 100vh; z-index: 95;
  background: var(--bg-panel); border-left: 1px solid var(--border-strong);
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.3s;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); visibility: visible; transition-delay: 0s, 0s; }
.drawer-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.drawer-head .avatar { width: 46px; height: 46px; font-size: 17px; }
.drawer-head h2 { font-size: 19px; }
.drawer-head .close { margin-left: auto; background: transparent; border: 0; color: var(--text-dim); font-size: 26px; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.card { background: var(--bg-panel-2); border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px; }
.card .v { font-size: 21px; font-weight: 800; }
.card .k { color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; margin-top: 3px; }
.card.picker .v { color: var(--picker); }
.card.sorter .v { color: var(--packer); }
table.mix { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mix th { text-align: right; color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; padding: 6px 10px; border-bottom: 1px solid var(--border); }
.mix th.l, .mix td.l { text-align: left; }
.mix td { padding: 6px 10px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.mix .pctbar { display: inline-block; height: 7px; border-radius: 4px; background: var(--picker); vertical-align: middle; margin-right: 7px; opacity: 0.75; }
.mixbar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--bg-row); }
.mixbar i { height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; font-size: 12px; color: var(--text-dim); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.insight { display: flex; gap: 9px; align-items: baseline; color: var(--text-dim); font-size: 13.5px; padding: 4px 0; }
.insight::before { content: "•"; color: var(--picker); }

/* review */
/* ---------- Team review: чотири ліги на всю ширину ---------- */
.review .controls { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.rv-grid {
  display: grid; gap: 14px; padding: 14px 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* 2×2 по стовпцях: Stapler, Boden | Single, Multi — рядки сітки вирівнюють висоту сусідів */
  grid-template-rows: auto auto; grid-auto-flow: column;
}
@media (max-width: 900px) { .rv-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; } }
.rv-pn {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 14px;
  --lead: var(--picker);
}
.rv-pn.a-packer { --lead: var(--packer); }
.rv-h { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px 8px; }
.rv-t { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lead); font-size: 14px; }
.rv-n { font-weight: 700; color: var(--text-faint); font-size: 13px; }
.rv-u { margin-left: auto; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.rv-empty { padding: 34px; text-align: center; color: var(--text-faint); }

.rv-rows { display: flex; flex-direction: column; gap: 3px; padding: 0 10px 10px; }
.rv-r {
  display: grid; grid-template-columns: 26px 36px minmax(0, 1fr) 70px 46px 52px 44px 50px; align-items: center; gap: 8px;
  padding: 5px 6px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.rv-r:hover { background: var(--bg-row); }
.rv-rk { color: var(--text-faint); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
/* Топ-3 виділені кольором номера місця, а не окремою карткою (17.08.2026,
   прохання власника) — той самий прийом, що на екрані Manager
   (`.grid tr.top1 .rank-badge`): перше й п'яте місце лишаються одним
   списком, трійка помітна оком без зайвої верстки рядка. */
.rv-r.top1 .rv-rk { color: var(--gold); }
.rv-r.top2 .rv-rk { color: var(--silver); }
.rv-r.top3 .rv-rk { color: var(--bronze); }
.rv-nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-bar { height: 6px; border-radius: 3px; background: var(--bg-row); overflow: hidden; }
.rv-bar i { display: block; height: 100%; background: color-mix(in srgb, var(--lead) 55%, transparent); }
.rv-vl { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.rv-vl.dim { color: var(--text-faint); font-weight: 600; }
.rv-mv { font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: left; }
.rv-mv.up { color: var(--up); } .rv-mv.down { color: var(--down); }
.rv-mv.same { color: var(--text-faint); } .rv-mv.new { color: var(--lead); font-weight: 600; }
.rv-x { text-align: right; font-size: 12.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.rv-xh { font-size: 11px; letter-spacing: .06em; color: var(--text-faint); text-transform: uppercase; width: 46px; }
.rv-h .rv-u { margin-left: auto; margin-right: 4px; }
.rv-fewh { border-top: 1px dashed var(--border); margin: 0 10px 10px; padding-top: 8px; }
.rv-fewt { font-size: 12px; color: var(--text-faint); padding: 2px 6px 4px; cursor: pointer; list-style: none; }
.rv-fewt::-webkit-details-marker { display: none; }
.rv-fewt::before { content: "▸"; display: inline-block; width: 14px; transition: transform .15s; }
.rv-fewh[open] > .rv-fewt::before { transform: rotate(90deg); }
.rv-fewt:hover { color: var(--text-dim); }
.rv-few { opacity: .78; }
/* низ блоку — «показати всіх» і «мало годин» притиснуті донизу, щоб блоки рівнялися */
.rv-foot { margin-top: auto; }
/* топ-10 на комп'ютері, решта — трикутничком (Сергій, 03.11.2026); на телефоні — топ-5 */
.rv-pn:not(.all) .rv-rows .rv-more10 { display: none; }
.rv-all { display: block; margin: 0 10px 4px; padding: 4px 6px; border: 0; background: transparent; text-align: left;
  color: var(--text-faint); font-size: 12px; cursor: pointer; }
.rv-all::before { content: "▸"; display: inline-block; width: 14px; transition: transform .15s; }
.rv-pn.all .rv-all::before { transform: rotate(90deg); }
.rv-all:hover { color: var(--text-dim); }
.rv-all.lt10 { display: none; }
/* Телефон: місце · рух · ім'я · Score; топ-5, решта — за кнопкою (E7.4–E7.5) */
@media (max-width: 700px) {
  .rv-r { grid-template-columns: 24px 38px minmax(0, 1fr) 50px; }
  .rv-r .rv-bar, .rv-r .rv-x, .rv-h .rv-x { display: none; }
  .rv-pn:not(.all) .rv-rows .rv-more { display: none; }
  .rv-all.lt10 { display: block; }
}
.rv-team { margin: 14px 16px 0; }
.rv-dlw { margin-top: 4px; font-size: 11.5px; }
.rv-cmp { margin: 4px 16px 14px; padding: 8px 12px; font-size: 12.5px; line-height: 1.5; color: var(--text-dim); max-width: 120ch; border-left: 3px solid var(--border); background: var(--bg-panel-2); border-radius: 0 8px 8px 0; }
.rv-sumrow { display: grid; grid-template-columns: 110px repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: stretch; padding: 4px 16px 8px; }
.rv-allnote { margin: 2px 16px 4px; }
.rv-suml { align-self: center; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.rv-days { font-weight: 500; margin-left: 10px; }
@media (max-width: 700px) { .rv-sumrow { grid-template-columns: 1fr 1fr; } .rv-suml { grid-column: 1 / -1; } }
.rv-dl { font-weight: 600; font-variant-numeric: tabular-nums; }
.rv-dl.up { color: var(--up); } .rv-dl.down { color: var(--down); } .rv-dl.same { color: var(--text-faint); }
.rv-report { float: right; margin-left: auto; padding: 4px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: transparent; color: var(--text-dim); font-size: 12.5px; cursor: pointer; }
.rv-report:hover { background: var(--bg-row); }
/* «i» клітинки — у правому верхньому куті, окремо від підпису (Сергій, 03.11.2026) */
.rv-sumrow .card { position: relative; }
.rv-ci { position: absolute; top: 8px; right: 8px; line-height: 0; }
/* темп відносно медіани ліги: медіана посередині, шкала ±50 % однакова для всіх ліг */
.rv-sc { width: 100%; display: block; background: var(--c-surface-1); border-radius: 6px; margin-top: 4px; }
.rv-sc circle { fill: var(--lead); fill-opacity: .8; }
.rv-sc line.md { stroke: var(--c-text); stroke-width: 1.5; }
.rv-sc line.tk { stroke: var(--c-line-soft); stroke-dasharray: 3 3; }
.rv-sca span { flex: 1; text-align: center; } .rv-sca span:first-child { text-align: left; } .rv-sca span:last-child { text-align: right; }
.rv-sc-none { margin-top: 6px; }
.rv-hist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 6px 14px 14px; }
.rv-hst { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lead, var(--text-dim)); }
.rv-hsl.a-picker { --lead: var(--picker); } .rv-hsl.a-packer { --lead: var(--packer); }
.rv-hsb { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; height: 54px; align-items: end; margin-top: 4px; }
.rv-hsb span { display: flex; align-items: end; height: 100%; }
.rv-hsb i { display: block; width: 100%; min-height: 2px; background: color-mix(in srgb, var(--lead) 55%, transparent); border-radius: 2px 2px 0 0; }
.rv-hsa { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-faint); }
@media (max-width: 700px) { .rv-hist, .rv-histt { display: none; } }
/* Графики — над лигами и на всю ширину пары: почасовой профиль честно
   делится по лигам только у пикеров, поэтому блок принадлежит РОЛИ. */
.rv-charts {
  display: grid; gap: 14px; padding: 14px 16px;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  align-items: start;
}
/* Пакинг рисует ОДИН график на две лиги, пикинг — два. Без выравнивания
   правая панель выходила вдвое ниже, и под ней оставалась дыра во всю
   ширину. Растягиваем одиночный график на ту же высоту. */
.rv-ch { display: flex; flex-direction: column; }
.rv-chart { flex: 1; }
/* Высоту одиночного графика задаёт сам js (H*2+10 — как два ряда пикинга).
   Прежнее `height:auto !important` перебивало её и возвращало ту самую дыру,
   ради которой правило и писалось. */
.rv-chline.solo { flex: 1; display: flex; flex-direction: column; justify-content: center; }
/* Без явной ширины одиночный график сжимался в треть панели: у пикинга слева
   есть подпись лиги на 74px, у пакинга её нет, и колонка схлопывалась. */
.rv-chline.solo .rv-hb { width: 100%; }
.rv-ch { --lead: var(--picker); }
.rv-ch.a-packer { --lead: var(--packer); }
.rv-chart { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
/* display:flex перебивает браузерное [hidden]{display:none} — без этой строки
   свёрнутый блок оставался на экране, а кнопка выглядела сломанной. */
.rv-chart[hidden] { display: none; }
.rv-chline { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 10px; }
/* Одиночный график ставим по центру, а не прижимаем влево: у левого края он
   читается как график только левой лиги, хотя относится к обеим. */
.rv-chline.solo { grid-template-columns: minmax(0, 1fr); }
.rv-cht { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 8px; }
.rv-cht:hover { color: var(--text); }
.rv-fold { color: var(--text-faint); width: 12px; }
.rv-ch.closed { padding-bottom: 4px; }

/* Часовые столбики с нормой за 30 дней */
.rv-hb { display: flex; align-items: flex-end; gap: 4px; }
.rv-hbc { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; height: 100%; }
.rv-hbb { position: relative; flex: 1; width: 100%; display: flex; align-items: flex-end; }
.rv-hbb i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 3px 3px 0 0; }
.rv-hbb .mx { background: color-mix(in srgb, var(--text-faint) 22%, transparent); }
.rv-hbb .cur { background: var(--lead); }
.rv-hbb .cur.low { background: color-mix(in srgb, var(--stale) 65%, transparent); }
.rv-hbb .md { height: 2px; background: var(--text); opacity: .75; border-radius: 0; }
.rv-hbwrap { position: relative; }
.rv-mon { position: absolute; right: 100%; margin-right: 8px; bottom: 19px; line-height: 15px; font-size: 12px; color: var(--text-faint); white-space: nowrap; }
@media (max-width: 700px) { .rv-mon { position: static; display: block; margin: 0 0 2px; } }
.rv-hbl { font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.rv-hbw { font-size: 12px; color: var(--text-faint); opacity: .7; }
.rv-leg { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.rv-leg .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
/* Масштаб графика — в легенде, а не в шапке экрана: настройка относится к
   этому графику, и искать её через весь экран незачем. */
/* Неполный отрезок (месяц кончился в среду) — штриховка и приглушение:
   столбик ниже соседей не потому, что работали хуже. */
.rv-hbc.partial .rv-hbb .cur { opacity: .45; }
.dp-dc.partial .dp-db .cur { opacity: .45; }
.dp-dc.partial .dp-dw { color: var(--warn, #fbbf24); }
.rv-hbc.partial .rv-hbw { color: var(--warn, #fbbf24); }
.rv-gran.rv-base { margin-left: 12px; }
.rv-gran { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.rv-gran button {
  background: none; border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 6px; padding: 1px 8px; font-size: 12px; cursor: pointer;
}
.rv-gran button:hover { color: var(--text); border-color: var(--text-dim); }
.rv-gran button.on { background: var(--panel-2, rgba(148,163,184,.14)); color: var(--text); border-color: var(--text-dim); }
.rv-leg .sw.cur { background: var(--lead); }
.rv-leg .sw.md { background: var(--text); height: 3px; }
.rv-leg .sw.mx { background: color-mix(in srgb, var(--text-faint) 30%, transparent); }

/* вкладки лиг у профиля */
.dp-lgs { display: flex; gap: 6px; padding: 12px 16px 0; flex-wrap: wrap; }
.dp-lgs button {
  background: var(--bg-panel); border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 9px; padding: 6px 13px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center;
}
.dp-lgs button:hover { color: var(--text); border-color: var(--border-strong); }
.dp-lgs button.on { background: var(--bg-panel-2); color: var(--text); border-color: var(--picker); }
.dp-card { margin: 16px; }
.dp-tabs, .dp-roles { flex: none; }

/* микс со сравнением */
.mixcmp .mx { display: inline-flex; align-items: center; gap: 7px; }
.mixcmp .mx i { display: block; height: 7px; border-radius: 4px; min-width: 2px; }
.mixcmp .mx i.up { background: color-mix(in srgb, var(--up) 60%, transparent); }
.mixcmp .mx i.dn { background: color-mix(in srgb, var(--text-faint) 45%, transparent); }
.rv-chl {
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--lead);
}

/* ---------- Deep analytics ---------- */
.deep { padding-bottom: 24px; }
.dp-load { padding: 60px; text-align: center; }
.dp-top {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20; background: var(--bg);
}
.dp-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dp-photo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.dp-name { font-size: 19px; font-weight: 800; }
.dp-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; margin-top: 3px; }
.dp-roles { margin-left: auto; }
.dp-kpi { padding: 14px 16px; }
/* Таблица миксов шире панели: столбец «Weight, kg» просто обрезался справа,
   и число выглядело как «886,9» вместо настоящего. Полосу прокрутки внутри
   панели вешаем на обёртку, а не на саму таблицу — иначе ломается вёрстка строк. */
.dp-grid .mix { width: 100%; min-width: 300px; font-size: 12.5px; }
.dp-grid .mix th, .dp-grid .mix td { padding: 6px 7px; }
.dp-grid .mix-wrap { overflow-x: auto; padding: 0 14px 12px; }
.dp-grid .mix .pctbar { max-width: 46px; }
.dp-grid {
  display: grid; gap: 14px; padding: 0 16px;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  /* auto-rows + align:stretch: панели заполняют строку, а не оставляют дыры
     под короткой соседкой. Раньше строка тянулась по самой высокой панели,
     и рядом с ней зияло пустое место. */
  grid-auto-rows: min-content;
  align-items: stretch;
}
.dp-grid > .panel { display: flex; flex-direction: column; }
/* содержимое прижимаем вверх, а последний график растягиваем на остаток */
.dp-grid > .panel > .chart-wrap:last-child,
.dp-grid > .panel > .dp-cmp:last-child,
.dp-grid > .panel > .dp-hrs:last-child { margin-bottom: auto; }

.dp-cmp { padding: 6px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.dp-c {
  display: grid; grid-template-columns: 128px minmax(0, 1fr) 76px 54px;
  align-items: center; gap: 10px; padding: 6px 4px; font-size: 13px;
}
.dp-cl { color: var(--text-dim); }
.dp-ct { position: relative; height: 9px; border-radius: 5px; background: var(--bg-row); overflow: visible; }
.dp-fill { position: absolute; inset: 0 auto 0 0; border-radius: 5px; }
.dp-fill.ok { background: color-mix(in srgb, var(--up) 60%, transparent); }
.dp-fill.low { background: color-mix(in srgb, var(--picker) 42%, transparent); }
/* медиана лиги — ориентир «середина», а не оценка */
.dp-med { position: absolute; top: -3px; width: 2px; height: 15px; background: var(--text-faint); }
.dp-cv { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.dp-cr { text-align: right; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.dp-cr.first { color: var(--gold); font-weight: 700; }

/* ---------- пояснення метрик ---------- */
/* Подсказка живёт в <body> (см. glossary.js): внутри панели её обрезал любой
   предок с overflow — было видно, что что-то появилось, а прочитать нельзя. */
.gl { position: relative; display: inline-flex; margin-left: 5px; vertical-align: middle; cursor: help; }
.gl > i {
  display: flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; font-style: normal;
  font-size: 12px; font-weight: 800; line-height: 1;
  color: var(--text-faint); border: 1px solid var(--border-strong);
  transition: color .15s, border-color .15s;
}
.gl:hover > i, .gl:focus > i { color: var(--picker); border-color: var(--picker); }
/* Заслінка під підказкою (17.08.2026, glossary.js → showShield).
   Прозора, на весь екран, на один шар НИЖЧЕ підказки: перший тап поза
   підказкою потрапляє в неї, закриває довідку й НЕ доходить до сторінки.
   Без цього тап «мимо» на телефоні одночасно закривав підказку й відкривав
   картку людини — людина хотіла прибрати довідку, а опинялась на іншому
   екрані. Прозора вона навмисно: затемнення перетворило б довідку на
   модальне вікно, чим вона не є. */
.gl-shield { position: fixed; inset: 0; z-index: 9998; background: transparent; }

.gl-pop {
  position: fixed; z-index: 9999; left: 0; top: 0;
  width: min(340px, 88vw);
  display: none; flex-direction: column; gap: 7px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--bg-panel-2); border: 1px solid var(--border-strong);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .6);
  font-size: 12.5px; font-weight: 400; line-height: 1.45;
  color: var(--text); text-align: left; text-transform: none; letter-spacing: 0;
  white-space: normal; cursor: default; pointer-events: auto;
}
.gl-pop.on { display: flex; }
.gl-pop > b { font-size: 13.5px; }
.gl-r { display: block; color: var(--text-dim); }
.gl-r em { display: block; font-style: normal; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 1px; }

/* ---------- єдиний вибір періоду ---------- */
.period { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.period [data-p="range"] { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- звук оновлення рейтингу (ФАЗА 7, 04.08.2026) ---------- */
.snd-pop {
  width: 300px; padding: 14px; border-radius: 12px; background: var(--bg-panel);
  border: 1px solid var(--border); box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.snd-pop select { flex: 1; min-width: 0; }

/* ---------- вибір колонок ---------- */
.cols-modal { max-width: 460px; }
.cols-list { display: flex; flex-direction: column; gap: 2px; max-height: 52vh; overflow: auto; margin-top: 10px; }
.cols-i {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  border-radius: 9px; background: var(--bg-row); cursor: grab;
}
.cols-i.locked { opacity: .65; cursor: default; }
.cols-i.drag { opacity: .4; }
.cols-i.over { box-shadow: inset 0 2px 0 var(--picker); }
.cols-grip { color: var(--text-faint); letter-spacing: -2px; user-select: none; }
.cols-i label { display: flex; align-items: center; gap: 8px; cursor: inherit; font-size: 13.5px; }

.dp-period { display: inline-flex; align-items: center; gap: 8px; margin-left: 16px; }
.dp-wide { grid-column: 1 / -1; }

/* Час за часом: своя полоса против лидера, риска — медиана. Голый почасовой
   график отвечает лишь «когда я работал»; со сравнением — «где я проседаю». */
/* Ширину строки ограничиваем: на всю ширину экрана полоса растягивается на
   полтора метра, и значение справа оказывается в другом конце — глазу не
   связать его с полосой. */
.dp-hrs { padding: 6px 14px 12px; display: grid; gap: 3px; max-width: 1000px; }
.dp-hr { display: grid; grid-template-columns: 30px minmax(0, 1fr) 62px; align-items: center; gap: 10px; font-size: 12.5px; }
.dp-hh { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.dp-ht { position: relative; height: 13px; border-radius: 4px; background: var(--bg-row); }
.dp-hf { position: absolute; inset: 0 auto 0 0; border-radius: 4px; }
.dp-hf.ok { background: color-mix(in srgb, var(--up) 55%, transparent); }
.dp-hf.low { background: color-mix(in srgb, var(--stale) 48%, transparent); }
.dp-hm { position: absolute; top: -2px; width: 2px; height: 17px; background: var(--text-dim); }
.dp-hl { position: absolute; top: -2px; width: 2px; height: 17px; background: var(--gold); }
.dp-hv { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.dp-leg { display: flex; gap: 16px; align-items: center; margin-top: 8px; font-size: 12px; color: var(--text-dim); flex-wrap: wrap; }
.dp-leg .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.dp-leg .sw.ok { background: color-mix(in srgb, var(--up) 55%, transparent); }
.dp-leg .sw.med { background: var(--text-dim); width: 3px; height: 13px; border-radius: 1px; }
.dp-leg .sw.lead { background: var(--gold); width: 3px; height: 13px; border-radius: 1px; }

/* тренд по днях — тим самим мовою, що й погодинний */
.dp-days { display: flex; align-items: flex-end; gap: 5px; height: 175px; padding-top: 4px; }
.dp-dc { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.dp-db { position: relative; flex: 1; width: 100%; display: flex; align-items: flex-end; }
.dp-db i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 3px 3px 0 0; }
.dp-db .mx { background: color-mix(in srgb, var(--text-faint) 20%, transparent); }
.dp-db .cur { background: var(--lead); }
.dp-db .cur.low { background: color-mix(in srgb, var(--stale) 62%, transparent); }
.dp-db .md { height: 2px; background: var(--text); opacity: .8; border-radius: 0; }
.dp-dl { font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.dp-dw { font-size: 12px; color: var(--text-faint); opacity: .7; }
/* дни без факта: только норма и максимум — видно перспективу, а не пустоту */
.dp-dc.future { opacity: .55; }
.dp-dc.future .dp-dl, .dp-dc.future .dp-dw { opacity: .5; }
.dp-lead { position: absolute; top: -3px; width: 2px; height: 15px; background: var(--gold); margin-left: -2px; }
.dp-cgap { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.dp-c { grid-template-columns: 128px minmax(0, 1fr) 72px 56px 50px; }

/* мікс стовпчиками — щоб співвідношення читалось без таблиці */
.mxc { padding: 6px 14px 12px; display: grid; gap: 10px; }
.mxrow { display: grid; grid-template-columns: 92px repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; }
.mxk { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag.lead { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold);
  border-radius: 5px; padding: 1px 5px; font-size: 12px; font-weight: 700; }
/* 44px не хватало на «посилок» — подпись обрезалась в «ПОСИЛОК…» */
.mxg { display: grid; grid-template-columns: 58px minmax(0, 1fr) 62px; gap: 6px; align-items: center; }
.mxgl { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mxb { position: relative; height: 9px; border-radius: 5px; background: var(--bg-row); }
.mxb i { position: absolute; top: 0; bottom: 0; }
.mxb .me { left: 0; border-radius: 5px; background: color-mix(in srgb, var(--up) 60%, transparent); }
.mxb .me.low { background: color-mix(in srgb, var(--text-faint) 45%, transparent); }
.mxb .md { width: 2px; background: var(--text); opacity: .75; }
.mxb .ld { width: 2px; background: var(--gold); }
.mxv { text-align: right; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

.dp-strip { display: flex; align-items: flex-end; gap: 2px; height: 96px; }
/* Столбики соседей были цветом панели и почти сливались с фоном:
   распределение лиги выглядело как один бар и четыре пустых места. */
.dp-strip i { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0;
  background: color-mix(in srgb, var(--text-faint) 45%, transparent); }
.dp-strip i.me { background: var(--picker); }
.dp-ins { padding: 4px 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.dp-in { font-size: 13.5px; padding-left: 12px; border-left: 2px solid var(--border-strong); }
.dp-best { padding: 4px 16px 16px; font-size: 14px; }

.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.podium { display: flex; gap: 10px; padding: 16px; }
.podium .pcard {
  flex: 1; background: var(--bg-panel-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.podium .pcard.first { border-color: rgba(251, 191, 36, 0.5); order: 0; }
.podium .medal { font-size: 22px; }
.podium .pname { font-weight: 700; font-size: 14.5px; }
.podium .pval { font-size: 22px; font-weight: 800; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 14px 16px; }
svg text { font-family: var(--font); }
.chart-wrap { padding: 10px 14px 16px; }

/* quality */
.q-item { display: flex; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--border); font-size: 13.5px; align-items: baseline; }
.q-sev { font-size: 12px; font-weight: 800; letter-spacing: 0.8px; padding: 3px 8px; border-radius: 6px; flex: none; }
.q-sev.info { color: var(--final); background: rgba(96, 165, 250, 0.1); }
.q-sev.warning { color: var(--stale); background: rgba(245, 158, 11, 0.12); }
.q-sev.error { color: var(--error); background: rgba(248, 113, 113, 0.12); }
.q-meta { color: var(--text-faint, #5b6778); font-size: 12px; margin-left: auto; white-space: nowrap; }
/* Історія завантажень гортається вбік у своїй коробці, а не всією сторінкою. */
.imp-scroll { overflow-x: auto; }

/* ---------- модуль «Перевірка» (ФАЗА 12) ---------- */
.qual-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 8px; }

/* Режим «Приховати»: клік по рядку переносить людину між видимими й
   прихованими. Курсор і підсвітка мусять сказати це ДО кліку — рядок тут і
   так клікабельний (відкриває картку), і без явної відмінності людина
   натисне очікуючи картку, а отримає зміну даних. */
.qual.hide-mode table.grid tbody tr { cursor: pointer; }
.qual.hide-mode table.grid tbody tr:hover { background: rgba(245, 158, 11, 0.10); }
.hide-box { display: inline-block; width: 1.1em; margin-right: 6px; color: var(--stale); font-weight: 700; }
.hide-box.none { color: var(--text-faint, #5b6778); font-weight: 400; }
/* Вимір «Приховані» — інший бік того самого екрана. Смуга зліва відрізняє його
   від звичайного вигляду: цифри тут інші, і сплутати їх дорого. */
.qual.hidden-dim { border-left: 3px solid var(--stale); padding-left: 12px; margin-left: -15px; }
.qual-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.qk-card {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px;
}
.qk-card.warn { border-color: rgba(245, 158, 11, 0.35); }
.qk-card.good { border-color: rgba(52, 211, 153, 0.30); }
.qk-val { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.qk-card.warn .qk-val { color: var(--stale); }
.qk-card.good .qk-val { color: var(--up); }
.qk-lbl { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.qk-sub { font-size: 12px; color: var(--text-faint); margin-top: 3px; }

.qual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 980px) { .qual-grid { grid-template-columns: 1fr; } }

.reason-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.reason-lbl { flex: 0 0 180px; color: var(--text-dim); }
.reason-lbl .dim { font-size: 12px; }
.reason-bar { flex: 1; height: 8px; background: rgba(148,163,184,.10); border-radius: 4px; overflow: hidden; }
.reason-bar i { display: block; height: 100%; border-radius: 4px; min-width: 2px; }
.reason-n { flex: 0 0 42px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }

.qual table.grid tbody tr:hover { cursor: default; }
#q-orders tbody tr { cursor: pointer; }
.dp-h { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-dim); margin-bottom: 8px; }
.drawer-body .grid.tight th, .drawer-body .grid.tight td { white-space: normal; }

/* Зведений рядок веде в деталізацію: за узагальненою цифрою завжди має бути
   видно, з чого вона складається — аж до замовлення й акаунта. */
.reason-row.clickable { cursor: pointer; border-radius: 6px; margin: 0 -6px; padding-left: 6px; padding-right: 6px; }
.reason-row.clickable:hover { background: var(--bg-row-hover); }
.panel-title .hint { margin-left: auto; font-size: 12px; opacity: .6; }

/* Акаунт — одиниця обліку модуля, тому він завжди набраний окремо від імені:
   ім'я поки що лише підказка й може бути неправильним, доки дублі в довіднику
   не зведені (DE60037 ↔ Viktoriia Fursa). */
.acc-cell { display: inline-flex; flex-direction: column; line-height: 1.25; }
.acc-cell b { font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-size: 12.5px; font-weight: 700; }
.acc-cell .acc-nm { font-size: 12px; color: var(--text-dim); }

.acc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.acc-chip {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px;
  background: var(--bg-row); border: 1px solid var(--border); border-radius: 999px; font-size: 12px;
}
.acc-chip b { font-family: var(--font-mono, ui-monospace, Menlo, monospace); }
.acc-chip i { font-style: normal; color: var(--text-dim); }
.acc-chip em { font-style: normal; font-weight: 800; color: var(--text); }

.drawer.wide { width: min(1180px, 96vw); }
.chain-cell { min-width: 420px; }
.chain-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; flex-wrap: wrap; font-size: 12px; }
.chain-seq {
  flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--bg-row);
  border: 1px solid var(--border); text-align: center; line-height: 16px; font-size: 12px; color: var(--text-dim);
}
.chain-t { font-family: var(--font-mono, ui-monospace, Menlo, monospace); color: var(--text-dim); }
.chain-r { font-weight: 600; }

.btn.mini { padding: 4px 10px; font-size: 12px; }
#q-checkers tbody tr, #q-packers tbody tr { cursor: pointer; }
.qual-kpis.mini { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; margin-bottom: 10px; }
.qual-kpis.mini .qk-card { padding: 10px 12px; }
.qual-kpis.mini .qk-val { font-size: 19px; }

/* Профіль години: коли саме людина працювала. Малюємо лише живий діапазон —
   порожні нічні години розтягують шкалу й нічого не пояснюють. */
/* Висота контейнера має вміщати НАЙВИЩИЙ стовпчик (46px у quality.js) плюс
   підпис години й відступи: 46 + 12 + 3 + 4 = 65. При 56px flex обрізав усе
   вище 38px, і сусідні години з різним навантаженням ставали однаковими —
   графік мовчки переставав розрізняти пік і спад (виміряно в пікселях). */
.hour-bars { display: flex; align-items: flex-end; gap: 3px; height: 68px; padding: 4px 0 0; }
.hour-bars .hb { flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center; height: 100%; gap: 3px; }
.hour-bars .hb i { display: block; width: 100%; min-height: 2px; background: var(--picker);
  opacity: .55; border-radius: 2px 2px 0 0; }
.hour-bars .hb u { text-decoration: none; font-size: 12px; color: var(--text-faint); }

/* Колонку, сховану в режимі редагування, лишаємо видимою й перекресленою —
   інакше незрозуміло, що саме ти щойно прибрав і як повернути назад. */
.grid td.col-hidden-now { opacity: .35; }

.toast {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  background: var(--bg-panel-2); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 12px 16px; font-size: 13.5px; max-width: 380px;
  animation: slidein 0.3s; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }

@media (max-width: 980px) {
  .tv-body { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
}

/* Вимикач робота підбору: та сама смуга, що й журнал добування, але з
   керуванням. Вимкнений — приглушений, щоб було видно з одного погляду. */
.acq.pickup { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.acq.pickup .dim { margin-left: 10px; }
.acq.pickup.off { opacity: .68; }
.acq.pickup select {
  background: var(--panel); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 8px; font-size: 12.5px;
}

/* Відновлення з копії — дія, яка замінює всі дані. Червона не заради
   драматизму, а щоб її не натиснули поруч із «зробити копію». */
.btn.danger { border-color: rgba(248,113,113,.45); color: #f87171; }
.btn.danger:hover { background: rgba(248,113,113,.12); border-color: #f87171; }
.acq.backup select {
  background: var(--panel); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 8px; font-size: 12.5px; min-width: 260px;
}

/* ── Акаунти (27.08.2026) ────────────────────────────────────────────────────
   Екран режиму «робота»: керівник тут виконує задачу. Тому щільна таблиця тієї
   самої граматики, що й рейтинг, і жодного нового словника компонентів — той
   самий `.grid`, `.seg`, `.btn`. Ширина не обмежується: колонок десять, і
   кожна несе факт, за яким сюди приходять. */
.acct-head { padding: 16px 18px 14px; border-bottom: 1px solid var(--border); }
.acct-head-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.acct-head h3 { font-size: 15.5px; font-weight: 700; letter-spacing: .2px; }
.acct-seg { margin-left: auto; }
.acct-seg button { padding: 6px 14px; font-size: 12.5px; }
/* Пояснення читають один раз і більше ніколи — тому вони вужчі за таблицю
   (рядок прози довший за ~95 символів перестає читатись) і світлішають
   донизу: що це таке → як цим користуватись → на що дивитись. */
/* Два пояснення — колонками на всю ширину, по половині кожному. Стовпчиком
   ліворуч вони займали сім рядків висоти й лишали порожньою праву половину
   екрана; колонками це два рядки, і кожне читається як окрема відповідь:
   що це за екран → як ним користуватись. Третьої колонки («потребують
   уваги») тут більше немає — вона переїхала в колонку «Статус». */
/* Ті самі три правила обслуговують і довідку чит-детектора (03.09.2026):
   розкладка там дослівно та сама, і другий набір селекторів означав би, що
   наступна правка полагодить один екран і забуде другий. */
.acct-lede-row, .cheat-lede-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 8px 26px; margin-top: 8px; align-items: start; }
.acct-lede, .cheat-lede { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text-dim); }
.acct-lede-row .acct-lede:first-child,
.cheat-lede-row .cheat-lede:first-child { color: var(--text); }
.acct-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.acct-filters .seg button { padding: 6px 13px; font-size: 12.5px; }
.acct-filters select, .acct-filters input[type="search"] {
  background: var(--bg-panel); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 6px 10px; font-size: 12.5px; font-family: inherit;
}
.acct-filters input[type="search"] { min-width: 220px; }

.acct-table td { padding: 9px 10px; vertical-align: top; }
.acct-table th { padding: 8px 10px; position: relative; }
/* Колонки-факти тиснуться до вмісту (`width: 1%` + nowrap), надлишок ширини
   забирають дві текстові — власник і статус. */
.acct-table th.hug, .acct-table td.hug { width: 1%; white-space: nowrap; }
.grid.acct-table td.r, .grid.acct-table th.r { text-align: right; }
.grid.acct-table td.c, .grid.acct-table th.c { text-align: center; }
.grid.acct-table th.sortable { cursor: pointer; }
.grid.acct-table th.sorted { color: var(--text); }
/* Значок довідки в шапці цієї таблиці стоїть ПОРУЧ із підписом, а не
   притиснутий до правого краю клітинки: у широкій колонці абсолютне
   позиціювання відносило його на 300px від слова, яке він пояснює. */
.acct-table th .gl { position: static; transform: none; margin-left: 5px; }
.acct-n { color: var(--text-faint); font-variant-numeric: tabular-nums; font-size: 12px; }
.acct-code { font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.acct-id { color: var(--text-faint); font-size: 11.5px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.acct-sub { display: block; font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
.acct-since, .acct-data, .acct-ts { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Статус може містити п'ять позначок, і при `table-layout: auto` браузер
   віддавав цій колонці 966px із 1552 — таблиця ставала ширшою за панель, і на
   десктопі з'являлась горизонтальна прокрутка там, де місця вдосталь.
   Обмеження ширини повертає надлишок колонці з іменем, якій він потрібніший. */
/* Позначки статусу мусять переноситись УСЕРЕДИНІ своєї колонки.
   Двічі не спрацювало, і обидві причини варто назвати:
   1) `.acct-status` (0,1,0) слабший за `.grid td` (0,1,1), тому скидання
      `white-space` програвало правилу таблиці й рядок ішов вправо, налазячи
      на «Володіє з» і «У даних». Селектор тепер специфічніший за нього;
   2) `max-width` на самій клітинці при `table-layout: auto` браузер ігнорує —
      обмежує внутрішній блок.
   Колонка також отримує явну ширину: інакше `auto` роздає її за вмістом, і
   найдовший рядок знову тягне таблицю. */
.grid.acct-table td.acct-status { white-space: normal; }
.grid.acct-table th.acct-status-h { width: 300px; }
/* `width` для клітинки таблиці — побажання, а не межа: на телефоні браузер
   тисне «Статус» до 64px, і позначка переноситься ПО ОДНІЙ ЛІТЕРІ — рядок
   виростає до 240px висоти, тобто на екран влазить два. `min-width` — межа
   справжня. Таблиця стає ширшою за екран, але вона й так гортається вбік. */
.grid.acct-table th.acct-status-h, .grid.acct-table td.acct-status { min-width: 190px; }
/* «Причина» є лише у вкладці «Звільнені». Той самий `min-width`, що й у
   «Статусу», і з тієї ж причини: це текстова колонка, і без межі браузер
   тисне її до нечитабельного стовпчика по літері. */
.grid.acct-table td.acct-why { white-space: normal; min-width: 190px; color: var(--text-dim); }
.grid.acct-table th.acct-why-h { min-width: 190px; }
.acct-status-box { max-width: 300px; display: flex; flex-wrap: wrap; gap: 3px 4px;
  overflow-wrap: anywhere; }
.acct-status-box .acct-flag { margin: 0; }
.acct-table { width: 100%; }
.acct-table td:nth-child(5) { white-space: normal; min-width: 180px; }

.acct-kind { font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border-strong); }
.acct-kind.temp { color: var(--packer); border-color: rgba(251,191,36,.32); }
.acct-kind.account { color: var(--picker); border-color: rgba(34,211,238,.28); }
.acct-kind.name { color: var(--text-faint); border-style: dashed; }
.acct-kind i { font-style: normal; margin-left: 2px; }
.acct-wh { font-variant-numeric: tabular-nums; }
.acct-wh.manual { color: var(--picker); }

/* Ім'я власника — посилання в картку людини. Підкреслення тільки під курсором:
   у таблиці на 127 рядків постійне підкреслення перетворює стовпчик на смугу. */
.acct-person { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
.acct-person:hover, .acct-person:focus-visible { color: var(--picker); border-bottom-color: currentColor; }

/* Колір тут не єдиний носій сенсу — поруч завжди слово (дизайн-система,
   «Правило цвета»). */
.acct-flag { display: inline-block; font-size: 11.5px; line-height: 1.6; padding: 0 7px;
  margin: 0 4px 3px 0; border-radius: 999px; border: 1px solid var(--border-strong);
  color: var(--text-dim); text-decoration: none; }
.acct-flag.perm { color: var(--picker); border-color: rgba(34,211,238,.32); }
/* Підказки («ВМС називає інакше», «схоже на дубль») — один колір на обидві,
   жовтий: це не поламаний стан, а привід подивитись. Червоне поруч читалось
   би як помилка й вимагало б дії там, де правильна відповідь часто «знаю». */
/* `inline-flex`, а не `inline-block`: колонка статусу вузька, і довга
   підказка («ВМС називає: Sabine Keller») переносить слова. У блоці «×»
   зривався на власний рядок і позначка ставала двоповерховою; у флексі текст
   переноситься всередині, а хрестик лишається праворуч по центру. */
.acct-flag.hint { display: inline-flex; align-items: center; gap: 2px;
  color: var(--packer); border-color: rgba(251,191,36,.32); padding-right: 3px; }
.acct-flag.hint { max-width: 100%; }
.acct-flag.hint > span { min-width: 0; }
.acct-flag.hint a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.acct-flag.off { color: var(--text-faint); border-style: dashed; }
/* «×» усередині позначки. Ціль натискання 20×20 — на телефоні хрестик у
   11 пікселів промахувався б повз палець, а більший розсунув би рядок. */
.acct-x { flex: none; width: 20px; height: 20px; margin-left: 2px; padding: 0; border: 0;
  background: none; color: inherit; opacity: .55; cursor: pointer;
  font: inherit; font-size: 13px; line-height: 1; border-radius: 999px; vertical-align: middle; }
.acct-x:hover, .acct-x:focus-visible { opacity: 1; background: rgba(251,191,36,.14); }
.acct-x:disabled { opacity: .3; cursor: default; }

/* `.grid td` тримає `white-space: nowrap` — і правильно робить: числа рейтингу
   не мають переноситись. Але рядок редактора текстовий, і без скидання
   пояснення йшли одним рядком і налазили на сусідню колонку. */
.acct-detail > td {
  background: var(--bg-panel-2); padding: 16px 18px 18px;
  white-space: normal; text-align: left; border-bottom: 1px solid var(--border-strong);
}
tr.acct-open > td { background: var(--bg-row-hover); }
.acct-editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.acct-act { min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.acct-act h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--text-dim); }
.acct-note { font-size: 12px; line-height: 1.5; color: var(--text-faint); margin: 0; }
.acct-sep { width: 100%; height: 1px; background: var(--border); margin: 4px 0; }
.acct-field { display: flex; flex-direction: column; gap: 4px; width: 100%; font-size: 12.5px; }
.acct-field > span { color: var(--text-dim); }
.acct-act input[type="text"], .acct-act input[type="date"], .acct-act select {
  background: var(--bg-panel); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 6px 9px; font-size: 12.5px; font-family: inherit; width: 100%;
}
.acct-act input:focus-visible, .acct-act select:focus-visible {
  outline: 2px solid var(--picker); outline-offset: 1px;
}
.acct-controls { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.acct-controls input[type="date"] { width: auto; flex: 1; min-width: 130px; }
.acct-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.acct-chip { cursor: pointer; font-size: 12px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text-dim); user-select: none; }
.acct-chip:hover { border-color: var(--picker); }
.acct-chip.on { color: var(--picker); border-color: var(--picker); background: rgba(34,211,238,.10); }
.acct-chip.block { display: inline-block; }
.acct-card-link { margin-top: 4px; }
.acct-history { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.acct-history li { font-size: 12.5px; line-height: 1.5; padding-left: 11px; border-left: 1px solid var(--border-strong); }
.acct-history li:first-child { border-left-color: var(--picker); }
.acct-period { display: block; color: var(--text-faint); font-size: 11.5px; font-variant-numeric: tabular-nums; }

.acct-empty { padding: 40px 24px; text-align: center; }
.acct-empty p { margin: 0 auto 6px; max-width: 60ch; font-size: 13px; line-height: 1.6; }
.acct-loading { padding: 40px 24px; text-align: center; font-size: 13px; }

/* Телефон: таблиця гортається вбік, тому ліворуч закріплені три перші колонки
   — «Керувати», номер за порядком і сам номер. Це той самий блок, за яким
   людина впізнає рядок, і саме тому кнопка стоїть ПЕРШОЮ, а не в кінці: у
   кінці до неї довелось би щоразу прогортати весь рядок. */
@media (max-width: 820px) {
  .acct-editor { grid-template-columns: 1fr; gap: 18px; max-width: calc(100vw - 40px); }
  .acct-head { padding: 14px 14px 12px; }
  .acct-seg { margin-left: 0; }
  .acct-filters input[type="search"] { min-width: 140px; flex: 1; }
  .acct-table th:nth-child(-n+3), .acct-table td:nth-child(-n+3) {
    position: sticky; background: var(--bg-panel); z-index: 3;
  }
  .acct-table th:nth-child(1), .acct-table td:nth-child(1) { left: 0; }
  .acct-table th:nth-child(2), .acct-table td:nth-child(2) { left: 74px; }
  .acct-table th:nth-child(3), .acct-table td:nth-child(3) { left: 108px;
    box-shadow: 1px 0 0 var(--border-strong); }
  .acct-table tr.acct-open td:nth-child(-n+3) { background: var(--bg-row-hover); }
  .acct-detail > td { position: static; }
}
/* Пояснення екрана на телефоні — згорнуті: два абзаци займали півтора екрана
   до першого рядка таблиці. Нічого не прибрано, лише сховано за одним дотиком. */
.acct-help, .cheat-help { margin-top: 8px; }
.acct-help summary, .cheat-help summary {
  cursor: pointer; font-size: 12.5px; color: var(--picker); list-style: none; }
.acct-help summary::-webkit-details-marker,
.cheat-help summary::-webkit-details-marker { display: none; }
.acct-help summary::after, .cheat-help summary::after { content: " ▾"; }
.acct-help[open] summary::after, .cheat-help[open] summary::after { content: " ▴"; }
/* На телефоні згорнута довідка — це один рядок-посилання, і рамка знизу під
   ним читалась би як межа порожнього блоку. */
.cheat-note:has(> .cheat-help:not([open])) { padding-bottom: 10px; }
/* Розгорнута — абзаци йдуть стовпчиком, а не колонками, і без проміжку три
   пояснення злипаються в суцільну стіну тексту: на широкому екрані їх ділить
   сітка, тут ділити нічим. */
.acct-help .acct-lede + .acct-lede,
.cheat-help .cheat-lede + .cheat-lede { margin-top: 8px; }

/* Ноутбук 1280px: сума мінімальних ширин десяти колонок перевищувала панель на
   240px, і з'являлась горизонтальна прокрутка. Тиснеться саме «Статус» —
   позначки в ньому переносяться рядками, тож вужча колонка нічого не ховає,
   а лише робить її вищою. */
@media (max-width: 1660px) {
  .acct-status-box { max-width: 190px; }
  .grid.acct-table th.acct-status-h { width: 190px; }
  .acct-table td:nth-child(5) { min-width: 120px; }
  .acct-table th, .acct-table td { padding-left: 7px; padding-right: 7px; }
  /* Дрібний підпис під датою («передано» / «перший день у даних») — пояснення,
     а не факт: на вузькому екрані він з'їдав ширину, потрібнішу самій даті.
     Пояснення лишається в довідці колонки. */
  .acct-since .acct-sub { display: none; }
}

/* Вужче за 1340px десять колонок не вміщаються навіть притиснутими. Ховаємо
   «Ролі» — єдину колонку, яка не потрібна, щоб УПІЗНАТИ рядок: ролі однаково
   лежать у редакторі поруч і в картці працівника. Ховати «Статус» чи «Склад»
   не можна: заради них сюди й приходять. */
@media (max-width: 1340px) {
  .acct-table th:nth-child(7), .acct-table td:nth-child(7) { display: none; }
  .acct-table th, .acct-table td { padding-left: 6px; padding-right: 6px; }
}

/* «Схоже, це одна людина» — над таблицею, не збоку: доки два записи не
   зведені, самоперевірка людини рахується як перевірка чужої роботи, а її
   обсяг ділиться навпіл між двома рядками рейтингу. */
.acct-sug { border-bottom: 1px solid var(--border); }
.acct-sug-head { display: flex; align-items: baseline; gap: 10px; width: 100%;
  padding: 11px 18px; background: rgba(251,191,36,.06); border: 0; cursor: pointer;
  color: var(--packer); font-size: 13px; font-family: inherit; text-align: left; }
.acct-sug-head:hover { background: rgba(251,191,36,.10); }
.acct-sug-caret { margin-left: auto; }
.acct-sug .acct-table { border-bottom: 1px solid var(--border); }
/* Перемикач напрямку злиття. Дрібний і поруч із тим, кого приєднують: рішення
   «чиє ім'я лишиться» ухвалюють, дивлячись саме на цю пару. */
.acct-swap { margin-left: 6px; padding: 0 6px; line-height: 1.5; }
.acct-flag.gone { color: var(--error); border-color: rgba(248,113,113,.35); border-style: solid; }
.acct-hints { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Звіти (#/reports) ─────────────────────────────────────────────────── */
/* section.rp, а не .rp: голий клас збігався з тегом ролі .tag.rp у «Перевірці»
   і роздував його до кнопки 130×56 (18.11.2026). */
section.rp { padding: 20px; max-width: 1240px; width: 100%; box-sizing: border-box; overflow: auto; }
.rp h2 { margin: 0 0 4px; font-size: 20px; }
.rp h3 { margin: 22px 0 8px; font-size: 14px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.rp-lead, .rp-empty, .rp-when { color: var(--text-dim); font-size: 13px; margin: 0 0 12px; }
.rp-gen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 4px; }
.rp-job { color: var(--text-dim); font-size: 13px; }
.rp-row { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; display: grid; gap: 6px; }
.rp-main { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.rp-main span { color: var(--text-dim); font-size: 13px; }
.rp-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.rp-grp { color: var(--text-dim); }
.rp-link { margin-left: 8px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.rp-warn { color: #f59e0b; font-size: 13px; }
.rp-when { margin: 0; font-size: 12px; }
.rp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.rp-col { min-width: 0; }
.rp-col h3 { margin-top: 8px; }
.rp-sel { background: var(--bg-panel); color: var(--text); border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px; font: inherit; min-width: 0; max-width: 100%; }
@media (max-width: 760px) { .rp-cols { grid-template-columns: 1fr; } }

/* ── Денний дашборд (#/day, 02.11.2026) ── */
.dd { --dd-shelf: oklch(.7 .06 250); --dd-repl: oklch(.72 .12 300); --dd-chk: oklch(.75 .15 50); --dd-cancel: oklch(.62 .12 25); --dd-nd: oklch(.5 .11 155); }
/* «Статуси WMS»: плитки-перемикачі */
.ds-tiles { padding: 14px 16px 6px; }
/* Варіант C (Сергій, 03.11.2026): Daily orders окремо, далі пікінг › пакування › готово;
   під кожним числом — сегментована смуга й тихі плитки статусів (вони вмикають серії графіка). */
.ds-c { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 3.4fr); gap: 14px; align-items: stretch; }
.ds-flow { display: grid; grid-template-columns: minmax(0, 1.25fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr); gap: 0 10px; align-items: stretch; }
.ds-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px; background: var(--c-surface-2);
  border: 1px solid var(--c-line-soft); border-top: 3px solid var(--c); border-radius: 12px; }
.ds-day { background: color-mix(in oklch, var(--c-surface-2) 70%, var(--c-surface-3)); }
.ds-chev { align-self: center; justify-self: center; font-size: 22px; line-height: 1; color: var(--c-text-2); opacity: .7; }
/* три ряди фіксованої висоти — заголовки, числа й підписи всіх плиток на одній лінії */
.ds-h { display: grid; grid-template-rows: 18px 52px 24px; align-items: center; justify-items: center; text-align: center; gap: 2px; min-width: 0; padding: 2px 0; }
.ds-h-k { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 700; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--c-text-2); }
.ds-h-n { font-size: 36px; font-weight: 800; line-height: 52px; letter-spacing: var(--ls-head); font-variant-numeric: tabular-nums; }
.ds-h-n.xl { font-size: 46px; }
.ds-h-s { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 10px; font-size: 12.5px; color: var(--c-text-2); white-space: nowrap; }
.ds-unit { color: var(--c-text-3); font-size: 11.5px; letter-spacing: .02em; }
.ds-share { padding: 1px 8px; border-radius: var(--r-pill); font-weight: 700; color: var(--c-text);
  background: color-mix(in oklch, var(--c) 16%, transparent); font-variant-numeric: tabular-nums; }
.ds-refill { display: inline-block; padding: 1px 9px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; color: var(--c-pick);
  background: color-mix(in oklch, var(--c-pick) 14%, transparent); border: 1px solid color-mix(in oklch, var(--c-pick) 40%, transparent); }
/* «Готово» — це серія графіка (checked_out), тому велика плитка клікабельна */
.ds-hb { appearance: none; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; border-radius: var(--r-2);
  transition: opacity var(--t-fast), background var(--t-fast); width: 100%; }
.ds-hb:hover { background: color-mix(in oklch, var(--c) 7%, transparent); }
.ds-hb:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.ds-hb[aria-pressed="false"] { opacity: .45; }
.ds-hb[aria-pressed="false"] .ds-h-k::after { content: " · " attr(data-off); }
.ds-seg-bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--c-surface-1); }
.ds-seg-bar i { display: block; min-width: 3px; background: var(--c); }
/* решта Daily orders — сріблястим, як пройдена доріжка таймлайна */
.ds-seg-bar i.rest { min-width: 0; background: var(--text-dim); opacity: .45; }
.ds-seg-bar.empty { position: relative; overflow: visible; background: repeating-linear-gradient(90deg, var(--c-line) 0 4px, transparent 4px 8px) center / 100% 1px no-repeat; }
.ds-seg-bar.empty span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 0 6px; font-size: 12px; color: var(--c-text-2); background: var(--c-surface-2); line-height: 1; }
.ds-cap { font-size: 12px; color: var(--c-text-2); margin-top: 2px; }
.ds-kids { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 6px; }
.ds-flow > .ds-col:first-child .ds-kids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds-day .ds-kids { grid-template-columns: 1fr; }
/* Мала (тонка) плитка статусу: назва зліва, число й дельта справа */
.ds-mini { position: relative; appearance: none; font: inherit; color: var(--c-text); text-align: left; display: flex; align-items: center; container-type: inline-size;
  min-height: 44px; padding: 6px 10px; background: var(--c-surface-1); border: 1px solid var(--c-line-soft); border-top: 2px solid var(--c, var(--c-text-2)); border-radius: var(--r-2);
  cursor: pointer; transition: background var(--t-fast), opacity var(--t-fast), border-color var(--t-fast); }
.ds-mini-in { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; }
.ds-mini-k { font-size: 12px; line-height: 1.25; color: var(--c-text-2); min-width: 0; overflow-wrap: break-word; }
.ds-mini-k small { display: block; font-size: 12px; opacity: .8; }
/* мітка кольору Not delivered = темніша частина смуги «Готово» (QA-023) */
.ds-sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
/* назва статусу WMS під заголовком групи — як є, без капслоку */
.ds-h-wms { display: inline; margin-left: 6px; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; opacity: .75; }
.ds-mini-v { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.ds-mini-v b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ds-d { font-size: 12px; color: var(--c-text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
button.ds-mini:hover:not(:disabled) { background: var(--c-surface-3); border-color: var(--c-line); border-top-color: var(--c); }
.ds-mini:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.ds-mini[aria-pressed="false"] { opacity: .45; border-top-color: var(--c-line); }
.ds-mini[aria-pressed="false"] .ds-mini-k::after { content: " · " attr(data-off); }
.ds-mini:disabled { cursor: default; opacity: 1; }
.ds-mini.sig.has b { color: var(--c-down); }
@container (max-width: 230px) {
  .ds-mini-in { grid-template-columns: minmax(0, 1fr); }
  .ds-mini-v { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
}
/* Широкий екран: усі чотири колонки в одній сітці з підсіткою рядків — шапки, смуги,
   підписи й плитки стоять на одній висоті (Сергій, 03.11.2026). */
@media (min-width: 1200px) {
  .ds-c { grid-template-columns: minmax(240px, 1fr) minmax(0, 1.3fr) 18px minmax(0, 1.05fr) 18px minmax(0, 1.05fr); gap: 0 10px; }
  .ds-flow { display: contents; }
  .ds-col { display: grid; grid-row: 1 / span 4; grid-template-rows: subgrid; row-gap: 8px; align-content: start; }
  .ds-day { grid-column: 1; margin-right: 4px; }
  .ds-flow > :nth-child(1) { grid-column: 2; }
  .ds-flow > :nth-child(2) { grid-column: 3; grid-row: 1 / span 4; }
  .ds-flow > :nth-child(3) { grid-column: 4; }
  .ds-flow > :nth-child(4) { grid-column: 5; grid-row: 1 / span 4; }
  .ds-flow > :nth-child(5) { grid-column: 6; }
  .ds-col > .ds-kids { align-content: start; }
}
@media (max-width: 1199px) {
  .ds-c { grid-template-columns: 1fr; }
  .ds-day .ds-kids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ds-flow { grid-template-columns: 1fr; gap: 6px; }
  .ds-chev { transform: rotate(90deg); height: 14px; font-size: 18px; }
}
@media (max-width: 767px) {
  .ds-tiles { padding: 10px; }
  .ds-c { gap: 8px; }
  .ds-col { padding: 12px; }
  .ds-h-n { font-size: 30px; }
  .ds-h-n.xl { font-size: 36px; }
  .ds-h { grid-template-rows: 18px 44px auto; } .ds-h-n { line-height: 44px; } .ds-h-s { flex-wrap: wrap; gap: 4px 8px; }
  .ds-kids, .ds-flow > .ds-col:first-child .ds-kids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-done .ds-kids { grid-template-columns: 1fr; }
}
.ds-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 16px 0; }
.ds-seg button { padding: 6px 12px; font-size: 12.5px; }
.dd .panel { margin-bottom: 14px; }
.dd-pad { padding: 10px 16px; margin: 0; }
.dd-hint { margin: 0; padding: 10px 18px 0; font-size: 12.5px; line-height: 1.45; color: var(--c-text-2); }
.dd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.dd-grid .panel { margin-bottom: 14px; }
.dd .card .v small { font-size: 13px; color: var(--c-text-2); font-weight: 600; }
.dd-funnel { display: grid; gap: 8px; padding: 4px 16px 14px; }
.dd-st { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.dd-st-k { color: var(--c-text-2); font-weight: 600; }
.dd-bar { height: 10px; border-radius: 5px; background: var(--c-surface-3); overflow: hidden; }
.dd-bar i { display: block; height: 100%; background: var(--c-up); border-radius: 5px; }
.dd-st.ob-picking .dd-bar i { background: var(--c-pick); }
.dd-st.ob-packing .dd-bar i { background: var(--c-pack); }
.dd-pct { color: var(--c-text-2); min-width: 44px; text-align: right; }
.dd-pause { fill: var(--c-pick); opacity: .13; }
.dd-pause.late { fill: var(--c-pack); }
.dd-ranges { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 8px; border: 1px solid var(--c-line); border-radius: 8px; background: color-mix(in oklch, var(--c-line-soft) 35%, transparent); }
.dd-ranges span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; }
.dd-ranges span + span { border-left: 1px solid var(--c-line); }
.dd-ranges small { font-size: 12px; color: var(--c-text-3); }
.dd-ranges b { font-size: 14px; font-variant-numeric: tabular-nums; }
.dd-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--c-text-2); margin-top: 6px; }
.dd-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.dd-legend i.dash { background: repeating-linear-gradient(90deg, var(--c-text-3) 0 4px, transparent 4px 7px); }
.dd-legend i.dash.up { background: repeating-linear-gradient(90deg, var(--c-up) 0 4px, transparent 4px 7px); }
/* легенда-перемикач: увімкнене підсвічене «таблеткою», вимкнене — звичайний текст */
.dd-toggle span { cursor: pointer; user-select: none; padding: 3px 9px; border-radius: 7px; color: var(--text);
  background: var(--c-surface-3); border: 1px solid var(--border-strong); transition: opacity .15s, background .15s, border-color .15s; }
.dd-toggle span:hover { border-color: var(--c-text-2); }
.dd-toggle span.off { background: transparent; border-color: transparent; color: var(--c-text-3); }
.dd-toggle span.off i { opacity: .35; filter: grayscale(1); }
.dd-legend i.pause { height: 10px; background: var(--c-pick); opacity: .35; }
.dd-legend i.pause.late { background: var(--c-pack); }
.dd-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.dd-table th, .dd-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.dd-table th { color: var(--c-text-2); font-weight: 600; font-size: 12px; }
.dd-table .l { text-align: left; white-space: normal; }
.dd-table td.l .small { display: block; }
/* таблиця темпу: усе по центру, групи «Пікінг» / «Пакування» розділені лінією */
.dd-targets th, .dd-targets td { text-align: center; }
.dd-targets .g { border-left: 1px solid var(--border-strong); }
.dd-targets th small { display: block; font-weight: 500; color: var(--c-text-3); font-size: 10.5px; }
.dd-targets th.grp { font-size: 13px; color: var(--c-text); border-bottom: 2px solid var(--c-pick); }
.dd-targets th.grp.ob-packing { border-bottom-color: var(--c-pack); }
.dd-scroll { overflow-x: auto; }
.dd-ok { color: var(--c-up); }
.dd-short { color: var(--c-down); }
.dd-fc { display: flex; flex-wrap: wrap; gap: 3px 12px; padding: 10px 16px; font-size: 12px; line-height: 1.3;
    font-variant-numeric: tabular-nums; }
.dd-fc em { color: var(--c-text-3); font-style: normal; }
.dd-fc b { color: var(--c-warn); }
/* картка-перехід на «Огляді команди»: тонка зелена рамка, підсвітка під курсором */
.dd-link { display: flex; align-items: center; gap: 14px; padding: 18px 20px; margin: 0; color: var(--text); text-decoration: none;
  border: 1px solid color-mix(in oklch, var(--c-up) 55%, transparent); transition: border-color .15s, box-shadow .15s, background .15s; }
.dd-link b { font-size: 15px; }
.dd-link:hover { background: var(--bg-row-hover); border-color: var(--c-up); box-shadow: 0 0 0 1px var(--c-up), 0 0 18px color-mix(in oklch, var(--c-up) 30%, transparent); }
.dd-link .dd-go { margin-left: auto; font-size: 20px; color: var(--c-up); }
@media (max-width: 700px) {
  .dd-st { grid-template-columns: 80px minmax(0, 1fr) auto; }
  .dd-st .dd-pct { display: none; }
}
.dd-card { border: 1px solid color-mix(in oklch, var(--c) 55%, transparent); }
/* Картка «Денний дашборд» — посередині між шапкою й «Підсумками команди» (02.11.2026) */
.dd-link + .rv-team { margin-top: 0; }
/* Таймлайн «Статусів WMS» у заголовку — бігунок по знімках (02.11.2026) */
.ds-panel .panel-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ds-tl { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 320px; font-weight: 400; }
/* Бігунок — нейтральний сріблястий, не колір жодного статусу (Сергій:
   «зливається з зеленим чекаутом»). Заповнена частина — через --p. */
.ds-rng { position: relative; flex: 1; min-width: 120px; display: flex; align-items: center; }
.ds-mk { position: absolute; top: -3px; width: 3px; height: 8px; border-radius: 2px; transform: translateX(-50%); pointer-events: none; }
.ds-mk.problem { background: var(--down); } .ds-mk.slow { background: var(--c-warn, #f5a524); } .ds-mk.refill { background: var(--picker); }
.ds-tl input[type=range] { flex: 1; width: 100%; min-width: 120px; cursor: grab; appearance: none; -webkit-appearance: none;
  height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--text-dim) var(--p, 100%), var(--border-strong) var(--p, 100%))
  center / 100% 4px no-repeat; }
/* На телефоні mobile.css дає input min-height 44px (зона дотику) — доріжка лишається смужкою 4px посередині. */
.ds-tl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: #e8edf3; border: 2px solid var(--bg-panel); box-shadow: 0 0 0 1px var(--text-dim), 0 1px 4px rgba(0,0,0,.5); }
.ds-tl input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #e8edf3;
  border: 2px solid var(--bg-panel); box-shadow: 0 0 0 1px var(--text-dim); }
.ds-tl input[type=range]:active { cursor: grabbing; }
.ds-tl-t { min-width: 3.2em; font-variant-numeric: tabular-nums; }
.ds-tl-t.past { color: var(--c-warn); }
.ds-tl-live { font: inherit; font-size: 12px; padding: 3px 10px; border-radius: 999px; cursor: pointer;
  color: var(--text-dim); background: transparent; border: 1px solid var(--border); }
.ds-tl-live.on { color: var(--c-up); border-color: color-mix(in oklch, var(--c-up) 55%, transparent); }
/* Погодинні блоки на телефоні: люди → пікінг → пакування */
@media (max-width: 767px) {
  .dd-hours .dd-h-people { order: -1; }
}
/* Телефон: «Потрібний темп» — етапи один під одним, шапка липне (02.11.2026) */
.dd-targets-m { margin-bottom: 14px; font-size: 12.5px; }
.dd-targets-m th, .dd-targets-m td { padding: 7px 5px; white-space: normal; }
.dd-targets-m td.l { width: 30%; }
.dd-targets-m td.l b { font-size: 14px; }
.dd-targets-m thead { position: sticky; top: 0; z-index: 1; background: var(--bg-panel); }
.dd-targets-m thead th { background: var(--bg-panel); }
.dd-targets-m th small { font-size: 9.5px; }
.dd-shifts-m th, .dd-shifts-m td { padding: 8px 6px; white-space: normal; }
/* hidden у .panel ламає липку шапку; clip ріже так само, але sticky працює */
.panel:has(.dd-targets-m) { overflow: clip; }
.dd-targets-m { border-collapse: separate; border-spacing: 0; }
.dd-targets-m th.grp { border-bottom: 0; box-shadow: inset 0 -2px var(--c-pick); }
.dd-targets-m th.grp.ob-packing { box-shadow: inset 0 -2px var(--c-pack); }
/* Бігунок у минулому: «Потрібний темп» і «Зміни» — на той знімок */
.dd-at { color: var(--c-warn); }
.dd-loading { opacity: .5; transition: opacity .15s; }
/* Телефон: бігунок окремим рядком на всю ширину (було 131px на 72 знімки —
   пальцем не влучити), час і «Наживо» — над ним; підписи початку/кінця зайві. */
@media (max-width: 767px) {
  .ds-tl { flex-wrap: wrap; flex-basis: 100%; justify-content: flex-end; }
  .ds-tl > span.dim { display: none; }
  .ds-tl .ds-rng { order: 2; flex: 1 0 100%; }
}
/* Вкладка «Команда»: перемикач режимів «Сьогодні · За період» — посилання,
   бо режим живе в адресі (#/team/today, #/team/period). */
.seg.team-mode a { padding: 8px 16px; font-size: 13.5px; font-weight: 700; color: var(--text-dim); text-decoration: none; display: inline-flex; align-items: center; }
.seg.team-mode a.active { background: var(--bg-panel-2); color: var(--text); }
@media (max-width: 767px) { .seg.team-mode a { min-height: var(--m-tap, 44px); } }
.rv-hint { padding: 10px 16px 0; }
.dd-norm { margin: -4px 12px 8px; }
/* Періоди ліній — одним рядком у самому низу блоку; лінії суцільні й тонкі */
.dd-hours > .panel { display: flex; flex-direction: column; }
.dd-hours > .panel .dd-nl-row { margin: auto 12px 10px; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.dd-nl-row .dd-nl { margin: 0; }
.dd-legend i.refill { width: 0; height: 12px; border-left: 2px dotted var(--c-pick); border-radius: 0; background: none; }
.ds-add { cursor: pointer; }
.ds-add:hover rect, .ds-add:focus-visible rect { fill: color-mix(in oklch, var(--c-pick) 8%, transparent); }
.dd-add-modal .dd-refill { margin: 8px 0 0; }
.dd-refill { margin: 6px 14px 12px; padding: 10px 12px; border-radius: 10px; font-size: 13px; color: var(--c-text-2);
  background: color-mix(in oklch, var(--c-pick) 6%, var(--c-surface-2)); border: 1px solid color-mix(in oklch, var(--c-pick) 30%, transparent); }
.dd-refill-h { margin: 0 0 6px; }
.dd-refill-h b { color: var(--c-pick); font-size: 14px; }
.dd-refill-strip { position: relative; height: 34px; margin: 4px 6px 18px; border-bottom: 1px solid var(--c-line); }
.dd-rs-m { position: absolute; bottom: 0; width: 4px; margin-left: -2px; border-radius: 2px 2px 0 0; background: var(--c-pick); }
.dd-rs-m.big { width: 7px; margin-left: -3.5px; background: var(--c-warn); }
.dd-rs-t { position: absolute; top: 100%; margin-top: 3px; transform: translateX(-50%); font-size: 10px; color: var(--c-text-3); white-space: nowrap; }
.dd-rs-t.first { transform: none; } .dd-rs-t.last { transform: translateX(-100%); }
@media (max-width: 600px) { .dd-rs-t.odd:not(.last) { display: none; } }
.dd-refill-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.dd-refill-chip { padding: 1px 8px; border-radius: var(--r-pill); font-size: 12px; font-variant-numeric: tabular-nums;
  background: var(--c-surface-1); border: 1px solid var(--c-line-soft); }
.dd-refill-chip b { color: var(--c-pick); }
.dd-refill-chip.big { border-color: var(--c-warn); color: var(--text); }
.dd-refill-chip.big b { color: var(--c-warn); }
.dd-sum { margin-top: 14px; }
.dd-sum-l { margin: 0; padding: 4px 18px 8px 34px; display: grid; gap: 4px; font-size: 14px; }
.dd-sum-go { float: none; margin: 0 14px 14px; }
.dd-pick { background: var(--bg-row); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 5px 8px; font-size: 13px; }

/* «Сьогодні»: перемикач і смуга-підсумок липнуть угорі; блоки згортаються (E1.3, E4.1, E4.2) */
.dd .controls { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.dd-strip { display: none; flex-basis: 100%; font-size: 14px; padding: 2px 0 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .dd-strip:not(:empty) { display: block; } .dd .controls #dd-date { display: none; } }
.dd-fold { background: none; border: 0; color: var(--text-dim); cursor: pointer; padding: 0 8px 0 0; font-size: 14px; }
.panel.closed > :not(.panel-title) { display: none; }
/* Згорнута панель у сітці не тягнеться до висоти сусідки (17.11.2026): «Як
   змінювався прогноз» поруч зі «Змінами» на комп'ютері була порожньою
   коробкою 349 px — виглядало як недомальований екран. */
.panel.closed { align-self: start; }
/* Телефон: зони дотику ≥ 44 px і текст ≥ 12 px (перевірка tools/shots.mjs) */
.rv-hint a { display: inline-block; padding: 12px 8px; margin: -12px 0; }
.rv-all { min-height: 44px; }
.rv-dl, .rv-mv { font-size: 12px; }

.dd-nl { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0 8px; padding: 3px 9px; white-space: nowrap; font: inherit; font-size: 12px; color: var(--text-faint);
  background: transparent; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; opacity: .6; }
.dd-nl.on { color: var(--text); border-color: var(--text-dim); background: var(--bg-panel-2); opacity: 1; }
.dd-nl:hover { color: var(--text); }

/* Підсумок дня */
.dd-sc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; padding: 6px 16px 12px; }
.dd-sc { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; }
.dd-sc .k { order: 0; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.dd-sc .v { order: 1; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.dd-sc .v small { font-size: 12px; font-weight: 500; color: var(--text-faint); }
.dd-sc.hero { grid-column: span 2; border-top: 3px solid var(--c-warn); }
.dd-sc.hero .v { font-size: 34px; }
.dd-sc-s { order: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.dd-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; font-size: 12px; border-radius: 999px; color: var(--text-dim); background: var(--bg-panel-2); border: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.dd-chip.up { color: #fbbf24; border-color: color-mix(in srgb, #fbbf24 40%, transparent); }
.dd-chip.down { color: #34d399; border-color: color-mix(in srgb, #34d399 40%, transparent); }
.dd-mx { margin: 0 16px 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.dd-mx-r { display: grid; grid-template-columns: minmax(150px, 1.2fr) repeat(4, minmax(0, 1fr)); align-items: center; gap: 8px; padding: 9px 14px; border-top: 1px solid var(--border); }
.dd-mx-r:first-child { border-top: 0; }
.dd-mx-h { background: var(--bg-panel-2); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-faint); }
.dd-mx-l { font-size: 13px; color: var(--text-dim); }
.dd-mx-c { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.dd-mx-c b { font-size: 14px; } .dd-mx-c small { color: var(--text-faint); font-size: 11.5px; }
@media (max-width: 700px) {
  .dd-sc.hero { grid-column: auto; }
  .dd-mx-r { grid-template-columns: 1fr 1fr; } .dd-mx-l { grid-column: 1 / -1; font-weight: 700; } .dd-mx-h .dd-mx-c:nth-child(n+2) { display: block; }
}

/* Хто саме: картки по змінах (Сергій, 03.11.2026) */
.dd-sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 12px 0 10px; }
.dd-spc { background: var(--bg-panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.dd-spc header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.dd-spc-t { font-size: 20px; font-variant-numeric: tabular-nums; }
.dd-spc-n { font-size: 12px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 4px; }
.dd-spc-n i, .dd-spr { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dd-spc-n i:not(:first-child) { margin-left: 8px; }
.dd-spc-n .pick, .dd-spr.picking { background: var(--c-pick); }
.dd-spc-n .pack, .dd-spr.packing { background: var(--c-pack); }
.dd-spc-l { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.dd-spc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dd-spc li { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; border-top: 1px solid var(--border); }
.dd-spn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-spt { color: var(--text-dim); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dd-spt b { color: var(--text); font-weight: 600; }

.dd-sp-btn { margin-left: auto; }
.panel.closed .dd-sp-btn { display: none; }

/* Прогноз обсягу дня (js/volume.js, рішення Сергія 30.11.2026) — лише під входом.
   Дві плитки по центру: сьогодні й наступний робочий день; пояснення — за «i». */
.dv-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px 6px; }
.dv-tiles.one { grid-template-columns: minmax(0, 420px); justify-content: center; }
.dv-tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; padding: 14px 10px; text-align: center; min-width: 0; }
.dv-k { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-3); }
.dv-num { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.dv-num small { font-size: 13px; font-weight: 500; color: var(--c-text-2); }
.dv-sub { font-size: 13px; color: var(--c-text-2); font-variant-numeric: tabular-nums; }
.dv-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 2px; }
.dv-tag { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--c-warn); color: var(--c-warn); }
.dv-special { border-color: var(--c-text-3); color: var(--c-text-2); }
.dv-chart { width: 100%; height: auto; max-height: 190px; display: block; }
.dv-chart-box { padding-top: 4px; }
.dv-chart .dv-grid { stroke: color-mix(in oklch, var(--c-text-3) 25%, transparent); stroke-width: 1; }
.dv-chart .dv-ax { fill: var(--c-text-3); }
.dv-chart .dv-base { stroke: var(--c-text-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.dv-chart .dv-known { fill: none; stroke: var(--c-text-3); stroke-width: 2; }
.dv-chart .dv-est { fill: none; stroke: var(--c-warn); stroke-width: 2.5; stroke-linejoin: round; }
.dv-chart .dv-fact { fill: var(--c-up); }
@media (max-width: 560px) {
  .dv-tiles { padding: 10px 12px 12px; gap: 8px; }
  .dv-num { font-size: 24px; }
  .dv-k { font-size: 11px; }
  .dv-chart-box { display: none; }   /* на телефоні — лише головні числа */
}
