/* =============================================================
   GESTURA — Gesture-based User Recognition for Automobiles
   Premium automotive UI · matte black / graphite · ambient-tinted accents
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0d10;
  --bg-grad-1: #0d1116;
  --bg-grad-2: #0a0d10;
  --surface: #12161b;
  --surface-2: #171d24;
  --surface-3: #1d242c;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef3f6;
  --text-dim: #a7b3bd;
  --text-faint: #6f7d88;
  --accent: #38e0d0;
  --accent-2: #22b8ad;
  --accent-soft: rgba(56, 224, 208, 0.14);
  --accent-glow: rgba(56, 224, 208, 0.35);
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, 0.16);
  --ok: #59e3a7;
  --warn: #ffc86b;
  --ambient: #38e0d0;
  /* Ambient transitions — smooth tint changes, no harsh flashes. */
  --amb-ease: 420ms cubic-bezier(0.4, 0, 0.2, 1);
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;
  --shadow-1: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 18px 50px rgba(0, 0, 0, 0.5);
  --sb-h: 54px;
  --dock-h: 78px;
  --font: "Segoe UI", "Inter", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="day"] {
  --bg: #e9edf1;
  --bg-grad-1: #f2f5f8;
  --bg-grad-2: #e4e9ee;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-2: rgba(248, 250, 252, 0.92);
  --surface-3: #eef2f6;
  --glass: rgba(10, 20, 30, 0.04);
  --glass-strong: rgba(10, 20, 30, 0.07);
  --border: rgba(10, 25, 40, 0.1);
  --border-strong: rgba(10, 25, 40, 0.18);
  --text: #131a21;
  --text-dim: #46535f;
  --text-faint: #6d7a86;
  --accent: #0aa396;
  --accent-2: #07877d;
  --accent-soft: rgba(10, 163, 150, 0.14);
  --shadow-1: 0 6px 24px rgba(20, 40, 60, 0.12);
  --shadow-2: 0 18px 50px rgba(20, 40, 60, 0.18);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
/* The hidden attribute must always win over component display rules. */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(56, 224, 208, 0.07), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(122, 168, 255, 0.06), transparent 55%),
    linear-gradient(160deg, var(--bg-grad-1), var(--bg-grad-2));
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
body::after {
  /* ambient lighting wash driven by --ambient */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1200px 700px at 50% 120%, color-mix(in srgb, var(--ambient) 14%, transparent), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.8;
  z-index: 0;
  transition: background var(--amb-ease);
}

/* ---------- Page-wide ambient lighting ----------
   The accent family (--accent, --accent-2, --accent-soft, --accent-glow) is
   derived from --ambient in JS, so every surface below automatically takes
   the selected ambient tint. These rules add the extra ambient washes on
   cards, borders, dock and overlays, plus smooth colour transitions. */
.card, .set-card, .widget, .nav-search-card, .playlist-card, .player-card {
  transition: border-color var(--amb-ease), box-shadow var(--amb-ease), background-color var(--amb-ease);
  border-color: color-mix(in srgb, var(--ambient) 16%, var(--border));
}
.card:hover, .widget:hover {
  border-color: color-mix(in srgb, var(--ambient) 34%, var(--border));
}
.dock {
  border-top: 1px solid color-mix(in srgb, var(--ambient) 22%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--ambient) 5%, var(--surface)), var(--surface));
  transition: border-color var(--amb-ease), background var(--amb-ease);
}
.dock-btn { transition: color var(--amb-ease), background var(--amb-ease); }
.dock-btn.active { color: var(--accent); background: var(--accent-soft); }
.dock-btn:hover { color: var(--accent); }
.statusbar {
  border-bottom: 1px solid color-mix(in srgb, var(--ambient) 18%, var(--border));
  transition: border-color var(--amb-ease);
}
.btn, .iconbtn, .sb-iconbtn, .back-btn, .seg-btn, .range, .switch {
  transition: border-color var(--amb-ease), background var(--amb-ease), color var(--amb-ease), box-shadow var(--amb-ease);
}
.drawer, .modal-card {
  transition: border-color var(--amb-ease), box-shadow var(--amb-ease);
  border-color: color-mix(in srgb, var(--ambient) 20%, var(--border-strong));
}
.range::-webkit-slider-thumb { transition: background var(--amb-ease), box-shadow var(--amb-ease); }
.range::-moz-range-thumb { transition: background var(--amb-ease), box-shadow var(--amb-ease); }
.nav-feedback.ok, .voice-status.listening { color: var(--accent); }

