/* ── Reset ─────────────────────────────────────────────────────────── */
*,*:before,*:after { box-sizing: border-box; }
html, body, #root { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  background: #06091a;
  color: #c8d1e6;
  -webkit-font-smoothing: antialiased;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: -0.005em;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; background: none; border: 0; outline: none; }
em, i { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
.mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-feature-settings: 'tnum'; letter-spacing: -0.01em; }

/* ── Background mesh ───────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(1100px 700px at 12% 6%, rgba(45,107,255,.18), transparent 60%),
    radial-gradient(900px 600px at 92% 22%, rgba(226,88,34,.10), transparent 55%),
    radial-gradient(800px 500px at 70% 96%, rgba(45,107,255,.10), transparent 55%),
    radial-gradient(600px 400px at 4% 88%, rgba(169,139,255,.08), transparent 55%),
    linear-gradient(180deg, #0A0F1F 0%, #070b1a 100%);
  pointer-events: none;
  z-index: -1;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(circle at 50% 30%, #000 0, transparent 80%);
}

/* ── Glass primitive ───────────────────────────────────────────────── */
.glass {
  background: linear-gradient(180deg, rgba(20,28,52,.55), rgba(12,17,36,.7));
  border: 1px solid rgba(120,140,200,.12);
  border-radius: 14px;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 12px 40px -16px rgba(0,0,0,.6);
}

