/* Control + camera cockpit --------------------------------------------------
   Touch-first hierarchy for the two action-heavy PWA pages. */
.control-page,
.camera-page {
  width: min(100%, 760px);
}

.app-content-page .remote-control-panel {
  gap: 18px;
}

.app-content-page .remote-control-head,
.app-content-page .live-camera-head {
  min-height: 58px;
  padding: 0 2px 4px;
  flex-wrap: wrap;
}

.remote-control-head > .control-page-title,
.live-camera-head > .control-page-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.control-page-title > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.page-title-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), transparent 46%),
    var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 28px rgba(0,0,0,.16);
}

.page-title-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.app-content-page .control-page-title strong {
  line-height: 1.05;
}

.control-page-title #remoteVehicleStateBadge,
.camera-privacy-note {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-status-pill {
  display: inline-grid;
  grid-template-columns: 7px minmax(0, 1fr);
  min-width: auto !important;
  min-height: 30px;
  max-width: min(100%, 210px);
  flex: 0 1 auto;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-secondary) !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  line-height: 1;
}

.page-status-pill::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(132,151,168,.10);
  content: "";
}

.page-status-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-status-pill[data-tone="ok"] {
  border-color: rgba(86,214,140,.24);
  background: rgba(86,214,140,.08);
  color: var(--success) !important;
}

.page-status-pill[data-tone="ok"]::before {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(86,214,140,.11), 0 0 14px rgba(86,214,140,.45);
}

.page-status-pill[data-tone="pending"] {
  border-color: rgba(243,180,94,.24);
  background: rgba(243,180,94,.08);
  color: var(--warning) !important;
}

.page-status-pill[data-tone="pending"]::before {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(243,180,94,.10);
  animation: pageStatusPulse 1.35s ease-in-out infinite;
}

.page-status-pill[data-tone="error"] {
  border-color: rgba(255,124,132,.24);
  background: rgba(255,124,132,.08);
  color: var(--danger) !important;
}

.page-status-pill[data-tone="error"]::before {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255,124,132,.10);
}

@keyframes pageStatusPulse {
  50% { opacity: .45; transform: scale(.78); }
}

.app-content-page .remote-section {
  position: relative;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
}

.app-content-page .remote-section::before {
  position: absolute;
  inset: 0 auto auto 16%;
  width: 68%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.11), transparent);
  content: "";
}

.app-content-page .remote-section-title {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.app-content-page .remote-quick-grid {
  gap: 10px;
}

.app-content-page .remote-action-card {
  min-height: 122px;
  gap: 5px;
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.04), transparent 45%),
    rgba(3,11,18,.52);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.app-content-page .remote-action-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 12%, rgba(53,223,193,.08), transparent 38%);
  content: "";
}

.app-content-page .remote-action-card > * {
  position: relative;
}

.app-content-page .remote-action-card strong {
  margin-top: auto;
  font-size: 14px;
  letter-spacing: -.015em;
}

.app-content-page .remote-action-card small {
  color: var(--muted);
  font-size: 10px;
}

.app-content-page .remote-action-icon {
  width: 42px;
  height: 42px;
  margin: 0;
  border-color: var(--accent-border);
  border-radius: 14px;
  background: var(--accent-soft);
}

.app-content-page .remote-action-icon svg {
  width: 21px;
  height: 21px;
}

.app-content-page .remote-action-card:not(:disabled):active {
  transform: scale(.975);
}

.app-content-page .remote-start-button {
  min-height: 62px;
  margin-top: 2px;
  padding: 11px 16px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(53,223,193,.20), rgba(24,191,167,.10)),
    rgba(3,11,18,.50);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 14px 30px rgba(0,0,0,.12);
}

.app-content-page .remote-start-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--accent-border);
  box-shadow: 0 0 0 6px rgba(53,223,193,.055);
}

.app-content-page .remote-temperature-control {
  grid-template-columns: 48px 1fr 48px;
  gap: 12px;
  padding: 8px 0 2px;
}

.app-content-page .remote-temperature-control strong {
  font-size: clamp(34px, 8vw, 44px);
  letter-spacing: -.055em;
}

.app-content-page .remote-temperature-control button {
  min-height: 48px;
  border-radius: 16px;
  color: var(--text);
  font-size: 24px;
  font-weight: 500;
}

.app-content-page .remote-pill,
.app-content-page .remote-climate-options select {
  min-height: 40px;
  border-radius: 13px;
}

.app-content-page .remote-seat-card {
  gap: 9px;
  padding: 13px;
  border-radius: 17px;
}

.app-content-page .remote-seat-card > strong {
  margin-bottom: 2px;
  font-size: 13px;
}

.app-content-page .remote-segmented {
  gap: 5px;
  padding: 3px;
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  background: rgba(3,11,18,.42);
}

.app-content-page .remote-segmented button {
  min-height: 34px;
  border-color: transparent;
  border-radius: 10px;
}

/* Camera viewfinder */
.app-content-page .live-camera-panel {
  gap: 18px;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 2%, rgba(53,223,193,.09), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 38%),
    var(--surface-1);
}

.app-content-page .live-camera-modes {
  gap: 5px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(3,11,18,.62);
}

.app-content-page .live-camera-modes button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
}

.app-content-page .live-camera-modes button.active {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, rgba(53,223,193,.18), rgba(53,223,193,.09));
  color: var(--accent);
}

.live-camera-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 48%, rgba(53,223,193,.08), transparent 22%),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    #02070c;
  background-size: auto, 34px 34px, 34px 34px, auto;
  box-shadow: 0 24px 54px rgba(0,0,0,.32), inset 0 0 50px rgba(0,0,0,.35);
}

.app-content-page .live-camera-stage #liveCameraVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.camera-stage-hud {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.camera-stage-live,
.camera-stage-mode {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(2,7,12,.58);
  color: rgba(245,249,252,.78);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  backdrop-filter: blur(12px);
}

.camera-stage-live {
  opacity: 0;
  transform: translateY(-4px);
}

.camera-stage-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 10px rgba(255,124,132,.72);
}

.live-camera-stage.is-streaming .camera-stage-live {
  opacity: 1;
  transform: translateY(0);
}

.camera-idle-visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.camera-idle-visual svg {
  width: clamp(58px, 14vw, 82px);
  height: clamp(58px, 14vw, 82px);
  padding: 16px;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  background: rgba(53,223,193,.055);
  fill: var(--accent);
  opacity: .56;
  box-shadow: 0 0 0 12px rgba(53,223,193,.025), 0 0 45px rgba(53,223,193,.08);
}

.live-camera-stage.is-streaming .camera-idle-visual {
  opacity: 0;
  transform: scale(.88);
}

.live-camera-panel.is-active .camera-idle-visual svg {
  animation: cameraStandbyPulse 1.8s ease-in-out infinite;
}

