/* AI Test Drive, the advisor drive screens: a minimal frame for the car on the design kit (docs/drive-screens.md).
   A slim bar in the organisation's colour (it runs up under the status bar), one column, big type, buttons in thumb
   reach. While driving: one big status and nothing else to read or tap. */
.dv { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--ground); }
.dv-top { background: var(--side-bg); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + var(--safe-top)) calc(16px + var(--safe-right)) 10px calc(16px + var(--safe-left)); font-weight: 600; min-height: 48px; }
.dv-org { font-family: var(--display); font-size: 17px; letter-spacing: var(--track-display, 0); display: inline-flex; align-items: center; }
.dv-org img { height: 26px; width: auto; display: block; }
.dv-top-r { position: relative; display: inline-flex; align-items: center; gap: 12px; font-size: 14px; }
.dv-top-status { opacity: 0.85; }
/* Report a problem in the bar: the kit's top-bar button, its form dropping down under it (kit.css .fb-pop). */
.dv-top .fb-top { font-size: 14px; min-height: 44px; min-width: 44px; }
.dv-main { flex: 1 1 auto; width: 100%; max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px;
  padding: 20px calc(16px + var(--safe-right)) calc(96px + var(--safe-bottom)) calc(16px + var(--safe-left)); }
.dv-h1 { font-family: var(--display); color: var(--heading); font-size: 28px; line-height: 1.15; margin: 0; }
.dv-sub { color: var(--ink-2); font-size: 16px; margin: -4px 0 0; }
.dv-note, .dv-foot { color: var(--muted); font-size: 15px; }
.dv-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
/* Back is an action, so it looks like one (Jamie, 16 November 2026): a pill with a back chevron, not plain text. */
.dv-back { align-self: flex-start; min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px; gap: 10px; font-weight: 600; color: var(--heading); }
.dv-back::before { content: ''; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 3px; }
.dv-mode { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mint-dark); }
.dv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dv-exp { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; min-height: 88px; }
.dv-exp b { font-size: 19px; color: var(--heading); font-family: var(--display); }
.dv-exp:hover { border-color: var(--line-hover); }
.dv-meta { color: var(--muted); font-size: 15px; }
.dv-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.dv-card h2 { font-size: 18px; margin: 0; color: var(--heading); }
.dv-card p, .dv-card li { font-size: 16px; }
.dv-card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.dv-read { border-left: 3px solid var(--mint); padding-left: 12px; font-style: italic; }
.dv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.dv-facts div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.dv-facts dt { font-size: 13px; color: var(--muted); }
.dv-facts dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.dv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dv-two .btn { white-space: normal; min-height: 52px; }
.dv-check { font-size: 16px; }
.dv-go { margin-top: 4px; }
.btn.block { width: 100%; }

