/* ═══════════════════════════════════════════════════════════════════════
   DREV NETWORK — drev-refine.css
   Presentation layer. Loaded AFTER css/ev-network.css so it refines the
   existing system rather than replacing it.

   Goals:
     · one coherent typographic scale instead of ad-hoc inline font sizes
     · calmer, more confident business chrome (no perpetual float/glow)
     · legible drawer controls on the dark sheets
     · motion that respects prefers-reduced-motion
     · GPU-cheap: no infinite animations on backdrop-filtered surfaces
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Typographic scale (major third) */
  --fs-micro: 11px;
  --fs-small: 13px;
  --fs-body:  15px;
  --fs-lead:  17px;
  --fs-h3:    21px;
  --fs-h2:    28px;
  --fs-h1:    38px;

  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --sheet-bg:     rgba(9, 14, 24, 0.94);
  --sheet-card:   rgba(255, 255, 255, 0.045);
  --sheet-line:   rgba(255, 255, 255, 0.10);
  --sheet-fg:     #eef3fb;
  --sheet-fg-mid: rgba(226, 236, 250, 0.68);
  --sheet-fg-dim: rgba(226, 236, 250, 0.44);
}

/* The boot screen keeps its short status message; the progress bar was removed permanently. */
#boot-msg {
  font-family: var(--font-data);
  font-size: var(--fs-micro);
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(160, 200, 235, 0.44);
  margin-top: 14px;
  min-height: 1.2em;      /* stop the layout jumping between messages */
}

/* Intro skip control — was 400 characters of inline style */
#skip-commercial {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 8001;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(8, 12, 20, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-soft), background 0.2s, border-color 0.2s;
}
#skip-commercial.visible { opacity: 1; pointer-events: auto; }
#skip-commercial:hover {
  background: rgba(20, 28, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.45);
}

/* ══ 2. SIM CHROME ═════════════════════════════════════════════════════ */

#nav-bar {
  gap: 2px;
  padding: 5px 7px;
  border-radius: 10px;
  background: rgba(6, 11, 20, 0.72);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

.nav-btn {
  border-radius: 6px;
  letter-spacing: 1.1px;
  transition: color 0.14s var(--ease-soft),
              background 0.14s var(--ease-soft),
              border-color 0.14s var(--ease-soft);
}
.nav-btn:focus-visible,
.fleet-item:focus-visible,
#spawn-btn:focus-visible,
.cascade-action-btn:focus-visible,
#cascade-main-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#fleet-rail {
  gap: 3px;
  padding: 7px 6px;
  border-radius: 10px;
  background: rgba(6, 11, 20, 0.72);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

.fleet-item {
  border-radius: 7px;
  transition: color 0.14s var(--ease-soft),
              background 0.14s var(--ease-soft),
              border-color 0.14s var(--ease-soft);
}
.fleet-item.active {
  background: color-mix(in srgb, currentColor 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 45%, transparent);
}

.fleet-tooltip {
  border-radius: 7px;
  padding: 7px 11px;
  background: rgba(6, 11, 20, 0.96);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: opacity 0.14s var(--ease-soft), transform 0.14s var(--ease-soft);
  transform: translateY(-50%) translateX(-4px);
}
.fleet-item:hover .fleet-tooltip { transform: translateY(-50%) translateX(0); }

#mode-badge {
  font-variant-numeric: tabular-nums;
  letter-spacing: 1.6px;
}

/* Numeric readouts must not reflow as digits change */
#hud, #hud *, .hud-val, .hud-block, #asset-console, #asset-console * {
  font-variant-numeric: tabular-nums;
}

/* ══ 3. CASCADE FAB ════════════════════════════════════════════════════
   Was four permanently floating, glowing, emoji-prefixed buttons. Now a
   still stack that animates only on open/close and hover. */

.cascade-action-btn .cab-label {
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.1px;
  text-transform: none;
  color: var(--sheet-fg);
  background: rgba(8, 12, 20, 0.82);
  border-radius: 999px;
  padding: 7px 15px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}
.cascade-action-btn .cab-label strong {
  font-weight: 650;
  letter-spacing: 0.2px;
}

.cascade-action-btn:not(.visible) {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.cascade-action-btn,
#cascade-main-btn {
  transition: transform 0.22s var(--ease-out),
              opacity 0.22s var(--ease-soft),
              box-shadow 0.22s var(--ease-soft);
}
.cascade-action-btn:hover { transform: translateY(-1px); }
#cascade-main-btn:hover   { transform: scale(1.04); }
#cascade-main-btn.open    { transform: rotate(45deg); }

/* ══ 4. DRAWERS ════════════════════════════════════════════════════════
   The sheets were overridden to dark inline while every card inside stayed
   Apple-light (#fff on #1d1d1f), so close buttons and pills were nearly
   invisible and the panels read as two different products. One dark system. */

