* {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #f8fafc;
}

/* Lock 1024x683 (1.499268:1) multimedia bezel and LCD screen to the exact same coordinate space */
.central-stage {
  position: fixed;
  top: 50%;
  left: 50%;
  width: max(100vw, 149.9268vh);
  height: max(66.6992vw, 100vh);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.central-bezel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  overflow: visible;
}

/* Reflexo do vidro do LCD (por cima do conteúdo, não bloqueia toques) */
.central-glare {
  position: absolute;
  left: 20.55%;
  top: 25.45%;
  width: 57.15%;
  height: 48.05%;
  border-radius: 10px;
  pointer-events: none;
  z-index: 60;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.025) 26%, rgba(255, 255, 255, 0) 27%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 18%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 3px 14px rgba(0, 0, 0, 0.55);
}

/* Coluna lateral fora da moldura: logo + simulador de sinais */
.central-stage { container-type: size; }
.central-side {
  position: absolute;
  left: 1.3%;
  top: 17.8%;
  width: 12.6%;
  bottom: 19%;
  display: flex;
  flex-direction: column;
  gap: 1.6cqh;
  pointer-events: none;
}
.central-side-logo { width: 78%; align-self: center; flex-shrink: 0; height: auto; display: block; filter: drop-shadow(0 0 1.2cqw rgba(56, 189, 248, 0.25)); }
.central-sim {
  pointer-events: auto;
  min-height: 0;
  overflow: auto;
  padding: 0.9cqw 0.8cqw;
  border-radius: 1cqw;
  background: linear-gradient(170deg, rgba(20, 26, 40, 0.92), rgba(8, 11, 20, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 1.2cqw 3cqw rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  color: #e2e8f0;
  scrollbar-width: thin;
}
.c-sim-head { display: grid; grid-template-columns: auto 1fr; column-gap: 0.45cqw; align-items: center; margin-bottom: 0.7cqw; }
.c-sim-dot { width: 0.5cqw; height: 0.5cqw; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0.6cqw #22c55e; grid-row: span 2; }
.c-sim-head b { font-size: 0.78cqw; letter-spacing: 0.04em; }
.c-sim-head small { font-size: 0.56cqw; color: #94a3b8; letter-spacing: 0.06em; text-transform: uppercase; }
.c-sim-group + .c-sim-group { margin-top: 0.7cqw; }
.c-sim-gt { font-size: 0.56cqw; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #7dd3fc; margin-bottom: 0.35cqw; }
.c-sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3cqw; }
.c-sim-btn {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.35cqw;
  padding: 0.38cqw 0.45cqw;
  border-radius: 0.45cqw;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.035);
  color: #cbd5e1;
  font: 600 0.62cqw "Rajdhani", system-ui, sans-serif;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all 0.15s ease;
}
.c-sim-btn i { flex-shrink: 0; width: 0.42cqw; height: 0.42cqw; border-radius: 50%; background: #475569; transition: all 0.15s ease; }
.c-sim-btn:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.c-sim-btn.on { color: #fff; border-color: rgba(56, 189, 248, 0.5); background: rgba(56, 189, 248, 0.12); }
.c-sim-btn.on i { background: #38bdf8; box-shadow: 0 0 0.5cqw #38bdf8; }

/* Exact black LCD cutout inside Moldura-Pit-Bull-1024x683.png */
.central-lcd {
  position: absolute;
  left: 20.55%;
  top: 25.45%;
  width: 57.15%;
  height: 48.05%;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, #070e1c 0%, #030712 65%, #071124 100%);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.85);
  font-size: 11px;
}

/* Top Status Bar */
.c-topbar {
  height: 30px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2, 6, 17, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  flex-shrink: 0;
}

.c-top-left,
.c-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c-gears {
  display: inline-flex;
  gap: 4px;
  background: rgba(15, 23, 42, 0.9);
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 10px;
}

.c-gear {
  color: #64748b;
  cursor: pointer;
  padding: 0 2px;
}

.c-gear.active {
  color: #38bdf8;
}

.c-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.c-pill.active {
  border-color: #38bdf8;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
}

.c-pill.danger {
  border-color: #ef4444;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.18);
}

/* Main Split Body (Tesla / Haval 2-column layout) */
.c-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 33% 67%;
}

/* Left Persistent Car Control Panel */
.c-car-pane {
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  background: radial-gradient(circle at 50% 45%, rgba(56, 189, 248, 0.08), rgba(2, 6, 17, 0.85) 75%);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.c-left-mode {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 0;
  gap: 6px;
}

.c-left-mode.active {
  display: flex;
}

.c-nav-search {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.c-nav-input-row {
  display: flex;
  gap: 4px;
}

.c-nav-input {
  flex: 1;
  min-width: 0;
  background: rgba(2, 6, 17, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 7px;
  color: #f8fafc;
  padding: 5px 8px;
  font-size: 10px;
  outline: none;
}

.c-nav-input:focus {
  border-color: #38bdf8;
}

.c-nav-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.c-nav-turn-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 6px 8px;
}

.c-nav-turn-arrow {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}

.c-nav-minimap-wrap {
  flex: 1;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #060d19;
}

#central-gta-minimap {
  width: 100%;
  height: 100%;
  display: block;
}

.c-nav-meta {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  color: #94a3b8;
  font-weight: 700;
}

.c-nav-extras {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.c-media-sources {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.c-rta-wrap {
  flex: 1;
  min-height: 0;
  border-radius: 8px;
  background: rgba(2, 6, 17, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
}

#c-rta-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.c-eq-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  align-items: center;
}

.c-eq-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  color: #94a3b8;
  font-weight: 700;
}

.c-eq-band input[type="range"] {
  writing-mode: vertical-lr;
  direction: rtl;
  height: 44px;
  width: 16px;
  accent-color: #38bdf8;
  cursor: pointer;
}

.c-media-view {
  display: none;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.c-media-view.active {
  display: flex;
}

.c-yt-stage {
  position: relative;
  height: 122px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: radial-gradient(circle at 35% 35%, rgba(239, 68, 68, 0.28), #020617 75%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  padding: 10px;
  text-align: center;
}

.c-yt-badge {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 8.5px;
  font-weight: 800;
  color: #f87171;
}

.c-yt-title {
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
}

.c-yt-bars {
  display: flex;
  gap: 4px;
  height: 18px;
  align-items: flex-end;
}

.c-car-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
}

.c-car-svg-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-car-svg {
  width: 100%;
  height: 100%;
  max-height: 185px;
}

.c-car-part {
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.28s ease;
}

.c-car-part:hover {
  filter: brightness(1.25);
}

.c-car-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.c-qbtn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.78);
  color: #cbd5e1;
  border-radius: 7px;
  padding: 5px 4px;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.c-qbtn.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.c-qbtn.warn {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

/* Right Workspace */
.c-workspace {
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.c-tab-pane {
  display: none;
  flex: 1;
  min-height: 0;
  padding: 10px 12px;
  overflow-y: auto;
  flex-direction: column;
  gap: 8px;
}

.c-tab-pane.active {
  display: flex;
}

.c-tab-pane.no-pad {
  padding: 0;
  overflow: hidden;
}

/* Cards & Grids inside tabs */
.c-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
}

.c-card-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.c-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.c-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.c-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.c-stat-box {
  background: rgba(2, 6, 17, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  padding: 6px 8px;
  text-align: center;
}

.c-stat-lbl {
  font-size: 8.5px;
  color: #94a3b8;
  font-weight: 700;
}

.c-stat-val {
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
  margin-top: 2px;
}

.c-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 10px;
}

.c-row:last-child {
  border-bottom: 0;
}

.c-slider {
  width: 100%;
  accent-color: #38bdf8;
  cursor: pointer;
}

/* Map Tab (3D ADAS + floating route bar) */
.c-map-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  background: #020813;
}

#central-3d-viewport {
  position: absolute;
  inset: 0;
}

.c-map-overlay-top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
  z-index: 10;
}

.c-map-overlay-top > * {
  pointer-events: auto;
}

.c-map-route-bar {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(2, 6, 17, 0.86);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  z-index: 10;
}

/* Rodapé automotivo — Início | A/C | Apps | Música + Config | Volume */
.c-dock {
  height: 12cqh;
  padding: 0 2cqw;
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.9), rgba(4, 6, 12, 0.97));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -1.2cqh 3cqh rgba(0, 0, 0, 0.35);
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  color: #f1f5f9;
  position: relative;
  z-index: 20;
}
.c-dock button { appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; font: inherit; }
.c-dock-sep { width: 1px; height: 5.6cqh; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.22), transparent); flex-shrink: 0; }
.c-dock-home {
  width: 7cqh;
  height: 7cqh;
  display: grid;
  place-items: center;
  border-radius: 2cqh;
  color: #f8fafc;
  transition: background 0.2s ease, color 0.2s ease;
}
.c-dock-home svg { width: 3.8cqh; height: 3.8cqh; }
.c-dock-home:hover { background: rgba(255, 255, 255, 0.08); }
.c-dock-home.active { color: #7dd3fc; background: rgba(56, 189, 248, 0.14); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35); }

.c-dock-ac, .c-dock-vol { display: inline-flex; align-items: center; gap: 0.6cqw; flex-shrink: 0; }
.c-dock-arrow {
  width: 4.4cqh;
  height: 5.6cqh;
  border-radius: 1.4cqh !important;
  font-size: 4.2cqh !important;
  line-height: 1;
  color: #cbd5e1 !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.c-dock-arrow:hover { background: rgba(255, 255, 255, 0.08) !important; color: #fff !important; }
.c-dock-arrow:active { transform: scale(0.92); }
.c-dock-ac-val { min-width: 9cqh; font-size: 4.3cqh !important; font-weight: 700 !important; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; text-align: center; }
.c-dock-ac-val.active { color: #7dd3fc !important; }
.c-dock-ac.off .c-dock-ac-val { color: #64748b !important; }

.c-dock-apps { flex: 1; display: flex; align-items: center; justify-content: center; gap: 1.2cqw; min-width: 0; }
.c-app {
  width: 6.6cqh;
  height: 6.6cqh;
  flex-shrink: 0;
  border-radius: 1.7cqh !important;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.c-app:hover { transform: translateY(-0.3cqh); }
.c-app:active { transform: scale(0.94); }
.c-app svg { width: 62%; height: 62%; }
.c-app-settings {
  color: #fff !important;
  background: linear-gradient(160deg, #9aa4b2 0%, #5b6574 55%, #3b4350 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0.6cqh 1.6cqh rgba(0, 0, 0, 0.45);
}
.c-app-settings.active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 0 0.35cqh rgba(56, 189, 248, 0.85), 0 0 2cqh rgba(56, 189, 248, 0.6); }
.c-app-empty {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: default !important;
}
.c-app-empty:hover { transform: none; }

.c-dock-music { display: flex; align-items: center; gap: 0.8cqw; width: 30cqw; flex-shrink: 0; min-width: 0; }
.c-dock-cover {
  width: 6cqh;
  height: 6cqh;
  flex-shrink: 0;
  border-radius: 1.4cqh !important;
  background: linear-gradient(135deg, #ec4899, #6366f1) !important;
  font-size: 3cqh !important;
  box-shadow: 0 0.5cqh 1.4cqh rgba(0, 0, 0, 0.4);
}
.c-dock-track { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 0.2cqh; }
.c-dock-track b, .c-dock-track small { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-dock-track b { font-size: 2.4cqh; font-weight: 700; }
.c-dock-track small { font-size: 1.8cqh; color: #94a3b8; font-weight: 600; }
.c-dock-prog { display: block; width: 100%; height: 0.45cqh; border-radius: 9px; background: rgba(255, 255, 255, 0.18); overflow: hidden; margin-top: 0.3cqh; }
.c-dock-prog s { display: block; height: 100%; width: 30%; border-radius: 9px; background: linear-gradient(90deg, #f8fafc, #cbd5e1); }
.c-dock-ctl { width: 4.8cqh; height: 4.8cqh; flex-shrink: 0; display: grid; place-items: center; border-radius: 50% !important; color: #f8fafc !important; }
.c-dock-ctl:hover { background: rgba(255, 255, 255, 0.1) !important; }
.c-dock-ctl svg { width: 64%; height: 64%; }
#c-dock-play .ic-pause { display: none; }
#c-dock-play.playing .ic-pause { display: block; }
#c-dock-play.playing .ic-play { display: none; }
.c-dock-gear.active { color: #7dd3fc !important; background: rgba(56, 189, 248, 0.14) !important; }

.c-dock-spk { width: 3cqh; height: 3cqh; color: #cbd5e1; }
#c-vol-lbl { min-width: 3.6cqh; text-align: center; font-size: 3.4cqh; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Scrollbar styling inside LCD */
.c-tab-pane::-webkit-scrollbar {
  width: 4px;
}
.c-tab-pane::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border-radius: 4px;
}
/* Vídeo de boas-vindas — toca DENTRO do LCD da moldura, sem textos */
.welcome-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: #000;
  overflow: hidden;
  cursor: pointer;
  border-radius: inherit;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.welcome-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.welcome-overlay.is-playing .welcome-video { opacity: 1; }
.welcome-overlay.needs-tap::after {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12cqh;
  height: 12cqh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 5cqh;
  backdrop-filter: blur(8px);
}
.welcome-overlay.is-leaving {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

/* =====================================================================
 * TELA INICIAL (HOME) — header de status + carro 3D + relógio grande
 * Todas as medidas usam cqh/cqw (unidades do LCD) para escalar com a moldura
 * ===================================================================== */
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/rajdhani-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/rajdhani-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/rajdhani-latin-700-normal.woff2") format("woff2"); }

.central-lcd {
  container-type: size;
  --tt-red: #ff3d3d;
  --tt-amber: #ffb21e;
  --tt-green: #2bea74;
  --tt-blue: #3d8bff;
  --home-glass: rgba(8, 14, 32, 0.38);
  --home-stroke: rgba(255, 255, 255, 0.16);
}

.c-home {
  display: none;
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #04081a;
  isolation: isolate;
}
.central-lcd.is-home .c-home { display: block; }
.central-lcd.is-home .c-topbar,
.central-lcd.is-home .c-body { display: none; }

.c-home-wall {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.c-home-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 16%),
    radial-gradient(120% 90% at 50% 55%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.35) 100%);
}

/* Carro 3D */
.c-home-3d {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: grab;
  touch-action: none;
}
.c-home-3d:active { cursor: grabbing; }
.c-home-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 1;
  transition: opacity 0.9s ease;
}
.c-home-3d.is-loading .c-home-3d-canvas { opacity: 0; }
.c-home-loader,
.c-home-err {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  gap: 1.4cqh;
  padding: 1.2cqh 2.4cqh;
  border-radius: 999px;
  background: var(--home-glass);
  border: 1px solid var(--home-stroke);
  backdrop-filter: blur(10px);
  font: 600 2.6cqh "Rajdhani", system-ui, sans-serif;
  letter-spacing: 0.06em;
  color: #e2e8f0;
}
.c-home-3d.is-loading .c-home-loader { display: inline-flex; }
.c-home-3d.has-error .c-home-err { display: inline-flex; }
.c-home-spin {
  width: 2.6cqh;
  height: 2.6cqh;
  border-radius: 50%;
  border: 0.45cqh solid rgba(255, 255, 255, 0.2);
  border-top-color: #7dd3fc;
  animation: cHomeSpin 0.9s linear infinite;
}
@keyframes cHomeSpin { to { transform: rotate(360deg); } }

/* Hotspots sobre a carroceria (cadeado, capô, porta-malas, faróis) */
.c-home-hotspots {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
/* Círculos de ação — discretos por padrão:
   - parado: pontinho de vidro (≈1,3cqh) com halo suave, sem ícone
   - perto do cursor (.near), tocando no carro (.reveal) ou menu aberto: cresce e mostra o ícone
   - a área de toque é sempre ≥ 5cqh (::before invisível), então continua fácil de acertar */
.c-hs {
  --hs: 1.3cqh;
  --hs-c: 255, 255, 255;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--hs);
  height: var(--hs);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(var(--hs-c), 0.55);
  background: radial-gradient(circle at 50% 45%, rgba(var(--hs-c), 0.85) 0 22%, rgba(12, 18, 30, 0.35) 30%, rgba(12, 18, 30, 0.2) 100%);
  box-shadow: 0 0 0.9cqh rgba(var(--hs-c), 0.35);
  color: #e2e8f0;
  cursor: pointer;
  transition: width 0.28s cubic-bezier(.2, .8, .2, 1), height 0.28s cubic-bezier(.2, .8, .2, 1), opacity 0.3s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}
.c-hs::before { content: ""; position: absolute; inset: 50% auto auto 50%; width: 5cqh; height: 5cqh; transform: translate(-50%, -50%); border-radius: 50%; }
.c-hs::after { content: ""; position: absolute; inset: -0.45cqh; border-radius: 50%; border: 1px solid rgba(var(--hs-c), 0.35); opacity: 0; animation: cHsPing 3.6s ease-out infinite; animation-delay: var(--hs-d, 0s); pointer-events: none; }
.c-hs svg { width: 50%; height: 50%; opacity: 0; transform: scale(0.6); transition: opacity 0.2s ease, transform 0.25s ease; }
.c-hs.on { --hs-c: 125, 211, 252; }
.c-hs[data-hs="lock"].on { --hs-c: 255, 190, 70; }

.c-home-hotspots.reveal .c-hs,
.c-home-hotspots:has(.c-hs.sel) .c-hs,
.c-hs.near,
.c-hs:hover,
.c-hs:focus-visible,
.c-hs.sel {
  --hs: 3.5cqh;
  background: radial-gradient(circle at 40% 30%, rgba(40, 48, 64, 0.72), rgba(10, 14, 22, 0.62));
  border-color: rgba(var(--hs-c), 0.5);
  box-shadow: 0 0.4cqh 1.4cqh rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.c-home-hotspots.reveal .c-hs::after,
.c-home-hotspots:has(.c-hs.sel) .c-hs::after,
.c-hs.near::after, .c-hs:hover::after, .c-hs.sel::after { animation: none; }
.c-home-hotspots.reveal .c-hs svg,
.c-home-hotspots:has(.c-hs.sel) .c-hs svg,
.c-hs.near svg, .c-hs:hover svg, .c-hs:focus-visible svg, .c-hs.sel svg { opacity: 0.92; transform: none; }
.c-hs.on svg { color: rgb(var(--hs-c)); }
.c-hs:hover, .c-hs:focus-visible { border-color: rgba(var(--hs-c), 0.85); box-shadow: 0 0 0 0.35cqh rgba(var(--hs-c), 0.15), 0 0.4cqh 1.6cqh rgba(0, 0, 0, 0.4); outline: none; }
@keyframes cHsPing { 0% { opacity: 0.55; transform: scale(0.6); } 45%, 100% { opacity: 0; transform: scale(2.1); } }

/* Header */
.c-home-header {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 5;
  height: 8.6cqh;
  padding: 0 2.2cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4cqw;
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.c-home-header > * { pointer-events: auto; }
.c-home-hl,
.c-home-hr {
  display: flex;
  align-items: center;
  gap: 1.1cqw;
  min-width: 0;
}
.c-home-hr { gap: 1.6cqw; flex-shrink: 0; }

.c-home-user {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7cqw;
  padding: 0.5cqh 1.1cqw 0.5cqh 0.5cqh;
  border-radius: 999px;
  border: 1px solid var(--home-stroke);
  background: var(--home-glass);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  font: 700 2.5cqh "Rajdhani", system-ui, sans-serif;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.c-home-avatar {
  --av: #38bdf8;
  width: 4.4cqh;
  height: 4.4cqh;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 2.3cqh "Rajdhani", system-ui, sans-serif;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--av) 55%, #fff), var(--av) 60%, color-mix(in srgb, var(--av) 60%, #000));
  box-shadow: 0 0 0 0.3cqh rgba(255, 255, 255, 0.85), 0 0 1.6cqh color-mix(in srgb, var(--av) 70%, transparent);
}
.c-home-uname { max-width: 12cqw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.c-home-prnd {
  display: inline-flex;
  align-items: center;
  gap: 0.15cqw;
  padding: 0.45cqh 1cqw;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.55);
  background: rgba(10, 30, 90, 0.45);
  backdrop-filter: blur(10px);
  font: 700 2.5cqh "Rajdhani", system-ui, sans-serif;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.c-home-prnd span {
  padding: 0 0.35cqw;
  color: rgba(226, 232, 240, 0.45);
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.c-home-prnd span.on { color: #fff; text-shadow: 0 0 1.2cqh rgba(125, 211, 252, 0.95); }

.c-home-range {
  display: inline-flex;
  align-items: center;
  gap: 0.5cqw;
  flex-shrink: 0;
}
.c-home-range > svg { width: 2.8cqh; height: 2.8cqh; color: #fbbf24; filter: drop-shadow(0 0 0.6cqh rgba(251, 191, 36, 0.55)); }
.c-home-range-txt { display: grid; grid-template-columns: auto auto; column-gap: 0.25cqw; align-items: baseline; line-height: 1; }
.c-home-range-txt b { font: 700 2.7cqh "Rajdhani", system-ui, sans-serif; }
.c-home-range-txt small { font: 600 1.8cqh "Rajdhani", system-ui, sans-serif; color: #cbd5e1; }
.c-home-range-txt i {
  grid-column: 1 / -1;
  display: block;
  margin-top: 0.35cqh;
  width: 5.6cqw;
  height: 0.45cqh;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}
.c-home-range-txt s { display: block; height: 100%; width: 62%; border-radius: 9px; background: #4ade80; transition: width 0.6s ease; }

/* Luzes-espia (telltales) */
.c-home-tells {
  display: flex;
  align-items: center;
  gap: 0.75cqw;
  min-width: 0;
  min-height: 4.6cqh;
  padding: 0.5cqh 1cqw;
  border-radius: 999px;
  overflow: hidden;
}
.c-home-tells.empty::after {
  content: "Sem alertas";
  font: 600 1.9cqh "Rajdhani", system-ui, sans-serif;
  color: rgba(226, 232, 240, 0.55);
  letter-spacing: 0.06em;
}
.c-tt {
  --tt: #fff;
  width: 3.6cqh;
  height: 3.6cqh;
  flex-shrink: 0;
  color: var(--tt);
  filter: drop-shadow(0 0 0.55cqh color-mix(in srgb, var(--tt) 80%, transparent)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
  animation: cTtIn 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
.c-tt svg { width: 100%; height: 100%; display: block; }
.c-tt.blink { animation: cTtIn 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.3) both, cTtBlink 1s steps(1, end) infinite; }
.c-tt.out { animation: cTtOut 0.2s ease forwards; }
@keyframes cTtIn { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes cTtOut { to { opacity: 0; transform: scale(0.5); } }
@keyframes cTtBlink { 50% { opacity: 0.12; } }

/* Lado direito: temperatura externa · 4G · hora */
.c-home-temp,
.c-home-net {
  display: inline-flex;
  align-items: center;
  gap: 0.35cqw;
  font: 700 2.7cqh "Rajdhani", system-ui, sans-serif;
}
.c-home-temp svg { width: 2.7cqh; height: 2.7cqh; color: #7dd3fc; filter: drop-shadow(0 0 0.5cqh rgba(125, 211, 252, 0.6)); }
.c-home-bars { display: inline-flex; align-items: flex-end; gap: 0.18cqw; height: 2.4cqh; }
.c-home-bars .bar {
  display: block;
  width: 0.38cqw;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.3s ease;
}
.c-home-bars .bar:nth-child(1) { height: 30%; }
.c-home-bars .bar:nth-child(2) { height: 52%; }
.c-home-bars .bar:nth-child(3) { height: 76%; }
.c-home-bars .bar:nth-child(4) { height: 100%; }
.c-home-bars .bar.on { background: #fff; box-shadow: 0 0 0.6cqh rgba(255, 255, 255, 0.6); }
.c-home-net b { font-size: 2cqh; letter-spacing: 0.04em; }
.c-home-time { font: 700 2.9cqh "Rajdhani", system-ui, sans-serif; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

/* Relógio e data grandes (canto superior esquerdo) */
.c-home-clock {
  position: absolute;
  left: 4.2cqw;
  top: 12.5cqh;
  z-index: 4;
  pointer-events: none;
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  color: #fff;
  line-height: 0.92;
  text-shadow: 0 0.4cqh 2.4cqh rgba(0, 0, 0, 0.35), 0 0 4cqh rgba(160, 190, 255, 0.25);
}
.c-home-clock-time {
  font-size: 15cqh;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #dbe7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0.5cqh 1.4cqh rgba(0, 0, 0, 0.35));
}
.c-home-clock-time small { font-size: 0.32em; margin-left: 0.25em; letter-spacing: 0.08em; }
.c-home-colon { animation: cColon 2s steps(1, end) infinite; }
@keyframes cColon { 50% { opacity: 0.35; } }
.c-home-clock-day,
.c-home-clock-date {
  font-size: 10.5cqh;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 0.6cqh;
}

/* Revelação após o vídeo de boas-vindas */
.c-home.reveal .c-home-clock { animation: cHomeRise 1s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.c-home.reveal .c-home-header { animation: cHomeDrop 0.9s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes cHomeRise { from { opacity: 0; transform: translateY(3cqh); } to { opacity: 1; transform: none; } }
@keyframes cHomeDrop { from { opacity: 0; transform: translateY(-3cqh); } to { opacity: 1; transform: none; } }

/* Popovers (perfis e simulador de sinais) */
.c-home-pop {
  position: absolute;
  z-index: 8;
  top: 9.4cqh;
  padding: 1.2cqh;
  border-radius: 1.8cqh;
  background: rgba(8, 13, 28, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.28);
  backdrop-filter: blur(16px);
  box-shadow: 0 2cqh 5cqh rgba(0, 0, 0, 0.55);
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  animation: cHomePop 0.22s ease both;
}
.c-home-pop[hidden] { display: none; }
@keyframes cHomePop { from { opacity: 0; transform: translateY(-1cqh) scale(0.98); } to { opacity: 1; transform: none; } }
.c-home-pop-prof { left: 2.2cqw; min-width: 24cqw; display: grid; gap: 0.6cqh; }
.c-home-pop-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 700 2.1cqh "Rajdhani", system-ui, sans-serif;
  letter-spacing: 0.06em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 0.8cqh;
}
.c-home-x { appearance: none; border: 0; background: transparent; color: #cbd5e1; font-size: 2.2cqh; cursor: pointer; }
.c-home-prof {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  padding: 0.7cqh 0.8cqw;
  border-radius: 1.2cqh;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
  font: 700 2.3cqh "Rajdhani", system-ui, sans-serif;
  cursor: pointer;
  text-align: left;
}
.c-home-prof .c-home-avatar { width: 3.6cqh; height: 3.6cqh; font-size: 1.9cqh; }
.c-home-prof.on { border-color: rgba(56, 189, 248, 0.6); background: rgba(56, 189, 248, 0.12); }
.c-home-prof.edit { color: #7dd3fc; font-size: 1.9cqh; justify-content: center; }

/* Configurações: grade de papéis de parede e pinturas */
.c-wall-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 4px 0 6px;
}
.c-wall-tile {
  appearance: none;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.c-wall-tile:hover { transform: translateY(-1px); }
.c-wall-tile.active { border-color: #38bdf8; box-shadow: 0 0 10px rgba(56, 189, 248, 0.45); }
.c-wall-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.12) center / cover no-repeat;
  font-size: 18px;
  color: #94a3b8;
}
.c-wall-up { border: 1px dashed rgba(148, 163, 184, 0.5); }
.c-wall-tile em { display: block; font-style: normal; font-size: 8px; font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-paint-row { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.c-paint {
  --paint: #ccc;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--paint) 40%, #fff) 0%, var(--paint) 45%, color-mix(in srgb, var(--paint) 55%, #000) 100%);
  cursor: pointer;
  padding: 0;
}
.c-paint.active { border-color: #fff; box-shadow: 0 0 0 2px #38bdf8, 0 0 10px rgba(56, 189, 248, 0.6); }
#cfg-home-card.flash { animation: cCardFlash 1.4s ease; }
@keyframes cCardFlash { 0%, 60% { box-shadow: 0 0 0 2px #38bdf8, 0 0 18px rgba(56, 189, 248, 0.5); } 100% { box-shadow: none; } }

/* Círculo selecionado (menu aberto) */
.c-hs.sel { --hs: 3.8cqh; border-color: rgba(var(--hs-c), 0.95); box-shadow: 0 0 0 0.4cqh rgba(var(--hs-c), 0.18), 0 0 2cqh rgba(var(--hs-c), 0.35); }

/* Menu de ações dos círculos (faróis, vidros, teto, porta-malas…) */
.c-home-act {
  position: absolute;
  z-index: 9;
  width: 31cqw;
  max-height: 80cqh;
  overflow: auto;
  padding: 1.8cqh 1.4cqw 1.6cqh;
  border-radius: 2.2cqh;
  background: linear-gradient(160deg, rgba(14, 22, 44, 0.86), rgba(6, 10, 24, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 2.4cqh 6cqh rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  color: #f1f5f9;
  animation: cHomePop 0.2s ease both;
}
.c-home-act[hidden] { display: none; }
.c-act-close { position: absolute; right: 1cqw; top: 1cqh; }
.c-act-title { font: 700 2.9cqh "Rajdhani", system-ui, sans-serif; letter-spacing: 0.03em; margin: 0 2.4cqw 0.4cqh 0; }
.c-act-status { font: 600 2cqh "Rajdhani", system-ui, sans-serif; color: #7dd3fc; margin-bottom: 1.2cqh; }
.c-act-sub { font: 600 1.9cqh "Rajdhani", system-ui, sans-serif; color: #94a3b8; margin: 1.4cqh 0 0.6cqh; }
.c-act-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6cqw; }
.c-act-btns.two { grid-template-columns: repeat(2, 1fr); }
.c-act-btn {
  appearance: none;
  padding: 1.1cqh 0.4cqw;
  border-radius: 1.2cqh;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font: 700 2cqh "Rajdhani", system-ui, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.15s ease;
}
.c-act-btn:hover { background: rgba(255, 255, 255, 0.12); }
.c-act-btn.on {
  color: #04111f;
  background: linear-gradient(180deg, #bae6fd, #38bdf8);
  border-color: #e0f2fe;
  box-shadow: 0 0 1.6cqh rgba(56, 189, 248, 0.55);
}
.c-act-tog {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1cqw;
  margin-top: 0.6cqh;
  padding: 1cqh 1cqw;
  border-radius: 1.2cqh;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font: 700 2.15cqh "Rajdhani", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.c-act-tog em {
  font-style: normal;
  font-size: 1.75cqh;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3cqh 0.8cqw;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  white-space: nowrap;
}
.c-act-tog.on { border-color: rgba(56, 189, 248, 0.55); background: rgba(56, 189, 248, 0.1); }
.c-act-tog.on em { background: #38bdf8; color: #04111f; box-shadow: 0 0 1.2cqh rgba(56, 189, 248, 0.6); }
.c-act-pct { display: flex; align-items: center; gap: 1cqw; }
.c-act-pct b { min-width: 5cqw; text-align: right; font: 700 2.4cqh "Rajdhani", system-ui, sans-serif; }
.c-act-range {
  --v: 0%;
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 0.9cqh;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8 0 var(--v), rgba(255, 255, 255, 0.16) var(--v) 100%);
  outline: none;
  cursor: pointer;
}
.c-act-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 3.2cqh;
  height: 3.2cqh;
  border-radius: 50%;
  background: #fff;
  border: 0.4cqh solid #38bdf8;
  box-shadow: 0 0 1.4cqh rgba(56, 189, 248, 0.7);
}
.c-act-range::-moz-range-thumb {
  width: 3.2cqh;
  height: 3.2cqh;
  border-radius: 50%;
  background: #fff;
  border: 0.4cqh solid #38bdf8;
}

/* Cor personalizada da pintura */
.c-paint-custom {
  position: relative;
  overflow: hidden;
  background: conic-gradient(#ef4444, #f59e0b, #84cc16, #22d3ee, #6366f1, #d946ef, #ef4444);
}
.c-paint-custom.active { background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--paint) 40%, #fff) 0%, var(--paint) 45%, color-mix(in srgb, var(--paint) 55%, #000) 100%); }
.c-paint-custom input { position: absolute; inset: -6px; width: 200%; height: 200%; opacity: 0; cursor: pointer; }

/* Ícones de conexão no header (Wi-Fi, Bluetooth, OBD2, GPS) */
.c-home-conn { display: inline-flex; align-items: center; gap: 1cqw; }
.c-conn {
  position: relative;
  width: 2.7cqh;
  height: 2.7cqh;
  color: #fff;
  filter: drop-shadow(0 0 0.5cqh rgba(255, 255, 255, 0.45));
  transition: color 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}
.c-conn svg { width: 100%; height: 100%; display: block; }
.c-conn[data-conn="bt"] { color: #7cc4ff; filter: drop-shadow(0 0 0.6cqh rgba(56, 160, 255, 0.7)); }
.c-conn[data-conn="obd"] { color: #4ade80; filter: drop-shadow(0 0 0.6cqh rgba(74, 222, 128, 0.6)); }
.c-conn.off { color: rgba(203, 213, 225, 0.38); filter: none; }
.c-conn.off::after {
  content: "";
  position: absolute;
  left: -8%;
  top: 46%;
  width: 116%;
  height: 0.32cqh;
  border-radius: 2px;
  background: #ff4d4d;
  transform: rotate(-40deg);
  box-shadow: 0 0 0.6cqh rgba(255, 77, 77, 0.8);
}

/* Bateria 12 V / alternador — ícone pequeno ao lado da hora do header */
.c-home-batt {
  --bc: #34d399;
  display: inline-flex;
  width: 2.9cqh;
  height: 2.6cqh;
  color: var(--bc);
  filter: drop-shadow(0 0 0.6cqh color-mix(in srgb, var(--bc) 75%, transparent));
  cursor: help;
}
.c-home-batt svg { width: 100%; height: 100%; display: block; overflow: visible; }
.c-home-batt .b-ico { display: none; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.c-home-batt[data-mode="charging"] .b-charging,
.c-home-batt[data-mode="hold"] .b-hold,
.c-home-batt[data-mode="drain"] .b-drain { display: block; }
.c-home-batt[data-mode="charging"] { --bc: #34d399; }
.c-home-batt[data-mode="charging"] .b-charging { animation: cBattUp 1.6s ease-in-out infinite; }
.c-home-batt[data-mode="hold"] { --bc: #fbbf24; }
.c-home-batt[data-mode="drain"] { --bc: #f87171; }
.c-home-batt[data-mode="drain"] .b-drain { animation: cBattDown 1.6s ease-in-out infinite; }
@keyframes cBattUp { 0%, 100% { transform: translateY(1.5px); opacity: 0.6; } 50% { transform: translateY(-1.5px); opacity: 1; } }
@keyframes cBattDown { 0%, 100% { transform: translateY(-1.5px); opacity: 0.6; } 50% { transform: translateY(1.5px); opacity: 1; } }

/* =====================================================================
 * SETTINGS — menu lateral | conteúdo | carro 3D parado
 * ===================================================================== */
.c-settings {
  display: none;
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  grid-template-columns: 21cqw minmax(0, 1fr) 33cqw;
  background:
    radial-gradient(70% 90% at 92% 45%, rgba(120, 104, 170, 0.32), rgba(0, 0, 0, 0) 70%),
    linear-gradient(160deg, #24222f 0%, #1b1a24 45%, #121118 100%);
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  color: #f1f5f9;
}
.central-lcd.is-settings .c-settings { display: grid; }
.central-lcd.is-settings .c-topbar,
.central-lcd.is-settings .c-body { display: none; }

.s-side {
  display: flex;
  flex-direction: column;
  gap: 0.6cqh;
  padding: 3.4cqh 1.2cqw 2cqh 2.2cqw;
  overflow-y: auto;
  scrollbar-width: none;
  position: relative;
  z-index: 2;
}
.s-side h2 { margin: 0 0 2cqh 0.6cqw; font: 600 5.2cqh "Rajdhani", system-ui, sans-serif; letter-spacing: 0.01em; }
.s-nav {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 1cqw;
  padding: 1.25cqh 1cqw;
  border: 0;
  border-radius: 1.6cqh;
  background: transparent;
  color: #e2e8f0;
  font: 600 2.45cqh "Rajdhani", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.s-nav svg { width: 2.9cqh; height: 2.9cqh; flex-shrink: 0; }
.s-nav:hover { background: rgba(255, 255, 255, 0.06); }
.s-nav.on { background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.1)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }

.s-content {
  position: relative;
  z-index: 2;
  overflow-y: auto;
  padding: 3.6cqh 2cqw 4cqh 1.4cqw;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.s-pane { display: none; animation: sPaneIn 0.25s ease both; }
.s-pane.on { display: block; }
@keyframes sPaneIn { from { opacity: 0; transform: translateY(1cqh); } to { opacity: 1; transform: none; } }
.s-pane h3 { margin: 0 0 1.6cqh; font: 600 3.4cqh "Rajdhani", system-ui, sans-serif; color: #fff; }
.s-group { margin-bottom: 2.6cqh; padding-bottom: 2.2cqh; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.s-group:last-child { border-bottom: 0; }
.s-group h4 { margin: 0 0 1.2cqh; font: 600 2cqh "Rajdhani", system-ui, sans-serif; color: #a1a1b5; letter-spacing: 0.02em; }
.s-list { display: flex; flex-direction: column; gap: 1.8cqh; }

.s-row { display: flex; align-items: flex-start; gap: 1.2cqw; }
.s-row-ctl { align-items: center; justify-content: space-between; }
.s-txt { display: flex; flex-direction: column; gap: 0.3cqh; min-width: 0; }
.s-txt b { font: 600 2.4cqh "Rajdhani", system-ui, sans-serif; color: #f8fafc; }
.s-txt small { font: 500 1.85cqh "Rajdhani", system-ui, sans-serif; color: #a5a5b8; line-height: 1.25; }

.s-switch {
  appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 6cqh;
  height: 3.3cqh;
  margin-top: 0.2cqh;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: background 0.2s ease;
}
.s-switch::after {
  content: "";
  position: absolute;
  left: 0.35cqh;
  top: 0.35cqh;
  width: 2.6cqh;
  height: 2.6cqh;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.3cqh 0.8cqh rgba(0, 0, 0, 0.35);
  transition: transform 0.22s cubic-bezier(0.3, 0.9, 0.3, 1.2);
}
.s-switch.on { background: linear-gradient(90deg, #2f80ff, #38bdf8); }
.s-switch.on::after { transform: translateX(2.7cqh); }

.s-panel { display: flex; flex-direction: column; border-radius: 1.8cqh; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.s-link {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 1cqw;
  padding: 2cqh 1.4cqw;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.s-link + .s-link { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.s-link:hover { background: rgba(255, 255, 255, 0.05); }
.s-link .s-txt { flex: 1; }
.s-link em { font: 600 1.9cqh "Rajdhani", system-ui, sans-serif; font-style: normal; color: #c4c4d4; }
.s-link i { font-style: normal; font-size: 2.8cqh; color: #c4c4d4; }

.s-select {
  appearance: none;
  min-width: 14cqw;
  padding: 0.9cqh 3cqw 0.9cqh 1cqw;
  border-radius: 1.2cqh;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 0.8cqw center / 2.4cqh no-repeat;
  color: #f1f5f9;
  font: 600 2cqh "Rajdhani", system-ui, sans-serif;
  cursor: pointer;
}
.s-select option { background: #1b1a24; color: #f1f5f9; }
.s-rangebox { display: flex; align-items: center; gap: 0.8cqw; min-width: 16cqw; }
.s-rangebox em { min-width: 4.6cqw; text-align: right; font: 700 2.1cqh "Rajdhani", system-ui, sans-serif; font-style: normal; }
.s-range {
  --v: 50%;
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 0.8cqh;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8 0 var(--v), rgba(255, 255, 255, 0.18) var(--v) 100%);
  cursor: pointer;
}
.s-range::-webkit-slider-thumb { -webkit-appearance: none; width: 2.8cqh; height: 2.8cqh; border-radius: 50%; background: #fff; box-shadow: 0 0.3cqh 0.8cqh rgba(0, 0, 0, 0.4); }
.s-range::-moz-range-thumb { width: 2.8cqh; height: 2.8cqh; border: 0; border-radius: 50%; background: #fff; }
.s-swatches { display: flex; gap: 0.6cqw; }
.s-swatch { appearance: none; width: 3.4cqh; height: 3.4cqh; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); background: var(--c); cursor: pointer; box-shadow: 0 0 1cqh color-mix(in srgb, var(--c) 60%, transparent); }
.s-swatch.on { border-color: #fff; box-shadow: 0 0 0 0.3cqh rgba(255, 255, 255, 0.35), 0 0 1.6cqh var(--c); }
.s-info { font: 700 2cqh "Rajdhani", system-ui, sans-serif; }

/* Cartões existentes reaproveitados dentro do Settings */
.s-legacy .c-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 1.8cqh; padding: 1.6cqh 1.2cqw; font-size: 1.9cqh; }
.s-legacy .c-card-title { font-size: 1.9cqh; color: #a1a1b5; }
.s-legacy .c-row { font-size: 2cqh; }

/* Carro 3D parado à direita (cortado na borda, como na referência) */
.s-car { position: relative; min-width: 0; overflow: hidden; }
.s-car .c-home-3d-canvas { opacity: 0; transition: opacity 0.8s ease; }
.s-car.ready .c-home-3d-canvas { opacity: 1; }

/* =====================================================================
 * NAVEGAÇÃO 3D — tela cheia com painéis flutuantes
 * ===================================================================== */
.central-lcd.is-nav .c-topbar { display: none; }
.central-lcd.is-nav .c-body { display: block; position: relative; }
.central-lcd.is-nav .c-workspace { position: absolute; inset: 0; }
.central-lcd.is-nav .c-car-pane {
  position: absolute;
  z-index: 15;
  left: 1.2cqw;
  top: 2cqh;
  bottom: 2cqh;
  width: 25cqw;
  padding: 1.6cqh 1cqw;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2.2cqh;
  background: linear-gradient(170deg, rgba(10, 16, 32, 0.8), rgba(4, 8, 18, 0.86));
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 2cqh 5cqh rgba(0, 0, 0, 0.45);
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
}
.central-lcd.is-nav #c-left-nav { gap: 1.3cqh; }
.central-lcd.is-nav .c-nav-turn-box { order: -1; padding: 1.4cqh 1cqw; gap: 1cqw; border-radius: 1.8cqh; background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(14, 116, 144, 0.45)); border-color: rgba(125, 211, 252, 0.45); }
.central-lcd.is-nav .c-nav-turn-arrow { width: 7cqh; height: 7cqh; border-radius: 1.6cqh; font-size: 4.6cqh; color: #fff; background: rgba(255, 255, 255, 0.16); }
.central-lcd.is-nav #c-nav-dist { font-size: 3.4cqh !important; color: #fff !important; }
.central-lcd.is-nav #c-nav-inst { font-size: 2cqh !important; white-space: normal !important; }
.central-lcd.is-nav .c-nav-input { font-size: 2.1cqh; padding: 1cqh 0.8cqw; border-radius: 1.2cqh; }
.central-lcd.is-nav .c-qbtn, .central-lcd.is-nav .c-pill { font-size: 1.9cqh; padding: 0.8cqh 0.7cqw; border-radius: 1.1cqh; }
.central-lcd.is-nav .c-nav-meta { font-size: 1.6cqh; }
.central-lcd.is-nav .c-nav-minimap-wrap { border-radius: 1.6cqh; }

.central-lcd.is-nav .c-map-overlay-top { left: 28cqw; right: 1.2cqw; top: 2cqh; align-items: flex-start; }
.c-nav-cams { display: flex; gap: 0.5cqw; flex-wrap: wrap; }
.central-lcd.is-nav .c-map-overlay-top .c-pill {
  background: rgba(6, 10, 22, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-family: "Rajdhani", system-ui, sans-serif;
  font-weight: 700;
}
.central-lcd.is-nav .c-map-overlay-top .c-pill.active { background: rgba(56, 189, 248, 0.28); border-color: rgba(125, 211, 252, 0.7); color: #fff; }

.central-lcd.is-nav .c-map-route-bar {
  left: 28cqw;
  right: 1.2cqw;
  bottom: 2cqh;
  padding: 1.3cqh 1.4cqw;
  gap: 1.4cqw;
  border-radius: 1.8cqh;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(6, 10, 22, 0.78);
  backdrop-filter: blur(12px);
  font: 600 2.1cqh "Rajdhani", system-ui, sans-serif;
}
.c-route-prog { flex: 1; height: 0.7cqh; min-width: 6cqw; border-radius: 9px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.c-route-prog s { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, #38bdf8, #4ade80); transition: width 0.4s ease; }
#c-route-eta-lbl { color: #4ade80; font-weight: 700; white-space: nowrap; }

.c-nav-hud { display: none; }
.central-lcd.is-nav .c-nav-hud {
  position: absolute;
  z-index: 12;
  right: 1.2cqw;
  bottom: 11cqh;
  display: flex;
  align-items: center;
  gap: 1cqw;
  font-family: "Rajdhani", system-ui, sans-serif;
}
.c-nav-speed {
  width: 11cqh;
  height: 11cqh;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, rgba(30, 41, 59, 0.92), rgba(2, 6, 17, 0.92));
  border: 0.35cqh solid rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 2cqh rgba(56, 189, 248, 0.35);
  line-height: 1;
}
.c-nav-speed b { font-size: 4.6cqh; font-weight: 700; color: #fff; }
.c-nav-speed small { font-size: 1.6cqh; color: #94a3b8; font-weight: 700; }
.c-nav-speed.over { border-color: #ef4444; box-shadow: 0 0 2.4cqh rgba(239, 68, 68, 0.6); }
.c-nav-speed.over b { color: #fca5a5; }
.c-nav-limit {
  width: 7.4cqh;
  height: 7.4cqh;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 0.9cqh solid #dc2626;
  color: #0b0f19;
  font: 800 3cqh "Rajdhani", system-ui, sans-serif;
  box-shadow: 0 0.6cqh 1.6cqh rgba(0, 0, 0, 0.45);
}
.c-nav-signal {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5cqh;
  padding: 0.9cqh 0.6cqw;
  border-radius: 1.4cqh;
  background: rgba(10, 12, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.c-nav-signal:not([data-phase="off"]) { display: flex; }
.c-nav-signal i { width: 2.4cqh; height: 2.4cqh; border-radius: 50%; background: #2a2f38; }
.c-nav-signal[data-phase="red"] i:nth-child(1) { background: #ef4444; box-shadow: 0 0 1.4cqh #ef4444; }
.c-nav-signal[data-phase="yellow"] i:nth-child(2) { background: #facc15; box-shadow: 0 0 1.4cqh #facc15; }
.c-nav-signal[data-phase="green"] i:nth-child(3) { background: #22c55e; box-shadow: 0 0 1.4cqh #22c55e; }
.c-nav-signal small { font-size: 1.5cqh; color: #cbd5e1; font-weight: 700; }

/* Ícone do app Navegação no rodapé */
.c-app-nav {
  color: #fff !important;
  background: linear-gradient(160deg, #60a5fa 0%, #2563eb 55%, #1e3a8a 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0.6cqh 1.6cqh rgba(0, 0, 0, 0.45);
}
.c-app-nav svg { width: 52%; height: 52%; transform: rotate(0deg); }
.c-app-nav.active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 0 0.35cqh rgba(56, 189, 248, 0.85), 0 0 2cqh rgba(56, 189, 248, 0.6); }

/* Barra superior antiga removida de todas as telas (substituída por header/rodapé) */
.c-topbar { display: none !important; }

/* Previsão de hoje (painel esquerdo do Clima) */
.c-today { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 10px; background: linear-gradient(160deg, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.6)); border: 1px solid rgba(125, 211, 252, 0.25); }
.c-today-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 10px; }
.c-today-h b { color: #e0f2fe; letter-spacing: 0.04em; }
.c-today-h span { color: #94a3b8; font-size: 9px; font-weight: 700; }
.c-today-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.c-today-slot { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 0; border-radius: 7px; background: rgba(255, 255, 255, 0.04); font-size: 9px; }
.c-today-slot.now { background: rgba(56, 189, 248, 0.2); box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.45); }
.c-today-slot small { color: #94a3b8; font-weight: 700; }
.c-today-slot span { font-size: 14px; line-height: 1.2; }
.c-today-slot b { color: #f8fafc; font-size: 11px; }
.c-today-slot em { font-style: normal; color: #7dd3fc; font-size: 7.5px; font-weight: 700; }

/* =====================================================================
 * TELAS CHEIAS: Música · Veículo · Estacionamento
 * ===================================================================== */
.c-screen { display: none; position: relative; flex: 1; min-height: 0; overflow: hidden; font-family: "Rajdhani", "Inter", system-ui, sans-serif; color: #f1f5f9; }
.central-lcd.is-screen .c-body { display: none; }
.central-lcd[data-screen="music"] #c-music,
.central-lcd[data-screen="vehicle"] #c-vehicle,
.central-lcd[data-screen="park"] #c-park,
.central-lcd[data-screen="manuals"] #c-manuals { display: grid; }

/* ---------- Música ---------- */
.c-music {
  --svc: #1ed760;
  grid-template-columns: 21cqw minmax(0, 1fr) 30cqw;
  background:
    radial-gradient(60% 80% at 50% 30%, color-mix(in srgb, var(--svc) 22%, transparent), transparent 70%),
    linear-gradient(160deg, #15161d 0%, #0d0e13 100%);
  transition: background 0.6s ease;
}
.m-side { display: flex; flex-direction: column; gap: 0.5cqh; padding: 3.2cqh 1cqw 2cqh 2cqw; overflow-y: auto; scrollbar-width: none; }
.m-side h2 { margin: 0 0 1.4cqh 0.4cqw; font: 600 5cqh "Rajdhani", system-ui, sans-serif; }
.m-sub { margin: 1.2cqh 0 0.6cqh 0.4cqw; font: 700 1.7cqh "Rajdhani", system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: #8b8fa3; }
.m-svc { appearance: none; display: flex; align-items: center; gap: 0.9cqw; padding: 1cqh 0.8cqw; border: 0; border-radius: 1.6cqh; background: transparent; color: #e2e8f0; font: 600 2.35cqh "Rajdhani", system-ui, sans-serif; text-align: left; cursor: pointer; transition: background 0.18s ease; }
.m-svc:hover { background: rgba(255, 255, 255, 0.06); }
.m-svc.on { background: color-mix(in srgb, var(--svc) 20%, rgba(255, 255, 255, 0.06)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--svc) 55%, transparent); }
.m-svc-ic { width: 4cqh; height: 4cqh; border-radius: 1.1cqh; display: grid; place-items: center; background: var(--svc); color: #fff; flex-shrink: 0; box-shadow: 0 0.4cqh 1.2cqh color-mix(in srgb, var(--svc) 45%, transparent); }
.m-svc-ic svg { width: 62%; height: 62%; }
.m-svc-ic img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: inherit; }
.m-svc-ic:has(img) { background: transparent; box-shadow: none; }
.m-svc > img.m-logo { width: 4cqh; height: 4cqh; border-radius: 1.1cqh; object-fit: contain; background: var(--svc); padding: 0.55cqh; flex-shrink: 0; box-shadow: 0 0.4cqh 1.2cqh color-mix(in srgb, var(--svc) 45%, transparent); }
.m-svc > img:not(.m-logo) { width: 4cqh; height: 4cqh; border-radius: 1.1cqh; object-fit: contain; background: var(--svc); padding: 0.55cqh; flex-shrink: 0; box-shadow: 0 0.4cqh 1.2cqh color-mix(in srgb, var(--svc) 45%, transparent); }
.m-coll { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6cqw; }
.m-coll-btn {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5cqw;
  padding: 1.1cqh 0.8cqw;
  border-radius: 1.4cqh;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #f1f5f9;
  font: 700 1.95cqh "Rajdhani", system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.m-coll-btn::before { font-size: 2.1cqh; line-height: 1; }
.m-playlists::before { content: "🎵"; }
.m-favorites::before { content: "❤️"; }
.m-coll-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: color-mix(in srgb, var(--svc) 55%, transparent); }
.m-coll-btn.on { background: color-mix(in srgb, var(--svc) 22%, rgba(255, 255, 255, 0.06)); border-color: color-mix(in srgb, var(--svc) 70%, transparent); color: #fff; }

.m-now { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqh; padding: 2cqh 2cqw; min-width: 0; }
.m-brand { display: flex; align-items: center; gap: 0.7cqw; font-size: 2.1cqh; }
.m-brand b { color: var(--svc); font-weight: 700; }
.m-brand small { color: #9ca3af; font-size: 1.8cqh; }
.m-dot { width: 1cqh; height: 1cqh; border-radius: 50%; background: var(--svc); box-shadow: 0 0 1cqh var(--svc); }
.m-cover {
  position: relative;
  width: 30cqh;
  height: 30cqh;
  border-radius: 3cqh;
  display: grid;
  place-items: center;
  font-size: 12cqh;
  background: linear-gradient(135deg, var(--svc), #6366f1 55%, #0f172a);
  box-shadow: 0 3cqh 7cqh color-mix(in srgb, var(--svc) 35%, rgba(0, 0, 0, 0.6)), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.m-cover span { position: relative; z-index: 2; filter: drop-shadow(0 1cqh 2cqh rgba(0, 0, 0, 0.4)); }
.m-vinyl { position: absolute; inset: 12%; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(0, 0, 0, 0.18) 0 2px, rgba(255, 255, 255, 0.04) 2px 4px); opacity: 0.55; }
.m-cover.spin .m-vinyl { animation: mSpin 6s linear infinite; }
@keyframes mSpin { to { transform: rotate(360deg); } }
.m-meta { display: flex; flex-direction: column; align-items: center; gap: 0.3cqh; text-align: center; max-width: 100%; }
.m-meta b { font-size: 4cqh; font-weight: 700; }
.m-meta span { font-size: 2.5cqh; color: #d1d5db; }
.m-meta small { font-size: 1.9cqh; color: #9ca3af; }
.m-prog { display: flex; align-items: center; gap: 1cqw; width: 100%; max-width: 46cqw; font-size: 1.9cqh; color: #9ca3af; font-variant-numeric: tabular-nums; }
.m-prog i { flex: 1; height: 0.8cqh; border-radius: 99px; background: rgba(255, 255, 255, 0.15); overflow: hidden; cursor: pointer; }
.m-prog s { display: block; height: 100%; width: 0; background: var(--svc); border-radius: 99px; }
.m-ctl { display: flex; align-items: center; gap: 1.8cqw; }
.m-btn { appearance: none; width: 5.6cqh; height: 5.6cqh; border: 0; border-radius: 50%; background: transparent; color: #e5e7eb; display: grid; place-items: center; cursor: pointer; transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease; }
.m-btn:hover { background: rgba(255, 255, 255, 0.08); }
.m-btn:active { transform: scale(0.92); }
.m-btn svg { width: 56%; height: 56%; }
.m-btn.on { color: var(--svc); }
.m-btn.on svg path { fill: currentColor; }
#m-shuffle.on svg path, #m-repeat.on svg path { fill: none; }
.m-play { width: 9cqh; height: 9cqh; background: #fff; color: #0b0c10; box-shadow: 0 1cqh 3cqh color-mix(in srgb, var(--svc) 40%, rgba(0, 0, 0, 0.5)); }
.m-play:hover { background: #fff; }
.m-play .ic-pause { display: none; }
.m-play.playing .ic-pause { display: block; }
.m-play.playing .ic-play { display: none; }

.m-lib { display: flex; flex-direction: column; min-height: 0; padding: 3cqh 2cqw 2cqh 0.6cqw; gap: 0.6cqh; }
.m-search { width: 100%; padding: 1.3cqh 1.2cqw; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.06); color: #fff; font: 600 2.1cqh "Rajdhani", system-ui, sans-serif; outline: none; }
.m-search:focus { border-color: var(--svc); }
.m-mixes { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6cqw; }
.m-mix { appearance: none; text-align: left; border: 0; padding: 1.4cqh 0.8cqw; border-radius: 1.4cqh; color: #fff; cursor: pointer; background: linear-gradient(135deg, hsl(var(--h) 70% 45%), hsl(calc(var(--h) + 40) 60% 25%)); display: flex; flex-direction: column; gap: 0.2cqh; }
.m-mix b { font-size: 2cqh; }
.m-mix small { font-size: 1.6cqh; opacity: 0.8; }
.m-queue { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 0.3cqh; scrollbar-width: thin; }
.m-empty { padding: 2cqh 0.6cqw; font: 600 1.9cqh "Rajdhani", system-ui, sans-serif; color: #8b8fa3; }
.m-row { appearance: none; display: flex; align-items: center; gap: 0.8cqw; padding: 0.9cqh 0.6cqw; border: 0; border-radius: 1.2cqh; background: transparent; color: #e5e7eb; text-align: left; cursor: pointer; }
.m-row:hover { background: rgba(255, 255, 255, 0.06); }
.m-row.on { background: color-mix(in srgb, var(--svc) 16%, transparent); }
.m-row.on b { color: var(--svc); }
.m-row-ic { width: 4.4cqh; height: 4.4cqh; border-radius: 1cqh; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); font-size: 2.4cqh; flex-shrink: 0; }
.m-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-row-t b { font-size: 2.1cqh; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-row-t small { font-size: 1.7cqh; color: #9ca3af; }
.m-row em { font-style: normal; font-size: 1.8cqh; color: #9ca3af; }
.m-pill { appearance: none; padding: 1cqh 1.2cqw; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.07); color: #f1f5f9; font: 700 2cqh "Rajdhani", system-ui, sans-serif; cursor: pointer; }
.m-pill:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Veículo ---------- */
.c-vehicle {
  grid-template-columns: 21cqw minmax(0, 1fr) 22cqw;
  background: radial-gradient(70% 90% at 60% 30%, rgba(16, 185, 129, 0.12), transparent 70%), linear-gradient(160deg, #161a20 0%, #0e1014 100%);
}
.v-content { padding-right: 1cqw; }
.v-src { font-size: 1.8cqh; color: #34d399; font-weight: 600; margin-left: 1cqw; }
.v-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1cqw; }
.v-g { position: relative; cursor: pointer; transition: border-color 0.2s, background 0.2s; aspect-ratio: 1 / 0.92; border-radius: 2cqh; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.v-g svg { position: absolute; inset: 6% 12% 16%; width: 76%; height: 78%; transform: rotate(135deg); }
.v-g-bg, .v-g-fg { fill: none; stroke-width: 8; stroke-linecap: round; }
.v-g-bg { stroke: rgba(255, 255, 255, 0.08); stroke-dasharray: 75 100; }
.v-g-fg { stroke: var(--g-c, #34d399); stroke-dasharray: 0 100; transition: stroke-dasharray 0.25s linear; filter: drop-shadow(0 0 3px rgba(52, 211, 153, 0.6)); }
.v-g.warn .v-g-fg { stroke: #f87171; filter: drop-shadow(0 0 3px rgba(248, 113, 113, 0.7)); }
.v-g b { position: relative; font-size: 3.6cqh; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 1cqh; }
.v-g small { position: relative; font-size: 1.6cqh; color: #9ca3af; font-weight: 700; }
.v-g span { position: absolute; bottom: 1cqh; font-size: 1.7cqh; color: #cbd5e1; font-weight: 600; }
.v-chart { margin-bottom: 1.6cqh; padding: 1.2cqh 1cqw; border-radius: 1.8cqh; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); }
.v-chart-h { display: flex; justify-content: space-between; align-items: center; font-size: 2cqh; margin-bottom: 0.6cqh; }
.v-chart-h span { display: flex; align-items: center; gap: 0.5cqw; color: #9ca3af; font-size: 1.7cqh; }
.v-chart-h i { display: inline-block; width: 1.2cqh; height: 0.5cqh; border-radius: 3px; margin-left: 0.6cqw; }
.v-chart canvas { width: 100%; height: 14cqh; display: block; }
.v-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6cqh 1.2cqw; }
.v-spec { display: flex; flex-direction: column; padding: 1.2cqh 1cqw; border-radius: 1.4cqh; background: rgba(255, 255, 255, 0.05); }
.v-spec span { font-size: 1.7cqh; color: #9ca3af; }
.v-spec b { font-size: 2.2cqh; }
.v-diag-actions { display: flex; gap: 0.8cqw; margin-bottom: 1.4cqh; }
.v-dtcs { display: flex; flex-direction: column; gap: 0.8cqh; }
.v-dtc { display: flex; align-items: center; gap: 1.2cqw; padding: 1.4cqh 1.2cqw; border-radius: 1.6cqh; background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.3); }
.v-dtc b { font-size: 2.6cqh; color: #fbbf24; min-width: 7cqw; }
.v-dtc div { display: flex; flex-direction: column; }
.v-dtc span { font-size: 2.1cqh; }
.v-dtc small { font-size: 1.7cqh; color: #9ca3af; }
.v-dtc.ok { background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.35); }
.v-dtc.ok b { color: #34d399; }
.v-maint { display: flex; flex-direction: column; gap: 1.4cqh; margin-bottom: 2cqh; }
.v-mt { display: flex; flex-direction: column; gap: 0.6cqh; }
.v-mt div { display: flex; justify-content: space-between; font-size: 2.1cqh; }
.v-mt small { color: #9ca3af; font-size: 1.8cqh; }
.v-mt i { height: 0.8cqh; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.v-mt s { display: block; height: 100%; border-radius: 99px; }
.v-tpms { display: flex; gap: 1.4cqw; align-items: baseline; font-size: 2cqh; color: #cbd5e1; }
.v-tpms b { font-size: 2.8cqh; color: #fff; margin-left: 0.3cqw; }
.v-side { display: flex; flex-direction: column; gap: 1.2cqh; padding: 3.6cqh 2cqw 2cqh 0.6cqw; }
.v-trip { display: flex; flex-direction: column; padding: 1.6cqh 1.2cqw; border-radius: 1.8cqh; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); }
.v-trip small { font-size: 1.7cqh; color: #9ca3af; }
.v-trip b { font-size: 3.6cqh; color: #34d399; }
.v-trip span { font-size: 1.8cqh; color: #cbd5e1; }


/* Veículo — mostradores com escala, gráficos por sensor, ficha editável, diagnóstico e manutenção */
.v-g:hover, .v-g:focus-visible { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); outline: none; }
.v-g .v-g-fg { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--g-c, #34d399) 60%, transparent)); }
.v-g.warn .v-g-fg { stroke: #f87171; }
.v-g .v-g-mm { position: absolute; bottom: 18%; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 1.25cqh; color: #8b96a5; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v-g .v-g-lo, .v-g .v-g-hi { position: absolute; bottom: 24%; font-style: normal; font-size: 1.2cqh; color: #64748b; font-weight: 600; }
.v-g .v-g-lo { left: 13%; }
.v-g .v-g-hi { right: 13%; }
.v-ch-tabs { display: flex; gap: 0.8cqw; margin-bottom: 1.4cqh; }
.m-pill.on, .m-pill.v-pri { background: rgba(52, 211, 153, 0.18); border-color: rgba(52, 211, 153, 0.55); color: #a7f3d0; }
.m-pill.v-danger { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.5); color: #fecaca; }
.v-ch-set { display: none; }
.v-ch-set.on { display: block; }
.v-ch-grid.on { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2cqh 1cqw; }
.v-ch-grid .v-chart { margin: 0; }
.v-ch-grid .v-chart canvas { height: 10cqh; }
.v-ch-grid .v-chart-h { flex-direction: column; align-items: flex-start; gap: 0.2cqh; }
.v-chart-h b i { display: inline-block; width: 1.2cqh; height: 0.5cqh; border-radius: 3px; margin-right: 0.5cqw; vertical-align: middle; }
.v-chart-h em { font-style: normal; color: #e2e8f0; font-variant-numeric: tabular-nums; margin-right: 0.4cqw; }
.v-ch-st { font-size: 1.5cqh !important; color: #94a3b8; font-variant-numeric: tabular-nums; display: block !important; }
.v-ch-st b { color: #fff; }
.v-chart.flash { animation: vFlash 1.6s ease; }
@keyframes vFlash { 0%, 40% { border-color: rgba(52, 211, 153, 0.9); box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.35); } 100% { border-color: rgba(255, 255, 255, 0.07); box-shadow: none; } }
.v-bar { display: flex; justify-content: space-between; align-items: center; gap: 1cqw; margin-bottom: 1.6cqh; font-size: 1.9cqh; color: #cbd5e1; flex-wrap: wrap; }
.v-bar > div { display: flex; gap: 0.6cqw; flex-wrap: wrap; }
.v-bar b { color: #34d399; font-size: 2.2cqh; }
.v-spec.empty b { color: #64748b; font-weight: 500; font-style: italic; }
.v-spec.edit input { margin-top: 0.4cqh; }
.v-hint { font-size: 1.7cqh; color: #94a3b8; margin: 1cqh 0; }
.v-dtc { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; }
.v-dtc-h { appearance: none; display: flex; align-items: center; gap: 1.2cqw; width: 100%; padding: 1.4cqh 1.2cqw; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.v-dtc-h > div { flex: 1; }
.v-dtc-h em { font-style: normal; font-size: 1.7cqh; color: #cbd5e1; white-space: nowrap; }
.v-dtc.high { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.4); }
.v-dtc.high .v-dtc-h b { color: #f87171; }
.v-dtc.low { background: rgba(56, 189, 248, 0.07); border-color: rgba(56, 189, 248, 0.32); }
.v-dtc.low .v-dtc-h b { color: #7dd3fc; }
.v-dtc-d { padding: 0 1.4cqw 1.6cqh; border-top: 1px solid rgba(255, 255, 255, 0.08); display: block; }
.v-dtc-d p, .v-dtc-d li { font-size: 1.9cqh; color: #e2e8f0; line-height: 1.35; margin: 0.3cqh 0; }
.v-dtc-d ul, .v-dtc-d ol { margin: 0; padding-left: 2.4cqh; }
.v-dtc-d h5 { margin: 1.4cqh 0 0.5cqh; font: 700 1.8cqh "Rajdhani", system-ui, sans-serif; color: #fbbf24; text-transform: uppercase; letter-spacing: 0.04em; }
.v-dtc-d h5 small { text-transform: none; color: #94a3b8; font-weight: 500; letter-spacing: 0; }
.v-dtc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2cqw; }
.v-dtc-cols .wide { grid-column: 1 / -1; }
.v-dtc-drive { display: flex; flex-direction: column; margin-top: 1.4cqh; padding: 1.1cqh 1cqw; border-radius: 1.2cqh; background: rgba(245, 158, 11, 0.12); border-left: 4px solid #f59e0b; }
.v-dtc-drive.low { background: rgba(34, 197, 94, 0.1); border-color: #22c55e; }
.v-dtc-drive.high { background: rgba(239, 68, 68, 0.12); border-color: #ef4444; }
.v-dtc-drive b { font-size: 1.9cqh; }
.v-dtc-drive span { font-size: 1.85cqh !important; color: #e2e8f0; }
.v-dtc-tags { display: flex; flex-wrap: wrap; gap: 0.6cqw; margin-top: 1cqh; }
.v-dtc-tags span { font-size: 1.6cqh !important; padding: 0.4cqh 0.8cqw; border-radius: 99px; background: rgba(255, 255, 255, 0.07); color: #cbd5e1; }
button.v-mt { appearance: none; width: 100%; padding: 1.1cqh 1cqw; border-radius: 1.4cqh; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.v-mt:hover { background: rgba(255, 255, 255, 0.08); }
.v-mt .v-mt-last { font-size: 1.55cqh; color: #7c8796; }
.v-log { display: grid; grid-template-columns: 11cqw 1fr auto; gap: 1cqw; padding: 0.8cqh 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 1.85cqh; }
.v-log small { color: #94a3b8; }
.v-modal { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(5, 7, 10, 0.72); backdrop-filter: blur(4px); }
.v-modal-card { width: min(60cqw, 92%); max-height: 88%; overflow: auto; padding: 2.4cqh 2cqw; border-radius: 2.4cqh; background: #171b22; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 2cqh 6cqh rgba(0, 0, 0, 0.6); }
.v-modal-card h4 { margin: 0 0 1cqh; font: 700 3cqh "Rajdhani", system-ui, sans-serif; }
.v-modal-card h5 { margin: 1.6cqh 0 0.6cqh; font: 700 2cqh "Rajdhani", system-ui, sans-serif; color: #34d399; }
.v-modal-card p { font-size: 2cqh; color: #cbd5e1; }
.v-form { display: flex; flex-direction: column; gap: 1.2cqh; }
.v-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1cqw; }
.v-form label { display: flex; flex-direction: column; gap: 0.4cqh; font-size: 1.7cqh; color: #94a3b8; }
.v-form input, .v-spec.edit input { padding: 1.1cqh 1cqw; border-radius: 1.2cqh; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); color: #f8fafc; font: 600 2.1cqh "Rajdhani", system-ui, sans-serif; color-scheme: dark; }
.v-form input:focus, .v-spec.edit input:focus { outline: none; border-color: #34d399; }
.v-err { min-height: 2cqh; color: #f87171 !important; font-size: 1.8cqh !important; margin: 0.8cqh 0 0; }
.v-modal-act { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.6cqw; margin-top: 1cqh; }

/* ---------- Estacionamento ---------- */
.c-park {
  grid-template-columns: 27cqw minmax(0, 1fr) 24cqw;
  gap: 1cqw;
  padding: 2cqh 1.4cqw;
  background: linear-gradient(160deg, #13161b 0%, #0b0d10 100%);
}
.p-top { position: relative; border-radius: 2cqh; overflow: hidden; background: radial-gradient(70% 60% at 50% 50%, #252b35, #111419); border: 1px solid rgba(255, 255, 255, 0.08); }
.p-car { position: absolute; inset: 0; }
.p-car .c-home-3d-canvas { opacity: 0; transition: opacity 0.8s ease; }
.p-car.ready .c-home-3d-canvas { opacity: 1; }
.p-sensors { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.p-dist { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: baseline; gap: 0.4cqw; padding: 0.4cqh 0.9cqw; border-radius: 99px; background: rgba(0, 0, 0, 0.55); font-variant-numeric: tabular-nums; }
.p-dist b { font-size: 2.4cqh; }
.p-dist small { font-size: 1.5cqh; color: #9ca3af; }
.p-dist-f { top: 1.2cqh; }
.p-dist-r { bottom: 4.6cqh; }
.p-dist.near b { color: #f87171; }
.p-label { position: absolute; left: 0; right: 0; bottom: 1cqh; text-align: center; font-size: 1.6cqh; color: #9ca3af; }
.p-cam { position: relative; border-radius: 2cqh; overflow: hidden; background: #000; border: 1px solid rgba(255, 255, 255, 0.08); }
.p-cam-3d { position: absolute; inset: 0; }
.p-cam-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.p-cam-warn { position: absolute; z-index: 2; left: 50%; bottom: 6cqh; transform: translateX(-50%); padding: 0.6cqh 1.6cqw; border-radius: 99px; font: 800 3cqh "Rajdhani", system-ui, sans-serif; letter-spacing: 0.1em; display: none; }
.p-cam-warn[data-lvl="near"] { display: block; background: rgba(250, 204, 21, 0.92); color: #111; }
.p-cam-warn[data-lvl="stop"] { display: block; background: rgba(239, 68, 68, 0.95); color: #fff; animation: cTtBlink 0.6s steps(1, end) infinite; }
.p-cam-tabs { position: absolute; z-index: 2; top: 1.2cqh; left: 50%; transform: translateX(-50%); display: flex; gap: 0.3cqw; padding: 0.4cqh; border-radius: 99px; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(8px); }
.p-cam-tabs button { appearance: none; border: 0; padding: 0.7cqh 1.1cqw; border-radius: 99px; background: transparent; color: #e5e7eb; font: 700 1.9cqh "Rajdhani", system-ui, sans-serif; cursor: pointer; }
.p-cam-tabs button.on { background: #fff; color: #0b0c10; }
.p-cam-hud { position: absolute; z-index: 2; left: 1.2cqw; right: 1.2cqw; bottom: 1.2cqh; display: flex; justify-content: space-between; font-size: 1.8cqh; color: #e5e7eb; text-shadow: 0 1px 2px #000; }
.p-rec { color: #f87171; font-weight: 700; }
.p-ctl { display: flex; flex-direction: column; gap: 1cqh; padding: 1.6cqh 1cqw; border-radius: 2cqh; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); overflow-y: auto; }
.p-ctl-h { font-size: 2.4cqh; font-weight: 700; margin-bottom: 0.4cqh; }
.p-tog { appearance: none; display: flex; align-items: center; gap: 0.8cqw; padding: 1cqh 0.8cqw; border-radius: 1.2cqh; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); color: #d1d5db; font: 600 1.95cqh "Rajdhani", system-ui, sans-serif; text-align: left; cursor: pointer; }
.p-tog i { width: 4.4cqh; height: 2.4cqh; border-radius: 99px; background: rgba(255, 255, 255, 0.2); position: relative; flex-shrink: 0; transition: background 0.2s ease; }
.p-tog i::after { content: ""; position: absolute; left: 0.3cqh; top: 0.3cqh; width: 1.8cqh; height: 1.8cqh; border-radius: 50%; background: #fff; transition: transform 0.2s ease; }
.p-tog.on i { background: #22c55e; }
.p-tog.on i::after { transform: translateX(2cqh); }
.p-steer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.6cqw; font-size: 1.9cqh; margin-top: 0.4cqh; }
.p-steer input { accent-color: #38bdf8; }
.p-steer b { min-width: 3.6cqw; text-align: right; }
.p-auto { appearance: none; margin-top: auto; padding: 1.4cqh 0.8cqw; border: 0; border-radius: 1.4cqh; background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff; font: 700 2.1cqh "Rajdhani", system-ui, sans-serif; cursor: pointer; box-shadow: 0 0.8cqh 2cqh rgba(37, 99, 235, 0.4); }
.p-note { font-size: 1.8cqh; color: #9ca3af; text-align: center; }

/* ---------- Ícones dos apps 3–6 no rodapé ---------- */
.c-app-music { color: #fff !important; background: linear-gradient(160deg, #fb7185 0%, #e11d48 55%, #831843 100%) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0.6cqh 1.6cqh rgba(0, 0, 0, 0.45); }
.c-app-vehicle { color: #fff !important; background: linear-gradient(160deg, #34d399 0%, #059669 55%, #064e3b 100%) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0.6cqh 1.6cqh rgba(0, 0, 0, 0.45); }
.c-app-park { color: #fff !important; background: linear-gradient(160deg, #fdba74 0%, #ea580c 55%, #7c2d12 100%) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0.6cqh 1.6cqh rgba(0, 0, 0, 0.45); }
.c-app-more { color: #fff !important; background: linear-gradient(160deg, #a78bfa 0%, #6366f1 50%, #0ea5e9 100%) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0.6cqh 1.6cqh rgba(0, 0, 0, 0.45); }
.c-app-music.active, .c-app-vehicle.active, .c-app-park.active, .c-app-more.active { outline: 0.35cqh solid rgba(125, 211, 252, 0.9); outline-offset: 0.3cqh; }

/* ---------- Mais apps (janela) ---------- */
.c-apps-modal { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding-bottom: 12cqh; background: rgba(2, 4, 10, 0.45); backdrop-filter: blur(4px); animation: cHomePop 0.2s ease both; }
.c-apps-modal[hidden] { display: none; }
.c-apps-win { width: 72cqw; max-height: 70cqh; display: flex; flex-direction: column; border-radius: 3cqh; background: linear-gradient(160deg, rgba(30, 32, 44, 0.94), rgba(14, 15, 22, 0.96)); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 4cqh 10cqh rgba(0, 0, 0, 0.6); font-family: "Rajdhani", "Inter", system-ui, sans-serif; color: #f1f5f9; overflow: hidden; }
.c-apps-head { display: flex; align-items: center; gap: 1.4cqw; padding: 2cqh 2cqw 1.4cqh; }
.c-apps-head b { font-size: 3.2cqh; }
.c-apps-head input { flex: 1; padding: 1cqh 1.2cqw; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.06); color: #fff; font: 600 2cqh "Rajdhani", system-ui, sans-serif; outline: none; }
.c-apps-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2cqh 1cqw; padding: 1cqh 2cqw 3cqh; overflow-y: auto; }
.c-apps-item { appearance: none; border: 0; background: transparent; color: #e5e7eb; display: flex; flex-direction: column; align-items: center; gap: 0.8cqh; cursor: pointer; font: 600 1.85cqh "Rajdhani", system-ui, sans-serif; text-align: center; }
.c-apps-ic { width: 8cqh; height: 8cqh; border-radius: 2.2cqh; display: grid; place-items: center; font-size: 4cqh; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 60%, #000)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0.8cqh 2cqh rgba(0, 0, 0, 0.45); transition: transform 0.15s ease; }
.c-apps-item:hover .c-apps-ic { transform: translateY(-0.4cqh) scale(1.04); }
.c-toast { position: absolute; z-index: 45; left: 50%; bottom: 15cqh; transform: translate(-50%, 2cqh); opacity: 0; padding: 1.2cqh 2cqw; border-radius: 99px; background: rgba(15, 17, 24, 0.92); border: 1px solid rgba(255, 255, 255, 0.14); color: #f1f5f9; font: 600 2.1cqh "Rajdhani", system-ui, sans-serif; transition: all 0.25s ease; pointer-events: none; }
.c-toast.on { opacity: 1; transform: translate(-50%, 0); }

.p-gear { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4cqw; margin-top: 0.6cqh; }
.p-gear button { appearance: none; padding: 1.1cqh 0; border-radius: 1.2cqh; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); color: #cbd5e1; font: 800 2.6cqh "Rajdhani", system-ui, sans-serif; cursor: pointer; }
.p-gear button.on { background: #fff; color: #0b0c10; box-shadow: 0 0 1.6cqh rgba(255, 255, 255, 0.35); }
.p-gear button[data-pg="R"].on { background: #f97316; color: #fff; box-shadow: 0 0 1.6cqh rgba(249, 115, 22, 0.6); }
.p-reset { margin-top: auto; }

/* Previsão do tempo na tela inicial (abaixo da data) */
.c-home-wx { position: absolute; right: 4.2cqw; top: 12.5cqh; z-index: 4; display: flex; flex-direction: column; gap: 1cqh; padding: 1.4cqh 1.2cqw; border-radius: 2cqh; background: rgba(8, 14, 32, 0.34); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(10px); width: max-content; pointer-events: auto; text-shadow: none; }
.c-home-wx-now { display: flex; align-items: center; gap: 0.8cqw; }
.c-home-wx-now > span { font-size: 4.6cqh; line-height: 1; }
.c-home-wx-now > b { font-size: 4.6cqh; font-weight: 700; color: #fff; -webkit-text-fill-color: #fff; }
.c-home-wx-now div { display: flex; flex-direction: column; line-height: 1.1; }
.c-home-wx-now em { font-style: normal; font-size: 2.1cqh; font-weight: 700; color: #f1f5f9; }
.c-home-wx-now small { font-size: 1.7cqh; color: #cbd5e1; font-weight: 600; }
.c-home-wx-row { display: flex; gap: 1cqw; }
.c-home-wx-row span { display: flex; flex-direction: column; align-items: center; gap: 0.1cqh; font-size: 2.2cqh; line-height: 1.1; }
.c-home-wx-row small { font-size: 1.5cqh; color: #94a3b8; font-weight: 700; }
.c-home-wx-row b { font-size: 1.9cqh; color: #f8fafc; }

/* Borda do para-choque na base da câmera + vinheta de lente grande-angular */
.p-cam::after { content: ""; position: absolute; z-index: 1; left: -10%; right: -10%; bottom: -14%; height: 22%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: linear-gradient(180deg, #1b1e24, #07080a); box-shadow: 0 -0.4cqh 1cqh rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12); pointer-events: none; }
.p-cam::before { content: ""; position: absolute; z-index: 1; inset: 0; background: radial-gradient(120% 110% at 50% 45%, transparent 60%, rgba(0, 0, 0, 0.55) 100%); pointer-events: none; }

/* =====================================================================
 * MANUAIS (PDFs de serviço + páginas do banco do sistema)
 * ===================================================================== */
.c-manuals {
  grid-template-columns: 21cqw minmax(0, 1fr);
  background: radial-gradient(70% 90% at 70% 20%, rgba(59, 130, 246, 0.13), transparent 70%), linear-gradient(160deg, #15181f 0%, #0d0f14 100%);
}
.mn-side-foot { margin-top: auto; padding: 1.4cqh 0.8cqw 0; font-size: 1.8cqh; color: #94a3b8; line-height: 1.35; }
.mn-side-foot small { color: #64748b; }
.mn-content { padding-right: 1.6cqw; }
.mn-search { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 0.8cqw; margin: 0 0 1.8cqh; padding: 1.1cqh 1.2cqw; border-radius: 99px; background: rgba(22, 26, 34, 0.92); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); box-shadow: 0 1cqh 3cqh rgba(0, 0, 0, 0.35); }
.mn-search svg { width: 2.6cqh; height: 2.6cqh; color: #93c5fd; flex-shrink: 0; }
.mn-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font: 600 2.1cqh "Rajdhani", system-ui, sans-serif; }
.mn-search input::-webkit-search-cancel-button { display: none; }
.mn-search .c-home-x { position: static; }
.mn-note { font-weight: 500; color: #64748b; margin-left: 0.6cqw; }
.mn-hint { margin: 1.2cqh 0 0; font-size: 1.85cqh; color: #94a3b8; line-height: 1.45; }
.mn-hint code, .c-manuals code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.9em; padding: 0.1em 0.35em; border-radius: 0.5cqh; background: rgba(148, 163, 184, 0.14); color: #e2e8f0; }
.mn-wrap { white-space: normal; word-break: break-all; }
.mn-link { appearance: none; border: 0; background: none; padding: 0; color: #93c5fd; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.mn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1cqh 1cqw; }
.mn-card { position: relative; appearance: none; display: flex; flex-direction: column; align-items: flex-start; gap: 0.3cqh; min-height: 11cqh; padding: 1.4cqh 1cqw 1.2cqh 5.4cqw; border-radius: 1.8cqh; border: 1px solid rgba(255, 255, 255, 0.08); background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)); color: #f1f5f9; text-align: left; cursor: pointer; font-family: inherit; transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease; }
.mn-card:hover { transform: translateY(-2px); border-color: rgba(147, 197, 253, 0.5); background: linear-gradient(160deg, rgba(59, 130, 246, 0.16), rgba(255, 255, 255, 0.04)); }
.mn-card b { font-size: 2.1cqh; line-height: 1.15; }
.mn-card small { font-size: 1.65cqh; color: #94a3b8; }
.mn-card em { font-style: normal; font-size: 1.5cqh; color: #64748b; }
.mn-pdf { position: absolute; left: 1cqw; top: 1.4cqh; width: 3.4cqw; height: 6cqh; border-radius: 0.6cqh 1.4cqh 0.6cqh 0.6cqh; background: linear-gradient(160deg, #f87171, #b91c1c); color: #fff; font: 800 1.45cqh "Rajdhani", sans-serif; font-style: normal; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 0.6cqh; box-shadow: 0 0.6cqh 1.4cqh rgba(185, 28, 28, 0.35); }
.mn-table-w { overflow-x: auto; border-radius: 1.4cqh; border: 1px solid rgba(255, 255, 255, 0.08); }
.mn-table { width: 100%; border-collapse: collapse; font-size: 1.85cqh; }
.mn-table th { text-align: left; padding: 1cqh 1cqw; background: rgba(255, 255, 255, 0.06); color: #94a3b8; font-weight: 700; white-space: nowrap; }
.mn-table td { padding: 0.9cqh 1cqw; border-top: 1px solid rgba(255, 255, 255, 0.06); color: #e2e8f0; }
.mn-table a { color: #93c5fd; }
.mn-sw { display: inline-block; width: 2cqh; height: 2cqh; margin-right: 0.5cqw; vertical-align: -0.35cqh; border-radius: 50%; background: var(--c); border: 1px solid rgba(255, 255, 255, 0.35); }
.mn-dtcs { display: flex; flex-direction: column; gap: 0.8cqh; }
.mn-dtc { border-radius: 1.6cqh; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.07); border-left: 0.5cqw solid var(--sev); }
.mn-dtc summary { display: flex; align-items: center; gap: 1.2cqw; padding: 1.3cqh 1.2cqw; cursor: pointer; list-style: none; }
.mn-dtc summary::-webkit-details-marker { display: none; }
.mn-dtc summary b { min-width: 6.4cqw; font-size: 2.4cqh; color: var(--sev); font-family: "JetBrains Mono", ui-monospace, monospace; }
.mn-dtc summary span { flex: 1; font-size: 2cqh; font-weight: 600; }
.mn-dtc summary i { font-style: normal; font-size: 1.6cqh; font-weight: 700; padding: 0.3cqh 0.8cqw; border-radius: 99px; color: var(--sev); background: color-mix(in srgb, var(--sev) 16%, transparent); }
.mn-dtc p, .mn-dtc ul, .mn-dtc > .mn-link { margin: 0 1.2cqw 1cqh 7.6cqw; font-size: 1.9cqh; color: #cbd5e1; line-height: 1.45; }
.mn-dtc > .mn-link { display: block; margin-bottom: 1.4cqh; }
.mn-dtc ul { padding-left: 1.2cqw; }
.mn-trip.ok { color: #86efac; }
.mn-trip.stop { color: #fca5a5; }
.mn-guides { display: grid; grid-template-columns: 1fr 1fr; gap: 1cqh 1cqw; }
.mn-guide { padding: 1.4cqh 1.2cqw; border-radius: 1.6cqh; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.07); }
.mn-guide small { font-size: 1.6cqh; color: #93c5fd; font-weight: 700; }
.mn-guide p { margin: 0.6cqh 0; font-size: 1.85cqh; color: #cbd5e1; line-height: 1.45; }
.mn-kw { display: flex; flex-wrap: wrap; gap: 0.5cqh 0.5cqw; }
.mn-kw span { padding: 0.25cqh 0.7cqw; border-radius: 99px; font-size: 1.55cqh; color: #cbd5e1; background: rgba(148, 163, 184, 0.14); }
.mn-paints { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1cqw; }
.mn-paint { appearance: none; display: flex; flex-direction: column; align-items: flex-start; gap: 0.4cqh; padding: 1.2cqh 1cqw; border-radius: 1.8cqh; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.045); color: #f1f5f9; font-family: inherit; text-align: left; cursor: pointer; }
.mn-paint:hover { border-color: rgba(255, 255, 255, 0.3); }
.mn-paint span { width: 100%; height: 7cqh; border-radius: 1.2cqh; background: radial-gradient(120% 80% at 30% 10%, rgba(255, 255, 255, 0.55), transparent 45%), linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.mn-paint b { font-size: 2cqh; }
.mn-paint small { font-size: 1.6cqh; color: #94a3b8; }
.mn-ta { display: flex; flex-direction: column; gap: 0.9cqh; }
.mn-ta div { display: grid; grid-template-columns: 11cqw 1fr 15cqw; align-items: center; gap: 1cqw; font-size: 1.9cqh; }
.mn-ta span { color: #cbd5e1; }
.mn-ta i { height: 0.9cqh; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.mn-ta s { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #60a5fa, #a78bfa); }
.mn-ta b { text-align: right; font-variant-numeric: tabular-nums; }
.mn-results h3 { margin: 0 0 1.4cqh; font: 600 3cqh "Rajdhani", system-ui, sans-serif; }
.mn-hits { display: flex; flex-direction: column; gap: 0.7cqh; margin-bottom: 1.6cqh; }
.mn-hit { appearance: none; display: grid; grid-template-columns: 8cqw 1fr; grid-template-rows: auto auto; column-gap: 1cqw; padding: 1.1cqh 1.2cqw; border-radius: 1.4cqh; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.045); color: #f1f5f9; text-align: left; font-family: inherit; cursor: pointer; }
.mn-hit:hover { border-color: rgba(147, 197, 253, 0.45); background: rgba(59, 130, 246, 0.1); }
.mn-hit b { grid-row: span 2; align-self: center; font-size: 2cqh; color: #93c5fd; font-family: "JetBrains Mono", ui-monospace, monospace; }
.mn-hit.sys b { color: #fbbf24; }
.mn-hit span { font-size: 1.95cqh; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-hit small { font-size: 1.7cqh; color: #94a3b8; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.mn-hit mark { background: rgba(250, 204, 21, 0.28); color: #fef08a; border-radius: 3px; padding: 0 2px; }
.mn-viewer { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; background: #0d0f14; animation: sPaneIn 0.2s ease both; }
.mn-viewer[hidden] { display: none; }
.mn-v-head { display: flex; align-items: center; gap: 1.2cqw; padding: 1.4cqh 1.6cqw; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); }
.mn-v-head b { font-size: 2.6cqh; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-v-head span { flex: 1; font-size: 1.7cqh; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-v-head a.m-pill { text-decoration: none; }
.mn-v-go { display: flex; align-items: center; gap: 0.5cqw; font-size: 1.8cqh; color: #94a3b8; }
.mn-v-go input { width: 6cqw; padding: 0.6cqh 0.6cqw; border-radius: 1cqh; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); color: #fff; font: 700 2cqh "Rajdhani", sans-serif; text-align: center; }
.mn-v-body { flex: 1; min-height: 0; display: flex; }
.mn-v-toc { width: 22cqw; flex-shrink: 0; margin: 0; padding: 1cqh 0.6cqw; list-style: none; overflow-y: auto; border-right: 1px solid rgba(255, 255, 255, 0.07); scrollbar-width: thin; }
.mn-v-toc[hidden] { display: none; }
.mn-v-toc button { appearance: none; width: 100%; display: flex; flex-direction: column; padding: 0.8cqh 0.8cqw; border: 0; border-radius: 1cqh; background: transparent; color: #cbd5e1; font: 600 1.75cqh "Rajdhani", system-ui, sans-serif; text-align: left; cursor: pointer; text-transform: capitalize; }
.mn-v-toc button em { font-style: normal; font-size: 1.45cqh; color: #64748b; font-family: "JetBrains Mono", ui-monospace, monospace; text-transform: none; }
.mn-v-toc button:hover { background: rgba(255, 255, 255, 0.06); }
.mn-v-toc button.on { background: rgba(59, 130, 246, 0.2); color: #fff; }
.mn-v-empty { padding: 1cqh; font-size: 1.7cqh; color: #64748b; }
.mn-v-body iframe { flex: 1; min-width: 0; border: 0; background: #525659; }

/* =====================================================================
 * JANELA DE APP: Chrome / YouTube (simulação)
 * ===================================================================== */
.c-win { position: absolute; inset: 0; z-index: 42; display: flex; align-items: center; justify-content: center; padding-bottom: 12cqh; background: rgba(2, 4, 10, 0.4); backdrop-filter: blur(3px); animation: cHomePop 0.2s ease both; }
.c-win[hidden] { display: none; }
.c-win-frame { width: 82cqw; height: 74cqh; display: flex; flex-direction: column; border-radius: 1.8cqh; overflow: hidden; background: #202124; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 4cqh 12cqh rgba(0, 0, 0, 0.65); font-family: "Inter", "Segoe UI", system-ui, sans-serif; color: #e8eaed; transition: width 0.2s ease, height 0.2s ease; }
.c-win-frame.max { width: 100cqw; height: 88cqh; border-radius: 0; }
.c-win:has(.c-win-frame.max) { padding-bottom: 12cqh; align-items: flex-start; }
.c-win-tabs { display: flex; align-items: flex-end; gap: 0.3cqw; height: 5.4cqh; padding: 0.8cqh 0.6cqw 0; background: #18191b; }
.c-win-tabstrip { display: flex; gap: 0.3cqw; min-width: 0; flex: 0 1 auto; overflow: hidden; }
.c-win-tab { display: flex; align-items: center; gap: 0.5cqw; width: 18cqw; min-width: 8cqw; height: 4.6cqh; padding: 0 0.6cqw 0 0.9cqw; border-radius: 1.2cqh 1.2cqh 0 0; background: transparent; color: #bdc1c6; cursor: pointer; font-size: 1.65cqh; }
.c-win-tab.on { background: #35363a; color: #fff; }
.c-win-tab b { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-win-fav { font-size: 1.6cqh; color: #f87171; }
.c-win-tab button, .c-win-new, .c-win-ctl button, .c-win-bar > button { appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 50%; font-size: 1.7cqh; }
.c-win-tab button { width: 2.6cqh; height: 2.6cqh; }
.c-win-tab button:hover, .c-win-new:hover, .c-win-bar > button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.c-win-new { width: 3.6cqh; height: 3.6cqh; margin-bottom: 0.5cqh; color: #bdc1c6; font-size: 2.2cqh; }
.c-win-ctl { margin-left: auto; display: flex; align-self: stretch; margin-top: -0.8cqh; }
.c-win-ctl button { width: 5cqw; border-radius: 0; color: #bdc1c6; font-size: 1.8cqh; }
.c-win-ctl button:hover { background: rgba(255, 255, 255, 0.1); }
.c-win-ctl button.x:hover { background: #e81123; color: #fff; }
.c-win-bar { display: flex; align-items: center; gap: 0.4cqw; padding: 0.8cqh 0.8cqw; background: #35363a; }
.c-win-bar > button { width: 4cqh; height: 4cqh; font-size: 2.2cqh; color: #e8eaed; }
.c-win-bar > button:disabled { color: #5f6368; cursor: default; }
.c-win-omni { flex: 1; display: flex; align-items: center; gap: 0.6cqw; height: 4.4cqh; padding: 0 1.2cqw; border-radius: 99px; background: #202124; }
.c-win-lock { font-size: 1.5cqh; opacity: 0.7; }
.c-win-omni input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #e8eaed; font: 400 1.9cqh "Inter", system-ui, sans-serif; }
.c-win-menu { width: 4cqh; text-align: center; color: #bdc1c6; font-size: 2.4cqh; }
.c-win-page { position: relative; flex: 1; min-height: 0; overflow: auto; background: #202124; }
.c-win-page iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.w-ntp { display: flex; flex-direction: column; align-items: center; gap: 3cqh; padding: 8cqh 4cqw 4cqh; }
.w-ntp-logo { font: 600 6cqh "Inter", system-ui, sans-serif; letter-spacing: -0.02em; color: #e8eaed; text-align: center; }
.w-ntp-logo small { display: block; font-size: 1.8cqh; font-weight: 500; letter-spacing: 0; color: #9aa0a6; }
.w-ntp-search { width: 46cqw; }
.w-ntp-search input { width: 100%; height: 5.6cqh; padding: 0 2cqw; border-radius: 99px; border: 1px solid #5f6368; background: #303134; color: #e8eaed; font: 400 2cqh "Inter", system-ui, sans-serif; outline: none; }
.w-ntp-search input:focus { border-color: #8ab4f8; }
.w-ntp-sc { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2cqw; }
.w-ntp-sc button { appearance: none; display: flex; flex-direction: column; align-items: center; gap: 0.8cqh; width: 9cqw; padding: 1.4cqh 0.4cqw; border: 0; border-radius: 1.4cqh; background: transparent; color: #e8eaed; cursor: pointer; font: 500 1.6cqh "Inter", system-ui, sans-serif; }
.w-ntp-sc button:hover { background: rgba(255, 255, 255, 0.07); }
.w-ntp-sc i { width: 6cqh; height: 6cqh; display: grid; place-items: center; border-radius: 50%; background: #303134; font-style: normal; font-size: 2.8cqh; }
.w-sim { margin: 0; font-size: 1.55cqh; color: #80868b; text-align: center; }
.w-sim-page { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4cqh; height: 100%; padding: 4cqh 10cqw; text-align: center; }
.w-sim-page b { font-size: 2.4cqh; word-break: break-all; }
.w-sim-page p { margin: 0; max-width: 54cqw; font-size: 1.9cqh; color: #9aa0a6; line-height: 1.5; }
.w-sim-page a.m-pill { text-decoration: none; }
.w-sim-ic { font-size: 7cqh; opacity: 0.5; }
.c-win-frame[data-mode="youtube"] .c-win-page, .w-yt { background: #0f0f0f; }
.w-yt { min-height: 100%; padding: 1.6cqh 1.6cqw 2cqh; }
.w-yt-chips { display: flex; gap: 0.6cqw; margin-bottom: 1.8cqh; }
.w-yt-chips span { padding: 0.7cqh 1.1cqw; border-radius: 1cqh; background: rgba(255, 255, 255, 0.1); font-size: 1.7cqh; font-weight: 600; }
.w-yt-chips span.on { background: #f1f1f1; color: #0f0f0f; }
.w-yt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2cqh 1.2cqw; margin-bottom: 1.6cqh; }
.w-yt-v { appearance: none; display: flex; flex-direction: column; gap: 0.5cqh; padding: 0; border: 0; background: none; color: #f1f1f1; text-align: left; cursor: pointer; font-family: inherit; }
.w-yt-v i { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 1.2cqh; background: radial-gradient(90% 90% at 70% 20%, rgba(255, 255, 255, 0.28), transparent 55%), linear-gradient(135deg, var(--c), #0b0b0b); overflow: hidden; }
.w-yt-v i::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.4cqh; color: rgba(255, 255, 255, 0.85); font-style: normal; }
.w-yt-v em { position: absolute; right: 0.5cqw; bottom: 0.6cqh; z-index: 1; padding: 0.1cqh 0.4cqw; border-radius: 0.6cqh; background: rgba(0, 0, 0, 0.8); font: 600 1.4cqh "Inter", sans-serif; font-style: normal; }
.w-yt-v b { font-size: 1.8cqh; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-yt-v small { font-size: 1.55cqh; color: #aaa; }
.w-yt-v:hover b { color: #fff; }
.w-yt-watch { display: grid; grid-template-columns: minmax(0, 1fr) 24cqw; gap: 1.4cqw; }
.w-yt-player video { width: 100%; aspect-ratio: 16 / 9; border-radius: 1.4cqh; background: #000; display: block; }
.w-yt-meta { display: flex; flex-direction: column; gap: 0.4cqh; padding-top: 1.2cqh; }
.w-yt-meta b { font-size: 2.3cqh; }
.w-yt-meta small { font-size: 1.65cqh; color: #aaa; }
.w-yt-side { display: flex; flex-direction: column; gap: 1.4cqh; }
.w-yt-side .w-yt-v { display: grid; grid-template-columns: 11cqw 1fr; column-gap: 0.8cqw; }
.w-yt-side .w-yt-v i { grid-row: span 2; }
.w-yt-side .w-yt-v b { font-size: 1.6cqh; }

/* =====================================================================
   CARD "VER TELAS TRASEIRAS" NA HOME
   ===================================================================== */
.c-home-rear {
  /* Fora da moldura, à direita do tablet (espelha a coluna do simulador à esquerda) */
  position: absolute;
  right: 2.4%;
  top: 50%;
  width: 10.5%;
  transform: translateY(-50%);
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4cqh;
  padding: 2.4cqh 1cqw 2.2cqh;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 2.4cqh;
  background: linear-gradient(170deg, rgba(20, 26, 40, 0.92), rgba(8, 11, 20, 0.95));
  box-shadow: 0 1.2cqw 3cqw rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font: 700 2.1cqh "Rajdhani", system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  pointer-events: auto;
}
.c-home-rear img {
  width: 72%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 0 1.2cqh rgba(56, 189, 248, 0.45));
  transition: transform 0.25s ease;
}
.c-home-rear span {
  color: #7dd3fc;
  text-shadow: 0 0 1cqh rgba(56, 189, 248, 0.4);
}
.c-home-rear:hover {
  transform: translateY(calc(-50% - 0.4cqh)) scale(1.03);
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 1.6cqw 4cqw rgba(0, 0, 0, 0.7), 0 0 2cqh rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.c-home-rear:hover img { transform: scale(1.08) rotate(-4deg); }
.c-home-rear:active { transform: translateY(-50%) scale(0.98); }

/* =====================================================================
   TELAS TRASEIRAS (RSE — 2 molduras menores lado a lado)
   ===================================================================== */
.central-lcd[data-screen="rear"] #c-rear { display: grid; }

.c-rear {
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    radial-gradient(80% 90% at 50% 20%, rgba(56, 189, 248, 0.14), transparent 60%),
    linear-gradient(165deg, #0b1020 0%, #05070d 100%);
}

.rear-head {
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  padding: 1.4cqh 1.4cqw;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 17, 0.7);
  backdrop-filter: blur(10px);
}

.rear-back {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5cqw;
  padding: 0.6cqh 1cqw;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 0.9cqh;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font: 600 1.8cqh "Rajdhani", system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.rear-back:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.6);
  color: #fff;
  box-shadow: 0 0 1.2cqh rgba(56, 189, 248, 0.35);
}
.rear-back svg {
  width: 1.8cqh;
  height: 1.8cqh;
}

.rear-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rear-title h2 {
  margin: 0;
  font: 700 2.6cqh "Rajdhani", system-ui, sans-serif;
  color: #f8fafc;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rear-title small {
  color: #94a3b8;
  font-size: 1.55cqh;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.rear-frames {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2cqw;
  align-items: center;
  justify-items: center;
  padding: 2cqh 2cqw;
  min-height: 0;
}

.rear-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1cqh;
  width: 100%;
  max-width: 40cqw;
}

.rear-bezel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1.2cqh;
  background:
    linear-gradient(160deg, #1a1f2a 0%, #0b0e14 100%);
  border: 2px solid #2a303a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 1.4cqh 3cqw rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.rear-bezel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0%, transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%);
  pointer-events: none;
  z-index: 2;
}
.rear-bezel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 2.4cqh rgba(56, 189, 248, 0.18);
  pointer-events: none;
  z-index: 2;
}

.rear-seat-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 1;
  filter: drop-shadow(0 0.6cqh 1.2cqh rgba(0, 0, 0, 0.6));
}

.rear-seat-label {
  font: 600 1.7cqh "Rajdhani", system-ui, sans-serif;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rear-ctl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2cqw;
  padding: 1.4cqh 1.6cqw;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 17, 0.7);
  backdrop-filter: blur(10px);
}

.rear-ctl-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5cqw;
  padding: 0.7cqh 1.1cqw;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.9cqh;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font: 600 1.7cqh "Rajdhani", system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.rear-ctl-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.rear-ctl-btn.active {
  border-color: rgba(56, 189, 248, 0.6);
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  box-shadow: 0 0 1cqh rgba(56, 189, 248, 0.35);
}
.rear-ctl-btn.off {
  opacity: 0.55;
}
.rear-ctl-btn.off .rear-ctl-dot {
  background: #475569;
  box-shadow: none;
}
.rear-ctl-dot {
  width: 0.8cqh;
  height: 0.8cqh;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0.8cqh #22c55e;
  flex-shrink: 0;
}

.rear-vol {
  display: inline-flex;
  align-items: center;
  gap: 0.7cqw;
  font: 600 1.6cqh "Rajdhani", system-ui, sans-serif;
  color: #94a3b8;
}
.rear-vol input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 12cqw;
  height: 0.5cqh;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8 0%, #38bdf8 80%, rgba(255, 255, 255, 0.16) 80%);
  outline: none;
  cursor: pointer;
}
.rear-vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.8cqh;
  height: 1.8cqh;
  border-radius: 50%;
  background: #fff;
  border: 0.3cqh solid #38bdf8;
  box-shadow: 0 0 0.8cqh rgba(56, 189, 248, 0.7);
}
.rear-vol b {
  color: #e2e8f0;
  min-width: 3.2cqw;
  text-align: right;
}

/* =====================================================================
   EMISSIONS TESTING MODE (O Modo Pum / Fart Mode)
   ===================================================================== */
.central-lcd[data-screen="prank"] #c-prank { display: grid; }

.c-prank {
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    radial-gradient(90% 70% at 80% 10%, rgba(163, 230, 53, 0.12), transparent 60%),
    radial-gradient(80% 60% at 10% 90%, rgba(239, 68, 68, 0.1), transparent 60%),
    linear-gradient(160deg, #101418 0%, #05070a 100%);
}

.c-prank .p-top {
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  padding: 1.2cqh 1.4cqw;
  border-bottom: 1px solid rgba(163, 230, 53, 0.18);
  background: rgba(2, 6, 17, 0.72);
  backdrop-filter: blur(10px);
}
.c-prank .p-title { display: flex; align-items: center; gap: 1cqw; min-width: 0; }
.c-prank .p-back {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4cqw;
  padding: 0.6cqh 1cqw;
  border: 1px solid rgba(163, 230, 53, 0.35);
  border-radius: 0.9cqh;
  background: rgba(163, 230, 53, 0.12);
  color: #bef264;
  font: 700 1.8cqh "Rajdhani", system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.c-prank .p-back:hover {
  background: rgba(163, 230, 53, 0.22);
  box-shadow: 0 0 1cqh rgba(163, 230, 53, 0.35);
}
.c-prank .p-title h1 {
  margin: 0;
  font: 800 2.6cqh "Rajdhani", system-ui, sans-serif;
  color: #f8fafc;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.c-prank .p-sub {
  margin: 0;
  font-size: 1.5cqh;
  color: #a3e635;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.c-prank .p-body {
  display: flex;
  flex-direction: column;
  gap: 1.4cqh;
  padding: 1.6cqh 1.4cqw;
  min-height: 0;
  overflow-y: auto;
}

.c-prank .p-desc {
  padding: 1.2cqh 1.4cqw;
  border-radius: 1.4cqh;
  background: rgba(163, 230, 53, 0.07);
  border: 1px solid rgba(163, 230, 53, 0.18);
  font-size: 1.9cqh;
  color: #d9f99d;
  line-height: 1.35;
}
.c-prank .p-desc p { margin: 0; }

.c-prank .p-ctl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1cqw;
}
.c-prank .p-ctl-card {
  display: flex;
  flex-direction: column;
  gap: 1cqh;
  padding: 1.4cqh 1.2cqw;
  border-radius: 1.6cqh;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.c-prank .p-ctl-card h3 {
  margin: 0;
  font: 700 2cqh "Rajdhani", system-ui, sans-serif;
  color: #f8fafc;
  letter-spacing: 0.03em;
}
.c-prank .p-ctl-wide { grid-column: 1 / -1; }
.c-prank .p-ctl-card small { font-size: 1.6cqh; color: #94a3b8; }

.c-prank .p-speakers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6cqw;
}
.c-prank .p-spk {
  appearance: none;
  padding: 1.2cqh 0.6cqw;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1cqh;
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  font: 700 2cqh "Rajdhani", system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
}
.c-prank .p-spk:hover { border-color: rgba(163, 230, 53, 0.5); color: #d9f99d; }
.c-prank .p-spk.on {
  background: linear-gradient(135deg, #65a30d, #84cc16);
  border-color: #a3e635;
  color: #111;
  box-shadow: 0 0.6cqh 1.6cqh rgba(163, 230, 53, 0.35);
}

.c-prank .p-trig { display: flex; flex-direction: column; gap: 0.7cqh; }
.c-prank .p-trig-opt {
  display: flex;
  align-items: center;
  gap: 0.6cqw;
  padding: 0.8cqh 0.9cqw;
  border-radius: 1cqh;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  font: 600 1.8cqh "Rajdhani", system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
}
.c-prank .p-trig-opt:hover { border-color: rgba(163, 230, 53, 0.4); }
.c-prank .p-trig-opt input { accent-color: #84cc16; }

.c-prank .p-sounds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7cqw;
}
.c-prank .p-snd {
  appearance: none;
  padding: 1cqh 0.8cqw;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1cqh;
  background: rgba(255, 255, 255, 0.03);
  color: #d1d5db;
  font: 600 1.8cqh "Rajdhani", system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.c-prank .p-snd:hover { border-color: rgba(163, 230, 53, 0.5); color: #d9f99d; }
.c-prank .p-snd.on {
  background: linear-gradient(135deg, #65a30d, #84cc16);
  border-color: #a3e635;
  color: #111;
  font-weight: 800;
  box-shadow: 0 0.6cqh 1.6cqh rgba(163, 230, 53, 0.35);
}

.c-prank .p-ctl-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1cqw;
  flex-wrap: wrap;
  padding: 1.2cqh 1.2cqw;
  border-radius: 1.6cqh;
  background: rgba(2, 6, 17, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.c-prank .p-toggle i {
  width: 4cqh;
  height: 2.2cqh;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.c-prank .p-toggle i::after {
  content: "";
  position: absolute;
  left: 0.3cqh;
  top: 0.3cqh;
  width: 1.6cqh;
  height: 1.6cqh;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.c-prank .p-toggle.on i { background: #84cc16; }
.c-prank .p-toggle.on i::after { transform: translateX(1.8cqh); }

.c-prank .p-note {
  font-size: 1.8cqh;
  color: #94a3b8;
  text-align: center;
  padding: 0.4cqh;
}

/* Ícones do rodapé: imagem (se usada) nunca vaza do botão */
.c-dock .c-app { overflow: hidden; }
.c-dock .c-app img { width: 62%; height: 62%; object-fit: contain; display: block; }

/* ===== Música · palco central (capa / visualizações / letra / clipe) ===== */
.m-stage {
  position: relative;
  width: 100%;
  max-width: 48cqw;
  height: 50cqh;
  flex-shrink: 0;
  border-radius: 3cqh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.m-stage:not([data-mode="cover"]) {
  background: #05060a;
  box-shadow: 0 2cqh 6cqh rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 4cqh color-mix(in srgb, var(--svc) 22%, transparent);
}
.m-art { display: flex; flex-direction: column; align-items: center; gap: 2cqh; z-index: 2; transition: opacity 0.35s ease, transform 0.35s ease; }
.m-viz { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; opacity: 0; transition: opacity 0.5s ease; }
.m-stage[data-mode="viz"] .m-viz { opacity: 1; }
.m-stage[data-mode="viz"] .m-cover { width: 22cqh; height: 22cqh; font-size: 9cqh; background: rgba(10, 12, 20, 0.35); backdrop-filter: blur(6px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 2cqh 5cqh rgba(0, 0, 0, 0.5); }
.m-stage[data-mode="viz"] .m-meta { text-shadow: 0 0.3cqh 1.2cqh rgba(0, 0, 0, 0.9); }
.m-stage[data-mode="viz"] .m-meta span, .m-stage[data-mode="viz"] .m-meta small { color: #f1f5f9; }
.m-stage[data-mode="lyrics"] .m-art, .m-stage[data-mode="clip"] .m-art { opacity: 0; transform: scale(0.92); pointer-events: none; position: absolute; }

/* letra */
.m-lyrics { position: absolute; inset: 0 7cqh; overflow: hidden; z-index: 1; opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.m-stage[data-mode="lyrics"] { background: radial-gradient(80% 90% at 50% 50%, color-mix(in srgb, var(--svc) 18%, #0a0b10), #05060a); }
.m-stage[data-mode="lyrics"] .m-lyrics { opacity: 1; pointer-events: auto; }
.m-ly-scroll { display: flex; flex-direction: column; align-items: center; gap: 1.6cqh; text-align: center; transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.3, 1); will-change: transform; }
.m-ly-line { margin: 0; font: 700 3.1cqh/1.25 "Rajdhani", system-ui, sans-serif; color: rgba(255, 255, 255, 0.28); transition: color 0.35s ease, transform 0.35s ease, text-shadow 0.35s ease; transform: scale(0.94); }
.m-ly-line.past { color: rgba(255, 255, 255, 0.16); }
.m-ly-line.near { color: rgba(255, 255, 255, 0.5); }
.m-ly-line.on { color: #fff; transform: scale(1.12); text-shadow: 0 0 2.4cqh color-mix(in srgb, var(--svc) 75%, transparent); }
.m-ly-msg { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1cqh; font: 600 2.6cqh "Rajdhani", system-ui, sans-serif; color: #cbd5e1; text-align: center; }
.m-ly-msg small { font-size: 1.9cqh; color: #8b8fa3; }
.m-ly-note { margin: 2cqh 0 0; font-size: 1.6cqh; color: #6b7280; }
.m-ly-spin { width: 3cqh; height: 3cqh; border-radius: 50%; border: 0.4cqh solid rgba(255, 255, 255, 0.15); border-top-color: var(--svc); animation: mSpin 0.8s linear infinite; }

/* clipe */
.m-clip { position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; background: #000; }
.m-stage[data-mode="clip"] .m-clip { opacity: 1; pointer-events: auto; }
.m-clip iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.m-clip-ext { position: absolute; right: 1.2cqh; top: 1.2cqh; z-index: 2; padding: 0.6cqh 1.2cqh; border-radius: 99px; background: rgba(0, 0, 0, 0.6); color: #e5e7eb; font: 600 1.6cqh "Rajdhani", system-ui, sans-serif; text-decoration: none; opacity: 0.75; }
.m-clip-ext:hover { opacity: 1; }

/* setas e indicador */
.m-arrow {
  appearance: none; position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
  width: 6.4cqh; height: 6.4cqh; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 12, 18, 0.55); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 0.6cqh 2cqh rgba(0, 0, 0, 0.45); transition: background 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}
.m-arrow svg { width: 52%; height: 52%; }
.m-arrow:hover { background: color-mix(in srgb, var(--svc) 35%, rgba(10, 12, 18, 0.6)); border-color: color-mix(in srgb, var(--svc) 70%, transparent); }
.m-arrow:active { transform: translateY(-50%) scale(0.9); }
.m-arrow-l { left: 1.4cqh; }
.m-arrow-r { right: 1.4cqh; }
.m-stage[data-mode="clip"] .m-arrow { opacity: 0.55; }
.m-stage[data-mode="clip"] .m-arrow:hover { opacity: 1; }
.m-mode-tag { position: absolute; left: 50%; bottom: 1.3cqh; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 1cqh; padding: 0.5cqh 1.4cqh; border-radius: 99px; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px); font: 700 1.6cqh "Rajdhani", system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: #e5e7eb; white-space: nowrap; pointer-events: auto; }
.m-stage[data-mode="cover"] .m-mode-tag { display: none; }
#m-mode-dots { display: flex; gap: 0.55cqh; }
#m-mode-dots i { width: 0.9cqh; height: 0.9cqh; border-radius: 50%; background: rgba(255, 255, 255, 0.3); cursor: pointer; transition: background 0.2s ease, width 0.2s ease; }
#m-mode-dots i.on { width: 2.2cqh; border-radius: 99px; background: var(--svc); }
.m-stage[data-mode="clip"] .m-mode-tag { bottom: auto; top: 1.2cqh; left: 1.2cqh; transform: none; }
.m-clip-err { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqh; padding: 4cqh 8cqh; text-align: center; background: radial-gradient(70% 80% at 50% 50%, color-mix(in srgb, var(--svc) 16%, #0b0c12), #05060a); font: 600 2.4cqh "Rajdhani", system-ui, sans-serif; color: #e5e7eb; }
.m-clip-err[hidden] { display: none; }
.m-clip-err a { padding: 1.2cqh 2.6cqh; border-radius: 99px; background: #ff0033; color: #fff; text-decoration: none; font-weight: 700; }

/* ===== Modo Romance · Lareira ===== */
.c-romance { --rm-door: #ff1a3c; --rm-k: 0; position: absolute; inset: 0; z-index: 40; overflow: hidden; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.9s ease; font-family: "Rajdhani", system-ui, sans-serif; color: #fff; }
.c-romance.on { opacity: 1; pointer-events: auto; }
.rm-fire { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) contrast(1.05); }
.rm-embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rm-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 100%, transparent 45%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--rm-door) 28%, transparent), transparent 18%, transparent 82%, color-mix(in srgb, var(--rm-door) 28%, transparent));
  box-shadow: inset 0 0 calc(4cqh + var(--rm-k) * 4cqh) color-mix(in srgb, var(--rm-door) 70%, transparent); }
.rm-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 3cqh 3cqw; background: linear-gradient(rgba(0, 0, 0, 0.55), transparent); }
.rm-title { display: flex; align-items: center; gap: 1.2cqw; }
.rm-title b { display: block; font-size: 4.2cqh; font-weight: 700; letter-spacing: 0.02em; text-shadow: 0 0 2cqh rgba(255, 60, 90, 0.6); }
.rm-title small { font-size: 2cqh; color: #fecdd3; }
.rm-heart { font-size: 5cqh; color: var(--rm-door); text-shadow: 0 0 2cqh var(--rm-door); animation: rmBeat 1.6s ease-in-out infinite; }
@keyframes rmBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
.rm-exit { appearance: none; padding: 1.4cqh 2.4cqh; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px); color: #fff; font: 700 2.2cqh "Rajdhani", system-ui, sans-serif; cursor: pointer; }
.rm-exit:hover { background: rgba(255, 26, 60, 0.35); }
.rm-panel { position: absolute; right: 2.4cqw; top: 13cqh; bottom: 4cqh; width: 24cqw; display: flex; flex-direction: column; gap: 1.6cqh; }
.rm-card { padding: 1.8cqh 1.4cqw; border-radius: 2.2cqh; background: rgba(12, 6, 8, 0.55); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 1cqh 3cqh rgba(0, 0, 0, 0.35); }
.rm-card > small { display: block; margin-bottom: 0.8cqh; font-size: 1.6cqh; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fda4af; }
.rm-temp-row { display: flex; align-items: baseline; gap: 1cqw; }
.rm-temp-row b { font-size: 5.4cqh; font-variant-numeric: tabular-nums; }
.rm-temp-row span { color: #fda4af; font-size: 2.6cqh; }
.rm-temp-row em { font-style: normal; font-size: 3cqh; color: #fb7185; font-weight: 700; }
.rm-bar { display: block; height: 0.7cqh; margin: 1cqh 0; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.rm-bar s { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #f97316, #ff1a3c); transition: width 0.6s ease; }
.rm-steps { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; font-size: 1.9cqh; color: #e5e7eb; }
.rm-steps button { appearance: none; width: 4.6cqh; height: 4.6cqh; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); color: #fff; font: 700 2.6cqh "Rajdhani", system-ui, sans-serif; cursor: pointer; }
.rm-cabin { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 1cqw; align-items: center; }
.rm-cabin > small { grid-column: 1 / -1; }
.rm-car { height: 17cqh; width: auto; }
.rm-door { fill: var(--rm-door); filter: drop-shadow(0 0 3px var(--rm-door)) drop-shadow(0 0 7px var(--rm-door)); }
.rm-stars circle { fill: #ff1a3c; filter: drop-shadow(0 0 2px #ff1a3c); animation: rmTwinkle 2.4s ease-in-out infinite; }
@keyframes rmTwinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.rm-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1cqh; font-size: 1.9cqh; color: #f1f5f9; }
.rm-legend li { display: flex; align-items: center; gap: 0.6cqw; }
.rm-legend i { width: 1.4cqh; height: 1.4cqh; border-radius: 50%; flex-shrink: 0; }
.rm-dot-door { background: var(--rm-door); box-shadow: 0 0 1cqh var(--rm-door); }
.rm-dot-star { background: #ff1a3c; box-shadow: 0 0 1cqh #ff1a3c; }
.rm-sound { display: flex; flex-direction: column; gap: 1cqh; }
.rm-tg { display: flex; align-items: center; gap: 0.8cqw; font-size: 2.1cqh; cursor: pointer; }
.rm-tg input { width: 2.4cqh; height: 2.4cqh; accent-color: #ff1a3c; }
#rm-vol { width: 100%; accent-color: #ff1a3c; }
.rm-hint { position: absolute; left: 3cqw; bottom: 3cqh; padding: 0.8cqh 1.6cqh; border-radius: 99px; background: rgba(0, 0, 0, 0.45); font-size: 1.7cqh; color: #fecdd3; }
.rm-hint b { color: #fff; }
