/* ============================================================================
   MosTransport — визуальная система «табличка»
   1. Токены   2. База   3. Шапка   4. Рейл/док   5. Карта
   6. Шторка   7. Карточки и поля   8. Кнопки   9. Оверлеи
   10. Модалки  11. Заставка  12. Адаптив  13. Движение
   ========================================================================== */

/* 1. ТОКЕНЫ ---------------------------------------------------------------- */
:root {
  --ink-900: #0A0B0C;
  --ink-850: #0E1012;
  --ink-800: #111315;
  --ink-700: #171A1D;
  --ink-600: #1F2327;
  --ink-500: #262B2F;

  --line-500: #2B3034;
  --line-400: #3A4147;

  --fg-100: #F3F0E9;
  --fg-300: #C7C3BA;
  --fg-500: #948F86;

  --red: #E23A2E;
  --red-hi: #F0463A;
  --gold: #F2B02E;
  --mint: #3FCF8E;
  --danger: #FF6B5A;
  --telegram: #1B8FD1;

  --r-plate: 2px;
  --r-chip: 6px;
  --r-panel: 12px;
  --r-sheet: 20px;

  --font-ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --font-num: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --hud-h: 60px;
  --rail-w: 84px;
  --sheet-w: 424px;

  --ease: cubic-bezier(.2, .6, .2, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* 2. БАЗА ------------------------------------------------------------------ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--ink-900);
  color: var(--fg-100);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Атрибут hidden должен побеждать display из компонентов: раньше
   .map-btn/.form-group перебивали его, и скрытые кнопки были видны всем. */
[hidden] { display: none !important; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }

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

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i, .dock-icon {
  width: 18px; height: 18px; flex: none;
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-400); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* 3. ШАПКА ----------------------------------------------------------------- */
.game-hud-top {
  position: fixed; inset: 0 0 auto 0;
  height: calc(var(--hud-h) + var(--safe-t));
  padding: var(--safe-t) 10px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: linear-gradient(180deg, rgba(10, 11, 12, .98) 0%, rgba(10, 11, 12, .88) 100%);
  border-bottom: 1px solid var(--line-500);
  z-index: 90;
}

.hud-left, .hud-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hud-right { gap: 6px; }

.brand-plate {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 8px 4px 4px; border-radius: 8px;
  text-align: left; min-width: 0;
  transition: background .14s var(--ease);
}
.brand-plate:hover { background: var(--ink-600); }

.brand-mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  border-radius: var(--r-plate);
  font-family: var(--font-num); font-size: 19px; font-weight: 700; letter-spacing: -0.03em;
  line-height: 1;
}
.brand-mark--lg { width: 52px; height: 52px; font-size: 28px; border-radius: 3px; }

.brand-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand-name { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; }
.brand-meta {
  display: flex; gap: 4px; align-items: baseline;
  font-size: 10.5px; color: var(--fg-500);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-sep { color: var(--line-400); }

.brand-level { display: flex; flex-direction: column; gap: 4px; min-width: 54px; padding-left: 4px; }
.brand-level-num {
  font-size: 10px; letter-spacing: .1em; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.xp-track { height: 2px; margin-top: 2px; background: var(--line-400); border-radius: 2px; overflow: hidden; }
.xp-fill { display: block; height: 100%; width: 0; background: var(--gold); transition: width .4s var(--ease); }

.shift-strip {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 11px;
  background: var(--ink-800); border: 1px solid var(--line-500); border-radius: var(--r-chip);
  color: var(--fg-500);
}
.shift-strip .i { width: 14px; height: 14px; }
.shift-clock {
  font-family: var(--font-num); font-size: 16px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--fg-100); letter-spacing: .01em;
}
.shift-state { display: flex; flex-direction: column; line-height: 1.2; }
.shift-phase { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.shift-note { font-size: 9.5px; color: var(--fg-500); font-variant-numeric: tabular-nums; }
.shift-track {
  position: relative; display: block; width: 46px; height: 3px; flex: none;
  margin-left: 4px; border-radius: 2px; overflow: hidden;
  background: var(--line-500);
}
.shift-fill { display: block; height: 100%; width: 0; background: var(--gold); transition: width 1s linear; }
@media (max-width: 900px) { .shift-track { display: none; } }

.money-plate {
  display: flex; flex-direction: column; align-items: flex-end; gap: 1px;
  padding: 4px 12px; min-width: 132px;
  background: var(--ink-800); border: 1px solid var(--line-500); border-radius: var(--r-chip);
  transition: background .14s var(--ease);
}
.money-plate:hover { background: var(--ink-600); }
.money-value {
  font-family: var(--font-num); font-size: 18px; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em; line-height: 1.25;
}
.money-rate {
  display: flex; align-items: center; gap: 3px;
  font-size: 10.5px; color: var(--mint); font-variant-numeric: tabular-nums;
}
.money-rate .i { width: 11px; height: 11px; stroke-width: 2.2; }

.hud-tools { display: flex; align-items: center; gap: 4px; }

.icon-btn {
  position: relative; width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line-500); border-radius: var(--r-chip);
  background: var(--ink-800); color: var(--fg-300);
  transition: background .14s var(--ease), color .14s var(--ease);
}.icon-btn:hover { background: var(--ink-600); color: var(--fg-100); }
.icon-btn:active { background: var(--ink-500); }
.icon-btn-count {
  position: absolute; right: 3px; bottom: 1px;
  font-size: 8.5px; color: var(--gold); font-variant-numeric: tabular-nums;
}
.icon-btn-text { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* 4. РЕЙЛ / ДОК ------------------------------------------------------------ */
.bottom-dock {
  position: fixed; left: 0; top: calc(var(--hud-h) + var(--safe-t)); bottom: 0;
  width: var(--rail-w); padding: 8px 6px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--ink-800); border-right: 1px solid var(--line-500);
  z-index: 70;
}
.dock-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  height: 62px; border-radius: 8px;
  color: var(--fg-500);
  transition: background .14s var(--ease), color .14s var(--ease);
}
.dock-btn:hover { background: var(--ink-700); color: var(--fg-300); }
.dock-btn.active { background: var(--ink-700); color: var(--fg-100); }
.dock-btn.active::before {
  content: ""; position: absolute; left: -6px; top: 13px; bottom: 13px; width: 2px;
  background: var(--red); border-radius: 0 2px 2px 0;
}
.dock-label { font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; }

/* 5. КАРТА ----------------------------------------------------------------- */
.main-workspace {
  position: fixed; inset: 0;
  padding: calc(var(--hud-h) + var(--safe-t)) 0 0 var(--rail-w);
}
.map-container { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--ink-900); touch-action: none; }
#map3DView { position: absolute; inset: 0; touch-action: none; }
.maplibregl-canvas { touch-action: none; }

.map-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(130% 100% at 50% 45%, transparent 62%, rgba(6, 7, 8, .3) 100%);
}