.drawer-sheet {
  background: var(--sheet-bg) !important;
  border: 1px solid var(--sheet-line) !important;
  border-bottom: none !important;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.65) !important;
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  max-width: 1120px;
  margin: 0 auto;
  transition: transform 0.46s var(--ease-out);
}

.drawer-handle-bar {
  padding: 12px 0 8px;
  border-bottom: 1px solid var(--sheet-line);
}
.drawer-pill {
  width: 40px; height: 4px;
  background: rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px;
}
.drawer-close {
  right: 18px; top: 10px;
  width: 32px; height: 32px;
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--sheet-fg) !important;
  font-size: 15px;
  transition: background 0.15s var(--ease-soft);
}
.drawer-close:hover { background: rgba(255, 255, 255, 0.18) !important; }

.drawer-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
}

/* ── Sections: consistent rhythm, real hierarchy ── */
.dw-section {
  padding: 26px 28px;
  border-bottom: 1px solid var(--sheet-line);
}
.dw-section:last-child { border-bottom: none; }

.dw-section-title {
  font-size: var(--fs-h3);
  font-weight: 650;
  letter-spacing: -0.2px;
  color: var(--sheet-fg) !important;
  margin-bottom: 6px;
}
/* Inline styles set letter-spacing:2px on some titles; normalise them. */
.dw-section-title[style] { letter-spacing: -0.2px !important; }

.dw-section-note {
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--sheet-fg-mid);
  max-width: 62ch;
  margin: 0 0 18px;
}

/* ── Hero ── */
.dw-media-hero { border-radius: 0 !important; }
.dw-media-hero-copy { padding: 28px 28px 30px !important; }
.dw-hero-eye {
  font-size: var(--fs-micro);
  letter-spacing: 1.8px;
  opacity: 0.9;
}
.dw-hero-title {
  font-size: clamp(24px, 4vw, var(--fs-h2));
  font-weight: 700;
  letter-spacing: -0.6px;
  color: #fff;
}
.dw-media-hero-copy .dw-hero-sub {
  font-size: var(--fs-body) !important;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.80);
  max-width: 56ch;
}

/* ── Cards, bento, pricing: dark surfaces, aligned radii ── */
.dw-card,
.dw-bento-card,
.pricing-card,
.prop-stat-card {
  background: var(--sheet-card) !important;
  border: 1px solid var(--sheet-line) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

.dw-card-title,
.dw-bento-val,
.pricing-price,
.prop-stat-val,
.hiw-label { color: var(--sheet-fg) !important; }

.dw-card-sub,
.dw-bento-lbl,
.pricing-desc,
.prop-stat-lbl,
.dw-form-label { color: var(--sheet-fg-mid) !important; }

.dw-card-sub, .pricing-desc { line-height: 1.55; }

.dw-bento { gap: 12px; }
.dw-bento-val { font-size: 24px; letter-spacing: -0.5px; }

/* Tier cards: "Quoted" is a label, not a headline number — so it no longer
   competes typographically with the tier name the way a price did. */
.pricing-grid { gap: 14px; }
.pricing-card { padding: 22px; display: flex; flex-direction: column; }
.pricing-card.featured {
  border-color: rgba(48, 209, 88, 0.55) !important;
  background: rgba(48, 209, 88, 0.06) !important;
}
.pricing-name {
  font-size: var(--fs-micro);
  letter-spacing: 1.4px;
  color: var(--sheet-fg-dim) !important;
  margin-bottom: 6px;
}
.pricing-price {
  font-size: var(--fs-lead) !important;
  font-weight: 650;
  letter-spacing: -0.1px;
  margin-bottom: 10px;
}
.pricing-card.featured .pricing-price { color: #5fe08a !important; }
.pricing-desc { flex: 1; }

.prop-stats { gap: 10px; }
.prop-stat-val { font-size: 19px; letter-spacing: -0.3px; }
.prop-stat-lbl { font-size: 12px; line-height: 1.4; margin-top: 3px; }

/* ── Spec list ── */
.dw-spec-list li {
  border-color: var(--sheet-line) !important;
  padding: 11px 0;
  font-size: var(--fs-small);
}
.dw-spec-list li > span:first-child { color: var(--sheet-fg-mid) !important; }
.dw-spec-list li > span:last-child  { color: var(--sheet-fg) !important; font-weight: 600; }

/* ── Buttons ── */
.dw-btn {
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.1px;
  padding: 11px 20px;
  transition: transform 0.14s var(--ease-out),
              filter 0.14s var(--ease-soft),
              background 0.14s var(--ease-soft);
}
.dw-btn:hover  { transform: translateY(-1px); filter: brightness(1.08); }
.dw-btn:active { transform: translateY(0); }
.dw-btn-ghost {
  background: transparent !important;
  border: 1px solid var(--sheet-line) !important;
  color: var(--sheet-fg) !important;
}
.dw-btn-ghost:hover { background: rgba(255, 255, 255, 0.07) !important; }
.dw-btn-row { gap: 10px; flex-wrap: wrap; }

.dw-submit-btn {
  border-radius: 999px;
  font-size: var(--fs-body);
  font-weight: 650;
  padding: 13px 24px;
  transition: transform 0.14s var(--ease-out), filter 0.14s var(--ease-soft);
}
.dw-submit-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
.dw-submit-btn:disabled { opacity: 0.6; cursor: progress; }

/* ── Forms ── */
.dw-form-grid { gap: 14px 16px; }
.dw-form-label {
  font-size: var(--fs-micro);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.dw-form-input,
.dw-form-select,
.dw-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--sheet-line) !important;
  border-radius: 10px !important;
  color: var(--sheet-fg) !important;
  font-size: var(--fs-body) !important;
  padding: 11px 13px !important;
  transition: border-color 0.15s var(--ease-soft), background 0.15s var(--ease-soft);
}
.dw-form-input::placeholder,
.dw-input::placeholder { color: var(--sheet-fg-dim); }
.dw-form-input:focus,
.dw-form-select:focus,
.dw-input:focus {
  outline: none;
  border-color: var(--accent) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}
.dw-form-select option { background: #0d1523; color: var(--sheet-fg); }

/* Flash the tier field when a "Request a quote" button preselects it */
@keyframes fieldFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
  35%      { box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.35); }
}
.field-flash { animation: fieldFlash 1.2s var(--ease-soft); }