/* Voice control status (Navigation) */
.voice-status {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; margin: 6px 0 0;
  color: var(--text-dim);
}
.voice-status.listening { color: var(--accent); }
.voice-status.listening .ico { animation: voice-pulse 1.4s ease-in-out infinite; }
.voice-status.error, .voice-status.unsupported { color: var(--warn); }
.voice-status.heard { color: var(--text); }
@keyframes voice-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.noscript { padding: 40px; text-align: center; font-size: 18px; }

button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

/* icons */
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 24px; height: 24px; }
.ico-xl { width: 44px; height: 44px; stroke-width: 1.3; }

/* ---------- App shell (status bar never overlaps content) ---------- */
.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: var(--sb-h) minmax(0, 1fr) var(--dock-h);
  height: 100dvh;
  transition: filter 160ms linear;
}

/* ---------- Status bar ---------- */
.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.sb-group { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sb-brand {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; letter-spacing: 0.16em; font-size: 11.5px;
  color: var(--text-dim); text-transform: uppercase; white-space: nowrap;
}
.sb-brand .ico { color: var(--accent); }
.sb-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-dim); white-space: nowrap;
}
.sb-btn { transition: border-color 0.15s, background 0.15s, color 0.15s; }
.sb-btn:hover { border-color: var(--border-strong); color: var(--text); }
.chip-on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--text); }
.chip-on .ico { color: var(--accent); }
.chip-live { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.chip-locked { background: rgba(255, 200, 107, 0.16); border-color: rgba(255, 200, 107, 0.45); color: var(--warn); }
.sb-kv { font-variant-numeric: tabular-nums; }
.sb-sep { width: 1px; height: 12px; background: var(--border-strong); }
.sb-center { gap: 12px; }
.sb-time { font-size: 21px; font-weight: 650; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.sb-date { color: var(--text-dim); font-size: 12.5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot-off { background: var(--danger); }
.sb-iconbtn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--glass); border: 1px solid var(--border); color: var(--text-dim);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sb-iconbtn:hover { background: var(--glass-strong); color: var(--text); border-color: var(--border-strong); }
.badge-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  background: var(--danger); color: #fff;
  font-size: 10.5px; font-weight: 700; border-radius: 999px;
}

/* ---------- Main / pages ---------- */
.main { position: relative; min-height: 0; overflow: hidden; }
.page { position: absolute; inset: 0; display: none; flex-direction: column; min-height: 0; }
.page.active { display: flex; animation: page-in 0.24s ease; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-header {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px 10px;
  flex: none;
}
.back-btn {
  display: grid; place-items: center;
  width: 54px; height: 54px; flex: none;
  border-radius: 17px;
  background: var(--glass); border: 1px solid var(--border-strong);
  color: var(--text);
  box-shadow: var(--shadow-1);
  transition: background 0.15s, transform 0.12s, border-color 0.15s;
}
.back-btn:hover { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.back-btn:active { transform: scale(0.96); }
.page-title-wrap { min-width: 0; }
.page-title { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.page-sub { margin: 2px 0 0; color: var(--text-faint); font-size: 12.5px; }
.page-header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.page-body { flex: 1; min-height: 0; overflow: auto; padding: 6px 20px 20px; }

.sim-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255, 200, 107, 0.15); border: 1px solid rgba(255, 200, 107, 0.4);
  color: var(--warn);
}

/* ---------- Dock (persistent Home + modules) ---------- */
.dock {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px; padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.dock-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 1px solid transparent; border-radius: 16px;
  background: transparent; color: var(--text-faint);
  font-size: 11.5px; letter-spacing: 0.05em; font-weight: 600;
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.12s;
  min-height: 58px;
}
.dock-btn:hover { color: var(--text); background: var(--glass); }
.dock-btn:active { transform: scale(0.97); }
.dock-btn.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: inset 0 0 22px color-mix(in srgb, var(--accent) 10%, transparent);
}

/* ---------- Shared widgets / cards ---------- */
.widget, .set-card, .nav-card, .player-card, .playlist-card, .phone-col, .auto-card {
  background: linear-gradient(170deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-2) 88%, transparent));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(10px);
  padding: 16px;
  min-width: 0;
}
.widget-head, .card-head, .modal-head, .drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 12px;
}
.widget-head h2, .card-head h3, .drawer-head h2, .modal-head h2 {
  margin: 0; font-size: 13.5px; font-weight: 650; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-dim);
  display: flex; align-items: center; gap: 8px;
}
.widget-head h2 .ico, .card-head h3 .ico, .drawer-head h2 .ico, .modal-head h2 .ico { color: var(--accent); }
.card-head-actions { display: flex; align-items: center; gap: 8px; }