.map-tactical-controls {
  position: absolute; top: 12px; left: 12px; z-index: 6;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.map-btn {
  display: flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px; min-width: 38px;
  background: rgba(17, 19, 21, .9); border: 1px solid var(--line-500); border-radius: var(--r-chip);
  color: var(--fg-300); font-size: 11.5px; letter-spacing: .02em;
  transition: background .14s var(--ease), color .14s var(--ease);
}
.map-btn:hover { background: var(--ink-600); color: var(--fg-100); }
.map-btn .i { width: 14px; height: 14px; }
.map-btn--icon { padding: 0; width: 38px; justify-content: center; }
.map-btn.is-off { color: var(--fg-500); border-color: var(--line-400); }
.map-btn.is-off .i { opacity: .5; }

/* выбор зоны ответственности: один контрол на весь список районов */
.district-chip {
  display: flex; align-items: center; gap: 4px;
  height: 38px; padding: 0 6px 0 9px; min-width: 0;
  background: var(--ink-800); border: 1px solid var(--line-500); border-radius: var(--r-chip);
  color: var(--fg-300);
  transition: background .14s var(--ease), border-color .14s var(--ease);
}
.district-chip:hover { background: var(--ink-600); border-color: var(--line-400); }
.district-chip:focus-within { border-color: var(--gold); }
.district-chip .i { width: 14px; height: 14px; flex: none; }
.district-chip .i-chevron { transform: rotate(90deg); opacity: .55; }
.district-chip select {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 0; outline: none;
  color: var(--fg-100); font: inherit; font-size: 11.5px; letter-spacing: .02em;
  max-width: 190px; padding: 0 2px; cursor: pointer;
}
.district-chip select option { background: var(--ink-800); color: var(--fg-100); }
.district-static {
  font-size: 11.5px; letter-spacing: .02em; color: var(--fg-100);
  padding: 0 4px; white-space: nowrap;
}

.camera-hud-badge {
  display: none;
}
.camera-hud-badge strong { color: var(--fg-300); font-weight: 600; }

.map-attrib {
  position: absolute; right: 52px; bottom: 8px; z-index: 6;
  font-size: 11px; color: var(--fg-300); text-decoration: none;
  background: rgba(10, 11, 12, .72); padding: 3px 6px; border-radius: 3px;
}
.map-attrib:hover { color: var(--fg-300); }

/* статистика смены */
.shift-stats {
  position: absolute; left: 12px; bottom: 12px; z-index: 6;
  display: flex; gap: 1px; overflow: hidden;
  border: 1px solid var(--line-500); border-radius: var(--r-chip);
  background: var(--line-500);
}
.shift-stat {
  display: flex; flex-direction: column; gap: 1px;
  padding: 6px 14px; min-width: 104px;
  background: rgba(17, 19, 21, .92); backdrop-filter: blur(8px);
}
.shift-stat .k { font-size: 8.5px; letter-spacing: .12em; color: var(--fg-500); }
.shift-stat .v {
  font-family: var(--font-num); font-size: 15px; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}

/* задание смены */
.objective-card {
  position: absolute; left: 12px; bottom: 72px; z-index: 7;
  width: 344px; max-width: calc(100% - 24px);
  padding: 13px 14px 12px;
  background: rgba(17, 19, 21, .96);
  border: 1px solid var(--line-400); border-left: 2px solid var(--gold);
  border-radius: var(--r-panel);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
}
.objective-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 0; border: 0; background: transparent; color: inherit; text-align: left;
  cursor: pointer;
}
.objective-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.objective-dot {
  width: 6px; height: 6px; flex: none; border-radius: 1px; background: var(--gold);
  transform: rotate(45deg);
}
.objective-kicker { font-size: 8.5px; letter-spacing: .14em; color: var(--gold); flex: 1; }
.objective-count { font-size: 10px; color: var(--fg-300); font-variant-numeric: tabular-nums; }
.objective-chevron {
  width: 13px; height: 13px; color: var(--fg-500);
  transform: rotate(90deg); transition: transform .16s var(--ease);
}
.objective-card:not(.is-collapsed) .objective-chevron { transform: rotate(-90deg); }
.objective-body { margin-top: 6px; }
/* Свёрнутое задание — одна строка, карта остаётся свободной */
.objective-card.is-collapsed {
  width: auto; max-width: min(340px, calc(100% - 24px));
  padding: 8px 10px;
  border-left-width: 2px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .38);
}
.objective-card.is-collapsed .objective-body { display: none; }
.objective-card.is-collapsed .objective-count { margin-right: 2px; }
.objective-card.is-new { animation: objective-pulse 1.6s var(--ease) 2; }
@keyframes objective-pulse {
  0%, 100% { border-left-color: var(--gold); }
  50% { border-left-color: var(--fg-100); }
}
.objective-title { font-size: 15px; line-height: 1.35; margin-top: 2px; }
.objective-hint { font-size: 11.5px; line-height: 1.45; color: var(--fg-300); margin-top: 3px; }
.objective-bar { height: 2px; margin: 10px 0 9px; background: var(--line-500); border-radius: 2px; overflow: hidden; }
.objective-bar-fill { display: block; height: 100%; width: 0; background: var(--gold); transition: width .4s var(--ease); }
.objective-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.objective-reward {
  font-size: 10.5px; color: var(--gold); font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

/* инспектор остановки */
.inspector-popup {
  position: absolute; top: 12px; right: 12px; z-index: 8;
  width: 292px; max-width: calc(100% - 24px);
  padding: 14px;
  background: rgba(17, 19, 21, .97); border: 1px solid var(--line-500);
  border-radius: var(--r-panel); box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  display: none;
}
.inspector-popup.visible { display: block; }
.inspector-close, .dialog-close, .drawer-close, .vehicle-hud-close {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-chip); color: var(--fg-300);
  transition: background .14s var(--ease), color .14s var(--ease);
}
.inspector-close { position: absolute; top: 8px; right: 8px; }
.inspector-close:hover, .dialog-close:hover, .drawer-close:hover, .vehicle-hud-close:hover {
  background: var(--ink-600); color: var(--fg-100);
}

/* карточка автобуса */
.vehicle-hud {
  /* Выше кнопок зума: карточка не должна закрывать управление картой */
  position: absolute; right: 12px; bottom: 104px; z-index: 8;
  display: block;
  width: 304px; max-width: calc(100% - 24px);
  padding: 14px;
  background: rgba(17, 19, 21, .97); border: 1px solid var(--line-500);
  border-radius: var(--r-panel); box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}
.vehicle-hud-close { position: absolute; top: 6px; right: 6px; }
.vehicle-hud { width: min(360px, calc(100% - 24px)); }
.vehicle-hud > * { min-width: 0; }

/* шапка: маршрут, госномер, состояние */
.vh-head { display: flex; align-items: center; gap: 9px; padding-right: 34px; min-width: 0; }
.vh-head .route-plate { flex: none; }
.vh-titles { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.vh-plate {
  font-family: var(--font-num); font-size: 13.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--fg-100); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vh-model {
  font-size: 10.5px; color: var(--fg-500);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vh-state {
  flex: none; white-space: nowrap; padding: 2px 6px; border-radius: var(--r-plate);
  font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mint); border: 1px solid var(--line-400);
}
.vh-state.is-off { color: var(--fg-500); }

/* направление: не больше двух строк, лишнее — многоточие */
.vh-dest {
  margin-top: 7px; font-size: 11px; line-height: 1.4; color: var(--fg-300);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}

/* телеметрия */
.vh-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; margin: 10px 0; overflow: hidden;
  background: var(--line-500); border: 1px solid var(--line-500); border-radius: var(--r-chip);
}
.vh-stat {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  padding: 7px 8px; background: var(--ink-800);
}
.vh-stat--wide { grid-column: 1 / -1; }
.vh-k { font-size: 8px; letter-spacing: .10em; color: var(--fg-500); }
.vh-v { display: flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; }
.vh-v b { font-family: var(--font-num); font-size: 17px; font-weight: 600; line-height: 1.1; }
.vh-v small { font-size: 10px; color: var(--fg-500); }
.vh-next {
  font-size: 11.5px; color: var(--fg-100);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vh-bar { height: 2px; margin-top: 2px; border-radius: 2px; overflow: hidden; background: var(--line-500); }
.vh-bar-fill { display: block; height: 100%; width: 0; background: var(--mint); transition: width .3s var(--ease); }
.vh-link {
  margin-top: 4px; padding: 2px 0; border: 0; background: transparent;
  color: var(--gold); font: inherit; font-size: 10.5px; letter-spacing: .02em;
  text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.vh-link:hover { color: var(--fg-100); }
.vh-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.vh-actions .btn-sm {
  width: 100%;
  font-size: 11.5px;
  padding: 6px 6px;
}
#btnVhCameraMode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}
#btnVhCameraMode .i { flex-shrink: 0; }

/* список остановок маршрута */
.route-stops-dialog {
  width: min(520px, calc(100vw - 24px));
  max-height: min(78vh, 620px);
  display: flex; flex-direction: column;
}
.route-stops-dialog .dialog-title { font-size: 20px; }
.stop-list {
  list-style: none; margin: 10px 0 0; padding: 0;
  overflow-y: auto; overscroll-behavior: contain;
  border-top: 1px solid var(--line-500);
  flex: 1; min-height: 0;
}
.stop-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 2px; border-bottom: 1px solid var(--line-500);
  cursor: pointer; transition: background .12s var(--ease);
}
.stop-row:hover, .stop-row:focus-visible { background: var(--ink-700); }
.stop-row:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.stop-index {
  flex: none; width: 22px; height: 22px; display: grid; place-items: center;
  border: 1px solid var(--line-400); border-radius: var(--r-plate);
  font-family: var(--font-num); font-size: 10.5px; color: var(--fg-300);
}
.stop-row.is-terminal .stop-index { border-color: var(--gold); color: var(--gold); }
.stop-name { flex: 1; min-width: 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stop-km {
  flex: none; font-family: var(--font-num); font-size: 10.5px; color: var(--fg-500);
  font-variant-numeric: tabular-nums;
}

.stop-row.is-current {
  background: rgba(242, 176, 46, 0.12);
  border-left: 3px solid var(--gold);
  padding-left: 6px;
}
.stop-row.is-current .stop-index {
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 700;
}
.stop-badge-current {
  display: inline-block;
  margin-left: 6px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--ink-900);
}
.stop-row.is-passed .stop-name {
  color: var(--fg-500);
}
.stop-row.is-passed .stop-index {
  opacity: 0.5;
}

/* 6. ШТОРКА ---------------------------------------------------------------- */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(6, 7, 8, .58);
  backdrop-filter: blur(2px);
}
.drawer-scrim[hidden] { display: none; }

.game-drawer {
  position: fixed; z-index: 100;
  top: calc(var(--hud-h) + var(--safe-t)); right: 0; bottom: 0;
  width: var(--sheet-w);
  display: flex; flex-direction: column;
  background: var(--ink-700);
  border-left: 1px solid var(--line-500);
  transform: translateX(100%);
  transition: transform .26s var(--ease);
  will-change: transform;
}
.game-drawer.open { transform: translateX(0); }
.drawer-grip { display: none; }

.drawer-header {
  position: relative;
  padding: 14px 16px 0;
  border-bottom: 1px solid var(--line-500);
  flex: none;
}
.drawer-title-row { display: flex; flex-direction: column; gap: 2px; padding-right: 38px; }
.drawer-kicker { font-size: 8.5px; letter-spacing: .14em; color: var(--fg-500); }
.drawer-title { font-size: 21px; line-height: 1.2; }
.drawer-close { position: absolute; top: 12px; right: 12px; }

.drawer-tabs {
  display: flex; gap: 16px; margin-top: 11px;
  overflow-x: auto; scrollbar-width: none;
}
.drawer-tabs::-webkit-scrollbar { display: none; }
.drawer-tab {
  position: relative; padding: 0 0 9px;
  font-size: 11.5px; letter-spacing: .04em; color: var(--fg-500);
  white-space: nowrap;
  transition: color .14s var(--ease);
}
.drawer-tab:hover { color: var(--fg-300); }
.drawer-tab.active { color: var(--fg-100); }
.drawer-tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--red);
}

.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.drawer-pane { display: none; flex-direction: column; gap: 8px; padding: 12px 16px 28px; }
.drawer-pane.active { display: flex; }