/* ── Stats pills & gallery ── */
.stats-bar { gap: 8px; margin-top: 16px; }
.stats-pill { font-size: var(--fs-small); padding: 6px 13px; }

.dw-gallery { gap: 14px; }
.dw-gallery-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--sheet-card);
  border: 1px solid var(--sheet-line) !important;
  box-shadow: none !important;
  transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-soft);
}
.dw-gallery-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22) !important;
}
.dw-gallery-card img { display: block; width: 100%; object-fit: cover; }
.dw-gallery-card .dw-card-body { background: transparent !important; }

.hiw-icon { background: rgba(255, 255, 255, 0.06); border-radius: 14px; }
.hiw-label { font-size: 12px; }

/* Guidance strips — photoreal steps with arrow overlays */
.guide-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.guide-step { position: relative; border-radius: 14px; overflow: hidden; background: var(--sheet-card); border: 1px solid var(--sheet-line); }
.guide-step img { display: block; width: 100%; height: 132px; object-fit: cover; }
.guide-step-copy { padding: 10px 11px; background: linear-gradient(180deg, rgba(6,12,24,0.0), rgba(6,12,24,0.72) 95%); position: absolute; left: 0; right: 0; bottom: 0; color: #fff; }
.guide-step-copy b { display: block; font: 800 11px/1 'Orbitron', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #8dffc0; }
.guide-step-copy span { display: block; margin-top: 4px; font: 600 12px/1.35 system-ui, sans-serif; color: #f0f6ff; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.guide-arrow { position: absolute; top: 50%; right: -10px; width: 20px; height: 20px; transform: translateY(-50%); background: #e82127; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.35); z-index: 2; }
.guide-arrow svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2; }
@media (max-width: 720px) { .guide-strip { grid-template-columns: 1fr; gap: 8px; } .guide-step img { height: 148px; } .guide-arrow { top: auto; bottom: -10px; right: 50%; transform: translateX(50%) rotate(90deg); } }

/* ══ 5. MOTION & MEDIA ═════════════════════════════════════════════════ */

/* Stop background video decoding for users who don't want motion, and
   drop every non-essential transition. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  #boot-canvas, #boot-scanline { display: none; }
}

/* ══ 6. RESPONSIVE ═════════════════════════════════════════════════════
   The sim chrome had no small-screen handling at all — the nav bar ran off
   both edges of a phone and the fleet rail overlapped the HUD. */

/* The service filters now include Roadside; keep the complete navigation
   reachable on a laptop-width viewport rather than clipping either end. */
@media (min-width: 861px) and (max-width: 1180px) {
  #nav-bar {
    left: 8px; right: 8px;
    transform: none;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  #nav-bar::-webkit-scrollbar { display: none; }
  .nav-btn { flex: 0 0 auto; }
}

@media (max-width: 860px) {
  #nav-bar {
    left: 8px; right: 8px;
    transform: none;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  #nav-bar::-webkit-scrollbar { display: none; }
  .nav-btn { flex: 0 0 auto; }

  #fleet-rail {
    top: auto;
    bottom: 150px;
    left: 8px;
    transform: none;
    flex-direction: row;
    max-width: calc(100vw - 16px);
    overflow-x: auto;
    scrollbar-width: none;
  }
  #fleet-rail::-webkit-scrollbar { display: none; }
  .fleet-item { flex: 0 0 auto; }
  .fleet-tooltip { display: none; }

  .dw-section { padding: 20px 18px; }
  .dw-media-hero-copy { padding: 20px 18px 22px !important; }
  .dw-bento { grid-template-columns: 1fr; }
  .prop-stats { grid-template-columns: 1fr; }
  #skip-commercial { bottom: 18px; right: 18px; }
}

/* ══ 7. GENERATED FLEET RAIL ═══════════════════════════════════════════
   Entries are now <button>s created from the VEHICLES registry, so they
   need the browser button defaults stripped. */

.fleet-item {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  font: inherit;
  background: transparent;
}

.fleet-sep {
  width: 26px;
  height: 1px;
  background: var(--border);
  margin: 3px auto;
  flex: 0 0 auto;
}

.fleet-tooltip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 10;
}
.fleet-tooltip .tt-name {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text);
}
.fleet-tooltip .tt-stats {
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.fleet-tooltip .tt-power {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: color-mix(in srgb, currentColor 78%, transparent);
}

@media (max-width: 860px) {
  .fleet-sep { width: 1px; height: 26px; margin: auto 3px; }
}

/* Stand-in model indicator — a vehicle whose GLB is another vehicle's body.
   A small corner dot on the rail button + a line in the tooltip, so the
   placeholder is visible without shouting. */
.fleet-item.is-standin::after {
  content: '';
  position: absolute;
  top: 4px; right: 4px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.75;
}
.fleet-tooltip .tt-standin {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.3px;
  color: var(--amber);
  margin-top: 3px;
  padding-top: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ══════════════════════════════════════════════════════════════════════
   8. ORBITAL LANDING — globe + inner solar system
   ══════════════════════════════════════════════════════════════════════ */

/* The cosmos canvas sits behind the map. The map canvas must stay
   transparent where Mapbox draws "space" (orbital.js sets space-color to
   rgba(0,0,0,0)) so the solar system reads through it. */
#cosmos-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.6s var(--ease-soft);
  background: radial-gradient(ellipse at 62% 38%, #0a1224 0%, #04070f 55%, #010206 100%);
}
#cosmos-stage.visible   { opacity: 1; }
#cosmos-stage.receding  { opacity: 0; transition-duration: 2.6s; }
#cosmos-canvas { display: block; width: 100%; height: 100%; }

#map {
  z-index: 1;
  background: transparent;
}

/* ── The landing panel ── */
#orbital-ui {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 24px clamp(20px, 6vw, 90px);
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;              /* short landscape screens: scroll instead of clip */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
/* The overlay must NEVER take pointer events: it spans inset:0, so making it
   clickable swallows every drag before the map canvas sees it and the globe
   goes dead. Only .orb-inner (the actual panel) opts back in. */
#orbital-ui.visible { opacity: 1; pointer-events: none; }
#orbital-ui .orb-inner { pointer-events: auto; }
#orbital-ui:not(.visible) .orb-inner { pointer-events: none; }

.orb-inner {
  max-width: 480px;
  margin: auto 0;                /* flex-safe centering: content never clips above the fold */
  transform: translateY(8px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
#orbital-ui.visible .orb-inner { transform: translateY(0); }

/* Backdrop scrim for legibility over globe imagery */
.orb-inner {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(6,12,24,0.72), rgba(6,12,24,0.38));
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
}
@media (max-width: 720px) {
  .orb-inner {
    background: linear-gradient(180deg, rgba(6,12,24,0.62), rgba(6,12,24,0.28));
  }
}

.orb-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.orb-logo img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 2px 16px rgba(0,0,0,0.7)); }