/* ── Shell layout ──────────────────────────────────────────────────── */
.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100vh;
  min-height: 760px;
}
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.content {
  flex: 1;
  overflow-y: auto;
  padding: 22px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.content::-webkit-scrollbar { width: 8px; }
.content::-webkit-scrollbar-thumb { background: rgba(120,140,200,.15); border-radius: 4px; }

/* ── Sidebar ───────────────────────────────────────────────────────── */
.sidebar {
  border-right: 1px solid rgba(120,140,200,.08);
  background: linear-gradient(180deg, rgba(10,15,31,.6), rgba(7,11,26,.85));
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  padding: 16px 12px 12px;
  gap: 14px;
  position: relative;
  z-index: 2;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #2D6BFF, #1845c4);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -4px #2D6BFF80, inset 0 1px 0 rgba(255,255,255,.2);
  position: relative;
}
.brand-mark span {
  width: 12px; height: 12px;
  background: conic-gradient(from 30deg, #fff 0 25%, transparent 25% 50%, #fff 50% 75%, transparent 75%);
  border-radius: 2px;
}
.brand-text { line-height: 1.15; }
.brand-name { font-weight: 600; font-size: 13.5px; letter-spacing: -0.01em; color: #e5ebf7; }
.brand-name-dim { color: #6e7c9c; font-weight: 500; }
.brand-org { font-size: 10.5px; color: #6e7c9c; font-family: 'JetBrains Mono', monospace; margin-top: 2px; }

.org-switcher {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(120,140,200,.1);
}
.os-dot { width: 8px; height: 8px; border-radius: 50%; background: #2D6BFF; box-shadow: 0 0 12px #2D6BFF; flex: 0 0 auto; }
.os-mid { flex: 1; min-width: 0; line-height: 1.2; }
.os-line1 { font-size: 11.5px; color: #c8d1e6; }
.os-line2 { font-size: 10px; color: #6e7c9c; margin-top: 2px; }

.nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.nav::-webkit-scrollbar { width: 4px; }
.nav::-webkit-scrollbar-thumb { background: rgba(120,140,200,.12); }
.nav-head {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: 7px;
  font-size: 12px; color: #a4b0cc;
  cursor: pointer;
  transition: background .12s;
}
.nav-head:hover { background: rgba(255,255,255,.03); color: #e5ebf7; }
.nav-group.open .nav-head { color: #e5ebf7; }
.nav-sub { padding: 2px 0 6px 10px; display: flex; flex-direction: column; gap: 1px; }
.nav-sub-item {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 12px 6px 14px;
  border-radius: 6px;
  font-size: 12px; color: #8b95b4;
  cursor: pointer;
  position: relative;
  transition: background .12s, color .12s;
}
.nav-bullet {
  width: 4px; height: 4px; border-radius: 50%;
  background: #4a557a;
  flex: 0 0 auto;
}
.nav-sub-item:hover { color: #cfd6ec; background: rgba(255,255,255,.025); }
.nav-sub-item.active {
  color: #e5ebf7;
  background: linear-gradient(90deg, rgba(45,107,255,.18), rgba(45,107,255,.04));
  border: 1px solid rgba(45,107,255,.28);
  padding: 5px 12px 5px 13px;
}
.nav-sub-item.active .nav-bullet { background: #2D6BFF; box-shadow: 0 0 8px #2D6BFF; }
.nav-active-dot { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: #2D6BFF; }

.sb-foot { border-top: 1px solid rgba(120,140,200,.08); padding-top: 10px; }
.sb-user {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px;
}
.sb-avatar {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #E25822, #b3401a);
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 600; color: #fff;
  letter-spacing: 0;
}
.sb-name { font-size: 12px; color: #e5ebf7; font-weight: 500; line-height: 1.1; }
.sb-role { font-size: 10.5px; color: #6e7c9c; margin-top: 2px; }

/* ── Topbar ────────────────────────────────────────────────────────── */
.topbar {
  height: 52px;
  border-bottom: 1px solid rgba(120,140,200,.08);
  background: linear-gradient(180deg, rgba(10,15,31,.65), rgba(10,15,31,.4));
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex: 0 0 auto;
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.crumb { color: #8b95b4; }
.crumb-active { color: #e5ebf7; font-weight: 500; }
.crumb-tag {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2D6BFF;
  border: 1px solid #2D6BFF55;
  background: #2D6BFF15;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  position: relative;
}
.crumb-tag::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #2D6BFF;
  box-shadow: 0 0 8px #2D6BFF;
  margin-right: 5px;
  vertical-align: middle;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .4; } }

.topbar-tools { display: flex; align-items: center; gap: 12px; }
.tb-search {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(120,140,200,.1);
  width: 280px;
}
.tb-search input { flex: 1; font-size: 12px; color: #c8d1e6; }
.tb-search input::placeholder { color: #6e7c9c; }
.kbd {
  font-size: 10px;
  color: #6e7c9c;
  background: rgba(255,255,255,.04);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(120,140,200,.15);
}
.tb-btn {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(120,140,200,.1);
  background: rgba(255,255,255,.025);
  color: #a4b0cc;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.tb-bell-dot {
  position: absolute; top: 6px; right: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #E25822;
  box-shadow: 0 0 8px #E25822;
}
.tb-divider { width: 1px; height: 22px; background: rgba(120,140,200,.12); }
.tb-clock { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #8b95b4; }
.tb-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 1.6s ease-in-out infinite;
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.hero-title {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #f1f4fb;
  margin: 0;
  line-height: 1.05;
}
.hero-title em {
  font-size: 32px;
  color: #6F9BFF;
  letter-spacing: -0.01em;
  margin-left: 3px;
}
.hero-sub {
  margin-top: 8px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
  color: #8b95b4;
}
.hero-sub b { color: #e5ebf7; font-weight: 600; }
.hs-route b { color: #6F9BFF; }
.hs-rep b { color: #FF7A33; }
.hs-to b { color: #FFD261; }
.dot-sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: #4a557a;
}

.hero-tools { display: flex; align-items: center; gap: 12px; }
.seg {
  display: flex;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(120,140,200,.1);
  border-radius: 9px;
  padding: 3px;
}
.seg-btn {
  padding: 6px 14px;
  font-size: 12px;
  color: #8b95b4;
  border-radius: 6px;
  transition: all .15s;
}
.seg-btn:hover { color: #cfd6ec; }
.seg-btn.active {
  background: linear-gradient(180deg, rgba(45,107,255,.22), rgba(45,107,255,.1));
  color: #e5ebf7;
  border: 1px solid rgba(45,107,255,.4);
  margin: -1px;
}

.cta-grad {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2D6BFF 0%, #1845c4 100%);
  color: #fff;
  font-weight: 500;
  font-size: 12.5px;
  box-shadow:
    0 8px 24px -8px rgba(45,107,255,.6),
    inset 0 1px 0 rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .12s, box-shadow .12s;
}
.cta-grad:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(45,107,255,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.cta-sm { padding: 7px 12px; font-size: 11.5px; }

/* ── KPI strip ─────────────────────────────────────────────────────── */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kpi-tile {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kpi-top { display: flex; justify-content: space-between; align-items: center; }
.kpi-k { font-size: 11px; color: #8b95b4; text-transform: uppercase; letter-spacing: 0.04em; }
.kpi-aux { font-size: 10.5px; color: #6e7c9c; }
.kpi-mid { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.kpi-v { font-size: 26px; font-weight: 500; color: #f1f4fb; letter-spacing: -0.02em; font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.kpi-u { font-size: 12px; color: #6e7c9c; margin-right: auto; }
.spark { margin-left: auto; opacity: .9; }

/* ── Main grid ─────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  gap: 16px;
  align-items: stretch;
}
.col-l, .col-r { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ── Map ───────────────────────────────────────────────────────────── */
.map {
  position: relative;
  height: 580px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.map-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

.map-chips {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  display: flex; gap: 6px;
  flex-wrap: wrap;
  max-width: calc(100% - 130px);
}
.chip {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(10,15,31,.78);
  border: 1px solid rgba(120,140,200,.18);
  color: #a4b0cc;
  backdrop-filter: blur(8px);
}
.chip:hover { color: #e5ebf7; border-color: rgba(120,140,200,.3); }
.chip.on {
  background: linear-gradient(180deg, rgba(45,107,255,.25), rgba(45,107,255,.1));
  border-color: #2D6BFF80;
  color: #e5ebf7;
}
.chip-dot { width: 7px; height: 7px; border-radius: 50%; }
.chip-n { color: #6e7c9c; font-size: 10px; }
.chip.on .chip-n { color: #cfd6ec; }

.map-ctrls {
  position: absolute; right: 12px; top: 12px;
  z-index: 2;
  display: flex; flex-direction: column; gap: 1px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(10,15,31,.85);
  border: 1px solid rgba(120,140,200,.15);
  backdrop-filter: blur(8px);
}
.mc-btn {
  width: 30px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: #a4b0cc;
  border-bottom: 1px solid rgba(120,140,200,.1);
}
.mc-btn:last-child { border-bottom: 0; }
.mc-btn:hover { background: rgba(255,255,255,.05); color: #e5ebf7; }

.layers-btn {
  position: absolute;
  right: 12px; top: 76px;
  z-index: 2;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(10,15,31,.85);
  border: 1px solid rgba(120,140,200,.15);
  color: #a4b0cc;
  font-size: 11px;
  backdrop-filter: blur(8px);
}
.layers-btn:hover { color: #e5ebf7; }
.layers-pills {
  font-size: 9.5px;
  color: #6e7c9c;
  border-left: 1px solid rgba(120,140,200,.15);
  padding-left: 6px;
  margin-left: 2px;
}

.map-legend {
  position: absolute;
  bottom: 78px;
  left: 12px;
  z-index: 2;
  display: flex; align-items: center; gap: 8px;
  font-size: 9.5px;
  color: #6e7c9c;
  background: rgba(10,15,31,.7);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(120,140,200,.1);
  letter-spacing: 0.06em;
}
.ml-sep { width: 3px; height: 3px; border-radius: 50%; background: #4a557a; }

/* trip bar */
.trip-bar {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(10,15,31,.86);
  border: 1px solid rgba(120,140,200,.15);
  backdrop-filter: blur(10px);
}
.trip-play {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2D6BFF, #1845c4);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px -4px #2D6BFF80;
  flex: 0 0 auto;
}
.trip-meta { flex: 0 0 auto; min-width: 180px; }
.trip-title { font-size: 12px; color: #e5ebf7; font-weight: 500; }
.trip-sub { font-size: 10px; color: #6e7c9c; margin-top: 2px; }
.trip-track {
  flex: 1; height: 26px; position: relative;
  display: flex; align-items: center;
}
.trip-track::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 50%;
  height: 3px; transform: translateY(-50%);
  background: rgba(120,140,200,.15);
  border-radius: 2px;
}
.trip-fill {
  position: absolute; left: 0; top: 50%;
  width: 84%; height: 3px; transform: translateY(-50%);
  background: linear-gradient(90deg, #2D6BFF, #6F9BFF);
  border-radius: 2px;
  box-shadow: 0 0 10px #2D6BFF80;
}
.trip-stops { position: absolute; inset: 0; }
.trip-stop {
  position: absolute; top: 50%; transform: translate(-50%,-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #0a0f1f;
  border: 1.5px solid #6F9BFF;
}
.trip-handle {
  position: absolute;
  top: 50%; transform: translate(-50%,-50%);
}
.trip-handle-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #2D6BFF;
  box-shadow: 0 0 16px #2D6BFFcc, 0 2px 6px rgba(0,0,0,.5);
}
.trip-handle-time {
  position: absolute;
  top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 9.5px;
  background: #2D6BFF;
  color: #fff;
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
}
.trip-time { font-size: 11px; color: #cfd6ec; flex: 0 0 auto; }

/* ── List ──────────────────────────────────────────────────────────── */
.list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
}
.list-search {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(120,140,200,.12);
}
.list-search input { flex: 1; font-size: 12px; color: #c8d1e6; }
.list-search input::placeholder { color: #6e7c9c; }
.ls-filt {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: #8b95b4;
  border-radius: 5px;
  border: 1px solid rgba(120,140,200,.15);
}

.list-tabs { display: flex; gap: 4px; }
.lt {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  color: #8b95b4;
  border: 1px solid transparent;
  display: flex; align-items: center; gap: 6px;
}
.lt:hover { color: #cfd6ec; }
.lt.on {
  color: #e5ebf7;
  background: rgba(45,107,255,.12);
  border-color: rgba(45,107,255,.3);
}
.lt-n { font-size: 10px; color: #6e7c9c; }
.lt.on .lt-n { color: #6F9BFF; }

.list-rows {
  display: flex; flex-direction: column;
  gap: 4px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 2px;
}
.list-rows::-webkit-scrollbar { width: 4px; }
.list-rows::-webkit-scrollbar-thumb { background: rgba(120,140,200,.15); }
.lr {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-align: left;
  width: 100%;
  transition: background .12s, border-color .12s;
}
.lr:hover { background: rgba(255,255,255,.03); }
.lr.sel {
  background: linear-gradient(90deg, rgba(45,107,255,.16), rgba(45,107,255,.04));
  border-color: rgba(45,107,255,.32);
}
.lr-glyph {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  border: 1px solid;
  flex: 0 0 auto;
}
.lr-mid { flex: 1; min-width: 0; line-height: 1.2; }
.lr-line1 { display: flex; align-items: baseline; gap: 8px; }
.lr-model { font-size: 12.5px; color: #e5ebf7; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-plate { font-size: 10.5px; color: #8b95b4; }
.lr-line2 { font-size: 11px; color: #a4b0cc; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-driver { color: #cfd6ec; }
.lr-line3 { font-size: 10.5px; color: #6e7c9c; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-loc { color: #8b95b4; }

.lr-right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.lr-status {
  display: flex; align-items: center; gap: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  border: 1px solid;
  white-space: nowrap;
}
.lr-status-dot { width: 5px; height: 5px; border-radius: 50%; }
.lr-state { font-size: 10px; color: #6e7c9c; }

/* ── Vehicle Card ──────────────────────────────────────────────────── */
.card {
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1; min-height: 0;
}
.card-top { display: flex; gap: 12px; }
.card-photo {
  width: 110px; height: 70px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(120,140,200,.15);
  position: relative;
  flex: 0 0 auto;
  background: #0e1428;
}
.card-photo svg { display: block; width: 100%; height: 100%; }
.card-photo-tag {
  position: absolute;
  bottom: 4px; left: 4px;
  font-size: 7.5px;
  color: #6e7c9c;
  background: rgba(0,0,0,.5);
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.card-head { flex: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; min-width: 0; }
.card-head-l { min-width: 0; }
.card-title { font-size: 17px; color: #f1f4fb; font-weight: 500; letter-spacing: -0.015em; }
.card-subtitle { font-size: 11px; color: #6e7c9c; margin-top: 3px; }
.card-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid;
  white-space: nowrap;
}

.card-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.cki {
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(255,255,255,.022);
  border: 1px solid rgba(120,140,200,.1);
  display: flex; flex-direction: column; gap: 3px;
}
.cki-k { font-size: 9.5px; color: #6e7c9c; text-transform: uppercase; letter-spacing: 0.05em; }
.cki-v { font-size: 16px; color: #f1f4fb; font-weight: 500; font-family: 'JetBrains Mono', monospace; letter-spacing: -0.01em; white-space: nowrap; }
.cki-u { font-size: 10.5px; color: #6e7c9c; margin-left: 3px; font-weight: 400; }
.cki-aux { font-size: 9.5px; color: #6e7c9c; }

.card-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid rgba(120,140,200,.1);
  margin: 0 -2px;
}
.ct {
  padding: 7px 12px;
  font-size: 11.5px;
  color: #8b95b4;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
}
.ct:hover { color: #cfd6ec; }
.ct.on {
  color: #e5ebf7;
  border-bottom-color: #2D6BFF;
}

.card-body { flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; }
.card-body::-webkit-scrollbar { width: 4px; }
.card-body::-webkit-scrollbar-thumb { background: rgba(120,140,200,.15); }

.route-table { display: flex; flex-direction: column; }
.rt-row {
  display: grid;
  grid-template-columns: 50px 16px 1fr auto;
  gap: 10px;
  padding: 6px 0;
  align-items: flex-start;
}
.rt-time { font-size: 11px; color: #8b95b4; padding-top: 1px; }
.rt-rail { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; padding-top: 4px; }
.rt-dot { width: 9px; height: 9px; border-radius: 50%; background: #4a557a; border: 2px solid #0e1428; flex: 0 0 auto; z-index: 1; }
.rt-dot.rt-start { background: #4ade80; box-shadow: 0 0 8px #4ade8088; }
.rt-dot.rt-fuel { background: #FFD261; }
.rt-dot.rt-pay { background: #A98BFF; }
.rt-dot.rt-stop { background: #E25822; }
.rt-dot.rt-go { background: #6F9BFF; }
.rt-dot.rt-now { background: #2D6BFF; box-shadow: 0 0 12px #2D6BFF; width: 11px; height: 11px; }
.rt-line { width: 1px; flex: 1; background: rgba(120,140,200,.18); margin-top: 2px; min-height: 14px; }
.rt-mid { padding-top: 0; }
.rt-what { font-size: 12px; color: #e5ebf7; }
.rt-aux { font-size: 10.5px; color: #6e7c9c; margin-top: 2px; }
.rt-money { font-size: 11.5px; color: #FFD261; font-weight: 500; padding-top: 1px; }
.rt-row.now .rt-what { color: #6F9BFF; font-weight: 500; }
.rt-row.now .rt-time { color: #2D6BFF; font-weight: 500; }

.card-actions {
  display: flex; align-items: center; gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(120,140,200,.1);
}
.btn-ghost {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  color: #cfd6ec;
  border: 1px solid rgba(120,140,200,.18);
  background: rgba(255,255,255,.02);
}
.btn-ghost:hover { background: rgba(255,255,255,.04); border-color: rgba(120,140,200,.3); }
.ca-spacer { flex: 1; }
.ca-meta { font-size: 10px; color: #6e7c9c; }

/* ── Responsive guard ─────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .map { height: 480px; }
  .grid { grid-template-columns: 1fr; }
}