.ghost-link {
  display: inline-flex; align-items: center; gap: 3px;
  background: none; border: none; color: var(--accent);
  font-size: 12.5px; font-weight: 600; padding: 6px 8px; border-radius: 9px;
}
.ghost-link:hover { background: var(--accent-soft); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 42px; padding: 0 16px;
  border-radius: 13px; border: 1px solid var(--border-strong);
  background: var(--glass); color: var(--text);
  font-size: 14px; font-weight: 600;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:hover { background: var(--glass-strong); border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(140deg, var(--accent), var(--accent-2)); border-color: transparent; color: #04211e; }
[data-theme="day"] .btn-primary { color: #ffffff; }
.btn-primary:hover { box-shadow: 0 8px 24px var(--accent-glow); background: linear-gradient(140deg, var(--accent), var(--accent-2)); }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 50%, transparent); color: var(--danger); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 26%, transparent); border-color: var(--danger); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 11px; }
.btn-block { width: 100%; margin-top: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn-row-center { justify-content: center; }

.iconbtn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 13px; border: 1px solid var(--border);
  background: var(--glass); color: var(--text-dim);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.iconbtn:hover { background: var(--glass-strong); color: var(--text); border-color: var(--border-strong); }
.iconbtn:active { transform: scale(0.95); }
.iconbtn:disabled { opacity: 0.4; cursor: not-allowed; }
.iconbtn-accent { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); }
.iconbtn-accent:hover { background: color-mix(in srgb, var(--accent) 26%, transparent); color: var(--text); }
.iconbtn-lg { width: 58px; height: 58px; border-radius: 50%; }
.iconbtn-xs { width: 26px; height: 26px; border-radius: 8px; }
.iconbtn.on { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  font-size: 12px; font-weight: 600; color: var(--text);
}
.pill-dim { background: var(--glass); border-color: var(--border); color: var(--text-dim); font-weight: 500; }
.fineprint { color: var(--text-faint); font-size: 11.5px; margin: 8px 0 0; line-height: 1.5; }

/* ranges */
.range {
  -webkit-appearance: none; appearance: none;
  flex: 1; min-width: 0; height: 34px;
  background: transparent; cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 7px; border-radius: 99px;
  background: linear-gradient(to right, var(--accent) var(--fill, 50%), var(--glass-strong) var(--fill, 50%));
  border: 1px solid var(--border);
}
.range::-moz-range-track { height: 7px; border-radius: 99px; background: var(--glass-strong); border: 1px solid var(--border); }
.range::-moz-range-progress { height: 7px; border-radius: 99px; background: var(--accent); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; margin-top: -7.5px;
  border-radius: 50%; background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s;
}
.range::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.range:hover::-webkit-slider-thumb { transform: scale(1.12); }
.range.dragging::-webkit-slider-thumb { box-shadow: 0 0 0 7px var(--accent-soft); }

.widget-slider { display: flex; align-items: center; gap: 10px; margin: 9px 0; color: var(--text-dim); }
.widget-slider .slider-ico-text { font-size: 12.5px; width: 84px; flex: none; color: var(--text-dim); }
.range-val { font-size: 12px; color: var(--text-dim); width: 44px; text-align: right; font-variant-numeric: tabular-nums; flex: none; }