/* ── Network counters ── */
.orb-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 14px;
  max-width: 460px;
}
.orb-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(10, 20, 36, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.orb-stat span {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 750;
  color: #38bdf8;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.orb-stat label {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(226, 238, 255, 0.52);
  line-height: 1.25;
}

/* ── Entry points ── */
.orb-entry-label {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 238, 255, 0.55);
  margin-bottom: 8px;
}
.orb-entries {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.orb-entry {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(10, 20, 36, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.16s ease,
              background 0.16s ease;
}
.orb-entry:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(56, 189, 248, 0.14);
}
/* State silhouette inside each entry */
.orb-entry { flex-direction: row; align-items: center; gap: 10px; }
.orb-entry-state { flex: none; width: 38px; height: 28px; display: grid; place-items: center; color: #38bdf8; opacity: 0.95; }
.orb-entry-state svg { width: 100%; height: 100%; display: block; }
.orb-entry-copy { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; min-width: 0; }
.orb-entry-name {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 650;
  color: #f0f6ff;
}
.orb-entry-tag {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #34d399;
}
/* Region picker uses standalone, real state silhouettes—not map pins inside
   rectangular cards. The button stays an accessible tap target; its artwork
   and label sit directly on the orbital surface. */
.orb-entry {
  min-height: 54px;
  padding: 7px 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.orb-entry:hover,
.orb-entry:focus-visible {
  background: transparent;
  border-color: transparent;
  transform: translateY(-1px);
}
.orb-entry-state {
  object-fit: contain;
  width: 48px;
  height: 38px;
  filter: drop-shadow(0 2px 6px rgba(74, 185, 235, .36));
}
.orb-entry-copy { gap: 3px; }
.orb-entry-name { transition: color .16s ease; }
.orb-entry:hover .orb-entry-name,
.orb-entry:focus-visible .orb-entry-name { color: #8ce1ff; }

/* ── Actions ── */
.orb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.orb-btn {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 650;
  padding: 10px 20px;
  border-radius: 9999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), filter 0.16s ease,
              background 0.16s ease;
}
.orb-btn:hover  { transform: translateY(-1px); filter: brightness(1.08); }
.orb-btn:active { transform: translateY(0); }
.orb-btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.35);
  border-color: rgba(255, 255, 255, 0.2);
}
.orb-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #e8f1ff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.orb-btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

.orb-select {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 550;
  padding: 10px 14px;
  border-radius: 9999px;
  cursor: pointer;
  color: rgba(226, 238, 255, 0.85);
  background: rgba(10, 20, 36, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.orb-select option { background: #0d1523; color: #e8f1ff; }

.orb-hint {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(226, 238, 255, 0.42);
}

/* ── Sim chrome & floating buttons hide while in orbit ── */
body.in-orbit #cascade-fab,
body.in-orbit #drev-assist-fab,
body.in-orbit #drev-fab,
body.in-orbit #drev-dock,
body.in-orbit #sp-tour-launch,
body.in-orbit #palms-hud-btn,
body.in-orbit #global-dock-container,
body.in-orbit #nav-bar,
body.in-orbit #fleet-rail,
body.in-orbit #mode-badge,
body.in-orbit #asset-console,
body.in-orbit #veh-card,
body.in-orbit #cam-strip,
body.in-orbit #ctrl-hint,
body.in-orbit #station-popup,
.chrome-hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.4s var(--ease-soft);
}

/* ── On-demand brand film ── */
#drev-commercial {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 8000;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s var(--ease-soft);
}
#drev-commercial.playing { opacity: 1; pointer-events: auto; cursor: pointer; }
#film-close {
  position: fixed;
  top: 24px; right: 24px;
  z-index: 8001;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 12, 20, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-soft);
}
#drev-commercial.playing ~ #film-close,
#film-close.visible { opacity: 1; pointer-events: auto; }

