/* Jimmy's Ride — cockpit screen, designed on a 1920 × 1080 grid.
   Everything is expressed in container units so the whole screen scales. */

.cockpit {
  color: var(--text-value);
  /* Card type ladder at centre-display scale. Same four roles as every other
     surface; only the values change, in cqw of the screen container. */
  --card-label: 0.85cqw;
  --card-body: 0.95cqw;
  --card-value: 1.85cqw;
  --card-primary: 2.4cqw;
  background:
    radial-gradient(58% 46% at 50% 0%, rgba(56, 189, 248, 0.12), transparent 62%),
    radial-gradient(40% 34% at 50% 100%, rgba(10, 90, 160, 0.14), transparent 70%),
    linear-gradient(180deg, #060a11 0%, #05080e 52%, #04070c 100%);
}

.cockpit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(110, 170, 255, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(110, 170, 255, 0.022) 1px, transparent 1px);
  background-size: 4.2cqw 4.2cqw;
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000 18%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 42%, #000 18%, transparent 78%);
}

.cockpit::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(116deg, rgba(255, 255, 255, 0.05) 0%, transparent 26%, transparent 74%, rgba(56, 189, 248, 0.035) 100%);
}

.c-top,
.c-body,
.c-dock {
  position: relative;
  z-index: 1;
}

.cockpit .micro {
  font-size: var(--card-label);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Top status bar ---------- */

.c-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4cqw;
  height: 5.4cqw;
  padding: 0 2.4cqw;
  border-bottom: 1px solid rgba(122, 174, 255, 0.1);
}

.c-top::after {
  content: "";
  position: absolute;
  left: 2.4cqw;
  right: 2.4cqw;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 174, 255, 0.28), transparent);
}

.c-driver {
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  min-width: 0;
}

.c-avatar {
  display: grid;
  place-items: center;
  width: 2.4cqw;
  height: 2.4cqw;
  flex: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--avatar-ring);
  border-radius: 50%;
  background: var(--avatar-wash);
  pointer-events: none;
}

/* Same identity photo as mobile. It is a non-interactive image: no button,
   no pointer or hover affordance, exactly like .m-avatar. */
.c-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-driver-id {
  display: flex;
  flex-direction: column;
  gap: 0.22cqw;
  min-width: 0;
}