@keyframes cameraStandbyPulse {
  50% { opacity: .82; box-shadow: 0 0 0 18px rgba(53,223,193,.035), 0 0 60px rgba(53,223,193,.14); }
}

.camera-corner {
  position: absolute;
  z-index: 2;
  width: 20px;
  height: 20px;
  pointer-events: none;
  color: rgba(53,223,193,.52);
}

.camera-corner-tl { top: 12px; left: 12px; border-top: 2px solid; border-left: 2px solid; }
.camera-corner-tr { top: 12px; right: 12px; border-top: 2px solid; border-right: 2px solid; }
.camera-corner-bl { bottom: 12px; left: 12px; border-bottom: 2px solid; border-left: 2px solid; }
.camera-corner-br { right: 12px; bottom: 12px; border-right: 2px solid; border-bottom: 2px solid; }

.app-content-page .live-camera-actions {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) 48px 48px;
  gap: 9px;
}

.app-content-page .live-camera-actions .button {
  min-height: 50px;
  border-radius: 16px;
}

.live-camera-record-button,
.live-camera-icon-button {
  display: inline-grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border-radius: 16px;
  cursor: pointer;
}

.live-camera-record-button {
  border: 1px solid rgba(255,124,132,.28);
  background: rgba(255,124,132,.08);
}

.live-camera-record-button:disabled {
  cursor: not-allowed;
  opacity: .38;
}

.live-camera-record-button:not(:disabled):active,
.live-camera-icon-button:not(:disabled):active {
  transform: scale(.94);
}

.live-camera-record-button .record-symbol {
  display: block;
  background: var(--danger);
  box-shadow: 0 0 16px rgba(255,124,132,.48);
}

.live-camera-record-button .record-symbol-circle {
  width: 17px;
  height: 17px;
  border-radius: 50%;
}

.live-camera-record-button .record-symbol-square {
  display: none;
  width: 15px;
  height: 15px;
  border-radius: 4px;
}

.live-camera-record-button.recording {
  border-color: rgba(255,124,132,.54);
  background: rgba(255,124,132,.15);
  animation: kimRecordPulse 1.25s ease-in-out infinite;
}

.live-camera-record-button.recording .record-symbol-circle { display: none; }
.live-camera-record-button.recording .record-symbol-square { display: block; }

@keyframes kimRecordPulse {
  50% { box-shadow: 0 0 0 5px rgba(255,124,132,.08), 0 0 24px rgba(255,124,132,.18); }
}

.app-content-page .live-camera-icon-button {
  border-color: var(--border-strong);
  background: var(--surface-soft);
  color: var(--text-secondary);
}

@media (min-width: 680px) {
  .app-content-page .remote-control-panel {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    align-items: start;
  }

  .app-content-page .remote-control-head,
  .app-content-page .remote-quick-section {
    grid-column: 1 / -1;
  }

  .app-content-page .remote-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .app-content-page .remote-climate-card,
  .app-content-page .remote-seats-section {
    height: 100%;
  }
}

@media (max-width: 520px) {
  .app-content-page .remote-control-head,
  .app-content-page .live-camera-head {
    align-items: flex-start;
  }

  .page-title-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .page-title-icon svg {
    width: 22px;
    height: 22px;
  }

  .page-status-pill {
    max-width: 138px;
    min-height: 28px;
    padding: 5px 8px;
  }

  .app-content-page .remote-section,
  .app-content-page .live-camera-panel {
    padding: 14px;
  }

  .app-content-page .remote-action-card {
    min-height: 108px;
    padding: 12px;
  }

  .app-content-page .remote-action-icon {
    width: 38px;
    height: 38px;
  }

  .app-content-page .live-camera-panel {
    gap: 14px;
  }

  .app-content-page .live-camera-modes button {
    min-height: 38px;
    padding: 0 5px;
    font-size: 10px;
  }

  .live-camera-stage {
    border-radius: 17px;
  }

  .app-content-page .live-camera-actions {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) 44px 44px;
    gap: 7px;
  }

  .live-camera-record-button,
  .live-camera-icon-button {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
}

/* Control page V2 ---------------------------------------------------------
   Cabin-first remote control UI matching the approved premium mockup. */
.app-content-page .remote-control-panel.remote-control-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.app-content-page .remote-control-v2 .remote-control-head {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.app-content-page .remote-control-v2 .remote-section {
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(125, 151, 178, .22);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 40%),
    radial-gradient(circle at 50% 0%, rgba(31, 110, 133, .10), transparent 42%),
    rgba(10, 24, 37, .92);
  box-shadow:
    0 22px 52px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.035);
}

.app-content-page .remote-control-v2 .remote-section::before {
  display: none;
}

.app-content-page .remote-control-v2 .remote-section-title {
  color: #9aadc1;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
}

/* Cabin + seats */
.app-content-page .remote-control-v2 .remote-seats-section {
  position: relative;
  gap: 0;
  padding: 0 18px 18px;
  overflow: hidden;
}

.remote-seat-section-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.remote-cabin-hero {
  position: relative;
  height: clamp(232px, 51vw, 320px);
  margin: 0 -18px -3px;
  overflow: hidden;
  border-radius: 27px 27px 0 0;
  background: #07131f;
}

.remote-cabin-hero::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,13,22,.03) 0%, rgba(5,13,22,0) 68%, rgba(5,13,22,.72) 100%),
    radial-gradient(circle at 28% 78%, rgba(47,145,255,.12), transparent 27%),
    radial-gradient(circle at 72% 78%, rgba(53,223,193,.12), transparent 27%);
  content: "";
}

.remote-cabin-art {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.remote-cabin-base {
  filter: saturate(.96) contrast(1.02);
}

.remote-cabin-overlay {
  pointer-events: none;
  opacity: 0;
  transform: translateZ(0) scale(.997);
  transform-box: view-box;
  transform-origin: 50% 72%;
  transition: opacity .24s ease, transform .28s ease;
  will-change: opacity, transform;
}

.remote-cabin-overlay.is-active {
  opacity: 1;
  transform: translateZ(0) scale(1);
}

.remote-cabin-overlay.is-active[data-seat-level="1"] {
  opacity: .76;
}

@media (prefers-reduced-motion: no-preference) {
  .remote-cabin-overlay.is-active[data-seat-level="2"] {
    animation: remoteSeatOverlayBreathe 3.2s ease-in-out infinite;
  }
}

@keyframes remoteSeatOverlayBreathe {
  0%, 100% { opacity: .96; }
  50% { opacity: 1; }
}

.remote-cabin-shade {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  height: 44%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(6,17,27,.92));
}

.app-content-page .remote-control-v2 .remote-seat-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: -4px;
}

.app-content-page .remote-control-v2 .remote-seat-card {
  gap: 10px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(112, 145, 176, .28);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.025), transparent 42%),
    rgba(5, 17, 29, .90);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 14px 34px rgba(0,0,0,.16);
}