@media (max-width: 860px) {
  #orbital-ui { align-items: flex-end; padding: 0 18px 26px; }
  .orb-inner { max-width: none; width: 100%; }
  .orb-stats { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .orb-sub { margin-bottom: 22px; }
  .orb-btn { flex: 1 1 auto; }
}

/* ══════════════════════════════════════════════════════════════════════
   9. E-BIKE CLASS
   Bikes are a first-class vehicle class alongside EV / VTOL / Boat.
   They borrow the EV instrument cluster, so they only need identity
   colours in the rail, markers and class badges.
   ══════════════════════════════════════════════════════════════════════ */

.fleet-item.bike-type      { --t: #00e5a0; }
.drev-marker.bike          { color: #00e5a0; }
.cp-class-badge.bike       { color: #00e5a0; }
#asset-console.bike-active {
  border-color: rgba(0, 229, 160, 0.48);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.78), 0 0 32px rgba(0, 229, 160, 0.22);
}

/* Fleet-rail class divider label */
.fleet-group-label.bike { color: #00e5a0; }

/* ══════════════════════════════════════════════════════════════════════
   9b. SPACECRAFT CLASS
   Original-concept orbital SIM entries (DREV Capsule / DREV Orbital) and
   the NASA RAVEN reference twin. Violet identity; they share the EV
   dash family but are badged as spacecraft everywhere.
   ══════════════════════════════════════════════════════════════════════ */
.fleet-item.spacecraft-type      { --t: #a78bfa; }
.drev-marker.spacecraft          { color: #a78bfa; }
.cp-class-badge.spacecraft       { color: #a78bfa; }
.fleet-tab.spacecraft-type       { color: #c4b5fd; }
.fleet-tab.spacecraft-type.active {
  color: #0f0a24;
  background: linear-gradient(135deg, #c4b5fd, #8b5cf6);
  border-color: #c4b5fd;
}
#asset-console.spacecraft-active {
  border-color: rgba(167, 139, 250, 0.48);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.78), 0 0 32px rgba(167, 139, 250, 0.22);
}

/* Honest model-status line in the rail tooltip (concept proxies /
   original concepts / reference twins). */
.fleet-tooltip .tt-asset {
  display: block;
  margin-top: 3px;
  color: #f5c66c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════════════
   10. DRAGGABLE FLOATING PANELS
   The old chrome was pinned to the corners with fixed positioning and
   overlapped badly on anything smaller than a desktop monitor. Panels
   are now movable, remember where you put them, and get pushed apart on
   first layout so nothing starts buried. See js/draggable.js.
   ══════════════════════════════════════════════════════════════════════ */

.drev-draggable {
  position: fixed;
  touch-action: none;              /* pointer events own the gesture */
  will-change: left, top;
}
.drev-draggable.is-dragging {
  transition: none !important;
  cursor: grabbing;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 212, 255, 0.45);
}

/* ── Grip bar ── */
.card-grip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  cursor: grab;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  border-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  user-select: none;
}
.card-grip:active { cursor: grabbing; }

.card-title {
  font-family: var(--font-data);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(226, 238, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Six-dot grab affordance, drawn with a gradient so it costs no markup */
.grip-dots {
  flex: 0 0 auto;
  width: 12px;
  height: 14px;
  cursor: grab;
  background-image: radial-gradient(circle, rgba(226, 238, 255, 0.45) 1px, transparent 1.2px);
  background-size: 5px 5px;
  background-position: 0 2px;
  opacity: 0.75;
  transition: opacity 0.15s var(--ease-soft);
}
.card-grip:hover .grip-dots,
.grip-dots:hover { opacity: 1; }

/* Standalone grips on panels with no title bar */
#cam-strip > .grip-dots,
#station-popup > .grip-dots {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
}
#cam-strip { position: fixed; padding-left: 22px; }
#station-popup { padding-left: 22px; }

/* ── The vehicle card that replaced the bottom bar ── */
#veh-card {
  position: fixed;
  left: 50%;
  bottom: 210px;
  transform: translateX(-50%);
  min-width: 210px;
  z-index: 620;
  border-radius: 12px;
  background: rgba(8, 14, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-soft);
}
#veh-card.visible { opacity: 1; pointer-events: auto; }
#veh-card .card-title {
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #eaf3ff;
}
#veh-card .card-body { padding: 10px 12px 12px; }

.veh-card-class {
  font-family: var(--font-data);
  font-size: 9.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 9px;
}
.veh-card-actions { display: flex; gap: 7px; }
.veh-card-actions button {
  flex: 1;
  padding: 7px 12px;
  border-radius: 7px;
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #dce8f8;
  transition: background 0.15s var(--ease-soft), border-color 0.15s var(--ease-soft);
}
.veh-card-actions button:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.26);
}
#hud-exit-btn {
  border-color: rgba(229, 48, 48, 0.4) !important;
  color: #ff8a8a !important;
}
#hud-exit-btn:hover { background: rgba(229, 48, 48, 0.18) !important; }

.ai-swarm-text {
  display: block;
  margin-top: 8px;
  font-family: var(--font-data);
  font-size: 9.5px;
  letter-spacing: 1px;
  color: var(--green);
}

/* The old full-width HUD bar is gone; kill any stragglers. */
#hud, .hud-center, .hud-right, .ai-swarm-diag { display: none !important; }

/* ══════════════════════════════════════════════════════════════════════
   12. OVERFLOW CONTAINMENT
   The fleet rail rendered every vehicle in one flat column. At 12
   vehicles that was ~470px and fit; at 29 it is ~1,130px, and because the
   rail is centred with translateY(-50%) it ran off the top AND bottom of
   the screen, covering the map down the entire left edge.

   Two defences: the rail is class-paged in JS (max 10 items), and every
   floating panel now has a hard max-height with internal scrolling so no
   future content growth can push chrome off-screen again.
   ══════════════════════════════════════════════════════════════════════ */

#fleet-rail {
  /* Never taller than the viewport, whatever the fleet grows to. */
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 255, 0.35) transparent;
  align-items: center;
}
#fleet-rail::-webkit-scrollbar { width: 5px; }
#fleet-rail::-webkit-scrollbar-track { background: transparent; }
#fleet-rail::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.3);
  border-radius: 3px;
}