.c-driver-id strong {
  font-size: 1.05cqw;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Left group reads only as the driver; every telemetry item and the clock
   live in one right group whose last edge is the card edge below. */
.c-topright {
  display: flex;
  /* One baseline for the whole row: Outside 24 °C, Online, the time and the
     date all sit on it. Rules use align-self: center so they stay optical. */
  align-items: baseline;
  gap: 1.8cqw;
  margin-left: auto;
  min-width: 0;
}

.c-topline {
  width: 1px;
  height: 1.7cqw;
  flex: none;
  align-self: center;
  background: rgba(122, 174, 255, 0.2);
}

/* Time and date share one line and one baseline; the date is a label, so it
   stays smaller and to the right of the clock value. */
.c-clock {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.5cqw;
  white-space: nowrap;
}

.c-clock strong {
  font-size: 1.9cqw;
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* The clock time is mono; the date under it is a label, so it is sans.
   Mono is reserved for values, units, clock time and numeric identifiers. */
.c-clock span {
  font: 500 0.85cqw/1 var(--font);
  letter-spacing: 0.02em;
  color: var(--text-label);
}

.c-topmeta {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.8cqw;
  font: 500 0.85cqw/1 var(--font);
  letter-spacing: 0.05em;
  color: var(--text-label);
  white-space: nowrap;
}

.c-sep {
  width: 1px;
  height: 1.1cqw;
  align-self: center;
  background: rgba(122, 174, 255, 0.2);
}

/* Label, value and unit share one text baseline, like every other inline
   label + value + unit reading on the five surfaces. */
.c-outside {
  display: flex;
  align-items: baseline;
  gap: 0.4cqw;
}

.c-outside-temp {
  font: 500 var(--card-value)/1 var(--font);
  font-variant-numeric: tabular-nums;
  color: var(--text-value);
}

.c-outside-temp em {
  font: 500 0.6em/1 var(--font);
  font-variant-numeric: tabular-nums;
  font-style: normal;
  color: var(--text-unit);
}

.c-outside-word {
  color: var(--text-label);
}

/* The thermometer is a row glyph, not a caption mark. Baseline-sitting mode,
   measured on ink: the path's drawn box ends 4.25 units above the viewBox
   floor, so aligning the SVG box to the baseline leaves a 2.3 px float. The
   0.223 cqw lift puts the stroked ink bottom on the O's ink bottom instead. */
.c-outside svg {
  width: 1.4cqw;
  height: 1.4cqw;
  flex: none;
  align-self: baseline;
  transform: translateY(0.223cqw);
  color: var(--cyan);
  opacity: 0.85;
}

.c-battery {
  display: flex;
  align-items: center;
  gap: 0.5cqw;
  color: var(--ink);
}

.c-battery > i {
  position: relative;
  display: inline-block;
  width: 1.5cqw;
  height: 0.72cqw;
  border: 1px solid rgba(122, 174, 255, 0.45);
  border-radius: 0.16cqw;
}

.c-battery > i::before {
  content: "";
  position: absolute;
  inset: 1px;
  right: 32%;
  border-radius: 0.1cqw;
  background: linear-gradient(90deg, #38bdf8, #7ddcff);
}

.c-battery > i::after {
  content: "";
  position: absolute;
  right: -0.22cqw;
  top: 50%;
  width: 0.14cqw;
  height: 0.34cqw;
  transform: translateY(-50%);
  border-radius: 0 1px 1px 0;
  background: rgba(122, 174, 255, 0.45);
}

/* ---------- Main grid ---------- */

/* Side tracks are 21% rather than 19.5%: the battery card needs the extra
   readout width for "Charge limit" to stay on one line. The card content
   grows 1.089× at both breakpoints, and the battery band's ratios below are
   divided by that factor so its rendered geometry does not change. */
.c-body {
  position: absolute;
  left: 0;
  right: 0;
  top: 5.4cqw;
  bottom: 6.6cqw;
  display: grid;
  grid-template-columns: 21% minmax(0, 1fr) 21%;
  gap: 0.9cqw;
  padding: 0.9cqw 2.4cqw;
}

.c-col {
  display: grid;
  gap: 0.9cqw;
  min-height: 0;
}

/* Every card sizes to its content; the tyre card takes the slack the route
   card used to absorb, so the four readings can sit apart without clipping. */
.c-left {
  grid-template-rows: auto auto minmax(min-content, 1fr);
}

.c-right {
  grid-template-rows: 1.06fr 1.19fr 0.75fr;
}

.c-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.9cqw 1.1cqw;
}

/* The 12 px inset floor is only physically available on a board at least
   ~1060 px wide. On a 1280 × 800 cockpit the screen is 720 px, and a card's
   own content (93 px) plus 24 px of insets is taller than the 98 px card, so
   the floor cannot be met there without changing the composition. On the
   1080p board the card padding becomes the floor; the 1 px on top and left
   absorbs the font's ink overhang so every measured side clears 12 px. */
@container (min-width: 1060px) {
  .c-top {
    height: 5.8cqw;
  }

  .c-body {
    top: 5.8cqw;
  }

  .c-card {
    padding: 14px 13px 13px;
  }
}

.c-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6cqw;
}

/* A card-head readout is a label plus a mono value, not a coloured word:
   "Arrives 18:56" keeps its label at --text-label and its time at ink. */
.c-head-pair {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32cqw;
  white-space: nowrap;
}

.c-head-pair b {
  font: 500 var(--card-label)/1 var(--font);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--text-value);
}

/* Status stays a label inside a row; a whole-card verdict can also carry the
   shared .is-chip pill from base.css at this surface's density. */
.status {
  font-size: var(--card-label);
  line-height: 1;
}

/* ---------- Route card ---------- */

/* A destination is a card heading, not the card's lead number. In-car has no
   Display step, so it takes the step below Primary — the Value step — and the
   route distance keeps the surface maximum. */