.pane-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 0 6px;
}
.pane-bar-label { font-size: 8.5px; letter-spacing: .14em; color: var(--fg-500); }
.pane-hint { font-size: 10.5px; line-height: 1.45; color: var(--fg-500); margin: -2px 0 2px; }
.pane-bar-value { font-size: 11.5px; color: var(--fg-300); font-variant-numeric: tabular-nums; }
.pane-foot {
  font-size: 10.5px; line-height: 1.5; color: var(--fg-500);
  padding: 6px 0 0; border-top: 1px solid var(--line-500); margin-top: 6px;
}

/* 6.1 СПРАВКА И БАЗА ЗНАНИЙ --------------------------------------------- */
.help-subtabs {
  display: flex; gap: 6px; padding: 4px 0 10px;
  border-bottom: 1px solid var(--line-500); margin-bottom: 8px;
}
.help-subtab {
  flex: 1; padding: 7px 10px; font-size: 12px; font-weight: 600;
  color: var(--fg-400); background: var(--ink-800);
  border: 1px solid var(--line-500); border-radius: var(--r-chip);
  transition: all .16s var(--ease); text-align: center;
}
.help-subtab:hover { color: var(--fg-100); background: var(--ink-600); }
.help-subtab.active {
  color: #fff; background: var(--ink-600);
  border-color: var(--red);
}

.help-subpane { display: none; flex-direction: column; gap: 12px; }
.help-subpane.active { display: flex; }

.help-article { display: flex; flex-direction: column; gap: 14px; }
.help-chapter {
  background: var(--ink-800); border: 1px solid var(--line-500);
  border-radius: var(--r-panel); padding: 14px 16px;
}
.help-chapter-title {
  font-size: 14px; font-weight: 700; color: var(--gold);
  margin-bottom: 6px; letter-spacing: -.01em;
}
.help-chapter-text {
  font-size: 13px; line-height: 1.55; color: var(--fg-200);
}

.help-search-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--ink-800); border: 1px solid var(--line-400);
  border-radius: var(--r-chip); padding: 0 10px; height: 38px;
}
.help-search-row .i { width: 16px; height: 16px; color: var(--fg-500); flex: none; }
.help-search-row input {
  flex: 1; border: 0; outline: none; background: transparent;
  color: var(--fg-100); font-size: 13px; font-family: inherit;
}

.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--ink-800); border: 1px solid var(--line-500);
  border-radius: var(--r-panel); overflow: hidden;
  transition: border-color .16s var(--ease);
}
.faq-item:hover { border-color: var(--line-400); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; font-size: 13px; font-weight: 600; text-align: left;
  color: var(--fg-100); cursor: pointer; gap: 8px;
}
.faq-question .faq-chevron {
  font-size: 11px; color: var(--fg-500); transition: transform .2s var(--ease);
}
.faq-item.open .faq-chevron { transform: rotate(90deg); color: var(--gold); }
.faq-answer {
  display: none; padding: 0 14px 14px; font-size: 12.5px; line-height: 1.55;
  color: var(--fg-300); border-top: 1px solid var(--line-600); margin-top: 2px; padding-top: 10px;
}
.faq-item.open .faq-answer { display: block; }

.help-about-content {
  display: flex; flex-direction: column; gap: 14px; padding: 4px 0;
}
.about-hero {
  background: var(--ink-800); border: 1px solid var(--line-500);
  border-radius: var(--r-panel); padding: 16px;
}
.about-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.about-subtitle { font-size: 12.5px; color: var(--fg-400); line-height: 1.45; }
.about-version { font-size: 11.5px; color: var(--gold); font-family: var(--font-num); margin-top: 8px; }

.about-engines { display: flex; flex-direction: column; gap: 8px; }
.about-engine-card {
  background: var(--ink-800); border: 1px solid var(--line-500);
  border-radius: var(--r-chip); padding: 10px 14px;
}
.about-engine-name { font-size: 13px; font-weight: 600; color: var(--fg-100); }
.about-engine-desc { font-size: 12px; color: var(--fg-400); margin-top: 2px; }

.about-attribution, .about-contacts {
  font-size: 11.5px; line-height: 1.5; color: var(--fg-500);
  padding: 8px 12px; background: rgba(0,0,0,.2); border-radius: var(--r-chip);
}

/* 6.2 КИНЕМАТОГРАФИЧЕСКОЕ ИНТРО (FLYTHROUGH) -------------------------------- */
.flythrough-overlay {
  position: fixed; inset: 0; z-index: 140;
  pointer-events: auto;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(clamp(48px, 8vh, 72px) + var(--safe-t)) 24px calc(clamp(48px, 8vh, 72px) + var(--safe-b));
  background: radial-gradient(circle at center, transparent 35%, rgba(6, 7, 8, .75) 100%);
  animation: fadeInOverlay .5s ease-out;
}
.flythrough-overlay[hidden] { display: none; }

.flythrough-cinema-bar-top {
  position: absolute; top: 0; left: 0; right: 0;
  height: clamp(38px, 6vh, 64px);
  background: #000;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  z-index: 141;
}

.flythrough-cinema-bar-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: clamp(38px, 6vh, 64px);
  background: #000;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  z-index: 141;
}

.flythrough-topbar {
  position: relative; z-index: 142;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.flythrough-badge {
  font-size: 10px; font-weight: 800; letter-spacing: .12em;
  padding: 6px 14px; background: rgba(15, 23, 42, .92);
  border: 1px solid rgba(56, 189, 248, 0.35); border-radius: 20px;
  color: #38bdf8; backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.flythrough-skip-btn {
  padding: 7px 16px; font-size: 12px; font-weight: 700;
  background: rgba(15, 23, 42, .92); border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px; color: #f8fafc; cursor: pointer;
  backdrop-filter: blur(10px); transition: all .16s var(--ease);
}
.flythrough-skip-btn:hover { background: #0284c7; border-color: #38bdf8; color: #fff; }

.flythrough-card {
  position: relative; z-index: 142;
  align-self: center; width: min(480px, 100%);
  background: rgba(11, 15, 25, .92);
  border: 1px solid rgba(56, 189, 248, 0.4); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .8), 0 0 30px rgba(2, 132, 199, 0.15);
  padding: 20px 24px; backdrop-filter: blur(16px);
  display: flex; flex-direction: column; gap: 8px;
  animation: slideCardUp .4s cubic-bezier(0.16, 1, 0.3, 1);
}
.flythrough-kicker { font-size: 9.5px; font-weight: 800; letter-spacing: .14em; color: #38bdf8; text-transform: uppercase; }
.flythrough-title { font-size: 22px; font-weight: 800; line-height: 1.25; color: #ffffff; letter-spacing: -0.02em; }
.flythrough-desc { font-size: 13.5px; line-height: 1.55; color: #cbd5e1; }
.flythrough-actions { margin-top: 12px; }

.flythrough-tap-hint {
  position: relative; z-index: 142;
  align-self: center; font-size: 11px; color: #94a3b8;
  background: rgba(0, 0, 0, .55); padding: 5px 14px; border-radius: 14px;
  letter-spacing: .02em; pointer-events: none; border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ВСТУПИТЕЛЬНЫЙ КИНЕМАТОГРАФИЧЕСКИЙ ТРЕЙЛЕР / ТИТРЫ */
.flythrough-trailer-card {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(540px, calc(100vw - 32px));
  text-align: center;
  z-index: 144;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  animation: trailerTitleReveal 2.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.flythrough-dept-crest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  color: #38bdf8;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.85);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.flythrough-main-title {
  font-size: clamp(36px, 11vw, 68px);
  font-weight: 900;
  letter-spacing: .18em;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 0 35px rgba(56, 189, 248, 0.7), 0 4px 18px rgba(0, 0, 0, 0.95);
  text-transform: uppercase;
  margin: 0;
}

.flythrough-subtitle {
  font-size: clamp(10px, 2.6vw, 13px);
  font-weight: 700;
  letter-spacing: .2em;
  color: #cbd5e1;
  text-transform: uppercase;
}

.flythrough-sector-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.65);
  padding: 4px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@keyframes trailerTitleReveal {
  0% { opacity: 0; transform: translate(-50%, -44%) scale(0.9); filter: blur(10px); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
  75% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); filter: blur(0); }
  100% { opacity: 0; transform: translate(-50%, -56%) scale(1.06); filter: blur(8px); visibility: hidden; }
}

@keyframes slideCardUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 7. КАРТОЧКИ И ПОЛЯ ------------------------------------------------------- */
.cards-list { display: flex; flex-direction: column; gap: 8px; }

.card {
  position: relative;
  padding: 13px 14px;
  background: var(--ink-800);
  border: 1px solid var(--line-500);
  border-radius: var(--r-panel);
}
.card.compact { padding: 11px 13px; }
.card:hover { border-color: var(--line-400); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-title { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.card-caption { font-size: 11.5px; line-height: 1.5; color: var(--fg-500); margin-top: 4px; }
.card-badge {
  font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 2px 6px; border-radius: var(--r-plate);
  background: var(--ink-600); color: var(--fg-300);
}
.card-badge.green { color: var(--mint); }
.card-badge.blue { color: var(--telegram); }
.card-badge.orange, .card-badge.red { color: var(--gold); }

/* плашка номера маршрута */
.route-plate {
  display: inline-grid; place-items: center;
  min-width: 44px; height: 28px; padding: 0 7px;
  background: #0B0C0D; color: #fff;
  border: 1px solid var(--line-400);
  border-radius: var(--r-plate);
  font-family: var(--font-num); font-size: 14px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
  position: relative; overflow: hidden;
}
.route-plate::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--route-color, var(--red));
}

.route-area {
  margin-left: 6px; padding: 1px 5px; border-radius: var(--r-plate);
  font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-500); border: 1px solid var(--line-400); vertical-align: 1px;
  white-space: nowrap;
}
.route-card { padding-left: 15px; padding-right: 13px; overflow: hidden; }
.route-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--route-color, var(--red));
}
.route-card.locked { opacity: .78; background: var(--ink-850); }
.route-row { display: flex; align-items: center; gap: 10px; }
.route-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.route-dest {
  font-size: 13px; line-height: 1.35; color: var(--fg-100);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.route-meta {
  font-size: 10.5px; color: var(--fg-500); font-variant-numeric: tabular-nums;
  /* Число машин «на линии / по норме» — главный ответ карточки, обрезать его
     многоточием нельзя: на 360 px строка ложится в две строки, а не в «0/9 ма…» */
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-height: 1.35;
}
.route-status {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; color: var(--fg-500); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.route-status .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line-400); }
.route-status.is-live { color: var(--mint); }
.route-status.is-live .dot { background: var(--mint); }
.route-actions { display: flex; gap: 6px; margin-top: 10px; }
.route-actions .btn-primary { flex: 1; }
.route-plate.is-locked { opacity: .5; }