/* ---------- getting ready and driving ---------- */
.dv-drive { display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; }
.dv-status { border-radius: 28px; min-height: 46vh; min-height: 46dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: #fff; background: var(--navy); transition: background-color .25s var(--ease); }
.getting-ready .dv-status { min-height: 30vh; min-height: 30dvh; }
.dv-word { font-family: var(--display); font-size: clamp(44px, 13vw, 76px); line-height: 1.02; font-weight: 700; letter-spacing: -0.01em; }
.dv-subw { font-size: 21px; font-weight: 600; opacity: 0.92; }
/* What the drive is on now, above what comes next (Tom, 18 November 2026). */
.dv-now { font-weight: 500; }
.dv-status.go { background: #1f7a52; }
.dv-status.talk { background: var(--navy); }
.dv-status.dir { background: #2453a6; }
.dv-status.amber { background: #f0b429; color: #1b1b1b; }
.dv-status.navy { background: var(--navy-2); }
:root[data-theme="dark"] .dv-status.talk, :root[data-theme="dark"] .dv-status.navy { background: #2e2b36; }
:root[data-theme="dark"] .dv-status.go { background: #17694a; }
.dv-weather { font-size: 16px; color: var(--ink-2); margin: 0; }
.dv-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dv-controls .btn { width: 100%; }
.dv-done { display: flex; flex-direction: column; gap: 16px; }
.dv-headline { font-size: 18px; color: var(--ink); }
.dv-points { list-style: none; padding: 0 !important; }
.dv-points li { display: flex; gap: 10px; align-items: flex-start; }
.dv-points small { display: block; color: var(--muted); font-size: 14px; }
.dv-foot .link-btn { min-height: 44px; }

/* The phone on its side in a holder: the status on the left, the checklist or controls on the right. */
@media (orientation: landscape) and (max-height: 520px) {
  .dv-main { max-width: none; padding-top: 12px; }
  .dv-drive { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
  .dv-status, .getting-ready .dv-status { min-height: calc(100dvh - 120px - var(--safe-top) - var(--safe-bottom)); grid-row: span 2; }
}
@media (prefers-reduced-motion: reduce) { .dv-status { transition: none; } }
/* The modes in plain words (issue #161): a short line in the list, the full words on getting ready and under the list. */
.dv-mode-short { font-weight: 500; text-transform: none; letter-spacing: 0; }
.dv-mode-facts { grid-template-columns: 1fr; margin-bottom: 4px; }
.dv-mode-facts dd { font-size: 15px; font-weight: 400; line-height: 1.45; }
.dv-modes { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 8px; }
.dv-modes summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--heading); }
.dv-modes dl { display: grid; gap: 12px; margin: 8px 0 0; }
.dv-modes dt { font-weight: 600; }
.dv-modes dd { margin: 2px 0 0; color: var(--ink-2); }
/* The training path, the recall check, the coaching points and the next step (issue #162). One column on a phone; on a
   big screen the home page and the debrief use two columns, so nothing is stretched across the width. */
.dv-h2 { font-family: var(--display); color: var(--heading); font-size: 21px; margin: 6px 0 0; }
.dv-cols, .dv-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dv-path h3 { margin: 0; font-size: 18px; color: var(--heading); font-family: var(--display); }
.dv-path-mode { color: var(--ink-2); font-size: 15px; }
.dv-path-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dv-path-head .pill { align-self: center; }
@media (max-width: 600px) { .dv-path .row-actions, .dv-path .row-actions .btn { width: 100%; } }
.dv-path b, .dv-coach b { font-size: 17px; color: var(--heading); }
.dv-path small, .dv-coach small { font-size: 14px; }
.dv-q { gap: 8px; }
.dv-q legend { font-size: 17px; font-weight: 600; color: var(--heading); line-height: 1.35; margin-bottom: 8px; }
.dv-q-n { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.dv-q label span { font-size: 16px; color: var(--ink); }
.dv-q + .dv-q { margin-top: 12px; }
.dv-why { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); }
.dv-recall .tile { align-self: stretch; }
.dv-next { box-shadow: inset 3px 0 0 var(--amber, #d97706); }
.dv-next h2 { font-family: var(--display); font-size: 21px; line-height: 1.2; }
.dv-next p { margin: 0; }
.dv-coach .dv-when { color: var(--muted); font-weight: 600; }
.dv-said { display: block; quotes: none; font-size: 15px; color: var(--ink-2); border-left: 3px solid var(--line-strong); padding-left: 10px; margin-top: 2px; }
.dv-said span { font-weight: 600; }
@media (min-width: 1100px) {
  .dv-main.wide { max-width: 1120px; padding-top: 32px; }
  .dv-main.wide .dv-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
}
/* The quiet screen while moving (issue #165): above walking pace, what is happening now in one big word on plain black
   or white, with the state as a thick coloured band (green listening, blue a direction, amber paused, grey the coach),
   nothing to read, and for a passenger a large Pause (or Resume) and End. The full screens come back once still. */
.dv-main:has(.dv-quiet) { padding-bottom: calc(16px + var(--safe-bottom)); }
/* 18 November 2026 (Jamie: "polish this a bit further and make it look a bit slicker"): the same cards, line and
   buttons as the rest of the drive screens, not a heavy outlined panel. A slim band in the state's colour, one steady
   word, and Pause and End as large buttons a passenger can hit. On a Coaching drive nothing changes as the coach talks
   or listens: the phone is effectively off. */
.dv-quiet { --q-band: #1f7a52; flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px;
  min-height: calc(100dvh - 48px - var(--safe-top) - 36px - var(--safe-bottom)); }
:root[data-theme="dark"] .dv-quiet { --q-band: #3fbf83; }
.dv-quiet.dir { --q-band: #1d4ed8; } :root[data-theme="dark"] .dv-quiet.dir { --q-band: #6ea2ff; }
.dv-quiet.talk, .dv-quiet.navy { --q-band: var(--navy); } :root[data-theme="dark"] .dv-quiet.talk, :root[data-theme="dark"] .dv-quiet.navy { --q-band: var(--accent, #6fa8ff); }
.dv-quiet.amber { --q-band: #b45309; } :root[data-theme="dark"] .dv-quiet.amber { --q-band: #f0b429; }
.dv-quiet-now { position: relative; overflow: hidden; flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  padding: 32px 22px; border-radius: 24px; background: var(--card); color: var(--heading); border: 1px solid var(--line); }
/* No coloured band (19 November 2026): the word says the state. */
.dv-quiet-word { font-family: var(--display); font-size: clamp(44px, 13vw, 76px); line-height: 1.05; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.dv-quiet-sub { font-size: 20px; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
.dv-quiet-where { font-size: 18px; color: var(--ink-2); }
.dv-quiet-note { font-size: 15px; color: var(--muted); max-width: 300px; }
.dv-quiet.has-bar { min-height: calc(100dvh - 48px - var(--safe-top) - 120px - var(--safe-bottom)); }
.dv-quiet-progress { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 320px; }
.dv-quiet-progress i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dv-quiet-progress i.on { background: var(--q-band); }
.dv-quiet.live .dv-quiet-now::before { animation: dv-breathe 3.2s ease-in-out infinite; }
@keyframes dv-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .dv-quiet.live .dv-quiet-now::before { animation: none; } }
.dv-quiet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Ending: Yes and Discard side by side, Carry on across the full width below. */
.dv-quiet-actions > :nth-child(3) { grid-column: 1 / -1; }
.dv-big { min-height: 76px; border-radius: 18px; font: 700 24px/1.1 var(--display); padding: 12px; cursor: pointer;
  background: var(--card); color: var(--heading); border: 1px solid var(--line-strong, var(--line)); touch-action: manipulation; }
.dv-big.primary { background: var(--btn-primary-bg); border-color: var(--btn-primary-bg); color: var(--btn-primary-text); }
.dv-big:focus-visible { outline: 3px solid var(--q-band); outline-offset: 3px; }
@media (orientation: landscape) and (max-height: 520px) {
  .dv-quiet { flex-direction: row; min-height: calc(100dvh - 48px - var(--safe-top) - 28px - var(--safe-bottom)); }
  .dv-quiet-now { flex: 1.4 1 0; }
  .dv-quiet-actions { flex: 1 1 0; grid-template-columns: 1fr; align-content: stretch; }
  .dv-big { min-height: 64px; }
}
/* A mode coming soon (its client's or prospect demo's choice): a quiet card in the list of drives, with its label and
   description, that cannot be started. Not a button, so it is never a target; the text keeps full contrast. */
/* Coming soon: the mode's own card at half strength, not tappable, no label (Jamie, 26 November 2026). */
.dv-mode-card.dv-soon { opacity: 0.5; cursor: default; pointer-events: none; }
/* The branded launch screen (splash.js): the brand's logo centred, light (white, the brand's own logo) or dark (the brand
   colour, its logo for dark backgrounds), with clear space round the logo of at least the logo's height (--splash-h on
   every side), clear of the safe areas, and "DriveCoach by Boundless" small at the foot with DriveCoach.io under it as a link. Over everything until the first
   screen is ready, then faded out. */
html.dv-splashing, html.dv-splashing body { background: var(--splash-under, var(--splash-bg)); }
/* The kit's strip over the status bar takes the splash colour too, so the status bar matches it while it shows. */
html.dv-splashing body::before { background: var(--splash-under, var(--splash-bg)) !important; }
.dv-splash { --splash-h: clamp(44px, 9vh, 84px); position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--splash-bg, #ffffff); color: var(--splash-text, #5c5966); transition: opacity 0.24s ease;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.dv-splash.out { opacity: 0; pointer-events: none; }
.dv-splash-mark { padding: var(--splash-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--splash-h) * 0.2); max-width: 100%; }
.dv-splash-name { font-family: var(--display); font-size: clamp(17px, 2.4vh, 22px); font-weight: 600; letter-spacing: 0.01em; color: inherit; opacity: 0.95; }
.dv-splash-mark img { display: block; height: var(--splash-h); width: auto; max-width: min(360px, calc(100vw - 2 * var(--splash-h) - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); object-fit: contain; }
.dv-splash-mark b { font-family: var(--display); font-size: 28px; line-height: var(--splash-h); }
.dv-splash-by { position: absolute; left: 0; right: 0; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); margin: 0; text-align: center; font-size: 13px; letter-spacing: 0.02em; color: var(--splash-text, #5c5966); }
.dv-splash-by span { display: block; }
.dv-splash-by a { display: inline-block; min-height: 44px; line-height: 44px; padding: 0 16px; color: inherit; text-decoration: underline; text-underline-offset: 3px; opacity: 0.85; }
/* In the DriveCoach app: a quick fade in from the app's own launch screen (splash.js; --splash-under holds the page on
   the app's plain colour until it has faded in). */
.dv-splash.fade-in { animation: dv-splash-in 0.2s ease-out backwards; }
@keyframes dv-splash-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dv-splash { transition: none; } .dv-splash.fade-in { animation: none; } }
/* The sound check's calm screen (drive.js SoundScreen). */
.dv-sound h2 { margin: 0 0 6px; font-size: 20px; }
.dv-sound p { margin: 0 0 10px; }
.dv-sound-tips { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.dv-listen-only { margin: 0; }

/* Home's mode cards, Select your vehicle and the demo flows (Jamie, 11 November 2026). */
.dv-mode-card { flex-direction: row; align-items: center; gap: 16px; min-height: 112px; }
.dv-mode-card:disabled { cursor: default; opacity: 1; }
.dv-mode-card:disabled .dv-mode-icon, .dv-mode-card:disabled .dv-chev { opacity: 0.45; }
.dv-mode-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--heading); color: var(--card); display: flex; align-items: center; justify-content: center; }
.dv-mode-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dv-mode-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dv-mode-card b { font-size: 22px; }
.dv-chev { flex: none; font-size: 24px; line-height: 1; color: var(--muted); }
.dv-vehicle { min-height: 88px; justify-content: center; }
.dv-demo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.dv-demo-map { padding: 12px; color: var(--ink); }
.dv-demo-map svg { display: block; width: 100%; height: auto; }
.dv-demo-map g.on circle { fill: var(--heading); }
.dv-demo-map g.on text { fill: var(--card); }
.dv-demo-map g.off circle { fill: var(--card); stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 3; }
.dv-demo-map g.off text { fill: var(--ink-2); }
.dv-demo-map text { font-size: 12px; font-weight: 600; }
.dv-demo-here { fill: var(--mint-dark); }
.dv-demo-points { list-style: none; margin: 0; padding: 0; }
.dv-demo-points li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; border-top: 1px solid var(--line); }
.dv-demo-points li:first-child { border-top: 0; }
.dv-demo-points .n { flex: none; width: 20px; font-size: 13px; color: var(--muted); }
.dv-demo-points .t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; font-size: 16px; }
.dv-demo-points .t small { color: var(--ink-2); font-size: 14px; }
.dv-demo-rec { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; }
.dv-demo-rec .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint-dark); }
.dv-person { flex-direction: row; align-items: flex-start; gap: 14px; }
.dv-person-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dv-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--heading); color: var(--card); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 19px; font-weight: 600; }
/* A customer's picture (16 November 2026): round, the face kept in view. big: on getting ready. */
.dv-avatar.pic { object-fit: cover; object-position: center top; padding: 0; }
.dv-avatar.big { width: 64px; height: 64px; font-size: 24px; }
.dv-prepare-person { display: flex; align-items: center; gap: 14px; margin: 0; }
.dv-statement { font-size: 19px; line-height: 1.5; color: var(--ink); margin: 0; }
.dv-sign { display: flex; flex-direction: column; gap: 6px; }
.dv-sign-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.dv-sign-label { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.dv-sign-pad { width: 100%; height: 190px; border-radius: var(--radius); border: 1px solid var(--line-hover); background: var(--card); color: var(--ink); touch-action: none; }

/* Pictures (November 2026): a vehicle's picture where it is chosen and on getting ready, and the launch picture behind
   the launch screen with the logo on a panel over it. */
.dv-vehicle-pic, .dv-prepare-pic { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--line); }
.dv-vehicle-pic { margin-bottom: 8px; }
.dv-prepare-pic { border-radius: var(--radius); }
.dv-pic-wait { opacity: 0.6; }
.dv-wordmark { display: inline-flex; flex-direction: column; line-height: 1.05; }
.dv-wordmark b { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.dv-wordmark small { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.dv-splash-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Over a launch picture (17 November 2026): no panels. The logo near the top with "DriveCoach" under it, white, on a soft
   shade at the top of the picture; "by Boundless" and the link at the foot on a shade at the bottom. */
.dv-splash.pic { justify-content: flex-start; padding-top: calc(env(safe-area-inset-top, 0px) + 14vh); color: #ffffff; }
.dv-splash.pic::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.18) 34%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, 0.55) 100%); }
.dv-splash.pic .dv-splash-mark, .dv-splash.pic .dv-splash-by { position: relative; z-index: 2; color: #ffffff; }
.dv-splash.pic .dv-splash-mark img { filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35)); }
.dv-splash.pic .dv-splash-by { position: absolute; }
/* Free drive (16 November 2026): a small, quiet link under the routes, a full 44 point target. */
.dv-free-note { margin-top: 8px; }
/* A simulated drive (16 November 2026, testing at a desk): a quiet bar with the car's controls, 44 point targets. */
.dv-sim { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.dv-sim-word { margin: 0 0 8px; font-size: 14px; }
.dv-sim-word b { margin-right: 6px; }
.dv-sim-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dv-sim-actions .btn { min-height: 44px; }
.dv-quiet .dv-sim { position: relative; z-index: 2; }
/* Polish, 16 November 2026 (Jamie: more spacing, nothing that is not a button looking like one, sign out at the very
   bottom, a simpler getting ready). Home: the mode cards a little roomier, sign out at the foot of the screen. */
.dv-mode-cards { gap: 14px; }
.dv-mode-card { padding: 20px; }
.dv-home-foot { margin-top: auto; padding-top: 32px; color: var(--muted); font-size: 14px; }
.dv-main:has(.dv-home-foot) { padding-bottom: calc(16px + var(--safe-bottom)); }
/* Getting ready: plain rows, not boxes; one clear choice for how to drive; the fact sheet a quiet link. */
.dv-prep-head { display: flex; flex-direction: column; gap: 6px; }
.dv-prep-meta { margin: 0; color: var(--ink-2); font-size: 15px; }
.dv-label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.dv-prep-customer { display: flex; flex-direction: column; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dv-sofar { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
.dv-spec { margin: 0; display: flex; flex-direction: column; }
.dv-spec div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dv-spec dt { flex: none; font-size: 15px; color: var(--muted); }
.dv-spec dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); text-align: right; }
.dv-how { border: 0; padding: 0; margin: 0; min-width: 0; }
.dv-seg { display: flex; width: 100%; }
.dv-seg button { flex: 1 1 0; justify-content: center; min-height: 44px; font-size: 15px; }
.dv-sim-pick { padding: 2px 0; }
.fact-sheet-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; text-align: left; }
.dv-consent { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; }
.dv-consent p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.dv-consent .dv-read { color: var(--ink); }
/* A client's or a prospect's own brand, in dark mode too (16 November 2026): dark mode keeps the brand's colour for the
   top bar and the status bar, the mode icons and the main button, and tints the ground and cards with it, so the app
   still looks like theirs after the launch screen. Light mode already takes these from the brand. */
:root[data-branded][data-theme="dark"] {
  --side-bg: var(--navy);
  --ground: color-mix(in srgb, var(--navy) 16%, #0c0c10);
  --card: color-mix(in srgb, var(--navy) 20%, #17171d);
  --line: color-mix(in srgb, var(--navy) 30%, #2d2b35);
  --surface-2: color-mix(in srgb, var(--navy) 26%, #24222b);
}
:root[data-branded][data-theme="dark"] .dv-mode-icon { background: var(--navy); color: #ffffff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
/* A client's brand on the dark screens uses both its colours (Jamie, 19 November 2026: "use it as a secondary accent in
   the right places - we need to use both colours"). The main colour (Hyundai Blue) for the top bar and the main
   buttons, edged in the accent so they stand off a near-black screen; the accent (Hyundai's Active Blue) for what is
   chosen or live: the chosen route and option, the radio dot, the microphone's level, the route line and the car. */
:root[data-branded][data-theme="dark"] .btn.primary { background: var(--navy); color: #ffffff; }
:root[data-branded][data-theme="dark"] .btn.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--navy) 80%, var(--accent-fill)); }
/* Solid buttons, no borders, on the drive screens (Jamie, 26 November 2026): the brand's colour for the main action, a
   solid second shade for the rest. */
.dv .btn, .dv .btn:hover { border-color: transparent; }
.dv .btn:not(.primary):not(.quiet):not(.danger):not(.danger-fill):not(.accent) { background: var(--surface-2, rgba(127, 127, 127, 0.14)); }
:root[data-branded][data-theme="dark"] .dv-seg button[aria-pressed="true"] { background: var(--navy); color: #ffffff; box-shadow: inset 0 0 0 1.5px var(--accent-fill); }
:root[data-branded] .dv-meter > span { background: var(--accent-fill); }
.dv-how legend { padding: 0; }
.dv-seg button[aria-pressed="true"] { box-shadow: 0 1px 3px rgba(20, 25, 50, 0.16), inset 0 0 0 1px var(--line-strong); }
:root[data-branded][data-theme="dark"] .dv-top .fb-launch { background: rgba(255, 255, 255, 0.14); color: #ffffff; border-color: rgba(255, 255, 255, 0.22); }
/* Drive ended (16 November 2026): a calm close, then three plain choices. */
.dv-ended { display: flex; flex-direction: column; gap: 28px; padding-top: 12px; }
.dv-ended-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.dv-ended-tick { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--good-wash); color: var(--good-dark); }
.dv-ended-head .dv-h1 { margin: 6px 0 0; }
.dv-ended-sub { margin: 0; color: var(--ink-2); font-size: 17px; }
.dv-ended-actions { display: flex; flex-direction: column; gap: 12px; }
.dv-discard { color: var(--red-dark); font-weight: 600; min-height: 48px; }
.dv-discard-ask { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 16px; background: var(--red-wash); }
.dv-discard-ask p { margin: 0; color: var(--ink); }
.dv-discard-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* What the phone last heard (16 November 2026), parked only: shows at once whether the voice is getting through. */
.dv-heard { margin: 0; font-size: 15px; color: var(--ink-2); text-align: center; }
.dv-heard q { color: var(--heading); font-weight: 600; }
/* What can be said (voiceHints): a short lead and the words as quiet pills, never on the moving screen. */
.dv-voice { display: grid; gap: 8px; justify-items: center; text-align: center; color: var(--ink-2); font-size: 14px; }
.dv-voice ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dv-voice li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--heading); font-weight: 600; font-size: 14px; }
.dv-voice small { font-size: 13px; color: var(--ink-3, var(--ink-2)); }
/* Getting ready (Jamie, 16 November 2026): a visual sound check like joining a call, the checklist to read, then Start.
   Nothing is said until Start. */
.getting-ready .dv-status { min-height: 0; padding: 22px 20px; border-radius: 22px; }
.getting-ready .dv-status .dv-word { font-size: 30px; }
.dv-check, .dv-checklist { display: flex; flex-direction: column; gap: 14px; }
/* The safety notice before Start (27 November 2026): read and accepted; a ring when Start was pressed first. */
.dv-safety { display: flex; flex-direction: column; gap: 12px; }
.dv-safety h2, .dv-safety p { margin: 0; }
.dv-safety p { color: var(--ink); font-size: 16px; line-height: 1.45; }
.dv-safety.asked { outline: 2px solid var(--line-strong); outline-offset: 2px; }
.dv-safety .dv-safety-ok { color: var(--ink-2); font-size: 15px; }
.dv-check h2, .dv-checklist h2 { margin: 0; }
.dv-check-row { display: flex; align-items: center; gap: 14px; }
.dv-check-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--heading); }
.dv-check-row.ok .dv-check-icon { background: var(--good-wash); color: var(--good-dark); }
.dv-check-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dv-check-main b { color: var(--heading); font-size: 16px; }
.dv-check-main small { color: var(--ink-2); font-size: 14px; }
.dv-check-main small q { color: var(--heading); font-weight: 600; }
.dv-check-ok { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--good); color: #fff; font-size: 15px; font-weight: 700; }
.dv-meter { display: block; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.dv-meter > span { display: block; height: 100%; border-radius: inherit; background: var(--good); transition: width .1s linear; }
.dv-checklist ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dv-checklist li { position: relative; padding-left: 22px; color: var(--ink); font-size: 16px; }
.dv-checklist li::before { content: ''; position: absolute; left: 4px; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); }
/* Picking the route (17 November 2026, route-pick.js): the map on top, the list to choose from under it. */
.dv-routes { display: flex; flex-direction: column; gap: 12px; }
.dv-routes, .dv-route-list, .dv-route-chosen, .dv-ways, .dv-gen { --route-on: var(--navy); --route-off: #9aa1ad; }
:root[data-theme="dark"] :is(.dv-routes, .dv-route-list, .dv-route-chosen, .dv-ways, .dv-gen) { --route-on: var(--accent-fill, #6fa8ff); --route-off: #7d8494; }
.dv-routes h2 { margin: 0; }
.dv-map-wrap { border-radius: 18px; overflow: hidden; background: var(--surface-2); }
.dv-map { display: block; width: 100%; height: clamp(220px, 38vh, 380px); }
.dv-map-sketch polyline { cursor: pointer; }
.dv-map-here { fill: #2f7cf6; stroke: #ffffff; stroke-width: 2; }
.dv-route-list { display: flex; flex-direction: column; gap: 8px; }
.dv-route { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 16px; text-align: left; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.dv-route.on { border-color: var(--route-on); box-shadow: inset 0 0 0 1px var(--route-on); }
.dv-route-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong, var(--ink-2)); position: relative; }
.dv-route.on .dv-route-dot { border-color: var(--route-on); }
.dv-route.on .dv-route-dot::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--route-on); }
.dv-route-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dv-route-text b { color: var(--heading); font-size: 16px; }
.dv-route-text small { color: var(--ink-2); font-size: 14px; }
/* How will you drive? (21 November 2026): two equal cards, a picture on each, filling the screen between the title
   and Continue; side by side in landscape. */
.dv-ways { flex: 1; display: grid; grid-template-rows: 1fr 1fr; gap: 12px; min-height: 0; }
.dv-way { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 16px; min-height: 170px; padding: 20px; border-radius: 18px; }
.dv-way.on { border-width: 2px; box-shadow: none; }
.dv-way-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 16px;
  background: color-mix(in srgb, var(--route-on) 14%, transparent); color: var(--route-on); }
.dv-way .dv-route-text b { font-family: var(--display); font-size: 21px; }
.dv-way .dv-route-text small { font-size: 15px; line-height: 1.45; }
@media (orientation: landscape) and (max-height: 600px) { .dv-ways { grid-template-rows: none; grid-template-columns: 1fr 1fr; } .dv-way { min-height: 0; } }
/* Choose your route (21 November 2026): Preset routes (named so 23 November 2026) or Generate one, as two tabs; the lengths as chips. */
.dv-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.dv-tab { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.dv-tab.on { background: var(--card); color: var(--heading); font-weight: 700; box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
.dv-gen { display: flex; flex-direction: column; gap: 12px; }
.dv-gen .dv-map { height: clamp(200px, 30vh, 320px); }
.dv-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dv-chip { min-height: 44px; border-radius: 999px; border: 1px solid var(--line-strong, var(--line)); background: var(--card); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.dv-chip.on { border-color: var(--route-on); box-shadow: inset 0 0 0 1px var(--route-on); color: var(--heading); font-weight: 700; }
.dv-chip:disabled { opacity: 0.6; cursor: default; }
.dv-route-go-in.dv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Free drive under the routes (21 November 2026): a small link, not a third choice. */
.dv-free-link { align-self: flex-start; min-height: 44px; padding: 0 2px; background: none; border: 0; color: var(--link, var(--route-on)); text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: 15px; cursor: pointer; }
.fact-sheet-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
/* The top bar with a client's logo (17 November 2026): the logo a little smaller, and "DriveCoach" under it. */
.dv-brandmark { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1; }
.dv-brandmark img { height: 20px; width: auto; display: block; }
.dv-brandmark small { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; opacity: 0.85; }
/* The route screen (17 November 2026): the map in the top half, the list under it, Select route held at the foot. */
.dv-route-go { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); margin-top: auto; background: linear-gradient(to bottom, transparent, var(--ground) 30%); }
.dv-routes .dv-map { height: clamp(240px, 45vh, 460px); }
/* Getting ready: the route chosen, in one line, with Change when there was a choice. */
.dv-route-chosen { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.dv-route-chosen .dv-label { margin-bottom: 2px; }
/* Continue fixed at the foot of the route steps (17 November 2026), over a space so nothing hides under it. */
.dv-foot-space { height: calc(88px + env(safe-area-inset-bottom, 0px)); flex: none; }
.dv-route-go { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px calc(16px + env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
  background: var(--ground); border-top: 1px solid var(--line); margin: 0; }
.dv-route-go-in { max-width: 600px; margin: 0 auto; }
.dv-map-why { margin: 0; font-size: 13px; color: var(--ink-2); }
/* The rest of the range, greyed out (17 November 2026): faded, not tappable. */
.dv-showcase { margin-top: 4px; }
.dv-vehicle-off { opacity: 0.42; filter: grayscale(0.7); pointer-events: none; cursor: default; }
/* A vehicle's picture (19 November 2026): a photo fills the top of the card edge to edge, as it used to; a three-quarter
   cut-out (Jamie, 17 November 2026) is shown whole on the card itself. Which it is, the picture says (cutout, in drive.js). */
.dv-vehicle .dv-vehicle-pic { width: calc(100% + 32px); max-width: none; margin: -16px -16px 10px; border-radius: var(--radius) var(--radius) 0 0; object-fit: cover; }
.dv-vehicle .dv-vehicle-pic.cutout { width: 100%; margin: 0 0 8px; border-radius: 12px; object-fit: contain; background: transparent; }
/* A desk test's car screen (site/car-view.js; Tom, 18 November 2026). */
.dv-view-toggle { display: inline-flex; gap: 0; margin: 0 0 8px; border: 1px solid var(--line, #c9ced8); border-radius: 999px; overflow: hidden; }
.dv-view-toggle button { min-height: 44px; padding: 0 16px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 15px; }
.dv-view-toggle button[aria-pressed="true"] { background: var(--navy, #1f3b73); color: #fff; }
.dv-carview { position: relative; margin: 0 0 8px; }
.dv-carview-map { display: block; width: 100%; height: min(52vh, 420px); border-radius: 14px; overflow: hidden; background: var(--surface-2, rgba(127, 127, 127, 0.08)); }
.dv-carview-next { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2; margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(20, 22, 27, 0.86); color: #fff; font-size: 15px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.dv-carview-next span { opacity: 0.75; font-size: 13px; }
.dv-carview-note { margin: 6px 0 0; font-size: 13px; opacity: 0.7; }
/* A desk simulation's screen (DeskView; 18 November 2026): made to be read. A fixed layout (Jamie, 26 November 2026:
   "the buttons move up and down"): the screen's height, the map taking what is left, every other region its own size. */
.dv-desk { display: flex; flex-direction: column; gap: 12px; box-sizing: border-box; height: calc(100dvh - 48px - var(--safe-top) - 12px - 16px); }
.dv-desk > * { flex: none; }
.dv-desk > .dv-desk-map { flex: 1 1 auto; min-height: 140px; display: flex; flex-direction: column; }
.dv-desk > .dv-desk-map .dv-carview { flex: 1 1 auto; display: flex; flex-direction: column; }
.dv-desk > .dv-desk-map .dv-carview-map { flex: 1 1 auto; height: auto; min-height: 140px; }
/* The desk screen (approved mock-up, 19 November 2026): the map first, one card, what was just said, the controls. */
.dv-desk-map { position: relative; }
.dv-desk-map .dv-carview { margin: 0; }
.dv-desk-map .dv-carview-map { height: min(34vh, 260px); }
.dv-desk-map.full .dv-carview-map { height: calc(100dvh - 48px - var(--safe-top) - 96px - var(--safe-bottom)); }
.dv-map-size { position: absolute; right: 10px; bottom: 10px; z-index: 3; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--line-strong, var(--line)); background: var(--card); color: var(--heading); cursor: pointer; }
.dv-desk-map.full ~ * { display: none; }
.dv-desk-card { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.dv-desk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dv-state { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--navy-wash, rgba(31, 59, 115, 0.12)); color: var(--heading); }
.dv-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dv-state.go { background: rgba(31, 122, 82, 0.14); color: #1f7a52; } :root[data-theme="dark"] .dv-state.go { color: #7fdab6; }
.dv-state.amber { background: rgba(180, 83, 9, 0.14); color: #9a4a08; } :root[data-theme="dark"] .dv-state.amber { color: #f5cb78; }
.dv-desk-left, .dv-desk-small { font-size: 14px; color: var(--muted); }
.dv-desk-small { margin: 0; }
.dv-desk-line { margin: 0; display: grid; grid-template-columns: 3.8em 1fr; gap: 12px; align-items: baseline; font-size: 17px; }
.dv-desk-line .dv-label { margin: 0; font-size: 14px; color: var(--muted); }
.dv-desk-line b, .dv-desk-said p { white-space: normal; overflow-wrap: anywhere; }
.dv-desk-prog { display: flex; flex-direction: column; gap: 6px; }
.dv-bar { display: flex; gap: 4px; }
.dv-bar i { flex: 1 1 0; height: 6px; border-radius: 3px; background: var(--line-strong, var(--line)); }
.dv-bar i.on { background: #1f7a52; } :root[data-theme="dark"] .dv-bar i.on { background: #3fbf83; }
.dv-desk-said { margin: 0; padding: 12px 16px; border-radius: 16px; background: var(--surface-2, rgba(127, 127, 127, 0.08)); box-sizing: border-box; height: 132px; overflow-y: auto; }
/* The timeline (Jamie, 26 November 2026): the drive's phases filling as their points are said, and the points coming up
   sliding towards Now. */
.dv-tl { display: flex; flex-direction: column; gap: 6px; }
.dv-tl-bars, .dv-tl-names { display: grid; gap: 3px; }
.dv-tl-seg { height: 6px; border-radius: 3px; background: var(--line-strong, var(--line)); overflow: hidden; }
.dv-tl-seg i { display: block; height: 100%; background: #1f7a52; transition: width .6s var(--ease, ease); }
:root[data-theme="dark"] .dv-tl-seg i { background: #3fbf83; }
.dv-tl-names span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-tl-names span.now { color: var(--heading); font-weight: 700; }
.dv-tl-strip { position: relative; height: 56px; margin-top: 4px; border-top: 1px solid var(--line); overflow: hidden; }
.dv-tl-line { position: absolute; left: 17%; top: 0; bottom: 0; width: 2px; background: var(--accent-fill, #00aad2); }
.dv-tl-now { position: absolute; left: 0; top: 8px; width: 16%; display: flex; flex-direction: column; gap: 2px; }
.dv-tl-now .dv-label { margin: 0; font-size: 12px; color: var(--muted); }
.dv-tl-now b { font-size: 12px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dv-tl-next { position: absolute; top: 8px; display: grid; grid-template-columns: 10px auto; column-gap: 6px; max-width: 30%; transition: left .9s var(--ease, ease); }
.dv-tl-next i { grid-row: 1 / 3; width: 10px; height: 10px; margin-top: 3px; border-radius: 50%; background: var(--heading); }
.dv-tl-next.later i { background: var(--muted); }
.dv-tl-next b { font-size: 13px; line-height: 1.25; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dv-tl-next small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-tl-next.later b { font-weight: 500; color: var(--muted); }
.dv-desk-said p { margin: 4px 0 0; font-size: 16px; line-height: 1.45; }
.dv-desk-who { font-size: 14px; font-weight: 700; color: var(--heading); }
.dv-desk .dv-sim { padding: 0; border: 0; background: transparent; }
/* Skip back, the car's stop or go, and Skip ahead: as many equal buttons as are shown, in one row (23 November 2026). */
.dv-desk .dv-sim-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 4px; }
.dv-desk .dv-sim-actions .btn { padding-left: 8px; padding-right: 8px; }
.dv-desk .dv-sim-actions .btn:only-child { grid-column: 1 / -1; }
/* The drive's buttons: a bar fixed to the bottom of every drive screen, above the home bar (Jamie, 19 November 2026). */
.dv-actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  padding: 12px calc(16px + var(--safe-right)) calc(12px + var(--safe-bottom)) calc(16px + var(--safe-left));
  background: var(--ground); border-top: 1px solid var(--line); }
@media (min-width: 640px) { .dv-actionbar { padding-left: calc(50vw - 284px); padding-right: calc(50vw - 284px); } }
.dv-actionbar .btn { min-height: 52px; margin: 0; }
.dv-actionbar.confirm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dv-actionbar.confirm > :nth-child(3) { grid-column: 1 / -1; }
.dv-actionbar .notice { grid-column: 1 / -1; margin: 0; }
.has-bar { padding-bottom: calc(84px + var(--safe-bottom)); }
.dv-main:has(.has-bar) { padding-bottom: 16px; }
/* On the move the bar's buttons are larger, for a passenger in a moving car (issue #165). */
.dv-actionbar.dv-quiet-actions .btn { min-height: 72px; font-size: 20px; }
.dv-desk-map .dv-carview-note { display: none; }
/* Buttons, one standard (Jamie, 19 November 2026: "standardise the height of the buttons, or at least have a standard
   hierarchy"): a main action (the bottom bar, the step's Continue, a choice that moves on) 52 points; every other
   button 44 (the touch target, small ones too); on the move 72, for a passenger. Primary filled, secondary outlined,
   quiet as text. */
.dv { --btn-main: 52px; --btn: 44px; --btn-moving: 72px; }
.dv .btn { min-height: var(--btn); }
.dv .btn.small { min-height: var(--btn); }
.dv .btn.large { min-height: var(--btn-main); font-size: 17px; border-radius: 12px; }
.dv-two .btn, .dv-actionbar .btn { min-height: var(--btn-main); }
.dv-actionbar.dv-quiet-actions .btn, .dv-big { min-height: var(--btn-moving); }
/* The desk map's point labels (car-view.js): short, light, with a dark halo so they read over the muted map. */
.dv-carview-label { font: 600 12px/1.2 var(--font, system-ui); fill: #e8eaee; color: #e8eaee; paint-order: stroke; stroke: rgba(14, 16, 20, 0.85); stroke-width: 3px; text-shadow: 0 0 3px rgba(14, 16, 20, 0.95), 0 0 2px rgba(14, 16, 20, 0.95); }

/* Loading test drive (Jamie, 26 November 2026): a bar, not a count of voice clips. */
.dv-loading { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.dv-loading-bar { display: block; height: 6px; border-radius: 3px; background: var(--line-strong, var(--line)); overflow: hidden; }
.dv-loading-bar i { display: block; height: 100%; background: var(--accent-fill, #00aad2); transition: width .4s ease; }
.dv-loading-word { font-size: 15px; color: var(--muted); }