.c-dest {
  margin: 0.45cqw 0 0.15cqw;
  font-size: var(--card-value);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

.c-addr {
  margin: 0;
  font-size: var(--card-body);
  color: var(--text-prose);
  letter-spacing: 0.01em;
}

.c-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1cqw;
  margin-top: auto;
  padding-top: 0.65cqw;
}

.c-stats > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.42cqw;
}

.c-stats strong {
  font: 500 var(--card-value)/1 var(--font);
  font-variant-numeric: tabular-nums;
}

/* Only the stat pairs outside the battery ring use this override: the
   ring, the range hero and the 80 % limit each set their own size. */
.c-stats em,
.c-charge-time em {
  margin-left: 0.16cqw;
  font: 500 0.6em/1 var(--font);
  font-variant-numeric: tabular-nums;
  font-style: normal;
  color: var(--text-unit);
}

.c-routebar {
  position: relative;
  height: 0.16cqw;
  margin-top: 0.75cqw;
  border-radius: 2px;
  background: rgba(122, 174, 255, 0.14);
}

.c-routebar > span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.4), #38bdf8);
}

.c-routebar > i {
  position: absolute;
  left: 46%;
  top: 50%;
  width: 0.42cqw;
  height: 0.42cqw;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #dff6ff;
  box-shadow: 0 0 0.6cqw rgba(56, 189, 248, 0.9);
}

.c-route-note {
  margin: 0.45cqw 0 0;
  font: 500 var(--card-body)/1.4 var(--font);
  letter-spacing: 0.03em;
  color: var(--text-prose);
}

/* ---------- Energy card ---------- */

/* The shared battery component at in-car scale: ring + range hero, with the
   80% limit marker drawn on the ring by the markup. The band itself is the
   query container, so the scale follows the card band instead of the whole
   dashboard. The side tracks are now 21%, which makes this band 1.089× wider
   than the 19.5% layout these ratios were drawn for; dividing every ratio by
   that factor keeps the ring, the range and the labels at their existing
   pixel size, so all of the added width goes to the readout column and
   "Charge limit" stays on one line. At 1920 that is still a 65.6 px ring, a
   25.6 px range value — below the route distance's 25.8 px surface maximum —
   and 9.1 px labels. */
.c-energy .c-soc {
  container-type: inline-size;
}

.c-energy .soc-block {
  /* 19.5% → 21% side columns. Re-derive this factor if the columns move. */
  --soc-widen: 1.089;
  --soc-ring: calc(38.2cqw / var(--soc-widen));
  --soc-gap: calc(4.6cqw / var(--soc-widen));
  --soc-num: calc(11.6cqw / var(--soc-widen));
  --soc-pct: calc(5.4cqw / var(--soc-widen));
  --soc-range: calc(14.9cqw / var(--soc-widen));
  --soc-unit: calc(6cqw / var(--soc-widen));
  --soc-label: calc(5.3cqw / var(--soc-widen));
  --soc-meta: calc(5.3cqw / var(--soc-widen));
  margin-top: 0.65cqw;
}

/* The shared battery component takes its unit sizes from the value step,
   not from a separate band variable, so every reading unit is 0.6em. */
.c-energy .soc-range-hero em {
  margin-left: 0;
  font-size: calc(var(--soc-range) * 0.6);
}

.c-energy .soc-ring-value em {
  margin-left: 0;
  font-size: calc(var(--soc-num) * 0.6);
}

/* Supporting prose is sans: mono is reserved for values, units and times.
   Numbers inside the sentence keep the value ink and their units keep the
   one unit token, so "1.6 kWh" reads the same here as in any card. */
.c-energy .energy-notes {
  --energy-note-size: var(--card-body);
  margin-top: 0.55cqw;
  gap: 0.22cqw;
}

/* ---------- Vehicle card ---------- */

.c-tyres {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3cqw 1cqw;
  margin-top: 0.9cqw;
  flex: 1;
  align-content: center;
}

.c-tyres > div {
  display: flex;
  flex-direction: column;
  gap: 0.38cqw;
}

.c-tyres strong {
  font: 500 var(--card-value)/1 var(--font);
  font-variant-numeric: tabular-nums;
}