.list-more {
  height: 40px; margin-top: 2px;
  border: 1px dashed var(--line-400); border-radius: 10px;
  color: var(--fg-500); font-size: 11.5px; letter-spacing: .02em;
  transition: color .14s var(--ease), border-color .14s var(--ease);
}
.list-more:hover { color: var(--fg-300); border-color: var(--fg-500); }

.btn-primary:disabled, .btn-secondary:disabled { opacity: .45; cursor: not-allowed; }

/* карточки машин, парков, рынка */
.unit-card .load-bar {
  height: 2px; margin-top: 9px; background: var(--line-500); border-radius: 2px; overflow: hidden;
}
.unit-card .load-bar span { display: block; height: 100%; background: var(--mint); }

.depot-mark {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-400); border-radius: var(--r-plate);
  color: var(--fg-300);
}
.depot-card .route-actions { flex-wrap: wrap; }
.depot-card .route-actions .btn-secondary { flex: 1; }
.depot-card.is-home { border-color: var(--line-400); }
.depot-home-tag {
  margin-left: 7px; padding: 1px 5px;
  font-size: 8px; letter-spacing: .12em; color: var(--gold);
  border: 1px solid var(--line-400); border-radius: var(--r-plate);
  vertical-align: 1px;
}
.unit-card .route-actions .btn-secondary { flex: 1; }

.market-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.market-tag {
  font-size: 8.5px; letter-spacing: .12em; color: var(--fg-500);
  border: 1px solid var(--line-400); border-radius: var(--r-plate);
  padding: 1px 5px;
}
.market-price {
  font-family: var(--font-num); font-size: 15px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--gold);
}
.market-desc { font-size: 10.5px; line-height: 1.45; color: var(--fg-500); margin-top: 2px; }
.market-card .route-actions .btn-primary, .card .route-actions .btn-primary { flex: 1; }
.market-price small { font-size: 9.5px; font-weight: 500; color: var(--fg-500); letter-spacing: .02em; }

/* закупка партией: количество и одна кнопка, без подтверждений в модалке */
.market-buy { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.qty-stepper {
  display: flex; align-items: center; flex: none;
  height: 34px; border: 1px solid var(--line-400); border-radius: var(--r-chip);
  background: var(--ink-900); overflow: hidden;
}
.qty-btn, .qty-value {
  height: 100%; border: 0; background: transparent; color: var(--fg-100);
  font: inherit; cursor: pointer;
  transition: background .12s var(--ease);
}
.qty-btn { width: 32px; font-size: 16px; line-height: 1; }
.qty-btn:hover:not(:disabled), .qty-value:hover { background: var(--ink-600); }
.qty-btn:disabled { color: var(--fg-500); opacity: .45; cursor: default; }
.qty-value {
  min-width: 34px; padding: 0 4px;
  font-family: var(--font-num); font-size: 14px; font-weight: 600;
  font-variant-numeric: tabular-nums; border-left: 1px solid var(--line-500); border-right: 1px solid var(--line-500);
}
.market-buy .market-buy-btn { flex: 1; min-height: 34px; }
.market-note { margin-top: 7px; font-size: 10px; line-height: 1.4; color: var(--fg-500); }
.market-note.is-ok { color: var(--mint); }
.market-note.is-error { color: var(--danger); }

/* карточка машины на рынке: иллюстрация, характеристики, закупка партией */
.market-card { padding-top: 10px; }
.market-art {
  position: relative;
  display: grid; place-items: center;
  padding: 6px 4px 2px;
  margin: -2px -2px 8px;
  border-radius: var(--r-chip);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(242, 176, 46, .10), transparent 62%),
    linear-gradient(180deg, var(--ink-700), var(--ink-850));
  border: 1px solid var(--line-500);
  overflow: hidden;
}
.bus-art-svg { width: 100%; max-width: 260px; height: auto; display: block; }
.market-art-class {
  position: absolute; left: 8px; top: 7px;
  font-size: 8.5px; letter-spacing: .10em; text-transform: uppercase;
  color: var(--fg-500);
}
.market-art-lock {
  position: absolute; right: 8px; top: 7px;
  font-size: 9px; letter-spacing: .06em; color: var(--gold);
  border: 1px solid var(--line-400); border-radius: var(--r-plate);
  padding: 1px 5px; background: rgba(10, 11, 12, .7);
}
.market-name { font-size: 15px; font-weight: 600; color: var(--fg-100); }
.market-card .market-price { font-size: 15px; }
.market-specs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin-top: 9px; overflow: hidden;
  border: 1px solid var(--line-500); border-radius: var(--r-chip);
  background: var(--line-500);
}
.market-specs .spec {
  display: flex; flex-direction: column; gap: 1px;
  padding: 6px 4px; background: var(--ink-850);
  font-size: 9px; letter-spacing: .04em; color: var(--fg-500);
  text-align: center;
}
.market-specs .spec b {
  font-family: var(--font-num); font-size: 13px; font-weight: 600;
  color: var(--fg-100); font-variant-numeric: tabular-nums;
}
.market-depot-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; margin-bottom: 8px;
  background: var(--ink-800); border: 1px solid var(--line-500); border-radius: var(--r-chip);
}
.market-depot-label { font-size: 9px; letter-spacing: .10em; text-transform: uppercase; color: var(--fg-500); }
.market-depot-select {
  flex: 1; min-width: 0;
  appearance: none; -webkit-appearance: none;
  background: var(--ink-900); color: var(--fg-100);
  border: 1px solid var(--line-400); border-radius: var(--r-plate);
  padding: 5px 8px; font: inherit; font-size: 12px; cursor: pointer;
}
.market-depot-select option { background: var(--ink-800); }

/* парки в разделе «Машины» */
.fleet-summary {
  display: flex; align-items: baseline; gap: 9px;
  padding: 10px 12px; margin-bottom: 8px;
  background: linear-gradient(180deg, var(--ink-700), var(--ink-850));
  border: 1px solid var(--line-500); border-radius: var(--r-chip);
}
.fleet-summary-num {
  font-family: var(--font-num); font-size: 26px; font-weight: 700;
  line-height: 1; color: var(--fg-100); font-variant-numeric: tabular-nums;
}
.fleet-summary-num small { font-size: 13px; font-weight: 500; color: var(--fg-500); }
.fleet-summary-text { font-size: 10.5px; color: var(--fg-500); }
.depot-group { cursor: pointer; transition: border-color .14s var(--ease), background .14s var(--ease); }
.depot-group:hover { border-color: var(--line-400); background: var(--ink-700); }
.depot-group.is-locked { opacity: .72; }
.depot-group-arrow { font-size: 20px; line-height: 1; color: var(--fg-500); padding-left: 4px; }
.fleet-back { margin-bottom: 8px; }
.data-note {
  margin: 0 2px 8px; padding: 8px 10px;
  font-size: 10.5px; line-height: 1.45; color: var(--fg-500);
  background: var(--ink-850); border: 1px solid var(--line-500);
  border-left: 2px solid var(--gold); border-radius: var(--r-chip);
}
.empty-note {
  margin: 6px 2px 10px; font-size: 11.5px; line-height: 1.5; color: var(--fg-500);
  padding: 12px; border: 1px dashed var(--line-400); border-radius: var(--r-chip);
}
.depot-pin.is-locked { border-color: var(--line-500); color: var(--fg-500); }
.depot-pin.is-locked .depot-pin-dot { background: var(--fg-500); }

/* силуэты подвижного состава */
.bus-silhouette {
  width: 56px; height: 30px; flex: none;
  stroke: currentColor; fill: none;
  stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  color: var(--fg-500);
}
.market-body { display: flex; align-items: flex-start; gap: 10px; }
.market-body .bus-silhouette { width: 66px; height: 36px; color: var(--fg-300); }
.unit-card .bus-silhouette { width: 40px; height: 22px; }
.depot-card.is-locked { opacity: .62; }
.depot-card.is-locked .depot-mark { color: var(--fg-500); }

/* KPI-плитки */
.kpi-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line-500); border: 1px solid var(--line-500);
  border-radius: var(--r-chip); overflow: hidden; margin-bottom: 8px;
}
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 8px 11px; background: var(--ink-800); }
.kpi .k { font-size: 8px; letter-spacing: .12em; color: var(--fg-500); }
.kpi .v {
  font-family: var(--font-num); font-size: 15px; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}

/* Доска смены: состояние парка и одно действие. Лежит рядом с заданием,
   на том же уровне иерархии — это не панель, а сводка. */