/* fields */
.field { margin: 10px 0; }
.field label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; }
.select, #nav-search, .search-input {
  width: 100%; min-height: 42px; padding: 0 12px;
  background: var(--glass); border: 1px solid var(--border-strong);
  border-radius: 12px; color: var(--text);
}
.select:hover, #nav-search:hover { border-color: var(--accent); }
.color-input { width: 100%; height: 42px; padding: 3px; background: var(--glass); border: 1px solid var(--border-strong); border-radius: 12px; }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 2px; font-size: 14px; color: var(--text);
  border-bottom: 1px dashed var(--border);
}
.switch-row:last-of-type { border-bottom: none; }
.switch {
  -webkit-appearance: none; appearance: none;
  width: 46px; height: 26px; flex: none;
  border-radius: 99px; background: var(--glass-strong);
  border: 1px solid var(--border-strong); position: relative;
  transition: background 0.18s, border-color 0.18s; cursor: pointer;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--text-dim); transition: transform 0.18s, background 0.18s;
}
.switch:checked { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.switch:checked::after { transform: translateX(20px); background: var(--accent); }

.seg { display: flex; gap: 4px; padding: 4px; background: var(--glass); border: 1px solid var(--border); border-radius: 13px; margin: 10px 0; }
.seg-btn {
  flex: 1; min-height: 34px; border: none; border-radius: 10px;
  background: transparent; color: var(--text-dim); font-size: 13px; font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--accent-soft); color: var(--accent); }

.swatch-row { display: flex; gap: 8px; margin: 10px 0; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--sw); border: 2px solid transparent;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35), 0 0 14px color-mix(in srgb, var(--sw) 45%, transparent);
  transition: transform 0.12s, border-color 0.15s, box-shadow 0.3s;
}
.swatch:hover { transform: scale(1.1); }
.swatch.active { border-color: #fff; transform: scale(1.08); }

.check-row { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-dim); padding: 6px 0; cursor: pointer; }
.check-row input { accent-color: var(--accent); width: 17px; height: 17px; }