/* Grip is sticky so the collapse control stays reachable while scrolling */
#fleet-rail .card-grip {
  position: sticky;
  top: 0;
  z-index: 2;
  width: 100%;
  padding: 5px 6px;
  margin-bottom: 3px;
  background: rgba(6, 11, 20, 0.96);
  gap: 5px;
}
#fleet-rail .card-title { font-size: 8.5px; letter-spacing: 1px; }

.fleet-collapse {
  margin-left: auto;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(226, 238, 255, 0.7);
  font: 700 12px/1 system-ui;
  cursor: pointer;
  padding: 0;
}
.fleet-collapse:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ── Class tabs ── */
.fleet-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  width: 100%;
  padding-bottom: 5px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.fleet-tab {
  position: relative;
  width: 100%;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: color 0.14s var(--ease-soft), background 0.14s var(--ease-soft),
              border-color 0.14s var(--ease-soft);
}
.fleet-tab svg { width: 14px; height: 14px; }
.fleet-tab:hover { background: rgba(255, 255, 255, 0.09); color: var(--text); }
.fleet-tab.active {
  color: var(--t);
  background: color-mix(in srgb, currentColor 16%, transparent);
  border-color: color-mix(in srgb, currentColor 50%, transparent);
}
.fleet-tab-n {
  position: absolute;
  top: -1px;
  right: 2px;
  font-family: var(--font-data);
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.65;
}