.c-tyres em {
  margin-left: 0.14cqw;
  font: 500 0.6em/1 var(--font);
  font-variant-numeric: tabular-nums;
  font-style: normal;
  color: var(--text-unit);
}

/* ---------- Map ---------- */

.c-map {
  min-height: 0;
  padding: 0;
}

.c-map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.c-map-art .map-blocks .b--landmark {
  stroke-width: 0.8;
}

.c-map-art .map-bank {
  stroke-width: 0.5;
}

.c-map-art .map-roads path {
  stroke-width: 0.7;
}

.c-map-art .map-roads path.is-major {
  stroke-width: 1.5;
}

.c-map-art .map-label.is-landmark {
  font-size: 14px;
}

.c-map-art .map-label.is-district {
  font-size: 12px;
}

.c-map-art .map-label.is-road {
  font-size: 11px;
}

.c-map-art .map-label.is-water {
  font-size: 10px;
}

/* Driven leg: same stroke width as the bright leg, no glow, 50% cyan. */
.c-map-art .map-route-travelled {
  stroke-width: 4;
  opacity: 0.5;
}

.c-map-art .map-route-travelled-core {
  stroke-width: 1.2;
}

.c-map-art .map-route {
  stroke-width: 4;
  opacity: 0.95;
}

.c-map-art .map-route-core {
  stroke-width: 1.2;
}

.c-map-art .map-dest .ring {
  stroke-width: 1.2;
}

.c-map-scale {
  right: 1.1cqw;
  top: 5.4cqw;
  font-size: 0.85cqw;
}

.c-map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 6cqw rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(122, 174, 255, 0.06);
}

.c-map-top {
  position: absolute;
  top: 1.1cqw;
  left: 1.1cqw;
  right: 1.1cqw;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1cqw;
}

.c-adas {
  display: flex;
  align-items: center;
  gap: 0.65cqw;
  padding: 0.65cqw 0.9cqw;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 0.8cqw;
  background: rgba(4, 10, 17, 0.74);
  backdrop-filter: blur(0.7cqw);
  -webkit-backdrop-filter: blur(0.7cqw);
  box-shadow: 0 1cqw 2.4cqw -1.2cqw rgba(0, 0, 0, 0.9);
}

.c-adas svg {
  width: 1.5cqw;
  height: 1.5cqw;
  flex: none;
  color: var(--cyan);
}

.c-adas span {
  display: flex;
  flex-direction: column;
  gap: 0.28cqw;
}

.c-adas strong {
  font: 500 0.85cqw/1 var(--font);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.c-adas em {
  font: 500 0.85cqw/1 var(--font);
  font-variant-numeric: tabular-nums;
  font-style: normal;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}

.c-compass {
  position: absolute;
  right: 0;
  top: 0;
  width: 3.1cqw;
  height: 3.1cqw;
  flex: none;
  font-size: 0.85cqw;
  backdrop-filter: blur(0.6cqw);
  -webkit-backdrop-filter: blur(0.6cqw);
}

.c-maneuver {
  position: absolute;
  left: 1.1cqw;
  right: 1.1cqw;
  bottom: 1.1cqw;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1cqw;
  padding: 0.95cqw 1.2cqw;
  border: 1px solid rgba(122, 174, 255, 0.2);
  border-radius: 0.95cqw;
  background: linear-gradient(120deg, rgba(6, 13, 21, 0.92), rgba(6, 12, 20, 0.76));
  backdrop-filter: blur(0.9cqw);
  -webkit-backdrop-filter: blur(0.9cqw);
  box-shadow: 0 1.6cqw 3.4cqw -1.6cqw rgba(0, 0, 0, 0.95);
}

.c-turn {
  display: grid;
  place-items: center;
  width: 3.1cqw;
  height: 3.1cqw;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 0.8cqw;
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan);
}

.c-turn svg {
  width: 2.1cqw;
  height: 2.1cqw;
}

.c-maneuver-text {
  display: flex;
  flex-direction: column;
  gap: 0.16cqw;
  min-width: 0;
}