/* ---------- Home dashboard ---------- */
.dash {
  display: grid; gap: 14px; padding: 6px 2px 2px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(170px, auto);
  align-content: start;
}
.widget { display: flex; flex-direction: column; }
.widget-clock { grid-row: span 1; justify-content: center; text-align: left;
  background:
    radial-gradient(400px 200px at 20% 0%, color-mix(in srgb, var(--ambient) 14%, transparent), transparent 70%),
    linear-gradient(170deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-2) 88%, transparent));
}
.widget-map { grid-row: span 2; }
.clock-time { font-size: clamp(42px, 4.6vw, 64px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-date { margin-top: 6px; color: var(--text-dim); font-size: 15px; }
.clock-sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.now-playing { display: flex; gap: 14px; align-items: center; flex: 1; min-height: 0; }
.np-meta { min-width: 0; flex: 1; }
.np-title { font-size: 17px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist { color: var(--text-faint); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-controls { display: flex; gap: 8px; margin-top: 10px; }

.art {
  display: grid; place-items: center; flex: none;
  border-radius: var(--r-md);
  background: linear-gradient(140deg, color-mix(in srgb, var(--ambient) 30%, #10161c), #0c1116 70%);
  border: 1px solid var(--border-strong);
  color: var(--accent); overflow: hidden; position: relative;
  background-size: cover; background-position: center;
}
.art-sm { width: 76px; height: 76px; }
.art-lg { width: clamp(140px, 16vw, 210px); height: clamp(140px, 16vw, 210px); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.art.has-cover .ico { display: none; }

.home-map { flex: 1; min-height: 150px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface-3); }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.map-dest { font-size: 13px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.avatar-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.avatar {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  font-weight: 700; font-size: 16px; color: #06201d;
  background: linear-gradient(140deg, var(--av, var(--accent)), color-mix(in srgb, var(--av, var(--accent)) 55%, #000));
  border: 2px solid color-mix(in srgb, var(--av, var(--accent)) 60%, transparent);
  cursor: pointer; transition: transform 0.12s;
}
.avatar:hover { transform: scale(1.06); }
.avatar-xl { width: 92px; height: 92px; font-size: 34px; cursor: default; margin: 0 auto; }
.avatar-btn { background: none; border: none; padding: 0; }

.mini-list { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; min-height: 0; }
.mini-list li { display: flex; align-items: center; gap: 8px; padding: 7px 4px; font-size: 13px; color: var(--text-dim); border-bottom: 1px dashed var(--border); }
.mini-list li:last-child { border-bottom: none; }
.mini-list .mini-ico { color: var(--accent); flex: none; }
.mini-list .missed { color: var(--danger); }
.mini-time { margin-left: auto; font-size: 11px; color: var(--text-faint); white-space: nowrap; }

.climate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.climate-cell { background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 9px 8px; text-align: center; }
.climate-k { display: block; font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.climate-v { display: block; margin-top: 3px; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.climate-bar { height: 6px; border-radius: 99px; background: var(--glass-strong); margin-top: 12px; overflow: hidden; }
.climate-fill { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--accent), var(--ambient)); transition: width 0.3s ease; border-radius: 99px; }

.status-rows { display: flex; flex-direction: column; gap: 7px; }
.status-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 7px 10px; background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-sm); }
.status-k { display: flex; align-items: center; gap: 7px; color: var(--text-dim); }
.status-k .ico { color: var(--accent); }
.status-v { font-weight: 650; font-size: 12.5px; }
.status-v.ok { color: var(--ok); }
.status-v.warn { color: var(--warn); }
.status-v.err { color: var(--danger); }
.status-actions { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.notif-mini { list-style: none; margin: 10px 0 0; padding: 0; overflow: auto; max-height: 120px; }
.notif-mini li { font-size: 12px; color: var(--text-dim); padding: 5px 2px; border-bottom: 1px dashed var(--border); }

/* ---------- Media ---------- */
.media-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.player-card { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.player-art-wrap { position: relative; }
.player-art-wrap .pill { position: absolute; left: 10px; top: 10px; z-index: 2; }
.player-meta { flex: 1; min-width: 260px; }
.player-title { margin: 0; font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { margin: 3px 0 0; color: var(--text-dim); font-size: 14px; }
.seek-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.time { font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; width: 42px; flex: none; }
.time:last-child { text-align: right; }
.transport { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.mini-dot { position: absolute; top: 6px; right: 6px; font-size: 9px; font-weight: 800; background: var(--accent); color: #04211e; border-radius: 99px; padding: 1px 4px; }
#btn-repeat { position: relative; }
.vol-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.player-status { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.status-pill { font-size: 12px; padding: 5px 11px; border-radius: 99px; background: var(--glass); border: 1px solid var(--border); color: var(--text-dim); }
.status-err { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 50%, transparent); color: var(--danger); }

.playlist-card { min-height: 300px; display: flex; flex-direction: column; }
.track-list { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; min-height: 120px; max-height: 52vh; }
.track-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 10px; border-radius: var(--r-sm);
  cursor: pointer; border: 1px solid transparent;
  transition: background 0.13s, border-color 0.13s;
}
.track-item:hover { background: var(--glass); }
.track-item.active { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.track-num { width: 22px; text-align: center; font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; flex: none; }
.track-info { min-width: 0; flex: 1; }
.track-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-sub { font-size: 11.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-remove { width: 34px; height: 34px; border-radius: 9px; border: none; background: transparent; color: var(--text-faint); display: grid; place-items: center; }
.track-remove:hover { background: var(--danger-soft); color: var(--danger); }

/* empty states */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-dim); }
.empty-state .empty-art, .empty-state .ico-xl { color: var(--accent); opacity: 0.85; }
.empty-state h2 { margin: 14px 0 6px; color: var(--text); font-size: 20px; }
.empty-state p { margin: 0 auto 18px; max-width: 460px; font-size: 14px; line-height: 1.6; color: var(--text-faint); }
.empty-state .btn { margin: 6px 4px; }
.empty-sm { padding: 18px 8px; }
.empty-sm p { margin-bottom: 10px; }
.empty-inline { color: var(--text-faint); font-size: 13px; padding: 8px 2px; }

/* ---------- Navigation ---------- */
.nav-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 14px; align-items: stretch; }
.nav-side { display: flex; flex-direction: column; gap: 12px; overflow: auto; max-height: 100%; padding-right: 2px; }
.nav-search-card, .nav-card { background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-1); }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; min-width: 0; }
.nav-feedback { font-size: 12.5px; color: var(--text-dim); min-height: 17px; margin: 9px 0 4px; }
.nav-feedback.err { color: var(--danger); }
.nav-feedback.ok { color: var(--ok); }
.result-list, .place-list { list-style: none; margin: 0; padding: 0; }
.result-item, .place-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 9px; border-radius: var(--r-sm); cursor: pointer;
  font-size: 13px; color: var(--text-dim);
  border: 1px solid transparent;
  transition: background 0.13s;
}
.result-item:hover, .place-item:hover { background: var(--glass); border-color: var(--border); }
.result-item .ico, .place-item .ico { color: var(--accent); flex: none; }
.result-item span, .place-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-item .sub { display: block; font-size: 11px; color: var(--text-faint); }
.place-remove { margin-left: auto; }
.nav-dest-name { margin: 0; font-size: 15px; font-weight: 650; line-height: 1.4; }
.route-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.route-cell { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: var(--r-sm); padding: 8px 10px; }
.route-k { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.route-v { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

.nav-map-wrap { position: relative; min-height: 380px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-1); }
.map { position: absolute; inset: 0; background: var(--surface-3); }
.map-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center;
  background: color-mix(in srgb, var(--surface) 94%, transparent); padding: 24px;
}
.map-fallback .ico-xl { color: var(--warn); }
.map-fallback h3 { margin: 6px 0 0; }
.map-fallback p { color: var(--text-faint); font-size: 13px; max-width: 420px; line-height: 1.6; margin: 0 0 8px; }

.leaflet-container { background: var(--surface-3); font-family: var(--font); }
.leaflet-dark-tiles { filter: brightness(0.82) saturate(0.85) contrast(1.05); }
.leaflet-bar a { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.leaflet-bar a:hover { background: var(--surface-3); color: var(--accent); }
.leaflet-popup-content-wrapper, .leaflet-tip { background: var(--surface-2); color: var(--text); border-radius: 10px; box-shadow: var(--shadow-1); }
.leaflet-popup-tip { background: var(--surface-2); }
.leaflet-control-attribution { background: rgba(0, 0, 0, 0.45) !important; color: #cfd6dc !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--accent) !important; }

/* asset-free markers (no default icon images needed) */
.apex-marker-wrap { background: none; border: none; }
.apex-marker {
  display: block; width: 18px; height: 18px; border-radius: 50% 50% 50% 4px;
  background: var(--accent); transform: rotate(-45deg);
  border: 2px solid #04211e; box-shadow: 0 0 14px var(--accent-glow);
}
.apex-marker-dest { background: #ffc86b; box-shadow: 0 0 14px rgba(255, 200, 107, 0.5); }
.map-mini-fallback {
  display: grid; place-items: center; height: 100%; padding: 14px;
  text-align: center; font-size: 12.5px; color: var(--text-faint);
}

/* ---------- Phone ---------- */
.phone-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.phone-layout.detail-open { grid-template-columns: 1fr 1fr 1fr; }
.phone-col { display: flex; flex-direction: column; min-height: 200px; }
.contact-list { display: flex; flex-direction: column; gap: 6px; overflow: auto; max-height: 54vh; }
.contact-row {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px;
  border-radius: var(--r-md); border: 1px solid transparent; cursor: pointer;
  background: var(--glass); transition: border-color 0.13s, background 0.13s;
}
.contact-row:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--glass-strong); }
.contact-meta { min-width: 0; flex: 1; }
.contact-name { font-size: 14.5px; font-weight: 650; }
.contact-num { font-size: 12px; color: var(--text-faint); }
.contact-detail { text-align: center; padding: 8px 0; }
.contact-detail h2 { margin: 14px 0 2px; }

.call-list { list-style: none; margin: 0; padding: 0; overflow: auto; max-height: 34vh; }
.call-row { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.call-row:last-child { border-bottom: none; }
.call-kind { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-faint); }
.call-kind.missed { color: var(--danger); }
.call-kind.accepted { color: var(--ok); }
.call-kind.rejected { color: var(--warn); }
.call-row .who { font-weight: 600; }
.call-row .when { margin-left: auto; font-size: 11px; color: var(--text-faint); white-space: nowrap; }

.auto-card { margin-top: 14px; }
.danger-zone { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }

/* ---------- Settings ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.widget-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }

/* ---------- Drawers (quick / notifications / diagnostics) ---------- */
.drawer {
  position: fixed; top: calc(var(--sb-h) + 8px); right: 10px; bottom: calc(var(--dock-h) + 8px);
  width: min(370px, calc(100vw - 20px));
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); backdrop-filter: blur(18px);
  z-index: 60; display: flex; flex-direction: column;
  animation: drawer-in 0.22s ease;
}
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { padding: 14px 16px 10px; margin: 0; border-bottom: 1px solid var(--border); }
.drawer-head-actions { display: flex; align-items: center; gap: 8px; }
.drawer-body { padding: 14px 16px; overflow: auto; }

.diag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.diag-cell { background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 10px; }
.diag-k { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); }
.diag-v { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; word-break: break-word; }

.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-item { display: flex; gap: 10px; padding: 11px 4px; border-bottom: 1px dashed var(--border); }
.notif-item .ico { color: var(--accent); flex: none; margin-top: 2px; }
.notif-item.warn .ico { color: var(--warn); }
.notif-item.err .ico { color: var(--danger); }
.notif-title { font-size: 13.5px; font-weight: 650; }
.notif-body { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; margin-top: 2px; }
.notif-time { font-size: 11px; color: var(--text-faint); margin-top: 3px; }

/* ---------- Modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 65;
  display: grid; place-items: center; padding: 20px;
  background: rgba(4, 7, 9, 0.66); backdrop-filter: blur(6px);
  animation: fade-in 0.18s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  width: min(480px, 100%); max-height: 88dvh; overflow: auto;
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  border: 1px solid var(--border-strong); border-radius: 26px;
  box-shadow: var(--shadow-2); padding: 26px; text-align: center;
  animation: modal-in 0.22s ease;
}
.modal-wide .modal-card { width: min(880px, 100%); text-align: left; }
@keyframes modal-in { from { transform: translateY(14px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-ico { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 24px; background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.modal-card h2 { margin: 0 0 8px; font-size: 21px; }
.modal-card p { color: var(--text-dim); font-size: 14px; line-height: 1.65; }
.bullet-list { text-align: left; color: var(--text-dim); font-size: 13.5px; line-height: 1.9; margin: 12px auto; max-width: 330px; padding-left: 20px; }
.modal-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }

.gesture-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 6px 0 16px; }
.gesture-card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 13px; }
.gesture-card .gc-head { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 14px; }
.gesture-card .gc-head .ico { color: var(--accent); }
.gesture-card .gc-desc { font-size: 12.5px; color: var(--text-faint); line-height: 1.55; margin-top: 6px; }
.gesture-card .gc-hold { font-size: 11px; color: var(--warn); margin-top: 6px; display: inline-block; }
.practice-box { background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; }
.practice-box h3 { margin: 0 0 4px; font-size: 15px; }
.check-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.check-list li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-faint); padding: 6px 9px; background: var(--glass); border: 1px solid var(--border); border-radius: 99px; }
.check-list li.done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.check-list li.done::before { content: "✓"; font-weight: 800; }
.check-list li::before { content: "○"; }

/* ---------- Call overlays ---------- */
.call-overlay {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center; padding: 20px;
  background: radial-gradient(700px 500px at 50% 30%, rgba(56, 224, 208, 0.14), transparent 70%), rgba(4, 7, 9, 0.82);
  backdrop-filter: blur(10px);
  animation: fade-in 0.2s ease;
}
.call-overlay-dark { background: radial-gradient(700px 500px at 50% 30%, rgba(255, 107, 107, 0.12), transparent 70%), rgba(4, 7, 9, 0.86); }
.call-card {
  width: min(430px, 100%); text-align: center;
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  border: 1px solid var(--border-strong); border-radius: 30px;
  padding: 28px 24px; box-shadow: var(--shadow-2);
  animation: modal-in 0.25s ease;
}
.sim-banner {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--warn); background: rgba(255, 200, 107, 0.14);
  border: 1px solid rgba(255, 200, 107, 0.4); border-radius: 99px;
  padding: 5px 12px; margin-bottom: 18px;
}
.call-card h2 { margin: 16px 0 2px; font-size: 26px; }
.call-state { color: var(--text-dim); font-size: 14px; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
.gesture-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 99px; padding: 6px 12px; margin-top: 6px; }
.call-actions { display: flex; justify-content: center; gap: 34px; margin-top: 24px; }
.callbtn {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  border: none; background: none; color: var(--text-dim);
  font-size: 13px; font-weight: 650;
}
.callbtn .ico {
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center; padding: 18px;
  transition: transform 0.13s, box-shadow 0.2s;
}
.callbtn:hover .ico { transform: scale(1.07); }
.callbtn-accept .ico { background: linear-gradient(140deg, var(--ok), #2fbf83); color: #04231a; box-shadow: 0 10px 30px rgba(89, 227, 167, 0.4); }
.callbtn-accept .ico, .callbtn-reject .ico, .callbtn-ghost .ico { stroke-width: 1.6; }
.callbtn-reject .ico { background: linear-gradient(140deg, var(--danger), #d64545); color: #fff; box-shadow: 0 10px 30px rgba(255, 107, 107, 0.35); }
.callbtn-ghost .ico { background: var(--glass-strong); border: 1px solid var(--border-strong); color: var(--text); }
.ringing .callbtn-accept .ico { animation: ring-pulse 1.4s ease-in-out infinite; }
@keyframes ring-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 14px; bottom: calc(var(--dock-h) + 14px); z-index: 85; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 9px;
  min-width: 240px; max-width: 340px;
  padding: 12px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--surface-2) 97%, transparent);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-2);
  font-size: 13.5px; animation: toast-in 0.22s ease;
}
.toast .ico { color: var(--accent); flex: none; }
.toast.err .ico { color: var(--danger); }
.toast.warn .ico { color: var(--warn); }
@keyframes toast-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.out { opacity: 0; transform: translateX(30px); transition: all 0.3s ease; }

/* ---------- Gesture layer ---------- */
#gesture-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 80;
}
.camera-preview {
  /* Lives inside the diagnostics drawer — never a floating PiP over the UI. */
  position: static; width: 100%; z-index: auto;
  margin-top: 10px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--shadow-1);
}
.cam-head { display: flex; align-items: center; gap: 6px; padding: 7px 9px; font-size: 11.5px; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.cam-head .iconbtn-xs { margin-left: auto; }
.camera-preview video { display: block; width: 100%; height: 150px; object-fit: cover; transform: scaleX(-1); background: #000; }
.cam-foot { padding: 6px 9px; font-size: 11px; color: var(--text-faint); border-top: 1px solid var(--border); }
.no-hand-hint {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--dock-h) + 16px); z-index: 76;
  display: flex; align-items: center; gap: 8px;
  background: rgba(10, 13, 16, 0.9); border: 1px solid var(--border-strong);
  color: var(--text-dim); font-size: 13px;
  padding: 10px 16px; border-radius: 99px; box-shadow: var(--shadow-2);
}

/* gesture hover feedback on interactive elements */
.g-hover { box-shadow: 0 0 0 2px var(--accent), 0 0 22px var(--accent-glow) !important; }
.g-pressed { transform: scale(0.97); }

/* ---------- Responsive ---------- */
@media (max-width: 1250px) {
  .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid { grid-template-columns: 1fr; }
  .nav-layout { grid-template-columns: 280px minmax(0, 1fr); }
  .phone-layout.detail-open { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(320px, 1fr); }
  .nav-map-wrap { min-height: 320px; }
  .phone-layout, .phone-layout.detail-open { grid-template-columns: 1fr; }
  .sb-date { display: none; }
}
@media (max-width: 720px) {
  .dash { grid-template-columns: 1fr; }
  .widget-map { grid-row: span 1; }
  .sb-chip-vehicle { display: none; }
  .page-header { flex-wrap: wrap; }
  .page-header-actions { margin-left: 0; width: 100%; }
  .player-card { flex-direction: column; align-items: stretch; text-align: center; }
  .art-lg { margin: 0 auto; }
  .seek-row, .vol-row { justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
[data-reduced-motion="true"] *, [data-reduced-motion="true"] *::before, [data-reduced-motion="true"] *::after {
  animation-duration: 0.001s !important; transition-duration: 0.001s !important;
}

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
*::-webkit-scrollbar-track { background: transparent; }