/* ── Collapsed: tabs only, vehicles hidden ── */
#fleet-rail.collapsed .fleet-item,
#fleet-rail.collapsed .fleet-sep,
#fleet-rail.collapsed #spawn-btn { display: none; }
#fleet-rail.collapsed .fleet-collapse { transform: rotate(90deg); }
#fleet-rail.collapsed { max-height: none; }

/* ── Hard caps on the other floating panels ── */
#asset-console {
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
#station-popup {
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
  #fleet-rail .fleet-tabs { grid-template-columns: repeat(5, 1fr); }
}

/* The narrow-viewport rail override must keep the height guard */
@media (max-width: 860px) {
  #fleet-rail {
    max-height: none;
    max-width: calc(100vw - 16px);
    overflow-x: auto;
    overflow-y: hidden;
  }
  #fleet-rail .fleet-tabs {
    grid-template-columns: repeat(5, 1fr);
    width: auto;
    min-width: 132px;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 5px 0 0;
    margin: 0 4px 0 0;
  }
  #fleet-rail .card-grip {
    position: static;
    width: auto;
    margin: 0 4px 0 0;
  }
  #fleet-rail .card-title { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
   §13  HIDDEN PANELS MUST ACTUALLY BE HIDDEN
   ════════════════════════════════════════════════════════════════════
   #asset-console hid itself with `transform: translateY(130%)` alone.
   130% of its own height (min 190px) is ~247px of travel, but the panel
   sits at bottom:152px — so it only ever cleared 95px past the edge and
   its top border (1.5px cyan) stayed on screen as a stray rounded box.
   On the orbital landing that box parked itself right under the "drag to
   rotate the globe" hint. Opacity + visibility close it properly, and the
   delayed visibility keeps the slide-in animation intact. */
#asset-console:not(.visible) {
  opacity: 0;
  visibility: hidden;
  transition: transform .35s cubic-bezier(.16,1,.3,1),
              opacity .25s ease,
              visibility 0s linear .35s;
}
#asset-console.visible {
  opacity: 1;
  visibility: visible;
  transition: transform .35s cubic-bezier(.16,1,.3,1),
              opacity .25s ease,
              visibility 0s linear 0s;
}

/* ════════════════════════════════════════════════════════════════════
   §14  READABLE CARBON-FIBER INSTRUMENT CLUSTER
   The cluster was a 420×190 card with 6–8 px type on a near-black
   weave — none of the gauges could be read at map scale. Rebuild:
   visible 2×2 twill carbon, high-contrast white numerals, labels at
   12 px minimum, no bobbing animation.
   ════════════════════════════════════════════════════════════════════ */
#asset-console {
  width: min(640px, calc(100vw - 28px));
  min-height: 292px;
  bottom: 88px;
  left: 16px;
  border-radius: 14px;
  background: #141518;
  border: 1px solid rgba(232, 228, 220, 0.28);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  animation: none !important;
  color: #f4f7fb;
}
#asset-console.visible {
  animation: none !important;
  transform: translateY(0) !important;
}
#asset-console.ev-active,
#asset-console.vtol-active,
#asset-console.boat-active {
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* Real 2×2 twill carbon fiber — two offset 8 px weaves + gloss */
#asset-console::before {
  border-radius: 13px;
  background-color: #121316;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.07) 0 1px,
      rgba(255,255,255,0) 1px 4px),
    repeating-linear-gradient(-45deg,
      rgba(0,0,0,0.55) 0 2px,
      rgba(0,0,0,0) 2px 5px),
    repeating-linear-gradient(45deg,
      #1c1d21 0 8px, #101114 8px 16px),
    repeating-linear-gradient(-45deg,
      #25262b 0 8px, #0e0f12 8px 16px),
    linear-gradient(180deg, rgba(28,30,36,0.45), rgba(8,8,10,0.82));
  background-size: 8px 8px, 8px 8px, 16px 16px, 16px 16px, auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45);
  opacity: 1;
}