.board {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 8px; padding: 9px 11px;
  background: var(--ink-800); border: 1px solid var(--line-500);
  border-radius: var(--r-chip);
}
.board[hidden] { display: none; }
.board-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.board-kicker { font-size: 8px; letter-spacing: .14em; color: var(--fg-500); }
.board-stats { font-size: 11px; color: var(--fg-300); font-variant-numeric: tabular-nums; }
.board-warning {
  font-size: 11.5px; line-height: 1.35; color: var(--danger);
  padding-left: 8px; border-left: 2px solid var(--danger);
}
.board-warning[hidden] { display: none; }
.board-action {
  display: flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 7px 9px; text-align: left;
  background: var(--ink-700); border: 1px solid var(--line-400);
  border-radius: var(--r-plate); color: var(--fg-100);
  transition: background .14s var(--ease), border-color .14s var(--ease);
}
.board-action[hidden] { display: none; }
.board-action:hover { background: var(--ink-600); border-color: var(--line-400); }
.board-action:active { background: var(--ink-500); }
.board-action-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; color: var(--red); }
.board-action-icon .i { width: 18px; height: 18px; }
.board-action-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.board-action-title { font-size: 12.5px; font-weight: 600; }
.board-action-why { font-size: 10.5px; color: var(--fg-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-action-go { width: 14px; height: 14px; flex: none; color: var(--fg-500); }

/* реплика диспетчера: одна-две строки, не перебивает действие */
.event-quote {
  font-size: 11.5px; line-height: 1.4; font-style: italic;
  color: var(--fg-300); margin-bottom: 8px;
  padding-left: 9px; border-left: 2px solid var(--line-400);
}
.event-quote[hidden] { display: none; }

/* газетный заголовок итога: «ВЕСТИ ПАРКА» и одна строка */
.shift-news {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-500); margin: -6px 0 8px;
  padding-bottom: 7px; border-bottom: 1px solid var(--line-500);
}
.shift-news[hidden] { display: none; }

/* живой контент: анонс, событие недели, задания дня */
.live-announce {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 8px; padding: 6px 10px;
  font-size: 11px; line-height: 1.35; color: var(--fg-300);
  background: var(--ink-800); border: 1px solid var(--line-500);
  border-left: 2px solid var(--gold); border-radius: var(--r-plate);
}
.live-announce[hidden] { display: none; }
.live-announce-dot {
  width: 5px; height: 5px; flex: none; border-radius: 50%;
  background: var(--gold);
}
.live-block { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.live-block[hidden] { display: none; }
.live-week {
  display: flex; flex-direction: column; gap: 3px;
  padding: 9px 11px; background: var(--ink-800);
  border: 1px solid var(--line-500); border-left: 2px solid var(--gold);
  border-radius: var(--r-plate);
}
.live-week[hidden] { display: none; }
.live-week-kicker { font-size: 8px; letter-spacing: .14em; color: var(--gold); }
.live-week-title { font-size: 13px; font-weight: 600; color: var(--fg-100); }
.live-week-line { font-size: 11px; line-height: 1.4; color: var(--fg-300); }
.live-week-meta { font-size: 10px; color: var(--fg-500); font-variant-numeric: tabular-nums; }

.live-daily { display: flex; flex-direction: column; gap: 5px; }
.live-daily[hidden] { display: none; }
.live-daily-kicker { font-size: 8px; letter-spacing: .14em; color: var(--fg-500); }
.live-daily-list { display: flex; flex-direction: column; gap: 4px; }
.live-daily-item {
  display: flex; flex-direction: column; gap: 4px;
  min-height: 44px; padding: 7px 9px; text-align: left;
  background: var(--ink-800); border: 1px solid var(--line-500);
  border-radius: var(--r-plate); color: var(--fg-100);
  transition: background .14s var(--ease), border-color .14s var(--ease);
}
.live-daily-item:hover:not(:disabled) { background: var(--ink-600); border-color: var(--line-400); }
.live-daily-item:disabled { opacity: .55; cursor: default; }
.live-daily-item.is-done { border-left: 2px solid var(--mint); }
.live-daily-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.live-daily-title { font-size: 12px; font-weight: 600; }
.live-daily-count { font-size: 10px; color: var(--fg-500); font-variant-numeric: tabular-nums; white-space: nowrap; }
.live-daily-bar { display: block; height: 2px; background: var(--line-400); border-radius: 1px; overflow: hidden; }
.live-daily-bar span { display: block; height: 100%; background: var(--mint); }
.live-daily-reward { font-size: 10px; color: var(--fg-500); font-variant-numeric: tabular-nums; }
.live-daily-item.is-done .live-daily-reward { color: var(--mint); }

/* настройки звука в профиле */
.sound-settings { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }.sound-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 40px; font-size: 12px; color: var(--fg-300);
}
.sound-label { flex: 1; }
.sound-row input[type="range"] {
  width: 132px; height: 24px; accent-color: var(--red); cursor: pointer;
}
.sound-toggle { width: 22px; height: 22px; accent-color: var(--red); cursor: pointer; }

/* событие смены: цена каждого решения видна до нажатия */
.event-dialog { width: min(400px, 100%); }
.event-meta { display: block; font-size: 10.5px; letter-spacing: .04em; color: var(--fg-500); margin-bottom: 12px; }
.event-options { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.event-option {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  min-height: 52px; padding: 9px 11px; text-align: left;
  background: var(--ink-800); border: 1px solid var(--line-500);
  border-left: 2px solid var(--line-400); border-radius: var(--r-plate);
  color: var(--fg-100);
  transition: background .14s var(--ease), border-color .14s var(--ease);
}
.event-option:hover:not(:disabled) { background: var(--ink-600); border-color: var(--line-400); }
.event-option:active:not(:disabled) { background: var(--ink-500); }
.event-option:disabled { opacity: .45; cursor: not-allowed; }
.event-option-label { font-size: 13px; font-weight: 600; }
.event-option-meta { font-size: 10.5px; color: var(--fg-500); font-variant-numeric: tabular-nums; }
.event-inaction {
  font-size: 11px; line-height: 1.4; color: var(--fg-300);
  padding: 7px 9px; margin-bottom: 12px;
  background: var(--ink-800); border-left: 2px solid var(--gold);
  border-radius: 0 var(--r-plate) var(--r-plate) 0;
}

/* итог смены */
.shift-dialog { width: min(400px, 100%); }
.shift-kpis { margin: 14px 0 16px; }
.kpi-row--2 { grid-template-columns: repeat(2, 1fr); }

/* Книга итога: каждая строка — одна статья и её формула.
   Строки проявляются по очереди шагом 150 мс (см. playShiftLines). */
.shift-ledger { margin: 14px 0 10px; }
.shift-ledger .ledger-row { font-size: 12px; padding: 7px 0; }
.shift-ledger .ledger-row span { color: var(--fg-300); }
.shift-ledger .ledger-row strong { font-size: 13px; }
.shift-line { opacity: .001; }
.shift-line.is-in { animation: shift-line-in 220ms var(--ease) forwards; }
@keyframes shift-line-in {
  from { opacity: .001; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}

/* Причины: что принесло и что унесло деньги. */
.shift-causes { list-style: none; display: flex; flex-direction: column; gap: 1px; margin: 0 0 4px; }
.shift-cause {
  display: flex; align-items: baseline; gap: 7px;
  padding: 7px 9px; font-size: 11.5px; line-height: 1.4;
  background: var(--ink-800); border-left: 2px solid var(--line-400);
  border-radius: 0 var(--r-plate) var(--r-plate) 0; color: var(--fg-300);
}
.shift-cause::before { content: ""; width: 4px; height: 4px; flex: none; border-radius: 50%; background: var(--line-400); transform: translateY(-2px); }
.shift-cause--good { border-left-color: var(--mint); }
.shift-cause--good::before { background: var(--mint); }
.shift-cause--bad { border-left-color: var(--danger); }
.shift-cause--bad::before { background: var(--danger); }

/* Что мешает маршруту: одна строка на карточке, тон — только цветом полосы
   плюс иконкой, чтобы состояние читалось и без цвета. */
.route-blocker {
  display: flex; align-items: center; gap: 7px;
  margin: 8px 0 0; padding: 6px 9px;
  font-size: 11.5px; line-height: 1.35; color: var(--fg-300);
  background: var(--ink-800); border: 1px solid var(--line-500);
  border-left: 2px solid var(--line-400); border-radius: var(--r-plate);
}
.route-blocker .i { width: 13px; height: 13px; flex: none; color: var(--fg-500); }
.route-blocker--warn { border-left-color: var(--danger); }
.route-blocker--warn .i { color: var(--danger); }
.route-blocker--ok { border-left-color: var(--mint); }
.route-blocker--ok .i { color: var(--mint); }

/* системный диалог */
.ui-dialog { width: min(392px, 100%); }
.ui-dialog .dialog-text { margin-bottom: 4px; }
.ui-dialog[data-tone="danger"] .dialog-title { color: var(--danger); }
.ui-dialog[data-tone="success"] .dialog-title { color: var(--mint); }
.ui-dialog .dialog-actions { margin-top: 18px; }
.ui-dialog .dialog-actions [hidden] { display: none; }
.dialog-options { display: flex; flex-direction: column; gap: 4px; margin: 14px 0 4px; max-height: 46dvh; overflow-y: auto; }
.dialog-options[hidden] { display: none; }
.dialog-option {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 9px 11px; text-align: left;
  background: var(--ink-800); border: 1px solid var(--line-500); border-radius: var(--r-chip);
  color: var(--fg-100); font-size: 12.5px;
}
.dialog-option:hover { border-color: var(--line-400); background: var(--ink-600); }
.dialog-option-label { font-weight: 600; font-family: var(--font-num); }
.dialog-option-meta { font-size: 10.5px; color: var(--fg-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* профиль */
.profile-dialog { width: min(420px, 100%); }
.profile-level { display: flex; align-items: center; gap: 8px; margin: 14px 0 12px; }
.profile-level-num { font-size: 10px; letter-spacing: .1em; color: var(--gold); }
.profile-level-track { flex: 1; height: 3px; background: var(--line-400); border-radius: 2px; overflow: hidden; }
.profile-level-fill { display: block; height: 100%; width: 0; background: var(--gold); }
.profile-level-text { font-size: 10px; color: var(--fg-500); font-variant-numeric: tabular-nums; }

/* переключатель зоны */
.district-switch { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.district-switch-label { font-size: 8px; letter-spacing: .14em; color: var(--fg-500); }
.district-options { display: flex; gap: 2px; padding: 2px; background: var(--ink-800); border: 1px solid var(--line-500); border-radius: var(--r-chip); }
.district-option {
  flex: 1; height: 32px; border-radius: 4px;
  font-size: 11.5px; color: var(--fg-500);
  transition: background .14s var(--ease), color .14s var(--ease);
}
.district-option:hover { color: var(--fg-300); }
.district-option.active { background: var(--ink-600); color: var(--fg-100); }
.route-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.route-badge-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.route-num-badge {
  display: inline-grid; place-items: center;
  min-width: 42px; height: 26px; padding: 0 7px;
  color: #fff; border-radius: var(--r-plate);
  font-family: var(--font-num); font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(255, 255, 255, .22);
}
.route-dest-text {
  font-size: 12px; line-height: 1.35; color: var(--fg-300);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.route-bus-count-chip {
  font-size: 10px; letter-spacing: .04em; color: var(--fg-500);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* строки-метрики */
.ledger { display: flex; flex-direction: column; }
.ledger-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line-500);
  font-size: 12.5px; color: var(--fg-300);
}
.ledger-row strong { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--fg-100); }
.ledger-row--total { border-bottom: 0; padding-top: 12px; font-size: 13.5px; color: var(--fg-100); }
.ledger-row--total strong { font-size: 16px; }
.text-green { color: var(--mint); }
.text-red { color: var(--danger); }
.text-cyan { color: var(--telegram); }

/* поле поиска */
.field {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 11px;
  background: var(--ink-800); border: 1px solid var(--line-500); border-radius: var(--r-chip);
  color: var(--fg-500);
  transition: border-color .14s var(--ease);
}
.field:focus-within { border-color: var(--line-400); color: var(--fg-300); }
.field .i { width: 15px; height: 15px; }
.field input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  color: var(--fg-100); font-size: 13.5px;
}
.field input::placeholder { color: var(--fg-500); }

.game-input {
  width: 100%; height: 42px; padding: 0 12px;
  background: var(--ink-800); border: 1px solid var(--line-500); border-radius: var(--r-chip);
  color: var(--fg-100); font-size: 14px; outline: none;
}
.game-input:focus { border-color: var(--line-400); }
.game-input.text-center { text-align: center; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.form-group label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-500); }

/* 8. КНОПКИ ---------------------------------------------------------------- */
.btn-primary, .btn-secondary, .btn-ghost, .btn-tactile-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px;
  border-radius: var(--r-chip);
  font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  white-space: nowrap;
  transition: background .13s var(--ease), border-color .13s var(--ease), transform .1s var(--ease);
}
.btn-primary, .btn-tactile-action { background: var(--red); color: #fff; border: 1px solid transparent; }
.btn-primary:hover, .btn-tactile-action:hover { background: var(--red-hi); }
.btn-primary:active, .btn-secondary:active, .btn-tactile-action:active { transform: translateY(1px); }
.btn-secondary { background: var(--ink-600); color: var(--fg-100); border: 1px solid var(--line-500); }
.btn-secondary:hover { background: var(--ink-500); border-color: var(--line-400); }
.btn-ghost { color: var(--fg-300); padding: 0 10px; }
.btn-ghost:hover { color: var(--fg-100); }
.btn-block { width: 100%; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 12px; }

.btn-dialogue-step, .btn-dialogue-skip { height: 38px; padding: 0 14px; border-radius: var(--r-chip); }
.btn-dialogue-step.primary { background: var(--red); color: #fff; }
.btn-dialogue-skip { color: var(--fg-500); }

/* 9. МОДАЛКИ --------------------------------------------------------------- */
.game-modal {
  position: fixed; inset: 0; z-index: 120;
  display: none; align-items: center; justify-content: center;
  padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b));
  background: rgba(6, 7, 8, .82);
}
.game-modal.visible { display: flex; }

.game-dialog {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 20px;
  background: var(--ink-700);
  border: 1px solid var(--line-500);
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .6);
}
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.dialog-kicker { font-size: 8.5px; letter-spacing: .16em; color: var(--fg-500); }
.dialog-close { margin-left: auto; }
.dialog-title { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.dialog-text { font-size: 13px; line-height: 1.55; color: var(--fg-300); margin-top: 6px; max-width: 46ch; }
.dialog-note { font-size: 11px; line-height: 1.5; color: var(--fg-500); margin-top: 8px; }
.dialog-actions { display: flex; gap: 8px; margin-top: 16px; }
.dialog-actions--split { justify-content: space-between; align-items: center; }
.dialog-nav { display: flex; gap: 8px; }
.auth-status-msg { font-size: 11.5px; margin-top: 8px; color: var(--fg-500); }
.auth-status-msg.success { color: var(--mint); }
.auth-status-msg.error { color: var(--danger); }

.auth-dialog { width: min(420px, 100%); }
.auth-tabs {
  display: flex; gap: 2px; margin: 16px 0 14px;
  padding: 2px; background: var(--ink-800); border: 1px solid var(--line-500); border-radius: 7px;
}
.auth-tab-btn {
  flex: 1; height: 34px; border-radius: 5px;
  font-size: 12px; color: var(--fg-500);
  transition: background .14s var(--ease), color .14s var(--ease);
}
.auth-tab-btn:hover { color: var(--fg-300); }
.auth-tab-btn.active { background: var(--ink-600); color: var(--fg-100); }
.auth-tab-content { display: none; }
.auth-tab-content.active { display: block; }
.auth-desc { font-size: 13px; color: var(--fg-300); }
.auth-hint { font-size: 11px; color: var(--fg-500); }
#btnTgLogin { background: var(--telegram); }
#btnTgLogin:hover { background: #3bb8f5; }

/* распоряжение */
.briefing-dialog { width: min(520px, 100%); }
.briefing-slides { margin-top: 14px; min-height: 96px; }
.briefing-slide, .dialogue-slide { display: none; }
.briefing-slide.active, .dialogue-slide.active { display: block; }
.briefing-slide p, .dialogue-slide p {
  font-size: 14px; line-height: 1.6; color: var(--fg-300); max-width: 54ch;
}
.briefing-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin: 16px 0 14px; background: var(--line-500);
  border: 1px solid var(--line-500); border-radius: var(--r-chip); overflow: hidden;
}
.briefing-facts > div { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; background: var(--ink-800); }
.briefing-facts .k { font-size: 8px; letter-spacing: .12em; color: var(--fg-500); }
.briefing-facts .v { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.briefing-sign { display: flex; flex-direction: column; gap: 1px; padding: 10px 0; border-top: 1px solid var(--line-500); }
.briefing-sign-name { font-size: 12.5px; font-weight: 600; }
.briefing-sign-role { font-size: 10.5px; color: var(--fg-500); }

/* звёзды */
.stars-dialog { width: min(620px, 100%); }
.stars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stars-card {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 13px; text-align: left;
  background: var(--ink-800); border: 1px solid var(--line-500); border-radius: var(--r-panel);
  transition: border-color .14s var(--ease), background .14s var(--ease);
}
.stars-card:hover { border-color: var(--line-400); background: var(--ink-600); }
.stars-card.featured { border-color: var(--gold); }
.stars-ribbon {
  position: absolute; top: -1px; right: 10px;
  padding: 2px 6px; font-size: 8px; letter-spacing: .12em;
  background: var(--gold); color: #151005; border-radius: 0 0 3px 3px;
}
.stars-amount { font-family: var(--font-num); font-size: 18px; font-weight: 600; color: var(--gold); }
.stars-title { font-size: 11.5px; color: var(--fg-300); }
.stars-reward { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stars-bonus { font-size: 10.5px; line-height: 1.4; color: var(--fg-500); }

/* уровень */
.level-dialog { width: min(400px, 100%); }
.level-up-heading { margin-top: 4px; }
.level-up-title { font-size: 13px; color: var(--gold); margin-top: 2px; }
.level-rewards { margin: 16px 0 18px; }
.level-rewards .ledger-row { font-size: 12.5px; }

/* оффлайн */
.offline-dialog { width: min(360px, 100%); text-align: left; }
.offline-amount {
  font-family: var(--font-num); font-size: 32px; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  color: var(--gold); margin: 14px 0 16px;
}

/* обучение */
.tutorial-overlay { position: fixed; inset: 0; z-index: 110; display: none; }
.tutorial-overlay[hidden] { display: none; }
.tutorial-spotlight {
  position: absolute;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(6, 7, 8, .78), inset 0 0 0 1px rgba(242, 176, 46, .55);
  transition: all .2s var(--ease);
  pointer-events: none;
}
.tutorial-card {
  position: absolute; left: 50%; bottom: calc(24px + var(--safe-b));
  transform: translateX(-50%);
  width: min(400px, calc(100% - 24px));
  padding: 16px;
  background: var(--ink-700); border: 1px solid var(--line-400);
  border-radius: var(--r-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .65);
}
.tutorial-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tutorial-step-badge { font-size: 8.5px; letter-spacing: .14em; color: var(--gold); }
.tutorial-skip-btn { font-size: 10.5px; color: var(--fg-500); padding: 2px 4px; }
.tutorial-skip-btn:hover { color: var(--fg-100); }
.tutorial-title { font-size: 16px; margin-top: 5px; }
.tutorial-desc { font-size: 12px; line-height: 1.5; color: var(--fg-300); margin-top: 4px; }
.tutorial-actions { margin-top: 13px; }

/* админка */
.admin-modal {
  position: fixed; inset: 0; z-index: 130;
  display: none; align-items: center; justify-content: center; padding: 16px;
  background: rgba(6, 7, 8, .8);
}
.admin-modal.visible { display: flex; }
.admin-dialog {
  width: min(720px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 20px; background: var(--ink-700);
  border: 1px solid var(--line-500); border-radius: 14px;
}
.admin-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-title-row { display: flex; flex-direction: column; gap: 4px; }
.admin-badge {
  font-size: 8px; letter-spacing: .16em; color: var(--gold);
  border: 1px solid var(--line-400); border-radius: 2px; padding: 1px 5px; align-self: flex-start;
}
.admin-title-row h2 { font-size: 17px; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 16px 0; background: var(--line-500); }
.admin-stat-card { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--ink-800); }
.stat-num { font-family: var(--font-num); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-desc { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-500); }
.admin-action-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px; background: var(--ink-800); border: 1px solid var(--line-500); border-radius: var(--r-chip);
}
.action-info strong { font-size: 12.5px; }
.action-info p { font-size: 11px; color: var(--fg-500); margin-top: 2px; }
.admin-log-console {
  margin-top: 12px; padding: 10px 12px; max-height: 180px; overflow-y: auto;
  background: #08090A; border: 1px solid var(--line-500); border-radius: var(--r-chip);
  font-family: Consolas, "Cascadia Mono", monospace; font-size: 11px; line-height: 1.6;
}
.log-line.info { color: var(--fg-300); }
.log-line.success { color: var(--mint); }
.log-line.error { color: var(--danger); }

/* 10. ЗАСТАВКА ------------------------------------------------------------- */
.splash {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 24px;
  background:
    radial-gradient(90% 70% at 50% 30%, #15181B 0%, var(--ink-900) 70%);
  transition: opacity .45s var(--ease), visibility .45s;
}
.splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { width: min(360px, 100%); display: flex; flex-direction: column; gap: 28px; }
.splash-brand { display: flex; align-items: center; gap: 14px; }
.splash-brand-text { display: flex; flex-direction: column; gap: 3px; }
.splash-title { font-size: 15px; font-weight: 600; letter-spacing: .22em; }
.splash-sub { font-size: 10.5px; color: var(--fg-500); }
.splash-progress { display: flex; flex-direction: column; gap: 8px; }
.splash-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.splash-stage { font-size: 11px; color: var(--fg-300); }
.splash-percent { font-size: 11px; color: var(--fg-500); font-variant-numeric: tabular-nums; }
.splash-track { height: 2px; background: var(--line-500); overflow: hidden; }
.splash-fill { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s var(--ease); }
.splash-tip {
  font-size: 11px; line-height: 1.55; color: var(--fg-500);
  padding-top: 14px; border-top: 1px solid var(--line-500);
  max-width: 44ch;
}

/* 11. КАРТА: элементы MapLibre --------------------------------------------- */
.maplibregl-ctrl-group {
  background: rgba(17, 19, 21, .92) !important;
  border: 1px solid var(--line-500) !important;
  border-radius: var(--r-chip) !important;
  box-shadow: none !important;
  overflow: hidden;
}
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--line-500) !important; }
.maplibregl-ctrl-group button { width: 32px !important; height: 32px !important; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(82%) sepia(4%) saturate(200%); }
.maplibregl-ctrl-attrib { display: none; }

/* маркеры автобусов и остановок */
.depot-pin {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 8px;
  background: rgba(17, 19, 21, .94);
  border: 1px solid var(--line-400); border-radius: 3px;
  font-size: 9px; letter-spacing: .12em; color: var(--fg-300);
  cursor: pointer;
  transition: border-color .14s var(--ease), color .14s var(--ease);
}
.depot-pin:hover { border-color: var(--gold); color: var(--fg-100); }
.depot-pin:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.depot-pin-dot { width: 6px; height: 6px; border-radius: 1px; background: var(--gold); transform: rotate(45deg); }
.depot-pin-label { white-space: nowrap; }
/* На обзорном зуме парк — только ромб, иначе тридцать подписей закрывают карту */
.depot-pin.is-dot { padding: 4px; background: transparent; border-color: transparent; }
.depot-pin.is-dot .depot-pin-label { display: none; }
.depot-pin.is-dot .depot-pin-dot {
  width: 9px; height: 9px;
  box-shadow: 0 0 0 2px rgba(10, 11, 12, .75);
}

.bus-3d-label {
  font-family: var(--font-num); font-size: 11px; font-weight: 700;
  color: #0B0C0D; background: var(--gold);
  padding: 1px 5px; border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.floating-game-badge {
  font-family: var(--font-num); font-size: 11px; font-weight: 600;
  color: var(--mint); text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
  pointer-events: none;
}

/* 12. АДАПТИВ -------------------------------------------------------------- */
/* на десктопе разделы переключает рейл, дублирующие табы в шторке не нужны */
@media (min-width: 1024px) {
  .drawer-tabs { display: none; }
  .drawer-header { padding-bottom: 14px; }
}

@media (max-width: 1180px) {
  .shift-state { display: none; }
  .brand-meta { max-width: 130px; }
}

@media (max-width: 1023px) {
  :root { --hud-h: 56px; }
  .main-workspace { padding-left: 0; padding-bottom: calc(60px + var(--safe-b)); }

  .bottom-dock {
    left: 0; right: 0; top: auto; bottom: 0;
    width: auto; height: calc(60px + var(--safe-b));
    padding: 6px 6px calc(6px + var(--safe-b));
    flex-direction: row; gap: 2px;
    border-right: 0; border-top: 1px solid var(--line-500);
    background: rgba(17, 19, 21, .98);
    z-index: 105;
  }
  .dock-btn { flex: 1; height: 48px; gap: 3px; border-radius: 6px; }
  .dock-btn.active::before { left: 24%; right: 24%; top: auto; bottom: -7px; width: auto; height: 2px; border-radius: 2px; }
  .dock-label { font-size: 8px; letter-spacing: .06em; }

  .game-drawer {
    top: auto; left: 0; right: 0; bottom: calc(60px + var(--safe-b));
    width: auto; height: 68dvh;
    border-left: 0; border-top: 1px solid var(--line-500);
    border-radius: var(--r-sheet) var(--r-sheet) 0 0;
    transform: translateY(110%);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, .55);
  }
  .game-drawer.open { transform: translateY(0); }
  .drawer-grip {
    display: block; width: 38px; height: 4px; margin: 8px auto 0;
    background: var(--line-400); border-radius: 2px; flex: none;
  }
  .drawer-header { padding-top: 8px; }
  .drawer-title { font-size: 19px; }

  .shift-stats { display: none; }
  .objective-card {
    left: 8px; right: 8px; bottom: 8px;
    width: auto; max-width: none;
    padding: 11px 13px;
  }
  .objective-title { font-size: 14px; }
  .objective-hint { display: none; }
  .objective-bar { margin: 8px 0; }

  .map-tactical-controls { top: 8px; left: 8px; }
  .map-btn span { display: none; }
  .map-btn { width: 34px; justify-content: center; padding: 0; }
  .camera-hud-badge { display: none; }
  .map-attrib { left: 8px; right: auto; top: 46px; bottom: auto; }
  .maplibregl-ctrl-bottom-right { display: none; }

  /* На телефоне карточка встаёт над нижним доком и не закрывает шапку */
  .vehicle-hud {
    left: 8px; right: 8px; width: auto; max-width: none;
    top: auto; bottom: calc(64px + var(--safe-b) + 8px);
    max-height: calc(100% - 140px); overflow-y: auto;
    padding: 12px;
  }
  .vh-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .vh-actions .btn-sm { width: 100%; }
  .inspector-popup { left: 8px; right: 8px; width: auto; }

  .stars-grid { grid-template-columns: 1fr; }
  .stars-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  .stars-card .stars-amount { width: 100%; }
}

@media (max-width: 900px) {
  .brand-meta { display: none; }
  .shift-strip .shift-state { display: none; }
}

@media (max-width: 767px) {
  .brand-name { font-size: 10.5px; letter-spacing: .12em; }
  .brand-meta { display: none; }
  .brand-level { min-width: 46px; }
  .district-chip { height: 32px; padding: 0 4px 0 7px; }
  .district-chip .i-layers { display: none; }
  .district-chip select { font-size: 11px; max-width: 118px; }
  .shift-strip { display: flex; height: 32px; padding: 0 9px; gap: 0; }
  .shift-strip .i, .shift-state { display: none; }
  .shift-clock { font-size: 13px; }
  .money-plate { min-width: 116px; padding: 3px 10px; }
  .money-value { font-size: 16px; }
  .money-rate { font-size: 10px; }
  .hud-tools {
    position: fixed; right: 8px; top: calc(var(--hud-h) + var(--safe-t) + 8px);
    flex-direction: column; z-index: 8;
  }
  .icon-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; background: rgba(17, 19, 21, .92); }
  .game-dialog { padding: 16px; }
  .dialog-title { font-size: 20px; }
  .briefing-facts { grid-template-columns: repeat(3, 1fr); }
  .briefing-slide p { font-size: 13.5px; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-action-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tutorial-card { bottom: calc(76px + var(--safe-b)); }
}

@media (max-width: 400px) {
  .brand-level { display: none; }
  .brand-mark { width: 30px; height: 30px; font-size: 17px; }
  .market-buy { flex-wrap: wrap; }
  .market-buy .market-buy-btn { flex: 1 1 100%; }
}

@media (max-width: 360px) {
  .shift-strip { display: none; }
  .brand-name { font-size: 9px; letter-spacing: .06em; }
  .money-plate { min-width: 80px; padding: 2px 6px; }
  .money-value { font-size: 13.5px; }
  .dock-btn { min-width: 0; padding: 4px 1px; }
  .dock-icon { width: 18px; height: 18px; }
  .dock-label { font-size: 7px; letter-spacing: -0.02em; }
  .topbar { padding-left: 6px; padding-right: 6px; gap: 4px; }
  .icon-btn { width: 34px; height: 34px; min-width: 34px; min-height: 34px; }
  .game-dialog { width: calc(100vw - 16px); padding: 14px 10px; max-height: 88dvh; }
  .dialog-title { font-size: 18px; }
  .dialog-text { font-size: 12.5px; }
  .drawer-tabs { gap: 4px; padding: 0 4px 6px; }
  .drawer-tab { padding: 6px 10px; font-size: 11px; }
  .game-drawer { height: 74dvh; }
  .flythrough-card { width: calc(100vw - 20px); padding: 14px 14px; }
  .flythrough-title { font-size: 18px; }
  .flythrough-desc { font-size: 12px; }
}

@media (max-width: 330px) {
  .brand-name { display: none; }
  .money-plate { min-width: 65px; padding: 2px 4px; }
  .money-value { font-size: 11.5px; }
  .topbar-actions { gap: 2px; }
  .icon-btn { width: 30px; height: 30px; min-width: 30px; min-height: 30px; }
  .flythrough-main-title { font-size: 32px; }
  .flythrough-dept-crest { font-size: 8px; padding: 4px 10px; }
  .flythrough-subtitle { font-size: 9px; }
}

/* 15. ДОСТУПНОСТЬ ---------------------------------------------------------- */

/* Масштаб текста: размеры и отступы считаются от этого множителя.
   Раскладка на флекс/грид, поэтому она пересобирается сама, без
   горизонтального скролла на 360 px. */
html { font-size: calc(100% * var(--text-scale, 1)); }
:root { --text-scale: 1; }

/* Режим для дальтоников: статусы на карте и в списках различаются
   ПАТТЕРНОМ, а не только цветом. Сами цвета маршрутов из данных не
   трогаем — они часть карты. */
.is-colorblind .route-status .dot {
  /* статус в карточке — не только цвет, но и форма точки */
  outline: 1px solid currentColor;
  outline-offset: 1px;
}
.is-colorblind .shift-cause--good,
.is-colorblind .shift-cause--bad {
  border-left-width: 4px;
}
.is-colorblind .route-blocker--warn { border-left-style: dashed; }
.is-colorblind .board-warning { border-left-style: dashed; border-left-width: 4px; }
.is-colorblind .live-daily-item.is-done { border-left-style: double; border-left-width: 4px; }

/* Крупный текст в выпадающем списке масштаба */
.a11y-select {
  min-height: 32px; padding: 0 6px;
  background: var(--ink-800); border: 1px solid var(--line-500);
  border-radius: var(--r-chip); color: var(--fg-100); font: inherit; font-size: 12px;
}

/* Субтитры звуковых событий: строка над доком, читается диктором */
.captions {
  position: fixed; left: 50%; bottom: calc(var(--dock-h, 64px) + 12px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 120;
  max-width: min(420px, calc(100vw - 32px));
  padding: 7px 12px;
  background: rgba(10, 11, 12, .94);
  border: 1px solid var(--line-400);
  border-radius: var(--r-chip);
  color: var(--fg-100); font-size: 12px; line-height: 1.35; text-align: center;
  pointer-events: none;
}
.captions[hidden] { display: none; }

/* 16. ДВИЖЕНИЕ ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  /* Каскад итога смены выключен целиком: строки видны сразу и без задержки,
     иначе animation-delay оставил бы их прозрачными. */
  .shift-line { opacity: 1 !important; animation: none !important; animation-delay: 0s !important; }
}

/* Всплывающий сетевой статус / offline banner */
.network-status-toast {
  position: fixed;
  left: 50%;
  top: calc(var(--hud-h) + var(--safe-t) + 12px);
  transform: translate(-50%, -10px);
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(18, 20, 24, 0.96);
  border: 1px solid var(--line-400);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  color: var(--fg-200);
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.network-status-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.network-status-toast.is-offline {
  border-color: rgba(224, 32, 32, 0.6);
  color: #ff8585;
}
.network-status-toast.is-reconnected {
  border-color: rgba(0, 168, 89, 0.6);
  color: #55efc4;
}
.network-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* всплывающее подтверждение */
.shell-toast {
  position: fixed; left: 50%; top: calc(var(--hud-h) + var(--safe-t) + 14px);
  transform: translate(-50%, -8px);
  /* 150 перекрывал модалки: тост накрывал заголовок итога смены.
     Тост — подсказка на карте, он не спорит с экраном, который просят прочитать. */
  z-index: 90;
  padding: 8px 14px;
  background: rgba(23, 26, 29, .98);
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--fg-100);
  font-size: 12px; letter-spacing: .02em;
  opacity: 0; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.shell-toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* пульс единственного целевого действия: opacity вместо box-shadow,
   чтобы не перерисовывать слой каждый кадр */
@keyframes target-pulse {
  0%, 100% { outline: 2px solid rgba(242, 176, 46, .55); outline-offset: 1px; }
  50% { outline: 2px solid rgba(242, 176, 46, 0); outline-offset: 1px; }
}
.is-target {
  animation: target-pulse 1.8s ease-out 3;
  border-color: var(--gold) !important;
}

/* 14. ПАЛЬЦЕВЫЕ ЦЕЛИ ------------------------------------------------------- */
/* 40 px — минимум, при котором в кнопку попадает палец, а не промах. */
.icon-btn { width: 40px; height: 40px; }
@media (min-width: 1024px) {
  .dock-btn { min-height: 56px; }
}
.btn-sm { min-height: 40px; }
.auth-tab-btn, .district-option { min-height: 40px; }
.form-group input, .game-input { min-height: 44px; }

.splash-error { margin-top: 18px; display: grid; gap: 10px; }
.splash-error-text { font-size: 13px; color: var(--danger); text-align: center; }

/* селект внутри поля: фильтр районов */
.field--select select {
  flex: 1; min-width: 0;
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 0; outline: none;
  color: var(--fg-100); font: inherit; font-size: 13px; cursor: pointer;
}
.field--select select option { background: var(--ink-800); color: var(--fg-100); }

/* ==========================================================================
   SHOWROOM & VEHICLE 3D SHOWCASE (ВИТРИНА ТЕХНИКИ)
   ========================================================================== */
.showroom-card {
  background: var(--surface-card, rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.showroom-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}
.showroom-podium {
  position: relative;
  width: 100%;
  height: 130px;
  background: radial-gradient(ellipse at 50% 70%, rgba(2, 132, 199, 0.22) 0%, rgba(15, 23, 42, 0.95) 72%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}
.showroom-podium::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 16px;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}
.showroom-bus-img {
  max-width: 95%;
  max-height: 105px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.55));
  z-index: 2;
  margin-bottom: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.showroom-card:hover .showroom-bus-img {
  transform: scale(1.03) translateY(-2px);
}

.route-filter-switcher {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  background: rgba(15, 23, 42, 0.6);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.route-filter-tab-btn {
  flex: 1;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.route-filter-tab-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}
.route-filter-tab-btn.active {
  background: rgba(2, 132, 199, 0.25);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.showroom-class-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  z-index: 3;
}
.showroom-status-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 3;
}
.showroom-status-tag.on-line {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.showroom-status-tag.in-depot {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}
.showroom-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 8px 0;
  padding: 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.showroom-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.showroom-spec-label {
  font-size: 9px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}
.showroom-spec-val {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  font-family: var(--font-mono, monospace);
}

/* ==========================================================================
   PASSENGER EXCHANGE FLOATING TOAST (ВСПЛЫВАЮЩАЯ ПОДСКАЗКА ПОСАДКИ)
   ========================================================================== */
.bus-exchange-toast {
  pointer-events: none;
  animation: exchangeToastPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 100;
}
.bus-exchange-toast.fading {
  animation: exchangeToastFade 0.4s ease-out forwards;
}
.exchange-toast-inner {
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 6px 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(2, 132, 199, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.exchange-stop-name {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.exchange-metrics-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-num, var(--font-mono, monospace));
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}
.metric-pill.boarding {
  color: #34d399;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.metric-pill.alighting {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.metric-pill.revenue {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.pill-icon {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pill-lbl {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.85;
  text-transform: uppercase;
}
@keyframes exchangeToastPop {
  0% { transform: translateY(12px) scale(0.85); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes exchangeToastFade {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-16px) scale(0.92); opacity: 0; }
}

/* ==========================================================================
   DEPOTS & INTERACTION METRICS (РАЗДЕЛ ПАРКОВ И ДЕТАЛЬНЫЙ ВИД)
   ========================================================================== */
.depot-summary-banner {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.18), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.depot-summary-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #38bdf8;
  margin-bottom: 8px;
}
.depot-summary-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.depot-stat-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 6px 10px;
}
.depot-stat-box-lbl {
  font-size: 9px;
  color: #94a3b8;
  text-transform: uppercase;
}
.depot-stat-box-val {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  font-family: var(--font-mono, monospace);
  margin-top: 2px;
}
.depot-detail-header {
  margin-bottom: 14px;
}
.depot-back-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}
.depot-back-btn:hover {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}
.depot-section-title {
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 14px 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.depot-section-count {
  font-size: 11px;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
}

