/* =====================================================================
   Zenith AutoOS — Zenith Link (controle do carro pelo celular) · demo
   A página mostra um celular Android na horizontal. Dentro do app tudo
   é medido em em; o JS define o font-size pela altura da tela (h/30).
   ===================================================================== */
@font-face { font-family: "Rajdhani"; font-weight: 500; font-display: swap; src: url("/assets/fonts/rajdhani-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-weight: 600; font-display: swap; src: url("/assets/fonts/rajdhani-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-weight: 700; font-display: swap; src: url("/assets/fonts/rajdhani-latin-700-normal.woff2") format("woff2"); }

/* ---------------- Página ---------------- */
html, body { margin: 0; height: 100%; }
body.zp { background: radial-gradient(1200px 600px at 50% 0%, rgba(34, 211, 238, 0.09), transparent 60%), #04060a; color: #e2e8f0; font-family: "Inter", system-ui, sans-serif; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.zp-top { display: flex; align-items: center; gap: 18px; padding: 14px 26px; }
.zp-top img { height: 30px; }
.zp-back { color: #94a3b8; text-decoration: none; font-size: 14px; padding: 6px 12px; border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 999px; }
.zp-back:hover { color: #fff; border-color: #22d3ee; }
.zp-title { margin-left: auto; text-align: right; }
.zp-title h1 { margin: 0; font: 700 22px "Rajdhani", sans-serif; letter-spacing: 0.02em; }
.zp-title p { margin: 2px 0 0; font-size: 13px; color: #94a3b8; }
.zp-stage { flex: 1; display: grid; place-items: center; padding: 6px 18px; }
.zp-phone { position: relative; width: min(94vw, calc((100vh - 150px) * 2.222), 1240px); width: min(94vw, calc((100dvh - 150px) * 2.222), 1240px); aspect-ratio: 2400 / 1080; padding: 0.9%; box-sizing: border-box; border-radius: 5.4% / 12%; background: linear-gradient(145deg, #2a303b, #0c0f14 40%, #1b2029); box-shadow: 0 0 0 1px #3a414d, 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 120px rgba(34, 211, 238, 0.08); }
.zp-phone::before { content: ""; position: absolute; left: 1.9%; top: 50%; width: 0.9%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: #05070a; box-shadow: 0 0 0 2px #151a22; z-index: 3; }
.zp-phone::after { content: ""; position: absolute; top: -0.5%; right: 22%; width: 7%; height: 0.8%; border-radius: 4px 4px 0 0; background: #232933; }
.zp-screen { width: 100%; height: 100%; border-radius: 4.6% / 10.4%; overflow: hidden; background: #000; }
.zp-foot { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; padding: 10px 20px 16px; font-size: 13px; color: #64748b; }
.zp-foot b { color: #94a3b8; font-weight: 600; }
.zp-foot a { color: #22d3ee; text-decoration: none; }
.zp-rotate { display: none; }
@media (orientation: portrait) and (max-width: 820px) {
  .zp-rotate { display: block; margin: 8px 18px 0; padding: 12px 14px; border-radius: 12px; background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.35); font-size: 14px; text-align: center; }
  .zp-title { display: none; }
}
/* No próprio celular, deitado: o app ocupa a tela inteira */
@media (orientation: landscape) and (max-height: 560px) and (pointer: coarse) {
  .zp-top, .zp-foot { display: none; }
  .zp-stage { padding: 0; }
  .zp-phone { width: 100vw; height: 100vh; height: 100dvh; aspect-ratio: auto; padding: 0; border-radius: 0; box-shadow: none; background: #000; }
  .zp-phone::before, .zp-phone::after { display: none; }
  .zp-screen { border-radius: 0; }
}

/* ---------------- App ---------------- */
.zc { --c: #22d3ee; --c2: #38bdf8; --warm: #f97316; --cool: #38bdf8; --ok: #4ade80; --tx: #e2e8f0; --mu: #94a3b8; --bd: rgba(148, 163, 184, 0.16); --card: linear-gradient(165deg, rgba(22, 28, 42, 0.95), rgba(10, 13, 22, 0.97)); --amb: hsl(190 90% 60%); --amb-a: 0.7; --amb-raw: hsl(190 90% 60%);
  position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: 6.6em 1fr; grid-template-rows: 1.9em 1fr; background: radial-gradient(60em 30em at 70% -10%, color-mix(in srgb, var(--amb) calc(var(--amb-a) * 14%), transparent), transparent 70%), #070a10; color: var(--tx); font-family: "Inter", system-ui, sans-serif; font-size: 16px; overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
:where(.zc) *, :where(.zc) *::before, :where(.zc) *::after { box-sizing: border-box; }
:where(.zc) button { appearance: none; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.zc .ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zc .ic.fill { fill: currentColor; stroke: none; }
.zc .ic.heat { color: var(--warm); } .zc .ic.cool { color: var(--cool); }
.zc b { font-weight: 700; }
.zc .lbl { display: inline-flex; align-items: center; gap: 0.35em; font: 600 0.72em "Inter", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mu); }
.zc .lbl em { font-style: normal; color: var(--tx); text-transform: none; letter-spacing: 0; }

/* barra de status */
.zc-status { grid-column: 1 / -1; display: flex; align-items: center; gap: 1em; padding: 0 1.4em 0 3.2em; font-size: 0.78em; color: var(--mu); }
.zc-status .clock { font: 700 1.1em "Rajdhani", sans-serif; color: var(--tx); }
.zc-link { margin: 0 auto; display: inline-flex; align-items: center; gap: 0.5em; padding: 0.15em 0.9em; border-radius: 999px; background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.25); }
.zc-link .ic { color: var(--ok); width: 1.1em; height: 1.1em; }
.zc-link b { color: var(--tx); font-family: "Rajdhani", sans-serif; letter-spacing: 0.04em; }
.zc-link em { font-style: normal; color: var(--ok); }
.zc-link.tx { background: rgba(34, 211, 238, 0.16); border-color: var(--c); }
.zc-link.tx .ic { color: var(--c); animation: zc-tx 0.45s ease; }
@keyframes zc-tx { 50% { transform: scale(1.35); } }
.zc-sys { display: inline-flex; align-items: center; gap: 0.7em; }
.zc-sys > span { display: inline-flex; align-items: center; gap: 0.25em; }
.zc-sys .ic { width: 1.1em; height: 1.1em; }

/* trilho lateral */
.rail { display: flex; flex-direction: column; gap: 0.2em; padding: 0.3em 0.5em 0.6em 1.4em; overflow: auto; scrollbar-width: none; }
.rail button { display: flex; flex-direction: column; align-items: center; gap: 0.15em; padding: 0.45em 0.2em; border-radius: 0.8em; color: var(--mu); font-size: 0.66em; font-weight: 600; text-align: center; line-height: 1.05; transition: background 0.15s, color 0.15s; }
.rail button .ic { width: 1.9em; height: 1.9em; }
.rail button.on { background: rgba(34, 211, 238, 0.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.35); }
.rail button.on .ic { color: var(--c); }
.zc-body { padding: 0.35em 1.3em 0.8em 0.4em; overflow: auto; scrollbar-width: thin; min-height: 0; }
.zc-body > div { min-height: 100%; }

/* blocos comuns */
.card { background: var(--card); border: 1px solid var(--bd); border-radius: 1em; padding: 0.75em 0.9em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); min-width: 0; }
.hd { display: flex; align-items: center; gap: 0.5em; margin-bottom: 0.55em; }
.hd > .ic { color: var(--c); }
.hd b { font: 700 1em "Rajdhani", sans-serif; letter-spacing: 0.03em; }
.hd small { color: var(--mu); font-size: 0.72em; }
.hd .tg, .hd .btn, .hd .hd-btns { margin-left: auto; }
.hd-btns { display: flex; gap: 0.35em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4em; padding: 0.5em 0.8em; border-radius: 0.7em; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--bd) !important; font-size: 0.8em; font-weight: 600; color: var(--tx); transition: all 0.15s; }
.btn:hover { background: rgba(255, 255, 255, 0.09); }
.btn.on { background: rgba(34, 211, 238, 0.16); border-color: var(--c) !important; color: #fff; }
.btn.sm { padding: 0.35em 0.6em; font-size: 0.7em; }
.chip { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.35em 0.7em; border-radius: 999px; border: 1px solid var(--bd) !important; font-size: 0.68em; color: var(--mu); }
.chip.on { color: #fbbf24; border-color: rgba(251, 191, 36, 0.5) !important; background: rgba(251, 191, 36, 0.08); }
/* interruptor */
.tg { display: flex; align-items: center; gap: 0.55em; padding: 0.45em 0.6em; border-radius: 0.75em; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--bd) !important; text-align: left; font-size: 0.8em; min-width: 0; }
.tg > .ic { color: var(--mu); }
.tg > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tg b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg small { color: var(--mu); font-size: 0.82em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg .sw-k { flex: none; width: 2.3em; height: 1.3em; border-radius: 999px; background: #273042; position: relative; transition: background 0.2s; }
.tg .sw-k::after { content: ""; position: absolute; top: 0.15em; left: 0.15em; width: 1em; height: 1em; border-radius: 50%; background: #94a3b8; transition: all 0.2s; }
.tg.on .sw-k { background: var(--c); }
.tg.on .sw-k::after { left: 1.15em; background: #fff; }
.tg.on > .ic { color: var(--c); }
.hd .tg { padding: 0.25em 0.45em; background: none; border: 0 !important; }
.hd .tg b { font-size: 0.9em; color: var(--mu); }
/* segmentado */
.seg { display: flex; gap: 0.25em; padding: 0.22em; border-radius: 0.8em; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--bd); }
.seg button { flex: 1; padding: 0.45em 0.4em; border-radius: 0.6em; font-size: 0.78em; font-weight: 600; color: var(--mu); white-space: nowrap; transition: all 0.15s; }
.seg button.on { background: linear-gradient(180deg, rgba(34, 211, 238, 0.28), rgba(34, 211, 238, 0.14)); color: #fff; box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.5); }
.seg-sm button { font-size: 0.7em; padding: 0.35em 0.3em; }
.seg-wrap { flex-wrap: wrap; }
/* deslizante */
.rng { display: flex; align-items: center; gap: 0.6em; flex: 1; min-width: 0; }
.rng output { min-width: 2.7em; text-align: right; font: 700 0.85em "Rajdhani", sans-serif; color: var(--tx); }
.rng input { flex: 1; min-width: 0; appearance: none; -webkit-appearance: none; height: 1.6em; background: transparent; margin: 0; cursor: pointer; }
.rng input::-webkit-slider-runnable-track { height: 0.45em; border-radius: 999px; background: linear-gradient(90deg, var(--c), #273042); }
.rng input::-moz-range-track { height: 0.45em; border-radius: 999px; background: #273042; }
.rng input::-moz-range-progress { height: 0.45em; border-radius: 999px; background: var(--c); }
.rng input::-webkit-slider-thumb { -webkit-appearance: none; width: 1.25em; height: 1.25em; margin-top: -0.4em; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0.25em rgba(34, 211, 238, 0.35), 0 2px 6px rgba(0, 0, 0, 0.5); }
.rng input::-moz-range-thumb { width: 1.25em; height: 1.25em; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0.25em rgba(34, 211, 238, 0.35); }
.rng.hue input::-webkit-slider-runnable-track { background: linear-gradient(90deg, hsl(0 90% 60%), hsl(60 90% 60%), hsl(120 90% 60%), hsl(180 90% 60%), hsl(240 90% 60%), hsl(300 90% 60%), hsl(360 90% 60%)); }
.rng.hue input::-moz-range-track { background: linear-gradient(90deg, hsl(0 90% 60%), hsl(60 90% 60%), hsl(120 90% 60%), hsl(180 90% 60%), hsl(240 90% 60%), hsl(300 90% 60%), hsl(360 90% 60%)); }
.rng.hue input::-moz-range-progress { background: transparent; }

/* aviso (toast) */
.zc-toast { position: absolute; left: 50%; bottom: 1.1em; transform: translate(-50%, 1em); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 0.6em; padding: 0.6em 1.1em; border-radius: 999px; background: rgba(15, 20, 30, 0.96); border: 1px solid rgba(34, 211, 238, 0.45); box-shadow: 0 0.6em 2em rgba(0, 0, 0, 0.6); font-size: 0.82em; white-space: nowrap; transition: all 0.25s ease; z-index: 20; }
.zc-toast .ic { color: var(--c); }
.zc-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- Carro (SVG) ---------------- */
.zc-car { width: 100%; height: auto; display: block; overflow: visible; }
.zc-car .car-body { stroke: #3b4558; stroke-width: 1.5; }
.zc-car .car-hood { fill: #1d2433; stroke: #2c3446; }
.zc-car .car-glass { fill: #10324a; stroke: #2b5574; }
.zc-car .car-floor { fill: #0a0e16; }
.zc-car .car-wheels rect { fill: #07090d; stroke: #262c37; }
.zc-car .car-mirror { fill: #232a38; stroke: #3b4558; transition: transform 0.6s ease; }
.zc-car.folded .car-mirror[data-m="t"] { transform: translate(430px, 40px) rotate(-62deg) !important; }
.zc-car.folded .car-mirror[data-m="b"] { transform: translate(430px, 220px) scale(1, -1) rotate(-62deg) !important; }
.zc-car .car-amb { fill: none; stroke: var(--amb); stroke-width: 7; opacity: 0; transition: opacity 0.3s; }
.zc-car .car-amb-line { stroke-width: 1.6; }
.zc-car.amb-on .car-amb { opacity: var(--amb-a); }
.zc-car.interna .car-floor { fill: #1c2433; }
.zc-car .car-seat { transition: transform 0.3s; }
.zc-car .car-seat-in { transition: transform 1.2s cubic-bezier(.6, .1, .3, 1); }
.zc-car .car-seat-cu { fill: #1f2737; stroke: #3c475c; stroke-width: 1.2; transition: fill 0.3s; }
.zc-car .car-seat-bk, .zc-car .car-seat-hr { fill: #2b3447; stroke: #48546b; stroke-width: 1; }
.zc-car .car-seat-ms { fill: none; stroke: #a78bfa; stroke-width: 1.5; opacity: 0; }
.zc-car .car-seat.massage .car-seat-ms { animation: zc-ms 1.4s ease-out infinite; }
@keyframes zc-ms { 0% { opacity: 0.8; transform: scale(0.75); } 100% { opacity: 0; transform: scale(1.15); } }
.zc-car .car-seat.tap { cursor: pointer; }
.zc-car .car-seat.tap:hover .car-seat-cu { stroke: var(--c); }
.zc-car .car-seat.sel .car-seat-cu, .zc-car .car-seat.sel .car-seat-bk { stroke: var(--c); stroke-width: 2.4; }
.zc-car .car-table { fill: #3b3226; stroke: #8b7355; opacity: 0; transition: opacity 0.6s; }
.zc-car.mesa-on .car-table { opacity: 1; }
.zc-car .car-roof-r { fill: var(--amb-raw); opacity: 0; stroke: #3b4558; stroke-dasharray: 4 4; transition: opacity 0.4s; }
.zc-car.roof-glow .car-roof-r { opacity: calc(var(--amb-a) * 0.22); }
.zc-car .car-roof-f { fill: none; stroke: #4b5870; stroke-dasharray: 4 4; }
.zc-car .car-roof-fo { opacity: 0.55; transition: width 0.4s; }
.zc-car .car-roofscr { fill: #0ea5e9; opacity: 0; transition: opacity 0.6s; }
.zc-car.tela-on .car-roofscr { opacity: 0.9; filter: drop-shadow(0 0 6px #38bdf8); }
.zc-car .car-tail { fill: #2b3447; stroke: #48546b; transition: transform 0.8s ease; }
.zc-car.tail-open .car-tail { transform: translate(14px, 130px) !important; fill: rgba(251, 191, 36, 0.25); stroke: #fbbf24; stroke-dasharray: 4 3; }
.zc-car .car-lamp { fill: #2a3140; transition: fill 0.3s, filter 0.3s; }
.zc-car.lights-on .car-tl { fill: #ef4444; filter: drop-shadow(0 0 5px #ef4444); }
.zc-car.lights-on .car-hl { fill: #e2e8f0; filter: drop-shadow(0 0 6px #fff); }
.zc-car.fog-on .car-fog { fill: #fde68a; filter: drop-shadow(0 0 5px #fde68a); }
.zc-car .car-beam { opacity: 0; transition: opacity 0.4s; }
.zc-car.lights-lo .car-beam-lo { opacity: 0.7; }
.zc-car.lights-hi .car-beam-lo { opacity: 0; }
.zc-car.lights-hi .car-beam-hi { opacity: 0.85; }
.zc-car .car-door { transition: transform 1.1s cubic-bezier(.5, .1, .3, 1); }
.zc-car .car-door-p { fill: #2a3242; stroke: #4b5870; }
.zc-car .car-door.open .car-door-p { fill: rgba(34, 211, 238, 0.18); stroke: var(--c); }
.zc-car .car-door.tap { cursor: pointer; }
.zc-car .car-door.tap:hover .car-door-p { stroke: var(--c); }
.zc-car .car-win { stroke: #5fb3e0; stroke-width: 3.2; stroke-linecap: round; opacity: 0.85; }
.zc-car .car-win-open { stroke: #fbbf24; stroke-width: 3.6; stroke-linecap: round; }
.zc-car .car-win-t { fill: #fbbf24; font: 700 13px "Rajdhani", sans-serif; }
.zc-car .car-front { fill: #64748b; font: 700 10px "Rajdhani", sans-serif; letter-spacing: 3px; }

/* ---------------- Início ---------------- */
.hm { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0.75em; }
.hm-car { display: flex; flex-direction: column; justify-content: space-between; }
.hm-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6em; }
.hm-top > div { display: flex; flex-direction: column; }
.hm-name { font: 700 1.35em "Rajdhani", sans-serif; letter-spacing: 0.03em; }
.hm-top small { color: var(--mu); font-size: 0.72em; }
.zc.is-moving .hm-top small { color: #fbbf24; }
.hm-car .zc-car { margin: 0.4em 0; }
.hm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4em; }
.hm-stats span { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1em; padding: 0.45em 0.6em; border-radius: 0.7em; background: rgba(255, 255, 255, 0.035); font-size: 0.68em; color: var(--mu); }
.hm-stats span .ic { color: var(--ok); }
.hm-stats b { font: 700 1.45em "Rajdhani", sans-serif; color: var(--tx); }
.hm-stats span:first-child { flex-direction: row; align-items: center; gap: 0.4em; }
.hm-side { display: flex; flex-direction: column; justify-content: space-between; gap: 0.6em; min-width: 0; }
.hm-side .tile { padding: 0.75em 0.7em; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45em; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15em; padding: 0.6em 0.65em; border-radius: 0.9em; background: var(--card); border: 1px solid var(--bd) !important; text-align: left; min-width: 0; transition: all 0.15s; }
.tile .ic, .tile > span:first-child .ic { width: 1.5em; height: 1.5em; color: var(--mu); margin-bottom: 0.2em; }
.tile b { font-size: 0.74em; font-weight: 600; }
.tile small { font-size: 0.64em; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tile.on { background: linear-gradient(160deg, rgba(34, 211, 238, 0.2), rgba(14, 116, 144, 0.12)); border-color: rgba(34, 211, 238, 0.5) !important; }
.tile.on .ic { color: var(--c); }
.tile.on small { color: #a5f3fc; }
.tile-lock.on { background: linear-gradient(160deg, rgba(74, 222, 128, 0.18), rgba(22, 101, 52, 0.12)); border-color: rgba(74, 222, 128, 0.45) !important; }
.tile-lock.on .ic { color: var(--ok); }
.tile-lock.on small { color: #bbf7d0; }
.tile-lock:not(.on) .ic { color: #fbbf24; }
.amb-dot { width: 1.5em; height: 1.5em; margin-bottom: 0.2em; border-radius: 50%; background: #273042; }
.tile.on .amb-dot { background: var(--amb); box-shadow: 0 0 0.9em var(--amb); opacity: calc(0.4 + var(--amb-a)); }
.np { display: flex; align-items: center; gap: 0.8em; padding: 0.55em 0.75em; }
.np-cov, .md-cov { flex: none; border-radius: 0.6em; background: radial-gradient(circle at 30% 25%, hsl(calc(var(--cov) * 1deg) 90% 65%), hsl(calc(var(--cov) * 1deg + 50deg) 70% 25%) 70%); box-shadow: 0 0.4em 1em rgba(0, 0, 0, 0.5); position: relative; overflow: hidden; }
.np-cov { width: 2.9em; height: 2.9em; }
.np-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15em; }
.np-info b { font-size: 0.86em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-info small { font-size: 0.66em; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-ctl, .md-ctl { display: flex; align-items: center; gap: 0.3em; }
.np-ctl button, .md-ctl button { width: 2.1em; height: 2.1em; display: grid; place-items: center; border-radius: 50%; color: var(--tx); }
.np-ctl .np-play, .md-ctl .md-play { width: 2.5em; height: 2.5em; background: #fff; color: #0b0f17; }
.md-bar { height: 0.3em; border-radius: 999px; background: #273042; overflow: hidden; margin-top: 0.25em; }
.md-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c), #a5f3fc); border-radius: inherit; }
.scenes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.45em; }
.scene { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1em; padding: 0.55em 0.6em; border-radius: 0.9em; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--bd) !important; text-align: left; min-width: 0; }
.scene .ic { width: 1.4em; height: 1.4em; color: #c4b5fd; margin-bottom: 0.2em; }
.scene b { font-size: 0.72em; font-weight: 600; }
.scene small { font-size: 0.58em; color: var(--mu); line-height: 1.25; }
.scene.on { background: linear-gradient(160deg, rgba(167, 139, 250, 0.22), rgba(76, 29, 149, 0.15)); border-color: rgba(167, 139, 250, 0.55) !important; }

/* ---------------- Clima ---------------- */
.cl { display: flex; flex-direction: column; gap: 0.6em; }
.cl-top { display: grid; grid-template-columns: 1fr 2.1fr 1fr; gap: 0.6em; }
.cl-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6em; }
.cl-temp { display: flex; align-items: center; gap: 0.5em; }
.cl-temp > div { display: flex; align-items: flex-start; }
.cl-temp b { font: 700 3.1em/1 "Rajdhani", sans-serif; letter-spacing: -0.02em; }
.cl-temp sup { font: 600 0.8em "Rajdhani", sans-serif; color: var(--mu); margin-top: 0.4em; }
.cl-temp button, .cl-mini button { width: 2.2em; height: 2.2em; border-radius: 50%; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--bd) !important; font-size: 1.05em; font-weight: 600; }
.cl-temp button:active, .cl-mini button:active { background: rgba(34, 211, 238, 0.25); }
.cl-scale { width: 80%; height: 0.35em; border-radius: 999px; background: linear-gradient(90deg, #38bdf8, #a3e635, #f97316, #ef4444); position: relative; }
.cl-scale i { position: absolute; top: 50%; left: var(--p); width: 0.8em; height: 0.8em; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 0.2em rgba(0, 0, 0, 0.4); transition: left 0.2s; }
.cl-mid { display: flex; flex-direction: column; gap: 0.55em; }
.cl-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 0.35em; }
.big-tg { display: flex; align-items: center; justify-content: center; gap: 0.4em; padding: 0.5em; border-radius: 0.75em; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--bd) !important; font-size: 0.8em; color: var(--mu); }
.big-tg b { font-family: "Rajdhani", sans-serif; letter-spacing: 0.08em; font-size: 1.1em; }
.big-tg.on { color: #fff; background: rgba(34, 211, 238, 0.16); border-color: rgba(34, 211, 238, 0.55) !important; }
.big-tg.on .ic { color: var(--c); }
.cl-fan { display: flex; align-items: center; gap: 0.8em; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 0.3em; height: 2.2em; }
.bars button { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bars button i { display: block; width: 100%; height: var(--h); border-radius: 0.3em; background: #273042; transition: background 0.15s; }
.bars button.on i, .bars button:has(~ button.on) i { background: var(--c); }
.cl-mode { display: flex; flex-direction: column; gap: 0.35em; }
.cl-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35em; }
.cl-chips .tg { flex-direction: column; align-items: flex-start; gap: 0.25em; font-size: 0.72em; }
.cl-chips .tg .sw-k { display: none; }
.cl-chips .tg.on { background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.45) !important; }
.cl-bot { display: grid; grid-template-columns: 1.15fr 1.15fr 1fr; gap: 0.6em; }
.cl-bot .card { display: flex; flex-direction: column; gap: 0.45em; }
.cl-bot .hd { margin-bottom: 0; }
.cl-mini { display: flex; align-items: center; justify-content: center; gap: 0.9em; }
.cl-mini b { font: 700 1.9em/1 "Rajdhani", sans-serif; min-width: 2.6em; text-align: center; }
.cl-mini-fan { display: flex; align-items: center; gap: 0.6em; }
.cl-mini-fan .seg { flex: 1; }
.aq { display: flex; align-items: center; gap: 0.5em; }
.aq b { font: 700 2em/1 "Rajdhani", sans-serif; color: var(--ok); }
.aq span { font-size: 0.7em; color: var(--mu); line-height: 1.25; }
.aq em { font-style: normal; color: var(--ok); font-weight: 600; }

/* ---------------- Assentos ---------------- */
.st { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0.7em; }
.st-map { display: flex; flex-direction: column; justify-content: space-between; }
.st-quick { display: flex; gap: 0.4em; flex-wrap: wrap; }
.st-ctl { display: flex; flex-direction: column; gap: 0.6em; }
.st-ctl .hd { margin-bottom: 0; }
.st-g { display: flex; flex-direction: column; gap: 0.3em; }
.st-g .seg + .seg { margin-top: 0.25em; }
.st-rot { flex-direction: column; align-items: flex-start; gap: 0.15em; padding: 0.6em 0.8em; text-align: left; }
.st-rot > .ic { position: absolute; }
.st-rot { position: relative; padding-left: 2.6em; }
.st-rot > .ic { left: 0.8em; top: 50%; transform: translateY(-50%); width: 1.4em; height: 1.4em; color: var(--c); }
.st-rot small { font-size: 0.82em; color: var(--mu); font-weight: 500; }
.st-note { margin: 0; font-size: 0.78em; color: var(--mu); line-height: 1.45; }

/* ---------------- Vidros e portas ---------------- */
.dr { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0.7em; }
.dr-car { display: flex; flex-direction: column; gap: 0.5em; }
.dr-car .hd { margin-bottom: 0; }
.dr-btns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.35em; }
.dr-btns .btn { font-size: 0.66em; padding: 0.5em 0.3em; }
.dr-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35em; }
.dr-row .tg { font-size: 0.72em; }
.tg-lock.on > span:first-child .ic, .tg-lock > span:first-child .ic { color: #fbbf24; }
.tg-lock.on > span:first-child .ic { color: var(--ok); }
.tg-lock > span:first-child { flex: none; display: grid; }
.dr-side { display: flex; flex-direction: column; gap: 0.6em; min-width: 0; }
.dr-wins { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2em 1em; }
.dr-win { display: flex; flex-direction: column; gap: 0; font-size: 0.86em; }
.dr-win > span { font-size: 0.78em; color: var(--mu); }
.dr-side .card:last-child { display: flex; flex-direction: column; gap: 0.45em; }
.dr-side .card:last-child .hd { margin-bottom: 0; }

/* ---------------- Luzes ---------------- */
.lz { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0.7em; }
.lz-l { display: flex; flex-direction: column; gap: 0.6em; min-width: 0; }
.lz-tgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(7em, 1fr)); gap: 0.35em; margin-top: 0.45em; }
.lz-tgs .tg { font-size: 0.72em; }
.lz-l .card .hd { margin-bottom: 0.45em; }
.lz-car { padding: 0.3em 0.6em; }
.lz-r { display: flex; flex-direction: column; gap: 0.6em; }
.lz-r .hd { margin-bottom: 0; }
.lz-prev { position: relative; height: 3.2em; border-radius: 0.8em; background: #06080d; overflow: hidden; border: 1px solid var(--bd); }
.lz-prev i { position: absolute; left: 4%; right: 4%; height: 0.3em; border-radius: 999px; background: var(--amb); opacity: var(--amb-a); box-shadow: 0 0 1em 0.3em var(--amb); }
.lz-prev i:nth-child(1) { top: 22%; } .lz-prev i:nth-child(2) { top: 50%; left: 14%; right: 14%; } .lz-prev i:nth-child(3) { top: 78%; left: 24%; right: 24%; }
.sws { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.4em; }
.sw { aspect-ratio: 1; border-radius: 50%; background: var(--c) !important; box-shadow: inset 0 0 0 0.15em rgba(0, 0, 0, 0.3); transition: transform 0.15s; }
.sw.on { box-shadow: 0 0 0 0.18em #070a10, 0 0 0 0.32em #fff, 0 0 1em var(--c); transform: scale(1.06); }
.lz-lbl { display: flex; align-items: center; gap: 0.7em; font-size: 0.9em; }
.lz-lbl > span:first-child { width: 4.6em; flex: none; font-size: 0.78em; color: var(--mu); display: flex; align-items: center; }
.lz-lbl .seg { flex: 1; }
.lz-zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35em; }
.zn { padding: 0.5em; border-radius: 0.7em; border: 1px solid var(--bd) !important; font-size: 0.74em; font-weight: 600; color: var(--mu); }
.zn.on { color: #fff; border-color: color-mix(in srgb, var(--amb-raw) 70%, transparent) !important; background: color-mix(in srgb, var(--amb-raw) 16%, transparent); }

/* ---------------- Mídia ---------------- */
.md { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0.7em; }
.md-pl { display: flex; flex-direction: column; gap: 0.7em; }
.md-src { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.35em; }
.md-src button { display: flex; align-items: center; justify-content: center; gap: 0.4em; padding: 0.45em 0.3em; border-radius: 0.7em; border: 1px solid var(--bd) !important; font-size: 0.7em; font-weight: 600; color: var(--mu); }
.md-src img { width: 1.35em; height: 1.35em; object-fit: contain; border-radius: 0.3em; }
.md-src .ic { width: 1.25em; height: 1.25em; }
.md-src button.on { color: #fff; background: rgba(34, 211, 238, 0.14); border-color: rgba(34, 211, 238, 0.5) !important; }
.md-main { flex: 1; display: flex; gap: 1em; align-items: center; }
.md-cov { width: 10.5em; height: 10.5em; border-radius: 1em; }
.md-eq { position: absolute; left: 0.8em; right: 0.8em; bottom: 0.8em; height: 3em; display: flex; align-items: flex-end; gap: 0.25em; }
.md-eq i { flex: 1; height: 20%; border-radius: 0.2em; background: rgba(255, 255, 255, 0.75); }
.zc.playing .md-eq i { animation: zc-eq 0.9s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1); }
@keyframes zc-eq { 0% { height: 15%; } 50% { height: 85%; } 100% { height: 35%; } }
.md-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.25em; }
.md-info > small:first-child { font-size: 0.66em; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c); font-weight: 600; }
.md-info > b { font: 700 1.6em/1.1 "Rajdhani", sans-serif; }
.md-info > span { font-size: 0.8em; color: var(--mu); }
.md-times { display: flex; justify-content: space-between; font: 600 0.72em "Rajdhani", sans-serif; color: var(--mu); }
.md-ctl { justify-content: space-between; margin-top: 0.2em; }
.md-ctl button[data-tog] { color: var(--mu); }
.md-ctl button[data-tog].on { color: var(--c); }
.md-next { font-size: 0.68em; color: var(--mu); }
.md-vol { display: flex; flex-direction: column; gap: 0.15em; }
.md-vol .lz-lbl > span:first-child { width: 6.4em; }
.md-bot { display: flex; gap: 0.7em; align-items: stretch; margin-top: 0.3em; }
.md-eqs { flex: 1; display: flex; flex-direction: column; gap: 0.3em; }
.md-pad { position: relative; flex: none; width: 5.6em; height: 5.6em; border-radius: 0.8em; border: 1px solid var(--bd); background: linear-gradient(rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.12)) center / 1px 100% no-repeat, linear-gradient(rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.12)) center / 100% 1px no-repeat, rgba(0, 0, 0, 0.3); touch-action: none; cursor: crosshair; }
.md-pad span { position: absolute; left: 0; right: 0; text-align: center; font-size: 0.52em; color: var(--mu); text-transform: uppercase; letter-spacing: 0.08em; }
.md-pad .t { top: 0.3em; } .md-pad .b { bottom: 0.3em; }
.md-pad-dot { position: absolute; width: 0.9em; height: 0.9em; border-radius: 50%; background: var(--c); transform: translate(-50%, -50%); box-shadow: 0 0 0.8em var(--c); }

/* ---------------- Telas traseiras ---------------- */
.tl { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0.7em; }
.tl-l { display: flex; flex-direction: column; gap: 0.55em; }
.tl-l .hd { margin-bottom: 0; }
.live { margin-left: auto; font-style: normal; font-size: 0.7em; color: var(--ok); font-weight: 600; }
.tl-scr { position: relative; border-radius: 0.7em; padding: 0.4em; background: linear-gradient(145deg, #2b313b, #0b0e13); box-shadow: 0 0.5em 1.4em rgba(0, 0, 0, 0.6); }
.tl-scr canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0.35em; background: #000; }
.tl-tgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35em; }
.tl-tgs .tg { font-size: 0.7em; }
.tl-open { display: flex; align-items: center; gap: 0.5em; font-size: 0.72em; color: var(--c); text-decoration: none; }
.tl-r { display: flex; flex-direction: column; gap: 0.6em; min-width: 0; }
.tl-apps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.35em; }
.tl-app { display: flex; flex-direction: column; align-items: center; gap: 0.25em; padding: 0.45em 0.15em; border-radius: 0.75em; border: 1px solid var(--bd) !important; font-size: 0.62em; color: var(--mu); min-width: 0; }
.tl-app span { width: 2.3em; height: 2.3em; display: grid; place-items: center; border-radius: 0.6em; background: var(--ac); color: #fff; font-size: 1.35em; }
.tl-app b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tl-app.on { color: #fff; border-color: var(--ac) !important; background: color-mix(in srgb, var(--ac) 18%, transparent); }
.tl-now { display: flex; flex-direction: column; gap: 0.45em; }
.tl-np { display: flex; flex-direction: column; }
.tl-np b { font-size: 0.9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-np small { font-size: 0.68em; color: var(--mu); }
.tl-items { display: flex; flex-direction: column; gap: 0.25em; max-height: 6.6em; overflow: auto; }
.tl-items button { display: flex; justify-content: space-between; gap: 0.6em; padding: 0.35em 0.6em; border-radius: 0.55em; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--bd) !important; text-align: left; font-size: 0.72em; }
.tl-items button b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-items button small { color: var(--mu); white-space: nowrap; flex: none; }
.tl-items button.on { border-color: var(--c) !important; background: rgba(34, 211, 238, 0.1); }
.tl-items button.lock { opacity: 0.4; }
.tl-row { display: flex; align-items: center; gap: 0.4em; }
.tl-row .lz-lbl { flex: 1; }
.tl-row .lz-lbl > span:first-child { width: auto; }
.tl-row .seg { flex: none; }
.ctl { width: 2.1em; height: 2.1em; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.05); }
.ctl-play { background: #fff; color: #0b0f17; }
.tl-roof { padding: 0.4em; }
.tl-roof .tg { width: 100%; background: none; border: 0 !important; font-size: 0.8em; }

/* ---------------- Preenchimento da altura útil ---------------- */
.zc-body > div { height: 100%; min-height: 0; }
.cl { min-height: 100%; height: auto; }
.cl-top { flex: 1; }
.dr-side > .card { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.dr-side > .card .hd { margin-bottom: 0.6em; }
.dr-car .zc-car { flex: 1; min-height: 0; }
.lz-r { justify-content: space-between; }
.lz-l > .lz-car { flex: 1; display: flex; align-items: center; }
.md-vol { justify-content: space-between; }
.md-vol .lz-lbl > span:first-child { width: 7.2em; white-space: nowrap; }
.tl-now { flex: 1; justify-content: space-between; }
.tl-l .tl-scr { margin: auto 0; }
.st-ctl { justify-content: space-between; }