#asset-console .card-title,
#asset-console .cp-vname {
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
#asset-console .cp-class-badge,
#asset-console .ev-badge-pwt,
#asset-console .ev-badge-tier,
#asset-console .vtol-nav-mode,
#asset-console .boat-anchor-status {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  padding: 4px 10px !important;
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.35) !important;
}
#asset-console .cp-class-badge.ev   { color: #5dffb8 !important; border-color: rgba(93,255,184,0.55) !important; }
#asset-console .cp-class-badge.vtol { color: #8ec5ff !important; border-color: rgba(142,197,255,0.55) !important; }
#asset-console .cp-class-badge.boat { color: #7ef0f8 !important; border-color: rgba(126,240,248,0.55) !important; }

#asset-console .cp-exit-btn {
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  padding: 8px 16px !important;
  color: #ffffff !important;
  background: rgba(180, 32, 32, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

#asset-console .cp-metric-label,
#asset-console .ev-info-cell .cp-metric-label,
#asset-console .vtol-data-cell .cp-metric-label,
#asset-console .boat-data-cell .cp-metric-label,
#asset-console .vtol-tape-label,
#asset-console .ev-motor-temp-label,
#asset-console .ev-regen-label,
#asset-console .ev-regen-meter-label,
#asset-console .boat-water-temp-label,
#asset-console .boat-sonar-label {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  color: #dce7f6 !important;
  opacity: 1 !important;
  text-transform: uppercase;
}

#asset-console .cp-metric-value,
#asset-console .ev-info-cell .cp-metric-value,
#asset-console .vtol-data-cell .cp-metric-value,
#asset-console .boat-data-cell .cp-metric-value {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.05 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}
#asset-console .boat-data-cell.big .cp-metric-value {
  font-size: 36px !important;
}
#asset-console .cp-metric-unit,
#asset-console .boat-sonar-unit {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #e6eef8 !important;
}

#asset-console .ev-speed-huge {
  font-size: 76px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  letter-spacing: -2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
#asset-console .ev-speed-unit {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #7dffb0 !important;
  letter-spacing: 0.28em !important;
}
#asset-console .ev-trip-item,
#asset-console .boat-trip-item {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #e8eef6 !important;
}
#asset-console .ev-trip-item span,
#asset-console .boat-trip-item span {
  font-size: 16px !important;
  color: #ffffff !important;
}

#asset-console .ev-gear {
  width: 28px !important;
  height: 28px !important;
  font-size: 16px !important;
  color: #c5d0dc !important;
}
#asset-console .ev-gear-active {
  color: #5dffb8 !important;
  background: rgba(0, 229, 160, 0.22) !important;
}

#asset-console .ev-arc-gauge { width: 118px; height: 118px; }
#asset-console .ev-dash {
  padding: 42px 14px 38px;
  grid-template-columns: 128px 1fr 128px;
  gap: 10px;
}
#asset-console .vtol-pfd {
  padding: 42px 10px 36px;
  grid-template-columns: 64px 64px 1fr 64px 120px;
  gap: 6px;
}
#asset-console .boat-helm {
  padding: 42px 12px 36px;
  grid-template-columns: 150px 1fr 1fr;
  gap: 8px;
}
#asset-console .vtol-tape-value {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  padding: 6px 0 !important;
}
#asset-console .vtol-g-val,
#asset-console .vtol-torque-val,
#asset-console .ev-motor-temp-val,
#asset-console .boat-fuel-val,
#asset-console .boat-water-temp-value {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}
#asset-console .vtol-hdg-tick {
  font-size: 13px !important;
  color: #c5d8f0 !important;
}
#asset-console .vtol-hdg-tick-active {
  font-size: 16px !important;
  color: #ffffff !important;
}
#asset-console .boat-sonar-value {
  font-size: 22px !important;
  color: #ffffff !important;
}
#asset-console .boat-compass-svg { width: 138px; height: 138px; }

#asset-console .ev-cta-strip a,
#asset-console .vtol-cta-strip a,
#asset-console .boat-cta-strip a {
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  padding: 8px 0 !important;
  color: #f4f7fb !important;
}

/* Inline 5–8 px labels on the marine helm */
#console-boat [style*="font-size:5px"],
#console-boat [style*="font-size:6px"] {
  font-size: 11px !important;
  color: #e7fbff !important;
  font-weight: 800 !important;
}
#console-boat [style*="font-size:8px"] {
  font-size: 14px !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* SVG numerals inside the gauges */
#asset-console svg text {
  fill: #ffffff !important;
  font-weight: 800;
}

#veh-card {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.45) 0 2px, transparent 2px 5px),
    #16171b;
  border: 1px solid rgba(232, 228, 220, 0.28);
}
#veh-card .card-title { font-size: 16px !important; color: #fff !important; }
.veh-card-class { font-size: 13px !important; color: #dce7f6 !important; }
.veh-card-actions button {
  font-size: 13px !important;
  padding: 8px 14px !important;
}