.app-content-page .remote-control-v2 .remote-seat-driver {
  border-color: rgba(55, 151, 255, .62);
  box-shadow: inset 0 0 0 1px rgba(55,151,255,.04), 0 14px 34px rgba(0,0,0,.16);
}

.app-content-page .remote-control-v2 .remote-seat-passenger {
  border-color: rgba(53, 223, 193, .50);
  box-shadow: inset 0 0 0 1px rgba(53,223,193,.035), 0 14px 34px rgba(0,0,0,.16);
}

.app-content-page .remote-control-v2 .remote-seat-card[data-active-mode="vent"][data-active-level="1"] {
  box-shadow: inset 0 0 0 1px rgba(75, 175, 255, .06), 0 12px 28px rgba(21, 128, 214, .09);
}

.app-content-page .remote-control-v2 .remote-seat-card[data-active-mode="vent"][data-active-level="2"] {
  box-shadow: inset 0 0 0 1px rgba(71, 190, 255, .10), 0 14px 34px rgba(21, 128, 214, .15);
}

.app-content-page .remote-control-v2 .remote-seat-card[data-active-mode="heat"] {
  border-color: rgba(244, 116, 82, .50);
  box-shadow: inset 0 0 0 1px rgba(244, 116, 82, .055), 0 12px 30px rgba(197, 74, 50, .10);
}

.app-content-page .remote-control-v2 .remote-seat-card[data-active-mode="heat"][data-active-level="2"] {
  border-color: rgba(255, 126, 88, .62);
  box-shadow: inset 0 0 0 1px rgba(255, 126, 88, .09), 0 14px 36px rgba(197, 74, 50, .16);
}

