:root {
  --radian-glass: rgba(7, 14, 17, .88);
  --radian-line: rgba(170, 202, 207, .18);
  --radian-cyan: #65e4db;
  --radian-lime: #c7ef7d;
}

html, body {
  min-height: 100%;
  background: #030506 !important;
}

body {
  overflow: hidden !important;
}

.simulator {
  width: 100% !important;
  height: 100svh !important;
  min-height: 720px !important;
  padding: clamp(10px, 1.7vw, 24px) !important;
  display: grid !important;
  place-items: center !important;
  background:
    radial-gradient(circle at 50% 105%, rgba(98, 226, 219, .12), transparent 34%),
    linear-gradient(180deg, #101619 0, #050708 40%, #020303 100%) !important;
}

.cockpit {
  width: min(1580px, 100%) !important;
  height: min(940px, calc(100svh - clamp(20px, 3.4vw, 48px))) !important;
  min-height: 680px !important;
  max-width: none !important;
  padding: 14px 16px 18px !important;
  display: grid !important;
  grid-template-columns: minmax(600px, 1.34fr) minmax(420px, .86fr) !important;
  grid-template-rows: minmax(300px, 48%) minmax(330px, 52%) !important;
  gap: 12px 14px !important;
  border: 1px solid rgba(175, 206, 213, .2) !important;
  border-radius: 40px 40px 76px 76px !important;
  background:
    linear-gradient(180deg, rgba(29, 40, 44, .98), rgba(8, 12, 14, .99) 53%, #020303 100%) !important;
  box-shadow:
    0 36px 90px rgba(0, 0, 0, .78),
    inset 0 1px rgba(255, 255, 255, .14),
    inset 0 -10px 30px rgba(0, 0, 0, .7) !important;
  overflow: hidden !important;
  isolation: isolate;
}

.cockpit::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -34px;
  height: 104px;
  border-radius: 50% 50% 0 0;
  border-top: 3px solid #263237;
  background: #020303;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .7);
  z-index: -1;
}

.cockpit::after {
  display: none !important;
}

/* Windshield and moving road */
.windscreen {
  grid-column: 1 / 3;
  grid-row: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(185, 218, 226, .2);
  border-radius: 30px 30px 20px 20px;
  background:
    linear-gradient(180deg, rgba(3, 9, 12, .12), rgba(3, 8, 10, .7)),
    linear-gradient(180deg, #607b82 0 46%, #34494d 47% 53%, #152123 54% 100%);
  box-shadow:
    inset 0 0 0 7px rgba(2, 5, 6, .72),
    inset 0 -48px 80px rgba(0, 0, 0, .5);
}

.windscreen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background:
    linear-gradient(72deg, transparent 0 14%, rgba(2, 5, 6, .92) 14.3% 15.3%, transparent 15.6%),
    linear-gradient(-72deg, transparent 0 14%, rgba(2, 5, 6, .92) 14.3% 15.3%, transparent 15.6%),
    linear-gradient(90deg, rgba(2, 5, 6, .38), transparent 9% 91%, rgba(2, 5, 6, .38));
}

.windscreen__top {
  position: absolute;
  z-index: 10;
  top: 18px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}

.windscreen__brand {
  display: grid;
  gap: 3px;
  color: #f2f7f6;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

.windscreen__brand b {
  font-size: 15px;
  letter-spacing: .08em;
}

.windscreen__brand span,
.drive-start small {
  color: rgba(226, 239, 240, .68);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.drive-start {
  min-height: 48px !important;
  padding: 0 16px !important;
  display: grid !important;
  align-content: center;
  justify-items: start;
  gap: 3px;
  border: 1px solid rgba(101, 228, 219, .45) !important;
  border-radius: 14px !important;
  background: rgba(5, 14, 16, .82) !important;
  color: #f6fbfa !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28) !important;
  pointer-events: auto;
}

.drive-start strong {
  font-size: 12px;
}

.drive-start[aria-pressed="true"] {
  border-color: var(--radian-lime) !important;
  background: rgba(25, 48, 39, .9) !important;
}

.landscape {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.landscape::before,
.landscape::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
}

.landscape::before {
  top: 31%;
  height: 28%;
  background:
    linear-gradient(156deg, transparent 0 14%, #1e3033 14.5% 18%, transparent 18.5%),
    linear-gradient(204deg, transparent 0 19%, #263b3f 19.5% 24%, transparent 24.5%),
    repeating-linear-gradient(90deg, #26383b 0 34px, #203135 35px 72px);
  clip-path: polygon(0 62%, 8% 34%, 16% 65%, 25% 18%, 33% 55%, 44% 10%, 53% 56%, 64% 23%, 72% 64%, 82% 28%, 91% 57%, 100% 32%, 100% 100%, 0 100%);
  opacity: .9;
}

.landscape::after {
  bottom: 0;
  height: 45%;
  background:
    radial-gradient(ellipse at 50% 3%, rgba(215, 233, 226, .24), transparent 18%),
    linear-gradient(180deg, #29393b, #101819);
  clip-path: polygon(0 20%, 34% 9%, 43% 1%, 57% 1%, 66% 9%, 100% 20%, 100% 100%, 0 100%);
}

.road-plane {
  position: absolute;
  z-index: 3;
  left: 22%;
  right: 22%;
  top: 47%;
  bottom: -18%;
  overflow: hidden;
  clip-path: polygon(43% 0, 57% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(90deg, transparent 48.8%, rgba(235, 238, 224, .82) 49% 51%, transparent 51.2%),
    repeating-linear-gradient(180deg, #273033 0 21px, #20282a 22px 43px);
  filter: drop-shadow(0 -10px 18px rgba(0, 0, 0, .3));
}

.road-plane::before,
.road-plane::after {
  content: "";
  position: absolute;
  inset: -70% 13% -10%;
  background:
    repeating-linear-gradient(180deg, transparent 0 42px, rgba(237, 239, 222, .94) 43px 74px, transparent 75px 124px);
  clip-path: polygon(48.5% 0, 51.5% 0, 54% 100%, 46% 100%);
  opacity: .85;
  transform-origin: 50% 0;
}

.road-plane::before {
  translate: -24% 0;
}

.road-plane::after {
  translate: 24% 0;
}

.roadside {
  position: absolute;
  z-index: 4;
  left: 8%;
  right: 8%;
  top: 52%;
  bottom: -12%;
  pointer-events: none;
}

.roadside i {
  position: absolute;
  width: 3px;
  height: 20px;
  border-radius: 4px;
  background: #d5e2d3;
  box-shadow: 0 0 10px rgba(204, 239, 218, .4);
}

.roadside i:nth-child(1) { left: 28%; top: 12%; }
.roadside i:nth-child(2) { left: 18%; top: 52%; transform: scale(1.5); }
.roadside i:nth-child(3) { right: 28%; top: 12%; }
.roadside i:nth-child(4) { right: 18%; top: 52%; transform: scale(1.5); }

.road-sign {
  position: absolute;
  z-index: 6;
  right: 13%;
  top: 43%;
  display: grid;
  justify-items: center;
  color: white;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5));
}

.road-sign b {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 4px solid #e6ecea;
  border-radius: 50%;
  background: #293235;
  font-size: 13px;
}

.road-sign::after {
  content: "";
  width: 4px;
  height: 42px;
  background: #c6d1cf;
}

.cockpit.is-driving .road-plane {
  animation: windscreenRoad var(--drive-duration, .9s) linear infinite;
}

.cockpit.is-driving .road-plane::before,
.cockpit.is-driving .road-plane::after {
  animation: windscreenLane var(--drive-duration, .9s) linear infinite;
}

.cockpit.is-driving .roadside {
  animation: roadsideTravel calc(var(--drive-duration, .9s) * 1.1) linear infinite;
}

@keyframes windscreenRoad {
  to { background-position: 0 88px, 0 86px; }
}

@keyframes windscreenLane {
  to { background-position-y: 124px; }
}

@keyframes roadsideTravel {
  to { transform: translateY(54px) scale(1.07); }
}

/* Driver display */
.cluster-shell {
  grid-column: 1 !important;
  grid-row: 2 !important;
  align-self: start !important;
  min-width: 0 !important;
  height: 196px !important;
  min-height: 0 !important;
  margin: 16px 116px 0 116px !important;
  padding: 6px !important;
  z-index: 2;
  border: 1px solid #34464b !important;
  border-radius: 24px !important;
  background: #020405 !important;
  box-shadow: inset 0 0 0 4px #0a1012, 0 12px 30px rgba(0, 0, 0, .48) !important;
  overflow: hidden !important;
}

.cluster {
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 142px minmax(0, 1fr) 126px !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 50% 110%, rgba(101, 228, 219, .15), transparent 44%),
    linear-gradient(180deg, #111b1e, #05090a) !important;
}

.gauge,
.gauge.right {
  padding: 24px 8px 14px !important;
}

.gauge-ring {
  width: 102px !important;
  opacity: .55;
}

.gauge-copy strong,
.gauge.right .gauge-copy strong {
  font-size: 36px !important;
}

.gauge-copy span,
.gauge-copy small {
  font-size: 8px !important;
}

.cluster-center {
  padding: 14px 4px 10px !important;
}

.cluster-top {
  font-size: 8px !important;
}

.cluster-center .road {
  min-height: 88px !important;
  display: grid !important;
  align-items: center;
  background: transparent !important;
  clip-path: none !important;
}

.cluster-center .road::before,
.cluster-center .road::after,
.cluster-center .lane,
.cluster-center .vehicle-marker {
  display: none !important;
}

.route-callout {
  width: 100%;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(101, 228, 219, .2) !important;
  border-radius: 12px !important;
  background: rgba(8, 20, 23, .8) !important;
}

.route-callout strong {
  font-size: 11px !important;
}

.route-callout span {
  font-size: 8px !important;
}

.cluster-bottom {
  font-size: 8px !important;
}

/* Physical steering wheel */
.physical-wheel {
  position: absolute;
  z-index: 8;
  left: clamp(32px, 5.2vw, 86px);
  bottom: clamp(-50px, -3vw, -22px);
  width: clamp(236px, 19vw, 304px);
  aspect-ratio: 1;
  border: clamp(25px, 2.1vw, 34px) solid #111719;
  border-radius: 50%;
  background:
    radial-gradient(circle, #11191b 0 30%, transparent 30.5%),
    conic-gradient(from 35deg, transparent 0 19%, #171f22 19.5% 31%, transparent 31.5% 68%, #171f22 68.5% 80%, transparent 80.5%);
  box-shadow:
    inset 0 0 0 3px #344247,
    inset 0 0 16px #000,
    0 16px 38px rgba(0, 0, 0, .72);
  pointer-events: none;
}

.physical-wheel::before {
  content: "";
  position: absolute;
  inset: 30%;
  border: 1px solid #3e5156;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, #253338, #0a0f11 62%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .11);
}

.wheel-mark {
  position: absolute;
  z-index: 2;
  top: -21px;
  left: 50%;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  translate: -50% 0;
  background: var(--radian-cyan);
  box-shadow: 0 0 12px rgba(101, 228, 219, .65);
}

.wheel-logo {
  position: absolute;
  z-index: 3;
  inset: 38%;
  display: grid;
  place-items: center;
  color: #e6eeee;
  font-weight: 750;
  font-size: 12px;
  letter-spacing: .08em;
}

.wheel-key {
  position: absolute;
  z-index: 4;
  top: 42%;
  min-width: 46px !important;
  min-height: 34px !important;
  padding: 0 7px !important;
  border: 1px solid rgba(255, 255, 255, .13) !important;
  border-radius: 10px !important;
  background: #121a1d !important;
  color: #cedbdd !important;
  font-size: 8px !important;
  pointer-events: auto;
}

.wheel-key--route { left: 12%; }
.wheel-key--assist { right: 12%; }
.wheel-key.active {
  border-color: var(--radian-cyan) !important;
  color: white !important;
  box-shadow: inset 0 0 0 1px rgba(101, 228, 219, .25);
}

/* Lower controls */
.lower {
  display: contents !important;
}

.wheel-remote {
  display: none !important;
}

.drive-panel {
  grid-column: 1 !important;
  grid-row: 2 !important;
  align-self: end !important;
  justify-self: end !important;
  z-index: 7;
  width: min(470px, calc(100% - 330px)) !important;
  min-width: 360px !important;
  margin: 0 16px 12px 0 !important;
  padding: 12px !important;
  display: grid !important;
  grid-template-columns: 144px minmax(0, 1fr) !important;
  gap: 8px 12px !important;
  border: 1px solid var(--radian-line) !important;
  border-radius: 18px !important;
  background: rgba(7, 14, 16, .94) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .46), inset 0 1px rgba(255, 255, 255, .05) !important;
}

.drive-panel > div:first-child {
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px !important;
}

.drive-panel .remote-title {
  margin: 0 !important;
  font-size: 8px !important;
}

.gear {
  grid-column: 1 / 3;
  gap: 4px !important;
}

.gear button {
  min-height: 34px !important;
  border-radius: 9px !important;
}

.speed-control {
  padding-top: 0 !important;
  border: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-content: center;
  gap: 6px 10px !important;
}

.speed-control label,
.speed-control output {
  font-size: 8px !important;
}

.speed-control input {
  grid-column: 1 / 3;
}

.signal-row {
  grid-column: 1 / 3;
  gap: 4px !important;
}

.signal-row button {
  min-height: 31px !important;
  font-size: 8px !important;
}

.drive-state {
  grid-column: 1 / 3;
  margin: 0 !important;
  padding: 7px 10px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.drive-state strong {
  font-size: 14px !important;
}

.drive-state span {
  font-size: 8px !important;
}

.system-sound-toggle {
  width: auto !important;
  min-width: 78px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  display: inline-flex !important;
  gap: 6px;
  font-size: 12px !important;
}

.system-sound-toggle::after {
  content: "Sound on";
  font-size: 8px;
  letter-spacing: .04em;
}

.system-sound-toggle[aria-pressed="false"]::after {
  content: "Sound off";
}

/* Center touchscreen */
.center-stack {
  grid-column: 2 !important;
  grid-row: 2 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 6px 4px 0 !important;
  padding: 7px !important;
  z-index: 6;
  border: 1px solid #34464c !important;
  border-radius: 28px !important;
  background: #020405 !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .58), inset 0 0 0 3px #111a1d !important;
}

.screen {
  height: 100% !important;
  min-height: 0 !important;
  grid-template-rows: 50px minmax(0, 1fr) 54px !important;
  border-radius: 21px !important;
  background: #edf1ed !important;
  overflow: hidden !important;
}

.app-tabs {
  padding: 5px 6px !important;
  gap: 3px !important;
  background: #0b1113 !important;
}

.app-tabs button {
  min-width: 0 !important;
  min-height: 40px !important;
  padding: 0 8px !important;
  border-radius: 10px !important;
  color: #9babad !important;
  font-size: 9px !important;
}

.app-tabs button.active {
  background: #1c292c !important;
  color: white !important;
  box-shadow: inset 0 -2px var(--radian-cyan);
}

.surface,
.view {
  min-height: 0 !important;
}

.surface {
  overflow: hidden !important;
}

.view {
  height: 100% !important;
  overflow: auto !important;
}

.map-view {
  overflow: hidden !important;
}

.media-view,
.climate-view,
.vehicle-view,
.software-view {
  padding: 15px !important;
}

.section-head {
  margin-bottom: 10px !important;
}

.section-head h2 {
  font-size: 19px !important;
}

.section-head span {
  font-size: 9px !important;
}

.media-grid,
.climate-grid,
.vehicle-grid,
.software-grid {
  gap: 8px !important;
}

.control-card {
  padding: 12px !important;
  border-radius: 12px !important;
}

.control-card h3 {
  font-size: 13px !important;
}

.control-card p {
  margin-bottom: 8px !important;
  font-size: 9px !important;
}

.climate-bar {
  min-width: 0;
  padding: 7px 9px !important;
  gap: 6px !important;
}

.climate-bar button {
  min-height: 38px !important;
  padding: 0 9px !important;
  font-size: 9px !important;
}

.climate-bar span {
  font-size: 8px;
  white-space: nowrap;
}

.map-card {
  top: 14px !important;
  left: 14px !important;
  width: min(300px, calc(100% - 122px)) !important;
  padding: 13px !important;
  border-radius: 13px !important;
}

.map-card h2 {
  font-size: 17px !important;
}

.map-tools {
  top: 12px !important;
  right: 12px !important;
}

.map-tools button {
  min-width: 34px !important;
  min-height: 34px !important;
}

.route-alts {
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  width: auto !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

.route-alts button {
  min-height: 46px !important;
  padding: 6px 8px !important;
  font-size: 8px !important;
}

.guard {
  inset: 50px 0 54px !important;
}

/* Tablet keeps the full simulator but gives the center screen its own row. */
@media (max-width: 1100px) {
  body {
    overflow: auto !important;
  }

  .simulator {
    height: auto !important;
    min-height: 100svh !important;
    padding: 10px !important;
  }

  .cockpit {
    height: auto !important;
    min-height: 1290px !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 330px 410px 530px !important;
    border-radius: 32px !important;
  }

  .windscreen {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .cluster-shell {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: auto !important;
    margin: 24px 20px 0 300px !important;
  }

  .cluster {
    grid-template-columns: 100px minmax(0, 1fr) 96px !important;
  }

  .gauge-ring {
    width: 82px !important;
  }

  .gauge-copy strong,
  .gauge.right .gauge-copy strong {
    font-size: 29px !important;
  }

  .physical-wheel {
    left: 20px;
    bottom: auto;
    top: 350px;
    width: 270px;
  }

  .drive-panel {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: min(470px, calc(100% - 350px)) !important;
    min-width: 380px !important;
    margin: 0 20px 8px 0 !important;
  }

  .center-stack {
    grid-column: 1 !important;
    grid-row: 3 !important;
    margin: 0 !important;
  }

  .screen {
    grid-template-rows: 54px minmax(0, 1fr) 56px !important;
  }
}

@media (max-height: 760px) and (min-width: 1101px) {
  .cockpit {
    grid-template-rows: 40% 60% !important;
  }

  .cluster-shell {
    height: 168px !important;
    margin: 12px 18px 0 clamp(342px, 23vw, 390px) !important;
  }

  .cluster {
    grid-template-columns: 100px minmax(0, 1fr) 96px !important;
  }

  .gauge-ring {
    width: 82px !important;
  }

  .gauge-copy strong,
  .gauge.right .gauge-copy strong {
    font-size: 29px !important;
  }

  .physical-wheel {
    width: 240px;
    bottom: -38px;
  }
}

@media (max-width: 700px) {
  .simulator {
    padding: 0 !important;
  }

  .cockpit {
    min-height: 1080px !important;
    padding: 7px !important;
    grid-template-rows: 270px 180px 500px 120px !important;
    gap: 7px !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  .windscreen {
    border-radius: 16px !important;
  }

  .windscreen__top {
    top: 14px;
    left: 16px;
    right: 16px;
  }

  .drive-start {
    min-height: 44px !important;
    padding: 0 12px !important;
  }

  .road-plane {
    left: 8%;
    right: 8%;
  }

  .road-sign {
    right: 8%;
  }

  .physical-wheel {
    display: none;
  }

  .cluster-shell {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: 180px !important;
    margin: 0 !important;
    border-radius: 16px !important;
  }

  .cluster {
    grid-template-columns: 86px minmax(0, 1fr) 82px !important;
    border-radius: 12px !important;
  }

  .gauge-ring {
    width: 76px !important;
  }

  .gauge-copy strong,
  .gauge.right .gauge-copy strong {
    font-size: 28px !important;
  }

  .route-callout {
    padding: 8px !important;
  }

  .center-stack {
    grid-column: 1 !important;
    grid-row: 3 !important;
    margin: 0 !important;
    border-radius: 18px !important;
  }

  .screen {
    grid-template-rows: 48px minmax(0, 1fr) 54px !important;
  }

  .app-tabs {
    overflow-x: auto !important;
  }

  .app-tabs button {
    min-width: 64px !important;
  }

  .drive-panel {
    grid-column: 1 !important;
    grid-row: 4 !important;
    align-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 8px !important;
    grid-template-columns: 124px minmax(0, 1fr) !important;
    border-radius: 14px !important;
  }

  .drive-state {
    display: none !important;
  }

  .gear {
    grid-column: 1 / 3;
  }

  .signal-row {
    position: static !important;
    transform: none !important;
    width: auto !important;
  }

  .media-grid,
  .climate-grid,
  .vehicle-grid,
  .software-grid {
    grid-template-columns: 1fr !important;
  }

  .route-alts button {
    padding: 5px !important;
  }
}

@media (max-height: 650px) and (min-width: 1101px) {
  .simulator {
    min-height: 620px !important;
    padding: 6px !important;
  }

  .cockpit {
    height: calc(100svh - 12px) !important;
    min-height: 608px !important;
    grid-template-rows: 38% 62% !important;
  }

  .cluster-shell {
    height: 140px !important;
    margin-top: 8px !important;
  }

  .cluster {
    grid-template-columns: 112px minmax(0, 1fr) 102px !important;
  }

  .gauge-ring {
    width: 82px !important;
  }

  .physical-wheel {
    width: 220px;
  }

  .drive-panel {
    width: min(430px, calc(100% - 255px)) !important;
    min-width: 330px !important;
    margin-bottom: 2px !important;
  }

  .screen {
    grid-template-rows: 44px minmax(0, 1fr) 46px !important;
  }

  .app-tabs button {
    min-height: 34px !important;
  }

  .climate-bar button {
    min-height: 32px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cockpit.is-driving .road-plane,
  .cockpit.is-driving .road-plane::before,
  .cockpit.is-driving .road-plane::after,
  .cockpit.is-driving .roadside {
    animation-duration: 2.8s !important;
  }
}

/* Keep the status copy in the gauge's open lower arc, rather than over its stroke. */
.gauge-copy {
  transform: translateY(20px) !important;
}

.gauge-copy small {
  margin-top: 5px !important;
}
/* section-head actions (Pause, Sync zones, Lock all) sit on the dark
   surface-button fill but inherited the light screen's ink, so their labels
   were invisible; give them the cockpit's light label colour */
.section-head button{color:#f6fbfa;padding:0 16px}

/* Narrow phones: give both gauges room so the range dial no longer
   presses against the route card (visual audit 2026-10-19, open P3). */
@media (max-width: 420px) {
  .cluster {
    grid-template-columns: 72px minmax(0, 1fr) 72px !important;
    column-gap: 8px !important;
    padding-inline: 6px !important;
  }

  .gauge,
  .gauge.right {
    padding-inline: 0 !important;
  }

  .gauge-ring {
    width: 64px !important;
  }

  .gauge-copy strong,
  .gauge.right .gauge-copy strong {
    font-size: 24px !important;
  }

  /* The smaller ring needs less of the lower-arc offset, and every label
     stays on one line inside its 72px column. */
  .gauge-copy {
    transform: translateY(12px) !important;
  }

  .gauge-copy span,
  .gauge-copy small {
    font-size: 9.5px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  .gauge-copy small {
    margin-top: 3px !important;
  }
}