.c-dist {
  font-size: var(--card-primary);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.c-dist em {
  margin-left: 0.2cqw;
  font: 500 0.6em/1 var(--font);
  font-variant-numeric: tabular-nums;
  font-style: normal;
  color: var(--text-unit);
}

.c-turn-road {
  font-size: var(--card-body);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-prose);
}

.c-turn-note {
  font: 500 0.85cqw/1.3 var(--font);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.c-lanes {
  display: flex;
  align-items: flex-end;
  gap: 0.45cqw;
  height: 2.1cqw;
}

.c-lanes span {
  display: block;
  width: 1.05cqw;
  height: 100%;
  border-radius: 0.2cqw;
  background: rgba(122, 174, 255, 0.16);
  clip-path: polygon(50% 0, 100% 38%, 62% 38%, 62% 100%, 38% 100%, 38% 38%, 0 38%);
}

.c-lanes span.is-active {
  background: linear-gradient(180deg, #7ddcff, #38bdf8);
  box-shadow: 0 0 0.7cqw rgba(56, 189, 248, 0.55);
}

/* ---------- Media ---------- */

.c-track {
  display: flex;
  align-items: center;
  gap: 0.9cqw;
  margin-top: 0.65cqw;
  min-width: 0;
}

.c-cover {
  position: relative;
  width: 5.2cqw;
  height: 5.2cqw;
  flex: none;
  border-radius: 0.85cqw;
  background:
    radial-gradient(circle at 50% 44%, rgba(125, 220, 255, 0.5) 0 6%, transparent 7%),
    radial-gradient(circle at 50% 44%, transparent 0 22%, rgba(125, 220, 255, 0.24) 23% 24%, transparent 25%),
    radial-gradient(circle at 50% 44%, transparent 0 40%, rgba(125, 220, 255, 0.16) 41% 42%, transparent 43%),
    linear-gradient(140deg, #163a55 0%, #0a1b2a 52%, #050b12 100%);
  border: 1px solid rgba(122, 174, 255, 0.2);
  box-shadow: inset 0 0 1.8cqw rgba(56, 189, 248, 0.18);
}

.c-cover::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 16%;
  height: 0.22cqw;
  background: repeating-linear-gradient(90deg, rgba(125, 220, 255, 0.45) 0 0.18cqw, transparent 0.18cqw 0.42cqw);
  opacity: 0.55;
}

.c-track-info {
  display: flex;
  flex-direction: column;
  gap: 0.3cqw;
  min-width: 0;
}

.c-track-info strong {
  font-size: var(--card-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-track-info > span {
  font-size: var(--card-label);
  color: var(--text-prose);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-track-info > .micro {
  font-size: var(--card-label);
}

.c-progress {
  height: 0.16cqw;
  margin-top: auto;
  border-radius: var(--media-radius);
  background: var(--media-track);
}

.c-progress > span {
  display: block;
  width: 54%;
  height: 100%;
  border-radius: var(--media-radius);
  background: var(--media-fill);
}

.c-time {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25cqw;
  font: 500 0.85cqw/1 var(--font);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--text-value);
}

.c-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1cqw;
  margin-top: 0.25cqw;
}

.c-tbtn {
  display: grid;
  place-items: center;
  width: 2.6cqw;
  height: 2.6cqw;
  border: 1px solid rgba(122, 174, 255, 0.18);
  border-radius: 50%;
  color: var(--ink-dim);
}

.c-tbtn svg {
  width: 1.05cqw;
  height: 1.05cqw;
}

.c-tbtn.is-primary {
  width: 3.2cqw;
  height: 3.2cqw;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.14);
  color: #eaf9ff;
  box-shadow: 0 0 1.4cqw -0.2cqw rgba(56, 189, 248, 0.5);
}

/* ---------- Charging + system ---------- */

.c-charge-time {
  display: flex;
  flex-direction: column;
  gap: 0.3cqw;
  margin-top: 0.75cqw;
}

.c-charge-time strong {
  font: 300 var(--card-primary)/1 var(--font);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.c-charge-time span {
  font-size: var(--card-body);
  color: var(--text-prose);
}

.c-charge-time span b {
  font-weight: 500;
  color: var(--text-value);
}

.c-charge-time span em,
.c-charge-rows strong em {
  font-size: 0.6em;
  font-style: normal;
  color: var(--text-unit);
}

.c-charge-rows {
  display: flex;
  flex-direction: column;
  gap: 0.6cqw;
  margin-top: auto;
  padding-top: 0.8cqw;
}

.c-charge-rows > div,
.c-sys-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6cqw;
  padding-top: 0.5cqw;
  border-top: 1px solid rgba(122, 174, 255, 0.1);
  font: 500 var(--card-body)/1 var(--font);
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* A service row is a labelled pair, not prose: its label is the same label
   step used by the desktop and mobile cards. */
.c-sys-row {
  font: 600 var(--card-label)/1.2 var(--font);
  letter-spacing: 0.02em;
}

.c-charge-rows strong,
.c-sys-row strong {
  font: 500 var(--card-body)/1 var(--font);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--text-value);
}

/* A service row is a reading, not prose: software version and distance use
   the value step on every surface. */
.c-sys-row strong {
  font-size: var(--card-value);
}

/* Build string only: the single identifier in this card. */
.c-sys-row strong.mono-id {
  font-family: var(--mono);
}

.c-sys-row strong em {
  font-size: 0.6em;
  font-style: normal;
  color: var(--text-unit);
}

.c-sys-row {
  padding-top: 0.7cqw;
}

/* ---------- Bottom dock ---------- */

.c-dock {
  position: absolute;
  left: 2.4cqw;
  right: 2.4cqw;
  bottom: 1.2cqw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 4.86cqw;
  padding: 0 1.4cqw;
  border: 1px solid rgba(122, 174, 255, 0.14);
  border-radius: 1cqw;
  background: linear-gradient(120deg, rgba(13, 22, 35, 0.92), rgba(6, 11, 18, 0.88));
  backdrop-filter: blur(1cqw);
  -webkit-backdrop-filter: blur(1cqw);
  box-shadow: 0 1.4cqw 3.6cqw -1.4cqw rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Climate cluster: every reading is centred on the dock's midline. The fan
   is a bare number beside its icon, and the icon stays centred on the
   digit's optical centre. */
.c-climate {
  display: flex;
  align-items: center;
  gap: 0.7cqw;
}

/* Value and state share one line, which keeps the reading row optically
   centred in the dock instead of pushed up by a label hanging below it. */
.c-temp {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.45cqw;
  min-width: 0;
}

.c-temp strong {
  font: 500 var(--card-value)/1 var(--font);
  font-variant-numeric: tabular-nums;
}

.c-temp strong em {
  margin-left: 0.12cqw;
  font: 500 0.6em/1 var(--font);
  font-variant-numeric: tabular-nums;
  font-style: normal;
  color: var(--text-unit);
}

.c-temp-btn {
  display: grid;
  place-items: center;
  align-self: center;
  width: 2.6cqw;
  height: 2.6cqw;
  border: 1px solid rgba(122, 174, 255, 0.2);
  border-radius: 50%;
  color: var(--text-label);
  font: 400 0.95cqw/1 var(--font);
}

/* Fan reading. The icon is out of flow and centred on the digit: the number
   is the only in-flow item, so the cluster's baseline alignment keys off it,
   and the icon rides the same optical centre. */
.c-fan {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 1.55cqw;
  margin-left: 0.45cqw;
  padding-left: 2.9cqw;
  border-left: 1px solid rgba(122, 174, 255, 0.18);
}

.c-fan-num {
  font: 500 var(--card-value)/1 var(--font);
  font-variant-numeric: tabular-nums;
  color: var(--text-value);
}

.c-fan-icon {
  position: absolute;
  left: 0.9cqw;
  top: 50%;
  width: 1.55cqw;
  height: 1.55cqw;
  transform: translateY(-50%);
  color: var(--text-live);
}

.c-apps {
  display: flex;
  align-items: center;
  gap: 1.5cqw;
}

.c-app {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05cqw;
  min-width: 4.4cqw;
  padding: 0.65cqw 0.7cqw;
  color: var(--muted);
}

.c-app svg {
  width: 1.3cqw;
  height: 1.3cqw;
}

.c-app .c-app-label {
  font: 500 0.85cqw/1 var(--font);
  letter-spacing: 0.02em;
}

.c-app.is-active {
  color: var(--cyan);
}

.c-app.is-active::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0.1cqw;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 0.6cqw rgba(56, 189, 248, 0.8);
}

.c-audio {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.4cqw;
}

/* Dock readout: the dock's right-hand block reports what the audio layer is
   doing, not climate. With media playing it carries the track and state; the
   climate readout on the left stays the only place for cabin values. */
.c-now {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.24cqw;
  min-width: 0;
}

.c-now-state {
  font: 600 0.72cqw/1 var(--font);
  letter-spacing: 0.02em;
  color: var(--text-label);
}

.c-now-track {
  font: 500 0.88cqw/1.1 var(--font);
  letter-spacing: 0.015em;
  color: var(--text-value);
  white-space: nowrap;
}

.c-now-track em {
  font-style: normal;
  color: var(--text-prose);
}

.c-vol {
  display: flex;
  flex-direction: column;
  gap: 0.35cqw;
  width: 5.2cqw;
}

/* Volume is a reading: label muted, number in value ink with a real space. */
.c-vol-line {
  display: flex;
  align-items: baseline;
  gap: 0.3cqw;
  white-space: nowrap;
}

/* Value >= label x 1.2 (label .85 cqw → 1.02 cqw). A reading is never
   typeset smaller than the word that names it. */
.c-vol-value {
  font: 600 1.02cqw/1 var(--font);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: var(--text-value);
}

.c-vol-bar {
  display: block;
  height: 0.14cqw;
  border-radius: var(--media-radius);
  background: var(--media-track);
}

/* Volume is part of the media family: it uses the same track, fill and
   radius tokens as the playing-music progress bar above it. */
.c-vol-bar i {
  display: block;
  height: 100%;
  border-radius: var(--media-radius);
  background: var(--media-fill);
}

/* ---------- Cabin composite: cockpit + HUD on one page ---------- */

.display-stage.is-cabin {
  padding: clamp(10px, 1.6vh, 18px) clamp(14px, 2vw, 32px);
  /* The cabin stack is anchored under the header. The reclaimed height used
     to sit above it as dead space because the stage centred the block. */
  align-items: start;
}

.cabin {
  --cabin-w: min(94vw, calc((100svh - 224px) / 0.787));
  width: var(--cabin-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.2vh, 14px);
}


.cabin-band {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

/* The HUD band keeps the projection width it had before the height cut
   (86.1% of the widened cabin) so its pixel height drops a full 20%; the
   centre display absorbs the reclaimed width and height. */
.cabin-band--hud {
  width: 86.1%;
}

.cabin-band--hud .hardware {
  width: 100%;
}

.cabin-band--cockpit .hardware {
  width: 100%;
}

.cabin-label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: 500 9px/1 var(--font);
  letter-spacing: 0.02em;
  color: var(--muted);
}

.cabin-label .micro {
  font-size: 9px;
  letter-spacing: 0.02em;
}

/* HUD link and guides toggle sit with the HUD they affect, outside the
   projection, instead of occupying the shared header. */
.cabin-tools {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  color: var(--muted);
  font: 500 9.5px/1 var(--font);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cabin-link {
  color: var(--muted);
  text-decoration: none;
  padding: 1px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cabin-link:hover,
.cabin-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--hair-strong);
  outline: none;
}

.cabin .hardware {
  padding: 6px;
  border-radius: 18px;
}

.cabin .hardware::before {
  inset: 2px;
  border-radius: 16px;
}

.cabin .hardware::after {
  inset: 6px;
  border-radius: 13px;
}

.cabin .screen {
  border-radius: 13px;
}

.cabin .hud-screen,
.cabin .cockpit-screen {
  width: 100%;
}

/* The band is the standalone HUD at a smaller uniform scale: identical
   canvas aspect, no per-band grid offset. */
.cabin .hud-screen {
  aspect-ratio: 2560 / 562;
}

.cabin-dash {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 174, 255, 0.34), transparent);
}