.app-content-page .remote-control-v2 .remote-seat-card > strong {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-content-page .remote-control-v2 .remote-seat-driver > strong { color: #58adff; }
.app-content-page .remote-control-v2 .remote-seat-passenger > strong { color: #35dfc1; }

.app-content-page .remote-control-v2 .remote-seat-mode {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a7b6c6;
  font-size: 11px;
  font-weight: 700;
}

.app-content-page .remote-control-v2 .remote-seat-mode b { font: inherit; }
.app-content-page .remote-control-v2 .remote-seat-mode-cooling { color: #9ec8e8; }
.app-content-page .remote-control-v2 .remote-seat-mode-heating { color: #f28b63; }

.app-content-page .remote-control-v2 .remote-segmented {
  gap: 0;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(103, 132, 160, .28);
  border-radius: 999px;
  background: rgba(2, 10, 19, .58);
}

.app-content-page .remote-control-v2 .remote-segmented button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #a9b7c6;
  font-size: 10px;
  font-weight: 850;
}

.app-content-page .remote-control-v2 .remote-seat-driver .remote-segmented[data-seat-mode="vent"] button.active {
  background: linear-gradient(180deg, rgba(48,143,255,.28), rgba(38,111,211,.18));
  color: #7cc5ff;
  box-shadow: inset 0 0 0 1px rgba(76,165,255,.48);
}

.app-content-page .remote-control-v2 .remote-seat-passenger .remote-segmented[data-seat-mode="vent"] button.active {
  background: linear-gradient(180deg, rgba(53,223,193,.22), rgba(20,184,166,.15));
  color: #54e7cd;
  box-shadow: inset 0 0 0 1px rgba(53,223,193,.36);
}

.app-content-page .remote-control-v2 .remote-segmented[data-seat-mode="heat"] button.active {
  background: linear-gradient(180deg, rgba(255,105,105,.16), rgba(143,52,64,.16));
  color: #ff8585;
  box-shadow: inset 0 0 0 1px rgba(255,105,105,.19);
}

/* Climate */
.app-content-page .remote-control-v2 .remote-climate-card {
  gap: 16px;
  padding: 20px 18px 16px;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(16, 120, 128, .13), transparent 52%),
    linear-gradient(145deg, rgba(255,255,255,.03), transparent 42%),
    rgba(9, 23, 36, .94);
}

.remote-title-fan {
  display: inline-block;
  margin-right: 5px;
  color: #91a7ba;
  font-size: 13px;
}

.app-content-page .remote-control-v2 .remote-climate-card .remote-pill {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(53,223,193,.42);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(53,223,193,.17), rgba(22,129,120,.13));
  color: #46dfc4;
  font-size: 11px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 0 20px rgba(53,223,193,.05);
}

.app-content-page .remote-control-v2 .remote-climate-card .remote-pill:not(.active) {
  background: rgba(7,19,31,.84);
  color: #8aa0b3;
  border-color: rgba(108,135,160,.25);
  box-shadow: none;
}

.app-content-page .remote-control-v2 .remote-temperature-control {
  grid-template-columns: 56px 1fr 56px;
  gap: 14px;
  padding: 0;
}

.app-content-page .remote-control-v2 .remote-temperature-control strong {
  color: #fbfdff;
  font-size: clamp(42px, 10vw, 58px);
  font-weight: 950;
  letter-spacing: -.065em;
  line-height: 1;
  text-shadow: 0 8px 26px rgba(0,0,0,.28);
}

.app-content-page .remote-control-v2 .remote-temperature-control button {
  min-height: 56px;
  border: 1px solid rgba(89, 132, 163, .38);
  border-radius: 20px;
  background: rgba(5, 15, 27, .72);
  color: #f5f7fa;
  font-size: 29px;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.app-content-page .remote-control-v2 .remote-climate-options {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.app-content-page .remote-control-v2 .remote-climate-options > .remote-pill {
  min-width: 92px;
}

.remote-fan-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 26px;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.remote-fan-label {
  color: #8fa1b3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .01em;
}

.remote-fan-meter {
  display: grid;
  grid-template-columns: repeat(7, minmax(5px, 1fr));
  gap: 5px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(91, 123, 151, .24);
  border-radius: 999px;
  background: rgba(3, 13, 23, .50);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.remote-fan-meter:hover,
.remote-fan-meter:focus-visible {
  border-color: rgba(53, 223, 193, .44);
  background: rgba(5, 19, 31, .68);
  box-shadow: 0 0 0 3px rgba(53, 223, 193, .08);
  outline: none;
}

.remote-fan-meter.is-disabled {
  cursor: default;
  opacity: .42;
  pointer-events: none;
}

.remote-fan-meter span {
  height: 8px;
  border-radius: 999px;
  background: #25384a;
  transition: background .18s ease, box-shadow .18s ease, opacity .18s ease, transform .18s ease;
}

.remote-fan-meter[data-level="1"] span:nth-child(-n+1),
.remote-fan-meter[data-level="2"] span:nth-child(-n+2),
.remote-fan-meter[data-level="3"] span:nth-child(-n+3),
.remote-fan-meter[data-level="4"] span:nth-child(-n+4),
.remote-fan-meter[data-level="5"] span:nth-child(-n+5),
.remote-fan-meter[data-level="6"] span:nth-child(-n+6),
.remote-fan-meter[data-level="7"] span:nth-child(-n+7) {
  background: #35dfc1;
  box-shadow: 0 0 10px rgba(53,223,193,.26);
}

.remote-fan-meter:active span {
  transform: scaleY(1.12);
}

.remote-fan-value {
  color: #dffbf5;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.app-content-page .remote-control-v2 .remote-hint {
  color: #8195a8;
  font-size: 10px;
  line-height: 1.45;
}

/* Quick actions */
.app-content-page .remote-control-v2 .remote-quick-section {
  gap: 14px;
  padding: 18px;
}

.app-content-page .remote-control-v2 .remote-quick-grid {
  display: flex;
  gap: 10px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.app-content-page .remote-control-v2 .remote-quick-grid::-webkit-scrollbar { display: none; }

.app-content-page .remote-control-v2 .remote-action-card,
.app-content-page .remote-control-v2 .remote-start-button {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  justify-items: center;
  align-content: center;
  gap: 7px;
  flex: 0 0 104px;
  min-width: 104px;
  min-height: 94px;
  scroll-snap-align: start;
  padding: 10px 6px;
  border: 1px solid rgba(93, 124, 153, .24);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.026), transparent 45%),
    rgba(5, 17, 29, .66);
  color: #96a8ba;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

.app-content-page .remote-control-v2 .remote-action-card::before { display: none; }

.app-content-page .remote-control-v2 .remote-action-card[hidden] { display: none !important; }

.app-content-page .remote-control-v2 .remote-action-card.is-active {
  border-color: rgba(53,223,193,.46);
  background: linear-gradient(180deg, rgba(53,223,193,.13), rgba(5,17,29,.72));
}

.app-content-page .remote-control-v2 .remote-action-card.is-active .remote-action-icon,
.app-content-page .remote-control-v2 .remote-action-card.is-active strong {
  color: #35dfc1;
}

/* Hold-to-activate feedback. The base theme only draws a 3px progress line,
   which is almost invisible inside the compact Quick Controls cards. */
.app-content-page .remote-control-v2 .remote-sensitive {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --hold-progress: 0%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.app-content-page .remote-control-v2 .remote-sensitive *,
.app-content-page .remote-control-v2 .remote-sensitive::before,
.app-content-page .remote-control-v2 .remote-sensitive::after {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.app-content-page .remote-control-v2 .remote-sensitive::after {
  z-index: 0;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--hold-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(53,223,193,.20), rgba(53,223,193,.08));
  box-shadow: inset -1px 0 0 rgba(53,223,193,.45);
  opacity: 1;
  transition: width 40ms linear;
}

.app-content-page .remote-control-v2 .remote-sensitive > * {
  position: relative;
  z-index: 1;
}

.app-content-page .remote-control-v2 .remote-sensitive.is-holding {
  border-color: rgba(53,223,193,.52);
  transform: scale(.985);
}

.app-content-page .remote-control-v2 .remote-sensitive.is-hold-complete {
  border-color: rgba(53,223,193,.78);
  box-shadow: inset 0 0 0 1px rgba(53,223,193,.22), 0 0 0 3px rgba(53,223,193,.07);
}

.app-content-page .remote-control-v2 .remote-action-card strong,
.app-content-page .remote-control-v2 .remote-start-button strong {
  margin: 0;
  min-width: 0;
  color: #aab8c7;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
}

.app-content-page .remote-control-v2 .remote-action-card small,
.app-content-page .remote-control-v2 .remote-start-button small {
  display: none;
}

.app-content-page .remote-control-v2 .remote-action-icon,
.app-content-page .remote-control-v2 .remote-start-icon {
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid rgba(70, 113, 142, .24);
  border-radius: 14px;
  background: rgba(13, 35, 48, .54);
  color: #90a4b7;
  box-shadow: none;
}

.app-content-page .remote-control-v2 #remoteLockButton:not(:disabled) .remote-action-icon,
.app-content-page .remote-control-v2 #remoteStartStopButton:not(:disabled) .remote-action-icon {
  border-color: rgba(53,223,193,.38);
  background: rgba(53,223,193,.12);
  color: #35dfc1;
}

.app-content-page .remote-control-v2 #remoteStartStopButton {
  border-color: rgba(53,223,193,.38);
  background: linear-gradient(180deg, rgba(53,223,193,.14), rgba(15,70,71,.11));
  color: #35dfc1;
}

.app-content-page .remote-control-v2 #remoteStartStopButton strong { color: #35dfc1; }
.app-content-page .remote-control-v2 #remoteStartStopButton.is-stop {
  border-color: rgba(255,124,132,.32);
  background: rgba(255,124,132,.08);
}
.app-content-page .remote-control-v2 #remoteStartStopButton.is-stop .remote-action-icon,
.app-content-page .remote-control-v2 #remoteStartStopButton.is-stop strong { color: #ff8b92; }

.app-content-page .remote-control-v2 .remote-action-card:disabled,
.app-content-page .remote-control-v2 .remote-start-button:disabled {
  opacity: .38;
}

.app-content-page .remote-control-v2 .remote-action-status {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 0;
  gap: 8px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8396a9 !important;
  font-size: 10px !important;
  font-weight: 650 !important;
}

.app-content-page .remote-control-v2 .remote-action-status::before {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 4px rgba(132,151,168,.07);
}

/* Climate, Quick Controls and Charge Limit intentionally share one message treatment. */
.app-content-page .remote-control-v2 #remoteClimateStatus,
.app-content-page .remote-control-v2 #remoteControlStatus,
.app-content-page .remote-control-v2 #remoteChargeLimitStatus {
  justify-self: stretch;
  align-self: center;
}

/* TPMS -------------------------------------------------------------------- */
.app-content-page .remote-control-v2 .remote-tpms-section {
  position: relative;
  gap: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(53,223,193,.095), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(88,173,255,.08), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 42%),
    rgba(8, 22, 35, .95);
}

.remote-tpms-head,
.remote-tpms-heading,
.remote-tpms-wheel-head,
.remote-tpms-temperature,
.remote-tpms-notice {
  display: flex;
  align-items: center;
}

.remote-tpms-head {
  position: relative;
  z-index: 3;
  justify-content: space-between;
  gap: 12px;
}

.remote-tpms-heading { gap: 10px; min-width: 0; }
.remote-tpms-heading > div { display: grid; gap: 3px; min-width: 0; }
.remote-tpms-heading .remote-section-title { color: #d8e7f2 !important; font-size: 14px !important; letter-spacing: .08em !important; }
.remote-tpms-heading small { color: #748ca0; font-size: 10px; font-weight: 650; }

.remote-tpms-title-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(53,223,193,.34);
  border-radius: 13px;
  background: rgba(53,223,193,.085);
  color: #35dfc1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 0 24px rgba(53,223,193,.06);
}
.remote-tpms-title-icon svg { width: 20px; height: 20px; fill: currentColor; }

.remote-tpms-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(132,151,168,.18);
  border-radius: 999px;
  background: rgba(3,13,22,.42);
  color: #8195a8;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.remote-tpms-status[data-tone="ok"] { border-color: rgba(53,223,193,.26); background: rgba(53,223,193,.08); color: #35dfc1; }
.remote-tpms-status[data-tone="warn"] { border-color: rgba(255,190,86,.28); background: rgba(255,190,86,.08); color: #ffc568; }
.remote-tpms-status[data-tone="alert"] { border-color: rgba(255,114,105,.34); background: rgba(255,114,105,.10); color: #ff847c; }

.remote-tpms-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(112px, .82fr) minmax(220px, 1.5fr) minmax(112px, .82fr);
  align-items: stretch;
  gap: 12px;
  min-height: 244px;
}

.remote-tpms-column { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; }

.remote-tpms-wheel-card {
  position: relative;
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 108px;
  padding: 12px;
  border: 1px solid rgba(86,125,153,.21);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.028), transparent 48%),
    rgba(4,16,27,.67);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.remote-tpms-wheel-card[data-tone="ok"] {
  border-color: rgba(53,223,193,.26);
  background: linear-gradient(145deg, rgba(53,223,193,.05), transparent 52%), rgba(4,16,27,.69);
}
.remote-tpms-wheel-card[data-tone="warn"] {
  border-color: rgba(255,190,86,.34);
  background: linear-gradient(145deg, rgba(255,190,86,.075), transparent 54%), rgba(18,16,12,.68);
}
.remote-tpms-wheel-card[data-tone="alert"] {
  border-color: rgba(255,114,105,.42);
  background: linear-gradient(145deg, rgba(255,114,105,.09), transparent 54%), rgba(23,13,18,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 0 28px rgba(255,80,75,.055);
}

.remote-tpms-wheel-head { justify-content: space-between; gap: 8px; color: #7e95a9; font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.remote-tpms-wheel-state-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(132,151,168,.22);
  border-radius: 50%;
  color: #8296a9;
  font-size: 11px;
  font-weight: 900;
}
.remote-tpms-wheel-card[data-tone="ok"] .remote-tpms-wheel-state-icon { border-color: rgba(53,223,193,.42); color: #35dfc1; }
.remote-tpms-wheel-card[data-tone="warn"] .remote-tpms-wheel-state-icon { border-color: rgba(255,190,86,.44); color: #ffc568; }
.remote-tpms-wheel-card[data-tone="alert"] .remote-tpms-wheel-state-icon { border-color: rgba(255,114,105,.48); color: #ff847c; }

.remote-tpms-pressure { display: flex; align-items: baseline; gap: 5px; color: #f4f9fc; font-size: 28px; font-weight: 780; line-height: 1; font-variant-numeric: tabular-nums; }
.remote-tpms-pressure small { color: #7f96aa; font-size: 10px; font-weight: 750; }
.remote-tpms-wheel-card[data-tone="alert"] .remote-tpms-pressure { color: #ff847c; }
.remote-tpms-wheel-card[data-tone="warn"] .remote-tpms-pressure { color: #ffd17d; }

.remote-tpms-temperature { gap: 5px; color: #9eb1c1; font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; }
.remote-tpms-temperature svg { width: 14px; height: 14px; flex: 0 0 14px; fill: currentColor; color: #35dfc1; }
.remote-tpms-wheel-card[data-tone="alert"] .remote-tpms-temperature svg { color: #ff847c; }
.remote-tpms-wheel-card[data-tone="warn"] .remote-tpms-temperature svg { color: #ffc568; }
.remote-tpms-wheel-message { overflow: hidden; color: #6f879a; font-size: 8.5px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.remote-tpms-wheel-card[data-tone="ok"] .remote-tpms-wheel-message { color: #65bfae; }
.remote-tpms-wheel-card[data-tone="warn"] .remote-tpms-wheel-message { color: #cfa85e; }
.remote-tpms-wheel-card[data-tone="alert"] .remote-tpms-wheel-message { color: #d87572; }

.remote-tpms-vehicle-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(93,124,153,.12);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 72%, rgba(53,223,193,.12), transparent 34%),
    linear-gradient(180deg, rgba(5,17,29,.20), rgba(3,13,22,.45));
}
.remote-tpms-vehicle-stage::after {
  position: absolute;
  right: 12%;
  bottom: 15%;
  left: 12%;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.38);
  filter: blur(10px);
  content: "";
}
.remote-tpms-vehicle-halo {
  position: absolute;
  inset: 18% 9%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(53,223,193,.12), rgba(53,223,193,.035) 40%, transparent 70%);
  filter: blur(4px);
}
.remote-tpms-vehicle-art {
  position: relative;
  z-index: 2;
  width: min(98%, 390px);
  height: auto;
  opacity: .92;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.38)) drop-shadow(0 0 16px rgba(53,223,193,.09));
  transform: scale(1.07);
}

.remote-tpms-hotspot {
  --tpms-dot: #668296;
  position: absolute;
  z-index: 4;
  width: 15px;
  height: 15px;
  border: 2px solid var(--tpms-dot);
  border-radius: 50%;
  background: rgba(5,17,29,.88);
  box-shadow: 0 0 0 5px rgba(102,130,150,.12), 0 0 14px rgba(102,130,150,.32);
}
.remote-tpms-hotspot::after { position: absolute; inset: 3px; border-radius: inherit; background: var(--tpms-dot); content: ""; }
.remote-tpms-hotspot[data-tone="ok"] { --tpms-dot: #35dfc1; box-shadow: 0 0 0 5px rgba(53,223,193,.11), 0 0 14px rgba(53,223,193,.34); }
.remote-tpms-hotspot[data-tone="warn"] { --tpms-dot: #ffc568; box-shadow: 0 0 0 5px rgba(255,197,104,.11), 0 0 14px rgba(255,197,104,.32); }
.remote-tpms-hotspot[data-tone="alert"] { --tpms-dot: #ff746c; box-shadow: 0 0 0 5px rgba(255,116,108,.12), 0 0 16px rgba(255,116,108,.40); animation: remote-tpms-alert-pulse 1.5s ease-in-out infinite; }
/* Coordinates align to /assets/live-vehicle-line-art.14e696e0279f.webp. */
.remote-tpms-hotspot-fl { left: 45%; top: 67%; }
.remote-tpms-hotspot-fr { left: 76%; top: 57%; }
.remote-tpms-hotspot-rl { left: 16%; top: 59%; }
.remote-tpms-hotspot-rr { left: 84%; top: 48%; }

@keyframes remote-tpms-alert-pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: .78; }
}

.remote-tpms-notice {
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(255,190,86,.25);
  border-radius: 13px;
  background: rgba(255,190,86,.065);
  color: #c6a465;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.35;
}
.remote-tpms-notice[data-tone="alert"] { border-color: rgba(255,114,105,.30); background: rgba(255,114,105,.075); color: #e58a84; }
.remote-tpms-notice-icon { display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 18px; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; font-weight: 900; }
.remote-tpms-notice[hidden] { display: none !important; }

/* Keep the cabin-first stack even on tablet widths. */
@media (min-width: 680px) {
  .app-content-page .remote-control-panel.remote-control-v2 {
    grid-template-columns: 1fr;
  }

  .app-content-page .remote-control-v2 .remote-quick-section,
  .app-content-page .remote-control-v2 .remote-climate-card,
  .app-content-page .remote-control-v2 .remote-seats-section,
  .app-content-page .remote-control-v2 .remote-tpms-section {
    grid-column: 1;
    height: auto;
  }

  .app-content-page .remote-control-v2 .remote-action-card,
  .app-content-page .remote-control-v2 .remote-start-button {
    flex-basis: 112px;
    min-width: 112px;
  }
}

@media (max-width: 520px) {
  .app-content-page .remote-control-v2 .remote-section {
    padding: 15px;
    border-radius: 24px;
  }

  .app-content-page .remote-control-v2 .remote-seats-section {
    padding: 0 12px 12px;
  }

  .remote-cabin-hero {
    height: clamp(218px, 58vw, 260px);
    margin: 0 -12px -2px;
    border-radius: 23px 23px 0 0;
  }

  .app-content-page .remote-control-v2 .remote-seat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .app-content-page .remote-control-v2 .remote-seat-card {
    gap: 8px;
    padding: 11px 9px;
    border-radius: 16px;
  }

  .app-content-page .remote-control-v2 .remote-seat-card > strong {
    font-size: 10px;
  }

  .app-content-page .remote-control-v2 .remote-seat-mode {
    gap: 4px;
    font-size: 9px;
  }

  .app-content-page .remote-control-v2 .remote-segmented {
    padding: 2px;
  }

  .app-content-page .remote-control-v2 .remote-segmented button {
    min-height: 31px;
    padding: 0 2px;
    font-size: 8px;
  }

  .app-content-page .remote-control-v2 .remote-climate-card {
    padding: 17px 15px 14px;
  }

  .app-content-page .remote-control-v2 .remote-temperature-control {
    grid-template-columns: 50px 1fr 50px;
    gap: 9px;
  }

  .app-content-page .remote-control-v2 .remote-temperature-control button {
    min-height: 50px;
    border-radius: 18px;
  }

  .app-content-page .remote-control-v2 .remote-temperature-control strong {
    font-size: 42px;
  }

  .app-content-page .remote-control-v2 .remote-climate-options {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }

  .app-content-page .remote-control-v2 .remote-climate-options > .remote-pill {
    min-width: 72px;
    padding: 0 10px;
  }

  .remote-fan-control {
    grid-template-columns: auto minmax(0, 1fr) 22px;
    gap: 6px;
  }

  .remote-fan-label {
    font-size: 10px;
  }

  .remote-fan-meter {
    gap: 3px;
    padding: 11px 9px;
  }

  .remote-fan-meter span {
    height: 7px;
  }

  .remote-fan-value {
    font-size: 12px;
  }

  .app-content-page .remote-control-v2 .remote-quick-section {
    padding: 15px 12px;
  }

  .app-content-page .remote-control-v2 .remote-quick-grid {
    gap: 7px;
  }

  .app-content-page .remote-control-v2 .remote-action-card,
  .app-content-page .remote-control-v2 .remote-start-button {
    flex-basis: 92px;
    min-width: 92px;
    min-height: 82px;
    padding: 8px 3px;
    border-radius: 15px;
  }

  .app-content-page .remote-control-v2 .remote-action-icon,
  .app-content-page .remote-control-v2 .remote-start-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .app-content-page .remote-control-v2 .remote-action-icon svg,
  .app-content-page .remote-control-v2 .remote-start-icon svg {
    width: 18px;
    height: 18px;
  }

  .app-content-page .remote-control-v2 .remote-action-card strong,
  .app-content-page .remote-control-v2 .remote-start-button strong {
    font-size: 8.5px;
  }

  .app-content-page .remote-control-v2 .remote-tpms-section { padding: 15px 12px; }
  .remote-tpms-head { align-items: flex-start; }
  .remote-tpms-status { padding: 6px 8px; font-size: 8px; }
  .remote-tpms-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-height: 0; }
  .remote-tpms-vehicle-stage { grid-column: 1 / -1; grid-row: 1; min-height: 190px; }
  .remote-tpms-column { display: contents; }
  .remote-tpms-column-left .remote-tpms-wheel-card:first-child { grid-column: 1; grid-row: 2; }
  .remote-tpms-column-right .remote-tpms-wheel-card:first-child { grid-column: 2; grid-row: 2; }
  .remote-tpms-column-left .remote-tpms-wheel-card:last-child { grid-column: 1; grid-row: 3; }
  .remote-tpms-column-right .remote-tpms-wheel-card:last-child { grid-column: 2; grid-row: 3; }
  .remote-tpms-wheel-card { min-height: 96px; padding: 10px; border-radius: 15px; }
  .remote-tpms-pressure { font-size: 24px; }
  .remote-tpms-vehicle-art { width: min(94%, 330px); transform: scale(1.02); }
  .remote-tpms-hotspot-fl { left: 45%; top: 68%; }
  .remote-tpms-hotspot-fr { left: 77%; top: 57%; }
  .remote-tpms-hotspot-rl { left: 17%; top: 60%; }
  .remote-tpms-hotspot-rr { left: 84%; top: 49%; }
}

/* TPMS visual refresh — reference-style top view ------------------------- */
.app-content-page .remote-control-v2 .remote-tpms-section {
  gap: 16px;
  padding: 18px 20px 16px;
  border-color: rgba(139, 171, 197, .16);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(53,223,193,.075), transparent 30%),
    radial-gradient(circle at 0 0, rgba(88,173,255,.055), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.025), transparent 42%),
    #0b1724;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 18px 42px rgba(0,0,0,.18);
}

.remote-tpms-head {
  min-height: 44px;
  align-items: center;
}

.remote-tpms-heading { gap: 12px; }
.remote-tpms-heading > div { gap: 2px; }
.remote-tpms-heading .remote-section-title {
  color: #f3f8fc !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
}
.remote-tpms-heading small {
  color: #91a5b8;
  font-size: 11px;
  font-weight: 600;
}

.remote-tpms-title-icon {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4be39a;
  box-shadow: none;
  filter: drop-shadow(0 0 8px rgba(75,227,154,.18));
}
.remote-tpms-title-icon svg { width: 34px; height: 34px; }

.remote-tpms-panel-chevron {
  display: grid;
  place-items: center;
  width: 30px;
  height: 42px;
  color: #8ca2b7;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.remote-tpms-layout {
  grid-template-columns: minmax(150px, .92fr) minmax(190px, 1.05fr) minmax(150px, .92fr);
  gap: 18px;
  min-height: 300px;
  align-items: center;
}

.remote-tpms-column {
  gap: 18px;
  align-self: stretch;
}

.remote-tpms-wheel-card {
  --tpms-accent: #73889b;
  position: relative;
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) 18px;
  align-items: center;
  align-content: initial;
  gap: 12px;
  min-height: 132px;
  padding: 15px 14px 15px 12px;
  border: 1px solid rgba(126,158,184,.22);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.024), transparent 55%),
    rgba(10,26,41,.84);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 10px 24px rgba(0,0,0,.10);
}
.remote-tpms-wheel-card[data-tone="ok"] { --tpms-accent: #4be39a; border-color: rgba(124,160,187,.24); background: linear-gradient(145deg, rgba(75,227,154,.025), transparent 56%), rgba(10,26,41,.86); }
.remote-tpms-wheel-card[data-tone="warn"] { --tpms-accent: #ffc568; border-color: rgba(255,197,104,.38); background: linear-gradient(145deg, rgba(255,197,104,.07), transparent 58%), rgba(23,24,26,.88); }
.remote-tpms-wheel-card[data-tone="alert"] { --tpms-accent: #ff746c; border-color: rgba(255,116,108,.46); background: linear-gradient(145deg, rgba(255,116,108,.09), transparent 58%), rgba(28,18,23,.9); box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 0 25px rgba(255,116,108,.055); }

.remote-tpms-wheel-rail {
  width: 5px;
  height: 68px;
  align-self: center;
  border-radius: 999px;
  background: var(--tpms-accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--tpms-accent) 45%, transparent);
}

.remote-tpms-wheel-copy {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
}

.remote-tpms-wheel-head {
  justify-content: flex-start;
  color: #9eafbf;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
}
.remote-tpms-wheel-state-icon { display: none; }

.remote-tpms-pressure {
  gap: 6px;
  color: #f6f9fc;
  font-size: 31px;
  font-weight: 760;
  letter-spacing: -.02em;
}
.remote-tpms-pressure small {
  color: #e4ecf3;
  font-size: 13px;
  font-weight: 650;
}
.remote-tpms-wheel-card[data-tone="warn"] .remote-tpms-pressure { color: #ffd17d; }
.remote-tpms-wheel-card[data-tone="alert"] .remote-tpms-pressure { color: #ff8e87; }

.remote-tpms-temperature {
  gap: 6px;
  color: #a9bbcc;
  font-size: 12px;
  font-weight: 650;
}
.remote-tpms-temperature svg {
  width: 15px;
  height: 15px;
  color: var(--tpms-accent);
}

.remote-tpms-wheel-message {
  display: none;
  margin-top: 2px;
  color: var(--tpms-accent) !important;
  font-size: 9px;
  font-weight: 750;
}
.remote-tpms-wheel-card[data-tone="warn"] .remote-tpms-wheel-message,
.remote-tpms-wheel-card[data-tone="alert"] .remote-tpms-wheel-message { display: block; }

.remote-tpms-card-chevron {
  justify-self: end;
  color: #879caf;
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
}

.remote-tpms-vehicle-stage {
  min-height: 300px;
  border: 0;
  border-radius: 20px;
  overflow: visible;
  background: transparent;
}
.remote-tpms-vehicle-stage::after { display: none; }
.remote-tpms-vehicle-halo {
  inset: 12% 8%;
  border-radius: 48%;
  background: radial-gradient(ellipse, rgba(75,227,154,.105), rgba(75,227,154,.035) 43%, transparent 72%);
  filter: blur(8px);
}
.remote-tpms-vehicle-art {
  z-index: 2;
  width: 220px;
  max-width: 96%;
  height: 292px;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  border-radius: 24px;
  transform: none;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.28));
  -webkit-mask-image: radial-gradient(ellipse 72% 94% at 50% 50%, #000 72%, rgba(0,0,0,.94) 84%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 94% at 50% 50%, #000 72%, rgba(0,0,0,.94) 84%, transparent 100%);
}

.remote-tpms-hotspot {
  --tpms-dot: #73889b;
  width: 28px;
  height: 54px;
  border: 2px solid var(--tpms-dot);
  border-radius: 10px;
  background: rgba(6,18,29,.16);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tpms-dot) 12%, transparent), 0 0 16px color-mix(in srgb, var(--tpms-dot) 35%, transparent);
  transform: translate(-50%, -50%);
}
.remote-tpms-hotspot::after { display: none; }
.remote-tpms-hotspot[data-tone="ok"] { --tpms-dot: #4be39a; }
.remote-tpms-hotspot[data-tone="warn"] { --tpms-dot: #ffc568; }
.remote-tpms-hotspot[data-tone="alert"] { --tpms-dot: #ff746c; animation: remote-tpms-alert-pulse 1.35s ease-in-out infinite; }
.remote-tpms-hotspot-fl { left: calc(50% - 78px); top: 27%; }
.remote-tpms-hotspot-fr { left: calc(50% + 78px); top: 27%; }
.remote-tpms-hotspot-rl { left: calc(50% - 78px); top: 74%; }
.remote-tpms-hotspot-rr { left: calc(50% + 78px); top: 74%; }

.remote-tpms-notice {
  margin-top: -2px;
  border-radius: 14px;
}

.remote-tpms-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding-top: 13px;
  border-top: 1px solid rgba(130,157,180,.16);
}
.remote-tpms-footer-state {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.remote-tpms-footer-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background: #4be39a;
  color: #062518;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 0 12px rgba(75,227,154,.18);
}
.remote-tpms-footer-state:has(.remote-tpms-status[data-tone="warn"]) .remote-tpms-footer-icon { background: #ffc568; color: #2b1d05; }
.remote-tpms-footer-state:has(.remote-tpms-status[data-tone="alert"]) .remote-tpms-footer-icon { background: #ff746c; color: #2c0907; }
.remote-tpms-footer-state:has(.remote-tpms-status[data-tone="idle"]) .remote-tpms-footer-icon { background: #6f8598; color: #0b1724; }

.remote-tpms-status,
.remote-tpms-status[data-tone="ok"],
.remote-tpms-status[data-tone="warn"],
.remote-tpms-status[data-tone="alert"] {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #a8b9c8;
  font-size: 11px;
  font-weight: 700;
  white-space: normal;
}
.remote-tpms-status[data-tone="ok"] { color: #b7c7d3; }
.remote-tpms-status[data-tone="warn"] { color: #ffc568; }
.remote-tpms-status[data-tone="alert"] { color: #ff8e87; }

.remote-tpms-footer .remote-hint {
  margin: 0;
  color: #748a9e;
  font-size: 9px;
  text-align: right;
  white-space: normal;
}

@media (max-width: 640px) {
  .app-content-page .remote-control-v2 .remote-tpms-section { padding: 15px 12px 13px; gap: 12px; }
  .remote-tpms-heading .remote-section-title { font-size: 16px !important; }
  .remote-tpms-heading small { font-size: 9.5px; }
  .remote-tpms-title-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .remote-tpms-title-icon svg { width: 29px; height: 29px; }
  .remote-tpms-panel-chevron { width: 22px; font-size: 28px; }

  .remote-tpms-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    min-height: 0;
  }
  .remote-tpms-vehicle-stage {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 215px;
  }
  .remote-tpms-column { display: contents; }
  .remote-tpms-column-left .remote-tpms-wheel-card:first-child { grid-column: 1; grid-row: 2; }
  .remote-tpms-column-right .remote-tpms-wheel-card:first-child { grid-column: 2; grid-row: 2; }
  .remote-tpms-column-left .remote-tpms-wheel-card:last-child { grid-column: 1; grid-row: 3; }
  .remote-tpms-column-right .remote-tpms-wheel-card:last-child { grid-column: 2; grid-row: 3; }
  .remote-tpms-wheel-card {
    grid-template-columns: 4px minmax(0,1fr) 12px;
    min-height: 102px;
    gap: 8px;
    padding: 10px 8px 10px 9px;
    border-radius: 16px;
  }
  .remote-tpms-wheel-rail { width: 4px; height: 54px; }
  .remote-tpms-wheel-head { font-size: 9px; }
  .remote-tpms-pressure { font-size: 24px; }
  .remote-tpms-pressure small { font-size: 10px; }
  .remote-tpms-temperature { font-size: 10px; }
  .remote-tpms-temperature svg { width: 12px; height: 12px; }
  .remote-tpms-card-chevron { font-size: 21px; }
  .remote-tpms-wheel-message { font-size: 7.5px; }

  .remote-tpms-vehicle-art { width: 158px; height: 210px; }
  .remote-tpms-hotspot { width: 21px; height: 40px; border-radius: 8px; }
  .remote-tpms-hotspot-fl { left: calc(50% - 56px); top: 27%; }
  .remote-tpms-hotspot-fr { left: calc(50% + 56px); top: 27%; }
  .remote-tpms-hotspot-rl { left: calc(50% - 56px); top: 74%; }
  .remote-tpms-hotspot-rr { left: calc(50% + 56px); top: 74%; }

  .remote-tpms-footer { align-items: flex-start; padding-top: 10px; }
  .remote-tpms-footer-icon { width: 21px; height: 21px; flex-basis: 21px; font-size: 12px; }
  .remote-tpms-status { font-size: 9.5px !important; }
  .remote-tpms-footer .remote-hint { max-width: 52%; font-size: 7.8px; line-height: 1.35; }
}

/* TPMS wheel-aligned layout -------------------------------------------------
   Keep each measurement card physically aligned with the matching wheel.
   This intentionally overrides the older column/mobile stacking rules above. */
.remote-tpms-head {
  justify-content: flex-start;
}

.remote-tpms-layout {
  grid-template-columns: minmax(132px, .94fr) minmax(164px, 1fr) minmax(132px, .94fr);
  grid-template-rows: repeat(2, minmax(118px, 1fr));
  column-gap: 16px;
  row-gap: 14px;
  min-height: 264px;
  align-items: stretch;
}

.remote-tpms-column {
  display: contents;
}

.remote-tpms-column-left .remote-tpms-wheel-card:first-child {
  grid-column: 1;
  grid-row: 1;
}
.remote-tpms-column-right .remote-tpms-wheel-card:first-child {
  grid-column: 3;
  grid-row: 1;
}
.remote-tpms-column-left .remote-tpms-wheel-card:last-child {
  grid-column: 1;
  grid-row: 2;
}
.remote-tpms-column-right .remote-tpms-wheel-card:last-child {
  grid-column: 3;
  grid-row: 2;
}

.remote-tpms-vehicle-stage {
  grid-column: 2;
  grid-row: 1 / 3;
  min-height: 264px;
  align-self: stretch;
}

.remote-tpms-wheel-card {
  grid-template-columns: 5px minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  padding: 12px 11px 12px 10px;
  border-radius: 18px;
}

.remote-tpms-wheel-rail {
  width: 4px;
  height: 60px;
}

.remote-tpms-wheel-copy { gap: 4px; }
.remote-tpms-wheel-head { font-size: 12px; line-height: 1.15; }
.remote-tpms-pressure { gap: 5px; font-size: 33px; }
.remote-tpms-pressure small { font-size: 12px; }
.remote-tpms-temperature { gap: 5px; font-size: 13px; }
.remote-tpms-temperature svg { width: 14px; height: 14px; flex-basis: 14px; }
.remote-tpms-wheel-message { font-size: 8px; white-space: normal; }

.remote-tpms-vehicle-art {
  width: 196px;
  max-width: 94%;
  height: auto;
  border-radius: 22px;
}

/* Remove the extra tyre-outline markers so only the car artwork is shown. */
.remote-tpms-hotspot {
  display: none;
}

@media (max-width: 640px) {
  .app-content-page .remote-control-v2 .remote-tpms-section {
    padding: 15px 10px 13px;
    gap: 11px;
  }

  .remote-tpms-layout {
    grid-template-columns: minmax(0, 1fr) 126px minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(98px, 1fr));
    column-gap: 6px;
    row-gap: 8px;
    min-height: 212px;
  }

  .remote-tpms-vehicle-stage {
    grid-column: 2;
    grid-row: 1 / 3;
    min-height: 212px;
  }

  .remote-tpms-wheel-card {
    grid-template-columns: 3px minmax(0, 1fr);
    gap: 6px;
    min-height: 0;
    padding: 8px 6px 8px 7px;
    border-radius: 13px;
  }

  .remote-tpms-wheel-rail {
    width: 3px;
    height: 48px;
  }

  .remote-tpms-wheel-copy { gap: 3px; }
  .remote-tpms-wheel-head { font-size: 9.5px; line-height: 1.15; }
  .remote-tpms-pressure { gap: 4px; font-size: 24px; }
  .remote-tpms-pressure small { font-size: 10px; }
  .remote-tpms-temperature { gap: 4px; font-size: 10.5px; }
  .remote-tpms-temperature svg { width: 11px; height: 11px; flex-basis: 11px; }
  .remote-tpms-wheel-message { font-size: 7px; white-space: normal; }

  .remote-tpms-vehicle-art {
    width: 126px;
    max-width: 126px;
    height: auto;
    border-radius: 18px;
  }

  .remote-tpms-hotspot {
    display: none;
  }
}
