.logo {
  font-size: 13px !important;
  letter-spacing: 0.28em !important;
}
.local-badge {
  border: 1px solid var(--line, #ddd);
  background: transparent;
  color: inherit;
  padding: 7px 10px;
  border-radius: 5px;
  font:
    600 9px Montserrat,
    sans-serif;
  letter-spacing: 0.14em;
  cursor: pointer;
  white-space: nowrap;
}
.local-volume {
  margin-top: 12px;
  gap: 12px;
}
.local-volume input {
  flex: 1;
  min-width: 50px;
  accent-color: currentColor;
}
.local-volume output {
  font-size: 11px;
  min-width: 35px;
  text-align: right;
}
.local-fidelity {
  font-size: 10px;
  line-height: 1.5;
  opacity: 0.6;
  margin: 4px 0 10px;
}
.local-profile-link {
  align-self: flex-start;
  border: 0;
  padding: 0;
  background: none;
  font:
    500 11px Montserrat,
    sans-serif;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.local-offline {
  font-size: 10px;
  color: var(--muted);
  margin: 2px 0 8px;
}
.local-offline[data-ready="true"]::before {
  content: "●";
  color: var(--ok, #438049);
  margin-right: 6px;
}
.profile-file-label {
  display: block;
  font-size: 12px;
  margin-top: 22px;
  margin-bottom: 8px;
}
.local-profile-panel input[type="file"] {
  width: 100%;
  font-size: 11px;
}
.profile-preview {
  margin-top: 22px;
  padding-top: 4px;
  border-top: 1px solid #8884;
}
.profile-preview ul {
  padding-left: 18px;
  font-size: 12px;
}
.local-profile-panel .profile-result {
  font-size: 12px;
  min-height: 22px;
}
.local-done:disabled {
  opacity: 0.35;
  cursor: default;
}
.profile-stop,
.profile-actions button {
  font:
    500 11px Montserrat,
    sans-serif;
  border: 1px solid #8884;
  border-radius: 5px;
  color: inherit;
  background: transparent;
  padding: 10px 12px;
  cursor: pointer;
}
.profile-stop {
  width: 100%;
  margin-top: 8px;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.profile-actions button:disabled {
  opacity: 0.4;
  cursor: default;
}
.library-pack {
  padding: 16px 0;
  border-bottom: 1px solid #8884;
}
.library-pack h2 {
  margin: 0 0 4px;
  font-size: 15px;
}
.library-pack p {
  font-size: 12px;
  margin: 6px 0;
}
.library-credit,
.library-foot {
  font-size: 10px !important;
}
.library-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 10px;
  margin: 10px 0;
}
.library-links a {
  color: inherit;
  text-underline-offset: 3px;
}
.library-choose {
  font:
    600 11px Montserrat,
    sans-serif;
  border: 1px solid #8884;
  border-radius: 5px;
  padding: 10px 16px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.sound-library label {
  display: block;
  font-size: 12px;
  margin: 18px 0 6px;
}
.sound-library input {
  max-width: 100%;
  width: 100%;
  font-size: 12px;
}
.sound-library input[type="text"] {
  padding: 12px;
  border: 1px solid #8885;
  border-radius: 6px;
  background: transparent;
}
.recording-preview {
  font-size: 11px;
}
.recording-result {
  font-size: 12px;
  min-height: 20px;
}
#premium-cta,
#tn-confidentialite,
#pwpanel,
#mtpanel,
#p-prochain {
  display: none !important;
}
.local-about {
  width: min(570px, calc(100vw - 32px));
  border: 0;
  border-radius: 18px;
  padding: 36px;
  background: #f4f4f4;
  color: #181818;
  box-sizing: border-box;
  max-height: 90dvh;
  overflow: auto;
  font:
    13px/1.7 Montserrat,
    sans-serif;
}
.local-about::backdrop {
  background: #0008;
  backdrop-filter: blur(5px);
}
.local-about form {
  margin: 0;
}
.local-about h1 {
  font-size: 42px;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin: 16px 0 24px;
  font-weight: 600;
}
.local-about h2 {
  font-size: 12px;
  letter-spacing: 0.02em;
  margin-top: 24px;
}
.local-about p {
  color: #666;
}
.local-eyebrow {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: #877249;
}
.local-close {
  float: right;
  background: none;
  border: 0;
  font-size: 26px;
  cursor: pointer;
}
.local-done {
  width: 100%;
  padding: 15px;
  background: #141414;
  color: white;
  border: 0;
  border-radius: 7px;
  font:
    600 12px Montserrat,
    sans-serif;
  margin-top: 18px;
  cursor: pointer;
}
.local-about kbd {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2px 5px;
  background: white;
}
[data-theme="dark"] .local-about {
  background: #171717;
  color: #eee;
}
[data-theme="dark"] .local-about p {
  color: #aaa;
}
@media (max-width: 600px) {
  .logo {
    font-size: 10px !important;
    letter-spacing: 0.12em !important;
  }
  .local-badge {
    font-size: 8px;
    padding: 5px;
  }
  .local-about {
    padding: 24px;
  }
  .local-about h1 {
    font-size: 34px;
  }
}
/* Portrait phones get a readable dial above the controls. Tesla's wide layout
   remains the captured layout. Pedals stay reachable while the page scrolls. */
@media (max-width: 600px) {
  html,
  body {
    height: auto;
    min-height: 100%;
  }
  body {
    overflow-y: auto;
  }
  .bar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
    flex-wrap: wrap;
    gap: 6px;
  }
  .brand {
    flex: 1;
    flex-wrap: wrap;
    gap: 3px 10px;
  }
  .brand .status {
    font-size: 9px;
  }
  .version {
    display: none;
  }
  .liaisons {
    order: 3;
    gap: 12px;
    margin: 0;
    width: 100%;
    justify-content: flex-end;
  }
  .liaison {
    font-size: 10px;
  }
  .bar-actions {
    gap: 6px;
  }
  .stage {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 12px;
    padding-top: 14px;
  }
  .dial-wrap {
    height: auto;
    min-height: 250px;
  }
  #tacho {
    flex: none;
    width: min(72vw, 280px);
    height: min(72vw, 280px);
    max-width: 100%;
  }
  .side,
  .side-scroll {
    min-height: auto;
    overflow: visible;
  }
  .side-scroll {
    padding-right: 0;
    gap: 7px;
  }
  .field.row label {
    font-size: 10px;
    min-width: 70px;
  }
  .field.row .seg button {
    font-size: 11px;
    min-height: 34px;
  }
  .primary.big {
    min-height: 48px;
  }
  .pedals {
    position: sticky;
    bottom: 0;
    background: var(--bg);
    padding-top: 8px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 9;
  }
  .local-fidelity {
    font-size: 9px;
    margin-bottom: 5px;
  }
}

/* Outvroom cockpit — shared controls, without duplicate application state. */
:root {
  --ov-accent: #edb56a;
  --ov-accent-ink: #22190c;
  --bg: #141616;
  --surface: #1d2020;
  --raised: #ffffff08;
  --line: #ffffff16;
  --text: #eeeae2;
  --muted: #a7aaa6;
  --pill: #edb56a;
  --pill-text: #22190c;
  --primary: #edb56a;
  --primary-text: #22190c;
  --gauge-tick: #c6c7be66;
  --gauge-rail: #d8d9cf1c;
}
:root[data-theme="light"] {
  --ov-accent: #a15c12;
  --ov-accent-ink: #fff;
  --bg: #eeefeb;
  --surface: #fafbf7;
  --raised: #111a1607;
  --line: #1e2a201c;
  --text: #202822;
  --muted: #626c63;
  --pill: #273d31;
  --pill-text: #fff;
  --primary: #273d31;
  --primary-text: #fff;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ov-accent: #a15c12;
    --ov-accent-ink: #fff;
    --bg: #eeefeb;
    --surface: #fafbf7;
    --raised: #111a1607;
    --line: #1e2a201c;
    --text: #202822;
    --muted: #626c63;
    --pill: #273d31;
    --pill-text: #fff;
    --primary: #273d31;
    --primary-text: #fff;
  }
}
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ov-accent);
  outline-offset: 4px;
}
.ov-studio {
  height: 100dvh;
  overflow: hidden;
  padding: 0 0 env(safe-area-inset-bottom);
}
.ov-studio .bar {
  padding: 14px 30px;
  min-height: 74px;
  gap: 18px;
  background: var(--bg);
}
.ov-studio .brand {
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.ov-studio .logo {
  font-size: 16px !important;
  letter-spacing: 0.14em !important;
  font-weight: 600;
}
.ov-studio .version {
  display: none;
}
.ov-studio .brand .status {
  font-size: 10px;
}
.ov-studio .bar-actions {
  gap: 10px;
}
.ov-studio #tuning {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.ov-studio .local-badge {
  font-size: 11px;
  letter-spacing: 0;
  border: 0;
  padding: 12px 8px;
  min-height: 44px;
  color: var(--muted);
}
.ov-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ov-nav button,
.ov-exit-focus {
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font-size: 12px;
  padding: 12px 14px;
  min-height: 44px;
}
.ov-nav button:hover {
  background: var(--raised);
  color: var(--text);
}
.ov-nav #ov-garage {
  color: var(--text);
}
.ov-studio .local-offline {
  margin: 0;
  font-size: 9px;
}
.ov-studio .stage {
  gap: 30px;
  padding: 24px 30px 22px;
  grid-template-columns: minmax(0, 1fr) 344px;
  width: min(1400px, 100%);
  margin: auto;
  overflow: hidden;
  min-height: 0;
}
.ov-studio .dial-wrap {
  padding: 6px 24px 0;
  gap: 0;
  justify-content: center;
  overflow: hidden;
  min-width: 0;
}
.ov-instrument-heading {
  text-align: left;
  align-self: stretch;
  padding-left: 10px;
  flex: 0 0 auto;
}
.ov-eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ov-accent);
}
.ov-instrument-heading h1 {
  font-size: clamp(22px, 2.7vw, 39px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.2;
  margin: 9px 0 5px;
}
.ov-instrument-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 5px;
}
.ov-studio #tacho {
  width: min(100%, 500px);
  min-height: 100px;
  max-height: 100%;
  flex: 1 1 0;
  align-self: center;
}
.ov-telemetry {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  width: min(100%, 510px);
  border-top: 1px solid var(--line);
  padding: 16px 4px 10px;
  gap: 16px;
  flex: 0 0 auto;
}
.ov-telemetry div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ov-telemetry span {
  font-size: 10px;
  color: var(--muted);
}
.ov-telemetry strong {
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ov-key-hint {
  color: var(--muted);
  font-size: 10px;
  margin: 9px 0 0;
  text-align: center;
}
.ov-key-hint span {
  margin: 0 6px;
}
kbd {
  font-family: inherit;
  font-size: 0.9em;
  border: 1px solid var(--line);
  padding: 2px 4px;
  border-radius: 3px;
}
.ov-studio .side {
  border-left: 1px solid var(--line);
  padding-left: 28px;
  gap: 0;
}
.ov-studio .side-scroll {
  gap: 21px;
  padding: 0 6px 4px 0;
  scrollbar-gutter: stable;
}
.ov-studio .field {
  gap: 8px;
  flex-shrink: 0;
}
.ov-studio .field > label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.ov-studio .field.row {
  gap: 10px;
}
.ov-studio .field.row label {
  min-width: 70px;
}
.ov-studio .seg {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  padding: 3px;
  gap: 3px;
  min-height: 45px;
}
.ov-studio .seg button {
  border-radius: 5px;
  font-size: 11px;
  min-height: 36px;
  padding: 8px 10px;
}
.ov-studio .seg button.on {
  background: var(--pill);
  color: var(--pill-text);
  box-shadow: none;
}
.ov-studio .ov-selected {
  gap: 0;
}
.ov-studio .cv-bouton {
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 18px;
  gap: 0;
  text-align: left;
  border-radius: 0;
}
.ov-studio .cv-bouton > .cv-visuel {
  grid-column: 1/-1;
  width: 100%;
  height: 124px;
  border-radius: 10px;
  overflow: hidden;
  background: #272b29;
  margin-bottom: 13px;
}
.ov-studio .cv-bouton .cv-visuel img {
  height: 100%;
  object-fit: cover;
  object-position: center 61%;
  transition: transform 0.3s;
}
.ov-studio .cv-bouton:hover .cv-visuel img {
  transform: scale(1.035);
}
.ov-studio .cv-texte {
  gap: 4px;
}
.ov-studio .cv-texte strong {
  font-size: 15px;
  white-space: normal;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ov-studio .cv-action {
  font-size: 10px;
  color: var(--ov-accent);
}
.ov-studio .cv-chevron {
  align-self: center;
}
.ov-description {
  font-size: 11px;
  line-height: 1.5;
  margin: 10px 0 0;
  color: var(--muted);
}
.ov-studio #credit {
  font-size: 9px;
  margin: 8px 0 0;
  line-height: 1.5;
  color: var(--muted);
}
.ov-studio #credit:empty {
  display: none;
}
.ov-rev-test {
  border: 0;
  background: none;
  color: var(--text);
  text-align: left;
  font-size: 10px;
  padding: 10px 0 0;
  min-height: 32px;
  width: max-content;
}
.ov-rev-test:disabled {
  color: var(--muted);
  opacity: 0.55;
  cursor: default;
}
.ov-studio .ov-source {
  gap: 8px;
}
.ov-control-help {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  min-height: 15px;
}
.ov-studio .ov-presets {
  gap: 8px;
}
.ov-studio .ov-transmission {
  display: grid;
  grid-template-columns: 1fr 180px;
  align-items: center;
}
.ov-studio .ov-transmission label {
  margin: 0;
}
.ov-details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.ov-details summary {
  cursor: pointer;
  font-size: 11px;
  padding: 15px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.ov-details summary::after {
  content: "+";
  color: var(--muted);
}
.ov-details[open] summary::after {
  content: "−";
}
.ov-details summary span {
  font-size: 9px;
  color: var(--muted);
  margin-left: auto;
  align-self: center;
}
.ov-detail-fields {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0 0 15px;
}
.ov-studio #paddles-aide {
  font-size: 10px;
  line-height: 1.6;
  margin: 0;
}
.ov-studio .local-volume {
  margin: 0;
  display: flex;
  gap: 10px;
}
.ov-studio .local-volume input {
  accent-color: var(--ov-accent);
  height: 28px;
}
.ov-studio .local-volume output {
  font-size: 11px;
}
.ov-tools {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.ov-studio .local-profile-link {
  font-size: 10px;
  text-decoration: none;
  padding: 8px 0;
  min-height: 30px;
}
.ov-studio .local-profile-link:hover {
  text-decoration: underline;
}
.ov-studio .local-fidelity {
  font-size: 9px;
  line-height: 1.5;
  margin: -12px 0 0;
  opacity: 1;
  color: var(--muted);
}
.ov-transport {
  flex: 0 0 auto;
  display: flex;
  gap: 12px;
  align-items: stretch;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 14px 30px 16px;
  min-height: 96px;
  z-index: 12;
}
.ov-transport #start {
  width: 200px;
  flex: 0 0 200px;
  margin: 0;
  font-size: 14px;
  border-radius: 9px;
  min-height: 64px;
  background: var(--primary);
  color: var(--primary-text);
  border: 0;
  box-shadow: none;
}
.ov-transport #start.running {
  background: var(--raised);
  color: var(--text);
  border: 1px solid var(--line);
}
.ov-transport .pedals {
  position: static;
  flex: 1;
  padding: 0;
  margin: 0;
  background: none;
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 2.5fr;
  gap: 12px;
}
.ov-transport .pedal {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--raised);
  font-size: 13px;
  min-height: 64px;
  position: relative;
  overflow: hidden;
}
.ov-transport .pedal > span {
  position: relative;
  z-index: 1;
}
.ov-transport .pedal small {
  font-size: 12px;
  color: var(--muted);
  margin-left: 12px;
}
.ov-transport .gas {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.ov-transport .gas::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--throttle, 0%);
  background: var(--ov-accent);
  opacity: 0.2;
  transition: width 0.08s linear;
}
.ov-transport .gas.down {
  border-color: var(--ov-accent);
}
.ov-pedal-help {
  font-size: 9px;
  color: var(--muted);
}
.ov-transport .brake.down {
  background: #d34d3c45;
  border-color: #d66e60;
}
.ov-studio .retro-big {
  position: absolute;
  bottom: 94px;
  left: 50%;
  transform: translateX(-50%);
  min-height: 38px;
  font-size: 11px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.ov-exit-focus {
  position: fixed;
  right: 28px;
  top: 22px;
  z-index: 15;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}
.ov-studio[data-focus="true"] .side,
.ov-studio[data-focus="true"] .bar-actions,
.ov-studio[data-focus="true"] .liaisons {
  display: none;
}
.ov-studio[data-focus="true"] .stage {
  grid-template-columns: 1fr;
  max-width: 950px;
}
.ov-studio[data-focus="true"] #tacho {
  width: min(100%, 550px);
}
.ov-studio .panel {
  background: #080c0ac9;
  backdrop-filter: blur(8px);
  padding: 26px;
}
.ov-studio .panel-inner {
  border-radius: 16px;
  box-shadow: 0 25px 100px #0004;
}
.ov-studio .panel-inner.cv {
  width: min(1100px, 100%);
  height: min(820px, 100%);
  max-height: 100%;
}
.ov-studio .panel-head {
  padding: 18px 24px;
}
.ov-studio .panel-head h2 {
  font-size: 22px;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.ov-studio .panel-head .icon {
  width: 44px;
  height: 44px;
}
.ov-garage-tools {
  padding: 18px 24px 0;
  flex-shrink: 0;
}
.ov-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}
.ov-search input {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 13px 14px;
  border-radius: 8px;
  font-size: 13px;
  min-height: 46px;
  color: var(--text);
  width: 100%;
}
.ov-search input::placeholder {
  color: var(--muted);
}
.ov-filters {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.ov-filters button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: none;
  font-size: 11px;
  padding: 10px 14px;
  min-height: 40px;
}
.ov-filters button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.ov-garage-count {
  font-size: 10px;
  color: var(--muted);
  margin: 14px 0;
}
.ov-studio #cv-corps {
  padding: 0 24px 24px;
  overscroll-behavior: contain;
}
.ov-studio .cv-grille {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.ov-studio .cv-carte {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ov-studio .cv-carte.en-cours {
  border-color: var(--ov-accent);
}
.ov-studio .cv-choisir {
  border: 0;
  border-radius: 0;
  background: none;
  gap: 8px;
  height: auto;
  flex: 1;
  padding-bottom: 12px;
}
.ov-studio .cv-carte.en-cours .cv-choisir {
  border: 0;
}
.ov-studio .cv-choisir > .cv-visuel {
  height: 140px;
  width: 100%;
  margin: 0 0 3px;
  aspect-ratio: auto;
}
.ov-studio .cv-choisir .cv-visuel img {
  height: 100%;
  object-fit: cover;
  object-position: center 61%;
}
.ov-studio .cv-nom {
  font-size: 14px;
  padding: 0 14px;
}
.ov-studio .cv-sous {
  font-size: 10px;
  line-height: 1.6;
  padding: 0 14px;
  display: block;
  min-height: 32px;
}
.ov-engine-specs {
  font-size: 9px;
  line-height: 1.6;
  padding: 0 14px;
  color: var(--muted);
}
.ov-studio .cv-etat {
  font-size: 10px;
  color: var(--ov-accent);
  margin: 4px 14px 0;
}
.ov-studio .cv-etoile {
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
}
.ov-engine-preview {
  background: var(--raised);
  border: 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  text-align: left;
  padding: 12px 14px;
  min-height: 44px;
}
.ov-engine-preview:hover {
  color: var(--ov-accent);
}
.ov-empty {
  padding: 35px 8px;
  text-align: center;
}
.ov-empty p {
  font-size: 12px;
  color: var(--muted);
}
.ov-empty button {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 16px;
  background: none;
  font-size: 12px;
}
.ov-preview-status {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 10px 40px #0005;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  max-width: calc(100vw - 32px);
  width: max-content;
}
.ov-preview-status button {
  background: none;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 8px 10px;
  color: inherit;
  white-space: nowrap;
  font-size: 10px;
  min-height: 36px;
}
.ov-studio .local-about {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  font-size: 12px;
}
.ov-studio .local-about h1 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.05em;
}
.ov-studio .local-about p {
  color: var(--muted);
}
.ov-studio .local-about h2 {
  font-size: 13px;
}
.ov-studio .local-close {
  color: var(--text);
  width: 44px;
  height: 44px;
}
.ov-studio .local-eyebrow {
  color: var(--ov-accent);
}
.ov-studio .local-done {
  background: var(--primary);
  color: var(--primary-text);
  min-height: 48px;
}
.ov-studio .local-about kbd {
  background: var(--raised);
  border-color: var(--line);
}
.ov-steps {
  list-style: none;
  counter-reset: steps;
  padding: 0;
  margin: 26px 0;
}
.ov-steps li {
  counter-increment: steps;
  position: relative;
  padding: 0 0 20px 40px;
}
.ov-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ov-accent);
  font-size: 11px;
}
.ov-steps strong {
  font-size: 13px;
  font-weight: 500;
}
.ov-steps p {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.7;
}
.ov-setup-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.ov-setup-actions button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--raised);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 11px;
}
.ov-setup-note {
  font-size: 10px !important;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.ov-about-link {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 10px;
  padding: 14px 0 0;
  min-height: 44px;
  width: 100%;
}
@keyframes ov-entrance {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ov-studio .stage {
  animation: ov-entrance 0.35s ease-out;
}
.ov-engine-enter {
  animation: ov-entrance 0.25s ease-out;
}
.ov-studio .panel:not([hidden]) .panel-inner,
.ov-studio dialog[open] {
  animation: ov-entrance 0.2s ease-out;
}
@media (min-width: 1500px) {
  .ov-studio .stage {
    padding-top: 36px;
    padding-bottom: 36px;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 60px;
  }
  .ov-studio .side {
    padding-left: 36px;
  }
  .ov-studio .side-scroll {
    gap: 25px;
  }
  .ov-studio .cv-bouton > .cv-visuel {
    height: 160px;
  }
}
@media (max-width: 1000px) {
  .ov-studio .bar {
    padding: 10px 20px;
    min-height: 64px;
  }
  .ov-studio .stage {
    padding: 18px 20px;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .ov-studio .side {
    padding-left: 18px;
  }
  .ov-studio .dial-wrap {
    padding: 4px 4px 0;
  }
  .ov-studio .local-offline {
    display: none;
  }
  .ov-nav button {
    padding: 10px;
  }
  .ov-studio .cv-bouton > .cv-visuel {
    height: 100px;
  }
  .ov-studio .side-scroll {
    gap: 16px;
  }
  .ov-transport {
    padding: 12px 20px;
    min-height: 86px;
  }
  .ov-transport #start {
    flex-basis: 170px;
    width: 170px;
  }
  .ov-transport #start,
  .ov-transport .pedal {
    min-height: 60px;
  }
  .ov-telemetry {
    gap: 10px;
  }
  .ov-telemetry strong {
    font-size: 14px;
  }
  .ov-studio .local-badge {
    display: none;
  }
}
@media (max-width: 700px) {
  html {
    height: auto;
    min-height: 100%;
  }
  .ov-studio {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
    padding-bottom: 102px;
  }
  .ov-studio .bar {
    position: sticky;
    top: 0;
    z-index: 14;
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 4px 10px;
    min-height: 64px;
  }
  .ov-studio .brand {
    flex: 1;
    gap: 4px 9px;
    max-width: calc(100% - 180px);
  }
  .ov-studio .logo {
    font-size: 13px !important;
    letter-spacing: 0.09em !important;
  }
  .ov-studio .brand .status {
    font-size: 8px;
    width: 100%;
  }
  .ov-studio .bar-actions {
    gap: 6px;
  }
  .ov-nav {
    gap: 0;
  }
  .ov-nav button {
    font-size: 10px;
    padding: 10px 8px;
  }
  .ov-nav #ov-focus {
    display: none;
  }
  .ov-studio #tuning {
    width: 38px;
    height: 38px;
  }
  .ov-studio #tuning svg {
    width: 18px;
  }
  .ov-studio .liaisons {
    position: static;
    margin: 0;
    order: 3;
    width: 100%;
    justify-content: flex-end;
  }
  .ov-studio .liaison {
    font-size: 9px;
  }
  .ov-studio .stage {
    display: flex;
    flex-direction: column;
    gap: 22px;
    flex: 0 0 auto;
    padding: 20px 20px 25px;
    overflow: visible;
  }
  .ov-studio .dial-wrap {
    padding: 0;
    min-height: 0;
    overflow: visible;
    gap: 0;
  }
  .ov-instrument-heading {
    padding: 0;
  }
  .ov-eyebrow {
    font-size: 8px;
  }
  .ov-instrument-heading h1 {
    font-size: 27px;
    margin: 7px 0 5px;
  }
  .ov-instrument-heading p {
    font-size: 10px;
  }
  .ov-studio #tacho {
    flex: none;
    width: min(80vw, 330px);
    height: min(80vw, 330px);
    min-height: 0;
    max-height: none;
    margin-top: -4px;
  }
  .ov-telemetry {
    width: 100%;
    padding: 14px 0 8px;
    gap: 15px;
  }
  .ov-telemetry span {
    font-size: 9px;
  }
  .ov-telemetry strong {
    font-size: 14px;
  }
  .ov-key-hint {
    display: none;
  }
  .ov-studio .side {
    padding: 0;
    border: 0;
    overflow: visible;
  }
  .ov-studio .side-scroll {
    overflow: visible;
    gap: 22px;
    padding: 0;
    min-height: 0;
  }
  .ov-studio .ov-selected {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 15px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .ov-studio .cv-bouton {
    display: flex;
    gap: 12px;
    grid-column: 1/-1;
  }
  .ov-studio .cv-bouton > .cv-visuel {
    width: 96px;
    height: 65px;
    flex: 0 0 96px;
    margin: 0;
    border-radius: 6px;
  }
  .ov-studio .cv-bouton .cv-texte {
    flex: 1;
  }
  .ov-studio .cv-texte strong {
    font-size: 14px;
  }
  .ov-studio .cv-chevron {
    width: 8px;
  }
  .ov-description {
    grid-column: 1/-1;
    font-size: 10px;
    margin: 10px 0 0;
  }
  .ov-studio #credit {
    grid-column: 1/-1;
    font-size: 8px;
  }
  .ov-rev-test {
    grid-column: 1/-1;
    font-size: 10px;
    min-height: 36px;
  }
  .ov-studio .ov-transmission {
    grid-template-columns: 1fr 200px;
  }
  .ov-studio .seg button {
    font-size: 11px;
    min-height: 39px;
  }
  .ov-studio .seg {
    min-height: 48px;
  }
  .ov-studio .local-profile-link {
    min-height: 40px;
  }
  .ov-studio .local-fidelity {
    margin-top: -17px;
  }
  .ov-transport {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 90px;
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
    gap: 8px;
    box-shadow: 0 -8px 22px var(--bg);
  }
  .ov-transport #start {
    flex: 0 0 95px;
    width: 95px;
    min-height: 62px;
    font-size: 12px;
  }
  .ov-transport .pedals {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px;
  }
  .ov-transport .pedal {
    font-size: 12px;
    padding: 10px 7px;
    min-height: 62px;
  }
  .ov-transport .pedal small {
    display: none;
  }
  .ov-pedal-help {
    font-size: 8px;
    max-width: 90px;
  }
  .ov-studio .retro-big {
    bottom: 90px;
    font-size: 10px;
    min-height: 34px;
  }
  .ov-exit-focus {
    top: 12px;
    right: 14px;
    font-size: 10px;
    padding: 10px 12px;
  }
  .ov-studio[data-focus="true"] .brand {
    max-width: 60%;
  }
  .ov-studio[data-focus="true"] .stage {
    min-height: calc(100dvh - 165px);
    justify-content: center;
  }
  .ov-studio[data-focus="true"] #tacho {
    width: min(85vw, 430px);
    height: min(85vw, 430px);
  }
  .ov-studio .panel {
    padding: 10px;
  }
  .ov-studio .panel-inner.cv {
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 12px;
  }
  .ov-studio .panel-head {
    padding: 12px 16px;
  }
  .ov-studio .panel-head h2 {
    font-size: 21px;
  }
  .ov-garage-tools {
    padding: 14px 16px 0;
  }
  .ov-search input {
    font-size: 12px;
  }
  .ov-filters {
    gap: 6px;
  }
  .ov-filters button {
    font-size: 10px;
    padding: 9px 10px;
    min-height: 40px;
  }
  .ov-garage-count {
    font-size: 9px;
    line-height: 1.5;
  }
  .ov-studio #cv-corps {
    padding: 0 16px 20px;
  }
  .ov-studio .cv-grille {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .ov-studio .cv-choisir > .cv-visuel {
    height: 90px;
  }
  .ov-studio .cv-nom {
    font-size: 12px;
    padding: 0 10px;
    line-height: 1.4;
  }
  .ov-studio .cv-sous {
    font-size: 9px;
    padding: 0 10px;
  }
  .ov-engine-specs {
    font-size: 8px;
    padding: 0 10px;
  }
  .ov-studio .cv-etat {
    font-size: 9px;
    margin: 4px 10px 0;
  }
  .ov-studio .cv-etoile {
    width: 40px;
    height: 40px;
    top: 4px;
    right: 4px;
  }
  .ov-engine-preview {
    font-size: 10px;
    padding: 12px 10px;
  }
  .ov-preview-status {
    bottom: 105px;
    font-size: 10px;
    gap: 10px;
    padding: 10px 12px;
    width: calc(100vw - 32px);
  }
  .ov-preview-status span {
    flex: 1;
  }
  .ov-studio .local-about {
    padding: 22px;
    max-height: calc(100dvh - 24px);
  }
  .ov-studio .local-about h1 {
    font-size: 30px;
  }
}
@media (max-height: 670px) and (min-width: 701px) {
  .ov-studio .bar {
    min-height: 56px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .ov-studio .stage {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .ov-instrument-heading h1 {
    font-size: 25px;
  }
  .ov-eyebrow {
    font-size: 8px;
  }
  .ov-telemetry {
    padding-top: 10px;
  }
  .ov-telemetry strong {
    font-size: 13px;
  }
  .ov-key-hint {
    display: none;
  }
  .ov-transport {
    min-height: 76px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .ov-transport #start,
  .ov-transport .pedal {
    min-height: 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ov-studio *,
  .ov-studio *::before {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.ov-studio .retro-big {
  inset: auto auto 94px 50%;
  height: 38px;
  width: auto;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
}
.ov-side-footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 14px 6px 0 0;
}
.ov-studio .ov-side-footer .local-fidelity {
  margin: 0;
}
.ov-studio .side {
  gap: 16px;
}
.ov-studio .cv-bouton > .cv-visuel {
  height: 108px;
}
.ov-studio .side-scroll {
  gap: 18px;
}
@media (max-width: 700px) {
  .ov-studio .retro-big {
    inset: auto auto 89px 50%;
    height: 34px;
  }
  .ov-studio .cv-bouton > .cv-visuel {
    height: 65px;
  }
  .ov-studio .side-scroll {
    gap: 22px;
  }
  .ov-studio .side {
    gap: 20px;
  }
  .ov-side-footer {
    padding: 16px 0 0;
    gap: 10px;
  }
  .ov-studio[data-focus="true"] .side {
    display: none;
  }
}
/* On phones, avoid repeating the engine card already named above the dial.
   The garage remains one tap away; volume travels with the fixed pedals. */
@media (max-width: 700px) {
  .ov-studio {
    padding-bottom: 139px;
  }
  .ov-studio .ov-selected {
    display: none;
  }
  .ov-studio #tacho {
    width: min(68vw, 280px);
    height: min(68vw, 280px);
  }
  .ov-studio .stage {
    gap: 18px;
    padding-top: 18px;
  }
  .ov-studio .side-scroll {
    gap: 18px;
  }
  .ov-transport {
    flex-wrap: wrap;
    gap: 8px;
    min-height: 124px;
    padding-top: 9px;
  }
  .ov-transport .local-volume {
    width: 100%;
    flex: 0 0 100%;
    height: 25px;
    gap: 12px;
    align-items: center;
  }
  .ov-transport .local-volume label {
    font-size: 10px;
    min-width: 45px;
  }
  .ov-transport .local-volume input {
    height: 24px;
  }
  .ov-transport .local-volume output {
    font-size: 10px;
  }
  .ov-transport .pedals {
    min-width: 0;
  }
  .ov-transport #start,
  .ov-transport .pedal {
    min-height: 58px;
  }
  .ov-preview-status {
    bottom: 140px;
  }
  .ov-studio[data-focus="true"] .stage {
    min-height: calc(100dvh - 206px);
  }
}
.ov-studio .ov-side-footer .local-offline {
  display: block;
  font-size: 9px;
  margin: 2px 0 0;
}
/* Compact vehicle displays prioritize controls over the repeated car photo. */
@media (max-height: 670px) and (min-width: 701px) {
  .ov-studio .ov-selected {
    display: none;
  }
  .ov-studio .side-scroll {
    gap: 14px;
  }
  .ov-studio .seg button {
    min-height: 40px;
  }
  .ov-studio .ov-details summary span {
    display: none;
  }
}
