.driver-coach-page { position: relative; padding: 16px; }
.driver-header { position: relative; z-index: 2; }
.driver-home {
  position: absolute;
  top: clamp(24px, 5vh, 52px);
  left: clamp(24px, 4.8vw, 80px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.driver-home-mark {
  display: block;
  width: 48px;
  height: 28px;
  background: currentColor;
  -webkit-mask: url("../assets/ronivo-icon.svg") center / contain no-repeat;
  mask: url("../assets/ronivo-icon.svg") center / contain no-repeat;
}
.driver-home-wordmark {
  font-family: "Ronivo Petrona", "Petrona", serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.125;
  letter-spacing: -.04em;
}
.driver-home:hover { color: #333; }
.driver-home:focus-visible { outline: 2px solid #525252; outline-offset: 6px; border-radius: 2px; }
.driver-scene {
  position: relative;
  width: min(100%, calc((100vh - 32px) * 1.5987903226), 1586px);
  width: min(100%, calc((100dvh - 32px) * 1.5987903226), 1586px);
  aspect-ratio: 1586 / 992;
  margin: 0;
}
.driver-art { display: block; width: 100%; height: 100%; object-fit: contain; }
.driver-light-plane { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.driver-tap-light { animation: tap-sense-pulse 2.6s ease-in-out infinite; }
.driver-status-light { animation: status-led-blink 2.6s ease-in-out infinite; }
@keyframes tap-sense-pulse {
  0%, 12% { opacity: 0; }
  30%, 46% { opacity: 1; }
  68%, 100% { opacity: 0; }
}
@keyframes status-led-blink {
  0%, 32% { opacity: 0; }
  52%, 74% { opacity: 1; }
  90%, 100% { opacity: 0; }
}
@media (max-width: 600px) {
  .driver-home { top: max(24px, env(safe-area-inset-top)); left: max(24px, env(safe-area-inset-left)); gap: 10px; }
  .driver-home-mark { width: 40px; height: 24px; }
  .driver-home-wordmark { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .driver-tap-light, .driver-status-light { animation: none; opacity: .8; }
}

/* Home sample: native DOM is uniformly contained in the unchanged artwork screen. */
.phone-screen { position: absolute; left: 65.8259773%; top: 8.5685484%; width: 25.0315259%; height: 81.9556452%; overflow: hidden; border-radius: 13.1% / 6.4%; background: #fff; clip-path: url(#phone-screen-clip); }
.phone-ui { position: absolute; top: 0; left: 0; width: 390px; height: 844px; transform-origin: top left; display: flex; flex-direction: column; background: #fff; color: #1a1a1a; font: 14px/21px var(--system-font); }
.phone-ui button, .phone-ui input { font: inherit; }
.phone-ui button, .phone-ui a { -webkit-tap-highlight-color: transparent; }
.phone-ui button { color: inherit; cursor: pointer; }
.phone-ui button:disabled { cursor: default; }
.phone-ui a { color: inherit; text-decoration: none; }
.phone-ui :focus-visible { outline: 2px solid #444; outline-offset: 3px; }
.phone-ui [hidden] { display: none !important; }
.phone-status { position: relative; flex: 0 0 68px; padding: 19px 19px 0; display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; letter-spacing: -.3px; }
.status-symbols { font-size: 12px; letter-spacing: -1px; padding-right: 1px; }
.status-symbols .wifi { margin: 0 3px; font-size: 14px; }
.app-header { flex: 0 0 40px; padding: 0 14px 4px; display: flex; align-items: center; justify-content: space-between; }
.app-header strong { font-size: 15px; font-weight: 600; }
.sample-label { color: #737373; font-size: 12px; }
.home-link { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.home-link > span { font-size: 30px; line-height: 28px; margin-top: -3px; }
.phone-content { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 8px 12px 14px; scroll-behavior: auto; }
.phone-nav { flex: 0 0 64px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #e6e6e3; background: #fff; padding: 8px 8px 0; }
.nav-item { border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px !important; line-height: 15px !important; color: #737373 !important; }
.nav-item svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active { color: #111 !important; font-weight: 500; }
.nav-item.active svg { fill: currentColor; stroke-width: 1; }
.home-indicator { flex: 0 0 20px; position: relative; background: #fff; }
.home-indicator::after { content: ''; position: absolute; width: 128px; height: 4px; border-radius: 3px; left: 50%; top: 9px; transform: translateX(-50%); background: #121212; }
.phone-ui h1 { font-family: 'Ronivo Petrona', Petrona, Georgia, serif; text-align: left; color: #292823; font-size: 30px; font-weight: 600; line-height: 34px; letter-spacing: -.04em; }
.phone-ui h2, .phone-ui h3, .phone-ui p { margin: 0; }
.phone-ui h2 { font-size: 21px; line-height: 27px; font-weight: 500; letter-spacing: -.03em; }
.phone-ui .muted { color: #737373; }
.module { border: 1px solid #dededb; border-radius: 6px; overflow: hidden; background: #fff; }
.module + .module, .module + .ask-entry { margin-top: 12px; }
.module-strip { width: 100%; border: 0; border-radius: 0; background: #efefed; padding: 7px 14px; min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #4d4d4d !important; font-size: 16px !important; line-height: 22px !important; font-weight: 500; text-align: left; }
.module-body { padding: 12px 14px; }
.module-button { display: block; width: 100%; padding: 0; border: 0; background: #fff; text-align: left; }
.module-button:hover { background: #fdfdfc; }
.chevron { font-size: 25px; font-weight: 300; color: #737373; line-height: 19px; }
.primary { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 49px; border: 1px solid #1a1a1a; border-radius: 6px; background: #1a1a1a; color: #fff !important; font-size: 16px !important; font-weight: 500 !important; padding: 10px 14px; width: 100%; }
.primary:hover { background: #2b2b2b; }
.primary:active, .ask-entry:active, .module-button:active { opacity: .85; }
.primary:disabled { opacity: .65; }
.primary.is-recording { background: #286b4c; border-color: #286b4c; }
.tap-symbol { width: 29px; height: 27px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2.6; }
.check-helper { font-size: 12px; line-height: 18px; color: #737373; text-align: center; margin-top: 8px !important; }
.check-result { text-align: center; color: #287449; font-size: 13px; line-height: 19px; margin-top: 7px !important; }
.recording-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #23aa59; margin-right: 7px; flex: 0 0 auto; }
.recording-label { display: flex; align-items: center; }
.recording-strip { border: 1px solid #e3e3df; border-radius: 6px; background: #efefed; padding: 7px 13px; color: #4d4d4d; margin-bottom: 16px; font-size: 13px; display: flex; align-items: center; min-height: 34px; }
.greeting { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 2px 16px; }
.greeting p { font-size: 11px; color: #737373; white-space: nowrap; }
.session-meta { margin-top: 3px !important; color: #737373; font-size: 13px; line-height: 20px; }
.turn-map { display: block; width: 100%; border-radius: 5px; background: #e8e8e6; }
.home-map { margin-top: 12px; height: 132px; }
.feedback-note { font-size: 14px; line-height: 21px; }
.feedback-source { margin-top: 2px !important; font-size: 11px; line-height: 18px; color: #737373; }
.ask-entry { width: 100%; border: 1px solid #dededb; border-radius: 6px; display: flex; align-items: center; gap: 13px; padding: 11px 14px; min-height: 48px; background: #fff; text-align: left; font-size: 16px !important; }
.ask-entry .chevron { margin-left: auto; }
.chat-symbol { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.detail-title { margin-bottom: 14px !important; }
.detail-subtitle { margin-top: 9px !important; }
.detail-meta { margin: 5px 0 14px !important; color: #737373; }
.replay { position: relative; margin: 13px 0 3px; }
.replay .turn-map { height: 192px; }
.replay-toggle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border: 1.5px solid white; border-radius: 50%; background: rgb(26 26 26 / .72); color: white !important; font-size: 22px !important; line-height: 24px; }
.replay-toggle:hover { background: rgb(26 26 26 / .88); }
.replay-caption { color: #737373; font-size: 11px; text-align: center; margin: 5px 0 11px !important; }
.replay-controls { display: flex; gap: 9px; align-items: center; padding: 5px 0; }
.replay-controls input { flex: 1; min-width: 0; accent-color: #1a1a1a; height: 18px; }
.replay-time { font-size: 11px; min-width: 65px; color: #737373; font-variant-numeric: tabular-nums; }
.replay-event { font-size: 12px; line-height: 18px; color: #4d4d4d; padding: 7px 10px; background: #f4f4f2; border-radius: 5px; margin: 5px 0 13px !important; }
.detail-actions { display: grid; gap: 10px; margin-top: 12px; }
.detail-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; border: 0; border-top: 1px solid #ecece9; background: #fff; padding: 10px 14px; text-align: left; }
.detail-row:first-child { border-top: 0; }
.badge { color: #4d4d4d; font-size: 11px; background: #f0f0ed; border-radius: 4px; padding: 4px 8px; display: inline-block; }
.pending-box { margin: 17px 0 14px; border: 1px solid #dededb; border-radius: 6px; padding: 17px 14px; background: #f8f8f7; }
.pending-box p + p { margin-top: 7px; }
.text-link { font-size: 12px; text-decoration: underline !important; text-underline-offset: 3px; }
.coach-person { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #858582; color: white; font-size: 20px; }
.coach-name { font-family: 'Ronivo Petrona', Petrona, Georgia, serif; font-weight: 600; font-size: 20px; line-height: 24px; }
.coach-date { color: #737373; font-size: 12px; }
.review-line { color: #737373; font-size: 12px; margin-bottom: 14px !important; }
.coach-quote { font-family: 'Ronivo Petrona', Petrona, Georgia, serif; font-size: 23px; line-height: 29px; font-weight: 500; margin-bottom: 13px !important; letter-spacing: -.02em; }
.feedback-map { height: 157px; }
.related-link { display: flex; align-items: center; gap: 9px; padding-top: 10px; font-size: 13px; }
.small-play { width: 25px; height: 25px; border-radius: 50%; background: #333; color: white; display: grid; place-items: center; font-size: 11px; }
.is-chat { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 9px; }
.chat-scroll { overflow: auto; overscroll-behavior: contain; min-height: 0; flex: 1 1 auto; scrollbar-width: thin; }
.chat-context { color: #737373; font-size: 12px; margin: -6px 0 17px !important; }
.message { margin: 10px 0 15px; }
.message-user { display: flex; justify-content: flex-end; }
.message-user p { background: #efefed; border-radius: 12px 12px 3px 12px; padding: 10px 12px; max-width: 88%; overflow-wrap: anywhere; }
.assistant-label { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #737373; margin-bottom: 6px; }
.assistant-label svg { width: 19px; height: 19px; }
.assistant-text { margin-left: 6px !important; border: 1px solid #ebebe8; background: #f8f8f7; border-radius: 12px 12px 12px 3px; padding: 11px 12px; line-height: 21px; overflow-wrap: anywhere; }
.source-stack { display: grid; gap: 7px; margin: 11px 0 0 10px; }
.source-card { display: flex; align-items: center; gap: 9px; border: 1px solid #dededb; border-radius: 6px; padding: 10px 11px; font-size: 12px; background: white; }
.source-card .chevron { margin-left: auto; }
.source-card .turn-map { width: 67px; height: 40px; }
.source-icon { width: 21px; font-size: 20px; }
.chat-suggestions { display: flex; justify-content: center; padding: 13px 0 9px; flex: 0 0 auto; }
.outline-button { border: 1px solid #d6d6d2; border-radius: 6px; padding: 7px 11px; min-height: 35px; background: #fff; color: #4d4d4d !important; font-size: 12px !important; }
.chat-compose { display: flex; gap: 7px; padding-top: 8px; border-top: 1px solid #ecece9; flex: 0 0 auto; align-items: center; }
.chat-input-wrap { min-width: 0; flex: 1; display: flex; align-items: center; border: 1px solid #d6d6d2; border-radius: 22px; padding: 3px 4px 3px 12px; background: white; }
.chat-input-wrap input { flex: 1; width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; padding: 8px 0; font-size: 13px; color: #1a1a1a; }
.chat-input-wrap:focus-within { outline: 2px solid #777; outline-offset: 1px; }
.chat-input-wrap input::placeholder { color: #737373; opacity: 1; }
.voice-button { width: 37px; height: 34px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 16px; background: #f0f0ee; font-size: 9px !important; line-height: 11px !important; color: #4d4d4d !important; }
.send-button { flex: 0 0 auto; width: 37px; height: 37px; border: 0; border-radius: 50%; background: #1a1a1a; color: white !important; font-size: 24px !important; }
.send-button:disabled { opacity: .5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  body { overflow: hidden; }
  .driver-coach-page { display: block; padding: 0; overflow: hidden; min-height: 100dvh; }
  .driver-scene { position: absolute; top: 0; left: 50%; width: calc(100dvh * 1.5987903226); max-width: none; height: 100dvh; transform: translateX(-78.34%); }
  .driver-home { position: fixed; z-index: 4; top: 10px; left: 10px; min-height: 24px; gap: 5px; }
  .driver-home-mark { width: 22px; height: 16px; }
  .driver-home-wordmark { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-ui *, .phone-ui *::before, .phone-ui *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Programmatic route focus belongs to the heading, never the whole screen. */
.phone-ui h1[tabindex="-1"]:focus { outline: none; }
.phone-content, .chat-scroll { scrollbar-width: thin; scrollbar-color: #dededb transparent; }
.phone-content::-webkit-scrollbar, .chat-scroll::-webkit-scrollbar { width: 3px; }
.phone-content::-webkit-scrollbar-thumb, .chat-scroll::-webkit-scrollbar-thumb { background: #dededb; border-radius: 3px; }
/* Keep an active session visible while a detail or conversation scrolls. */
.recording-strip { position: sticky; top: 0; z-index: 3; }

/* Connected student sample: same measured Diamond system and phone geometry. */
.phone-ui textarea, .phone-ui select { font: inherit; color: #1a1a1a; }
.ask-entry { background: #1a1a1a; border-color: #1a1a1a; color: #fff !important; font-weight: 500; }
.ask-entry .chevron, .ask-entry .chat-symbol { color: #fff; }
.ask-entry:hover { background: #2b2b2b; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 16px; }
.small-action { font-size: 12px; text-decoration: underline !important; text-underline-offset: 3px; padding: 7px 0 7px 10px; }
.compact-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; min-height: 66px; border-top: 1px solid #e5e5e1; background: #fff; }
.compact-row:first-child { border-top: 0; }
.compact-row > span:first-child { min-width: 0; }
.compact-row strong { display: block; font-size: 14px; line-height: 21px; font-weight: 500; }
.compact-row small { display: block; font-size: 11px; line-height: 18px; color: #737373; margin-top: 2px; }
.compact-row:hover { background: #fafaf9; }
.training-focus { margin-top: 10px !important; font-size: 13px; line-height: 20px; color: #4d4d4d; }
.spaced { margin-top: 15px; }
.centered { display: flex; align-items: center; justify-content: center; text-align: center; }
.filter-row { display: flex; gap: 7px; margin-bottom: 14px; }
.filter-button { min-width: 58px; min-height: 33px; padding: 5px 12px; border: 1px solid #dededb; border-radius: 6px; background: #fff; color: #737373 !important; font-size: 12px !important; }
.filter-button.selected { border-color: #1a1a1a; background: #1a1a1a; color: #fff !important; }
.note-list { display: grid; gap: 11px; }
.note-preview { display: block; padding: 15px 14px; }
.note-preview p { font-size: 16px; line-height: 23px; overflow-wrap: anywhere; }
.note-preview small { display: block; font-size: 11px; color: #737373; margin-top: 8px; }
.note-source { display: block; font-size: 10px; color: #737373; margin-top: 2px; }
.quiet-caption { font-size: 11px; line-height: 18px; color: #737373; margin: 12px 0 0 !important; }
.note-detail-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 25px; }
.field-label { display: block; margin-bottom: 6px; color: #4d4d4d; font-size: 13px; }
.field-select { display: block; width: 100%; min-height: 43px; border: 1px solid #d6d6d2; border-radius: 6px; padding: 8px 10px; background: #fff; font-size: 12px !important; }
.note-editor { display: block; resize: vertical; width: 100%; min-height: 185px; max-height: 290px; padding: 13px; margin-top: 14px; border: 1px solid #d6d6d2; border-radius: 6px; line-height: 22px; background: #fff; }
.note-editor::placeholder { color: #737373; opacity: 1; }
.note-editor:disabled { background: #f8f8f7; opacity: 1; }
.voice-row { display: flex; align-items: center; gap: 9px; margin-top: 10px; font-size: 11px; line-height: 17px; }
.inline-notice { min-height: 19px; color: #4d4d4d; font-size: 12px; margin: 8px 0 !important; }
.coach-messages { display: grid; gap: 12px; padding: 16px 0; min-height: 150px; }
.coach-intro { padding: 12px; background: #f3f3f1; border: 1px solid #e5e5e1; border-radius: 6px; font-size: 14px; line-height: 21px; }
.coach-own-message { justify-self: end; width: fit-content; max-width: 88%; padding: 11px 12px; background: #eaeae7; border-radius: 6px; overflow-wrap: anywhere; white-space: pre-wrap; }
.profile-person { display: flex; gap: 11px; align-items: center; margin: 3px 0 19px; }
.profile-person .avatar { width: 43px; height: 43px; font-size: 14px; background: #e8e8e4; color: #4d4d4d; }
.profile-person strong { font-size: 17px; line-height: 23px; font-weight: 500; }
.profile-person p { font-size: 12px; line-height: 18px; color: #737373; }
.profile-person small { font-size: 10px; color: #737373; line-height: 17px; display: block; }
.profile-person small a { color: #4d4d4d; text-decoration: underline; text-underline-offset: 2px; }
.profile-hero .module-body { padding: 15px 14px; }
.tiny-label { color: #737373; font-size: 10px; font-weight: 400; }
.invite-action { margin-top: 14px; min-height: 43px; font-size: 14px !important; }
.support-rows { margin-top: 15px; border: 1px solid #dededb; border-radius: 6px; overflow: hidden; }
.support-rows .compact-row { padding: 12px 14px; min-height: 65px; }
.choice-status { font-size: 12px; line-height: 20px; margin-top: 14px !important; color: #4d4d4d; }
.short-copy { font-size: 14px; line-height: 22px; margin: 15px 0 18px !important; }
.small-muted { font-size: 11px; line-height: 18px; color: #737373; margin-top: 9px !important; }
.cancel-link { display: block; text-align: center; padding: 11px; margin-top: 5px; font-size: 12px !important; text-decoration: underline !important; text-underline-offset: 3px; }
.button-link { border: 0; width: 100%; background: transparent; }
.selection-row { display: flex; gap: 12px; align-items: center; border: 1px solid #dededb; border-radius: 6px; padding: 14px 12px; margin-bottom: 12px; font-size: 14px; line-height: 21px; }
.selection-row input { accent-color: #1a1a1a; width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
.selection-row small { display: block; font-size: 11px; color: #737373; }
.selection-row + .quiet-caption { margin-bottom: 17px !important; }
.sharing-summary { margin-top: 10px !important; font-size: 13px; line-height: 21px; color: #4d4d4d; }
.phone-ui h1.question-title { font-size: 30px; line-height: 34px; margin-bottom: 23px; }
.work-options { display: grid; gap: 10px; margin-bottom: 25px; }
.choice-button { width: 100%; min-height: 51px; border: 1px solid #d6d6d2; border-radius: 6px; padding: 12px; background: #fff; text-align: left; }
.choice-button.selected { background: #f0f0ed; border-color: #1a1a1a; box-shadow: inset 0 0 0 1px #1a1a1a; }
/* Compact only the Home illustration so the primary Ask entry fits its first view. */
.checkin-card .module-body { padding-top: 10px; padding-bottom: 10px; }
.greeting { padding-top: 15px; padding-bottom: 13px; }
.home-map { height: 116px; }
.phone-nav .nav-item.active svg { fill: none; stroke-width: 2.2; }
.phone-nav .nav-item.active[data-tab="home"] svg { fill: currentColor; stroke-width: 1; }
.note-preview p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* AI Notes: source text, editable local demo draft, then explicit confirmation. */
.ai-draft-status { color: #4d4d4d; font-size: 12px; line-height: 19px; margin-top: 11px !important; }
.ai-draft-status:empty { display: none; }
.ai-editor { min-height: 140px; max-height: 240px; margin-top: 8px; }
.source-text { margin-top: 11px; border: 1px solid #dededb; border-radius: 6px; padding: 8px 11px; font-size: 12px; line-height: 19px; }
.source-text summary { cursor: pointer; color: #4d4d4d; }
.source-text p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 8px !important; }
.raw-editor { display: block; width: 100%; min-height: 94px; max-height: 190px; resize: vertical; margin-top: 9px; padding: 9px; border: 1px solid #dededb; border-radius: 5px; background: #fff; font-size: 12px !important; line-height: 19px; }
.organize-action { margin-top: 12px; min-height: 43px; font-size: 14px !important; }
.save-ai-note { width: 100%; min-height: 40px; font-size: 14px !important; }
.save-ai-note:disabled { opacity: .5; cursor: default; }

/* Course-first Home concept. Six-week chapter geometry, no inferred progress. */
.concept-content { padding: 7px 14px 12px; scrollbar-width: thin; scrollbar-color: #dededb transparent; }
.concept-tap { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 10px 15px; border: 1px solid #1a1a1a; border-radius: 6px; background: #1a1a1a; color: #fff !important; font-size: 16px !important; font-weight: 500; }
.concept-tap .tap-symbol { width: 27px; height: 25px; }
.concept-tap.is-recording { background: #286b4c; border-color: #286b4c; }
.tap-arrow { margin-left: auto; font-size: 20px; font-weight: 400; }
#tap-time { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; }
.course-heading { margin: 14px 1px 8px; }
.course-heading h1 { font-size: 30px; line-height: 34px; }
.course-heading p { display: flex; justify-content: space-between; gap: 8px; margin-top: 2px !important; color: #737373; font-size: 11px; line-height: 18px; }
.course-heading p span { color: #4d4d4d; }
.course-journey { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 70px 70px; gap: 11px 0; height: 156px; margin: 0 -1px 8px; }
.course-road { position: absolute; left: 0; top: 0; width: 100%; height: 156px; pointer-events: none; }
.course-week { position: relative; z-index: 1; padding: 2px 3px 0; display: flex; flex-direction: column; align-items: center; border: 0; background: transparent; cursor: pointer; color: #616161 !important; }
.week-node { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #c6c6c2; border-radius: 50%; background: #fafaf8; font-size: 10px; line-height: 14px; font-weight: 500; color: #737373; }
.week-label { display: block; margin-top: 4px; color: #858585; font-size: 11px; line-height: 14px; }
.week-chapter { max-width: 102px; font-size: 12px; line-height: 15px; font-weight: 400; letter-spacing: -.015em; }
.course-week.current .week-node { border-color: #1a1a1a; background: #1a1a1a; color: white; box-shadow: 0 0 0 4px #f1f2ed; }
.course-week.current .week-label { color: #4d4d4d; }
.course-week.current .week-chapter { color: #1a1a1a; font-weight: 600; }
.week-1 { grid-column: 1; grid-row: 1; }
.week-2 { grid-column: 2; grid-row: 1; }
.week-3 { grid-column: 3; grid-row: 1; }
.week-4 { grid-column: 3; grid-row: 2; }
.week-5 { grid-column: 2; grid-row: 2; }
.week-6 { grid-column: 1; grid-row: 2; }
.lesson-concept { border: 1px solid #dededb; border-radius: 6px; overflow: hidden; background: white; }
.lesson-heading { position: relative; padding: 8px 13px 7px; }
.lesson-heading p { color: #737373; font-size: 11px; line-height: 16px; }
.lesson-heading h2 { font-size: 19px; line-height: 25px; font-weight: 500; letter-spacing: -.025em; margin-top: 1px; }
.lesson-heading > a { position: absolute; right: 13px; top: 18px; padding: 4px; font-size: 20px; line-height: 20px; color: #737373; }
.technical-turn { display: block; width: 100%; height: auto; background: #e6e6e1; }
.focus-preview { display: flex; align-items: flex-start; gap: 10px; padding: 9px 13px 10px; border-top: 1px solid #e6e6e1; }
.focus-mark { display: block; width: 21px; height: 17px; flex: 0 0 auto; margin-top: 5px; background: #282b23; -webkit-mask: url('../assets/ronivo-icon.svg') center / contain no-repeat; mask: url('../assets/ronivo-icon.svg') center / contain no-repeat; }
.focus-label { display: block; color: #737373; font-size: 11px; line-height: 16px; }
.focus-preview p { font-size: 14px; line-height: 21px; font-weight: 500; color: #292823; }
.focus-preview a { display: block; font-size: 11px; line-height: 16px; color: #858585; }
.focus-preview a:hover { color: #1a1a1a; }
.concept-ask { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 9px 14px; margin-top: 10px; border: 1px solid #1a1a1a; border-radius: 6px; background: #1a1a1a; color: white !important; font-size: 15px; line-height: 22px; font-weight: 500; }
.concept-ask .chat-symbol { width: 22px; height: 22px; }
.ask-arrow { margin-left: auto; font-size: 25px; font-weight: 300; line-height: 20px; color: white; }
.concept-detail { padding-top: 5px; }
.concept-back { display: flex; align-items: center; gap: 7px; min-height: 34px; font-size: 28px; line-height: 28px; margin-bottom: 15px; }
.concept-back span { font-size: 14px; line-height: 21px; }
.concept-eyebrow { font-size: 11px; color: #737373; line-height: 18px; margin: 0 0 4px !important; }
.concept-detail-title { margin-bottom: 18px !important; }
.foundation-view { display: block; width: 100%; height: auto; border: 1px solid #e0e2d9; border-radius: 6px; }
.week-topics { margin: 17px 0; border-top: 1px solid #e7e8e0; }
.week-topics p { display: flex; gap: 13px; align-items: center; padding: 12px 0; border-bottom: 1px solid #e7e8e0; font-size: 14px; line-height: 22px; }
.week-topics span { color: #a3a89a; font-size: 11px; }
.concept-footnote { color: #858585; font-size: 11px; line-height: 18px; margin-bottom: 22px !important; }
.focus-detail { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.focus-detail .focus-mark { margin: 0; }
.focus-detail p { font-size: 18px; line-height: 25px; font-weight: 500; }
.source-detail { padding: 14px; background: #f4f5f0; border: 1px solid #dedfd7; border-radius: 6px; }
.source-detail p { font-family: 'Ronivo Petrona', Petrona, Georgia, serif; font-size: 22px; line-height: 29px; color: #292823; }
.source-detail a { display: block; margin-top: 11px; font-size: 11px; line-height: 18px; color: #737373; }
.short-explanation { margin: 16px 0 !important; color: #737373; font-size: 13px; line-height: 21px; }
.chapter-plate { min-height: 154px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; border: 1px solid #dedfd7; border-radius: 6px; background: #f5f6f1; }
.chapter-plate strong { font-family: 'Ronivo Petrona', Petrona, Georgia, serif; font-size: 54px; font-weight: 400; line-height: 60px; color: #a2a2a2; }
.chapter-plate small { color: #858585; font-size: 11px; }
body.phone-only { overflow: hidden; --concept-art-height: min(calc((100dvh - 32px) * 1.1298405467), calc((100vw - 32px) * 2.1333333333)); }
.phone-only .driver-coach-page { display: block; padding: 0; overflow: hidden; min-height: 100dvh; }
.phone-only .driver-scene { position: absolute; top: calc(50dvh - var(--concept-art-height) * .5010080645); left: 50%; width: calc(var(--concept-art-height) * 1.5987903226); max-width: none; height: var(--concept-art-height); transform: translateX(-78.34174023%); clip-path: inset(5.84677419% 6.99873897% 5.64516129% 63.68221942%); }
.phone-only .driver-home { position: fixed; z-index: 4; top: 10px; left: 10px; min-height: 24px; gap: 5px; }
.phone-only .driver-home-mark { width: 22px; height: 16px; }
.phone-only .driver-home-wordmark { font-size: 18px; }
@media (prefers-reduced-motion: reduce) { .concept-content * { transition: none !important; } }

.focus-copy { min-width: 0; flex: 1; }
.focus-meta { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.focus-meta a { white-space: nowrap; line-height: 16px; }

/* V2 miniature training scenes share one course path. No completion marks. */
.course-journey { grid-template-rows: 76px 76px; gap: 8px 0; height: 168px; }
.course-road { height: 168px; }
.course-week { padding-top: 1px; }
.scene-preview { display: block; width: 74px; height: 41px; border-radius: 5px; background: #f1f2ed; color: #92988a; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.scene-preview .mini-truck { fill: currentColor; stroke: none; }
.scene-preview .mini-truck path { fill: none; stroke: #f4f5f0; stroke-width: 1.1; }
.current .scene-preview { background: #1a1a1a; color: #f2f3ed; }
.current .scene-preview .mini-truck path { stroke: #1a1a1a; }
.chapter-caption { display: flex; justify-content: center; align-items: baseline; gap: 5px; padding-top: 5px; }
.chapter-index { font-size: 10px; color: #8b9081; line-height: 15px; }
.week-chapter { max-width: 83px; font-size: 11px; line-height: 14px; color: #63685b; }
.current .chapter-index { color: #1a1a1a; font-weight: 600; }
.current .week-chapter { color: #1a1a1a; font-weight: 600; }
.focus-preview { padding-top: 8px; padding-bottom: 9px; }
.focus-preview .coach-to-focus { font-size: 11px; line-height: 16px; color: #7e8474; }
.focus-preview p { display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 22px; }
.next-focus-label { color: #606957; font-size: 11px; font-weight: 400; }

/* V3: trim only Home spacing; keep the lesson visual and all details intact. */
.concept-content:not(.concept-detail) .course-heading { margin-bottom: 6px; }
.concept-content:not(.concept-detail) .course-journey { margin-bottom: 4px; }

/* Connected course release: the visual plan uses the existing R4 state engine. */
.concept-tap:disabled { opacity: .72; cursor: default; }
.course-session-status { margin: 5px 1px 0 !important; font-size: 11px; line-height: 18px; color: #737373; }
.course-session-status a { color: #4d4d4d; text-decoration: underline; text-underline-offset: 2px; }
.training-course-heading { margin: 0 1px 12px; }
.training-course-heading h2 { font-family: 'Ronivo Petrona', Petrona, Georgia, serif; font-size: 24px; line-height: 29px; font-weight: 600; color: #292823; }
.training-course-heading p { margin-top: 4px !important; font-size: 11px; line-height: 18px; color: #737373; }
.course-chapter-list { margin-top: 7px; }
.course-chapter-list .module-strip small { font-size: 11px; line-height: 18px; font-weight: 400; color: #737373; }
.course-chapter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 11px 14px; border-top: 1px solid #e5e5e1; font-size: 14px; line-height: 21px; }
.course-chapter-row:hover { background: #fafaf9; }
.course-detail-view .technical-turn { border-radius: 6px; overflow: hidden; }
.lesson-scene-preview { padding: 17px 24px; border: 1px solid #e0e2d9; border-radius: 6px; background: #f2f3ee; }
.lesson-scene-preview .scene-preview { width: 100%; height: auto; border-radius: 0; }
.lesson-topics { margin: 13px 0 15px; }
.lesson-topics p { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e7e8e0; padding: 10px 0; font-size: 13px; line-height: 21px; }
.lesson-topics span { font-size: 10px; color: #8a8f81; }
@media (prefers-reduced-motion: no-preference) { .course-week:hover .scene-preview { background: #e6e8e0; } .course-week.current:hover .scene-preview { background: #30322c; } }
/* Outer artwork/screen clips must never become focus-driven scroll containers. */
.driver-coach-page, .phone-only .driver-coach-page, .phone-screen { overflow: clip; }
body.phone-only { overflow: clip; }
@media (max-width: 600px) { body { overflow: clip; } }

/* Private profile portrait and explicit local sharing. */
.portrait-hero { display: flex; align-items: center; gap: 12px; padding: 5px 1px 8px; }
.portrait-avatar { width: 68px; height: 68px; flex: 0 0 68px; overflow: hidden; border-radius: 50%; background: #e8e8e4; color: #5d5d56; display: grid; place-items: center; font-size: 23px; font-weight: 500; }
.portrait-avatar img { width: 100%; height: 100%; object-fit: cover; }
.portrait-identity { min-width: 0; flex: 1; }
.phone-ui .portrait-identity h1 { font-size: 26px; line-height: 30px; margin: 0 0 3px; overflow-wrap: anywhere; }
.portrait-identity p { font-size: 13px; line-height: 19px; overflow-wrap: anywhere; }
.portrait-identity small { font-size: 11px; line-height: 18px; color: #737373; }
.portrait-edit { align-self: flex-start; min-height: 40px; min-width: 35px; display: grid; place-items: center; font-size: 12px; text-decoration: underline !important; text-underline-offset: 3px; }
.portrait-school { font-size: 11px; line-height: 18px; color: #737373; padding: 0 2px 8px; }
.portrait-school a { text-decoration: underline; text-underline-offset: 2px; }
.portrait-section { margin-top: 12px; }
.portrait-section > h2, .portrait-section-heading h2 { font-size: 16px; line-height: 22px; color: #4d4d4d; font-weight: 500; }
.portrait-section-heading { display: flex; align-items: center; justify-content: space-between; min-height: 30px; }
.portrait-section-heading > a { min-height: 40px; min-width: 40px; display: grid; place-items: center; font-size: 12px; text-decoration: underline; }
.portrait-about { margin-top: 5px !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 14px; line-height: 21px; }
.portrait-invitation { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #dededb; border-radius: 6px; padding: 9px 12px; margin-top: 14px; min-height: 58px; background: #f8f8f7; }
.portrait-invitation small { display: block; color: #737373; font-size: 11px; line-height: 18px; }
.experience-card { display: block; border: 1px solid #dededb; border-radius: 6px; padding: 11px 13px; margin-top: 5px; }
.experience-card + .experience-card { margin-top: 8px; }
.experience-card strong { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.experience-card p { font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.experience-card small { font-size: 11px; line-height: 18px; color: #737373; }
.experience-description { margin-top: 5px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.self-reported { display: block; margin-top: 5px; font-size: 10px; line-height: 16px; color: #737373; }
.portrait-links { border: 1px solid #dededb; border-radius: 6px; overflow: hidden; }
.portrait-links .compact-row { min-height: 61px; padding: 10px 12px; }
.portrait-form label { display: grid; gap: 5px; font-size: 12px; color: #4d4d4d; margin-bottom: 13px; }
.portrait-form input:not([type=checkbox]), .portrait-form textarea { border: 1px solid #d7d7d3; border-radius: 6px; background: #fff; color: #1a1a1a; padding: 10px 11px; min-height: 44px; width: 100%; font: 14px/21px var(--system-font); }
.portrait-form textarea { resize: vertical; }
.year-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.portrait-form .inline-checkbox { display: flex; gap: 8px; align-items: center; min-height: 32px; }
.inline-checkbox input { accent-color: #1a1a1a; }
.photo-preview { width: 128px; height: 128px; margin: 16px auto 23px; font-size: 36px; }
.photo-upload { position: relative; overflow: hidden; cursor: pointer; }
.photo-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.network-status { margin-bottom: 10px !important; color: #4d4d4d; font-size: 12px; }
.network-card + .network-card { margin-top: 10px; }
.network-card strong { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.network-card p { margin-top: 5px !important; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.network-card small { display: block; margin-top: 7px; font-size: 11px; color: #737373; }
.network-card button { display: block; min-height: 36px; margin-top: 3px; }
.network-photo { display: block; width: 54px; height: 54px; border-radius: 50%; object-fit: cover; margin-top: 10px; }

.photo-upload:focus-within { outline: 2px solid #444; outline-offset: 3px; }

.experience-card { position: relative; }
.experience-card strong { display: block; padding-right: 32px; }
.experience-edit-cue { position: absolute; top: 11px; right: 13px; font-size: 11px; line-height: 21px; color: #737373; text-decoration: underline; text-underline-offset: 2px; }

/* Driver workspace: same 64/220 navigation contract as the other Ronivo demos. */
body { --dc-rail:64px; background:#f8f8f7; }
body.driver-navigation-expanded { --dc-rail:220px; }
.dc-rail { position:fixed; inset:0 auto 0 0; z-index:51; width:var(--dc-rail); background:#f0f0f0; border-right:1px solid #e4e4e4; display:flex; flex-direction:column; align-items:center; overflow-x:hidden; overflow-y:auto; transition:width 180ms ease; }
.dc-brand-row { min-height:104px; display:flex; flex-direction:column; width:100%; align-items:center; justify-content:flex-start; gap:0; padding-block:8px; }
.dc-brand { display:flex; align-items:center; justify-content:center; gap:10px; color:#1a1a1a; text-decoration:none; min-height:44px; }
.dc-brand-mark { width:27px; height:24px; display:block; background:currentColor; -webkit-mask:url('../assets/ronivo-icon.svg') center/contain no-repeat; mask:url('../assets/ronivo-icon.svg') center/contain no-repeat; }
.dc-brand-name { display:none; font:500 24px/30px 'Ronivo Petrona',Petrona,Georgia,serif; letter-spacing:-.7px; }
.dc-nav-toggle { border:0; background:transparent; padding:0; width:40px; min-height:40px; display:grid; place-items:center; color:#737373; cursor:pointer; }
.dc-nav-toggle svg { width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:1.6; transform:none; }
.dc-nav-items,.dc-nav-products { width:100%; display:flex; align-items:center; flex-direction:column; gap:6px; }
.dc-nav-products { margin-top:auto; padding-block:20px; }
.dc-nav-item { width:40px; min-height:40px; border-radius:8px; display:flex; align-items:center; justify-content:center; color:#4d4d4d; text-decoration:none; flex:none; }
.dc-nav-item svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.dc-nav-item span { display:none; font:400 14px/20px var(--system-font); white-space:nowrap; }
.dc-nav-item.active { background:#e5e5e5; color:#1a1a1a; }
.dc-nav-item:hover { background:#e7e7e7; }
.dc-rail :focus-visible { outline:2px solid #666; outline-offset:2px; }
.dc-rail[data-expanded=true] { align-items:stretch; }
.dc-rail[data-expanded=true] .dc-brand-row { align-items:stretch; justify-content:flex-start; padding-inline:16px; gap:0; }
.dc-rail[data-expanded=true] .dc-brand-name { display:block; }
.dc-rail[data-expanded=true] .dc-nav-toggle { margin-inline:auto; }
.dc-rail[data-expanded=true] .dc-nav-toggle svg { transform:none; }
.dc-rail[data-expanded=true] .dc-nav-items,.dc-rail[data-expanded=true] .dc-nav-products { align-items:stretch; padding-inline:8px; }
.dc-rail[data-expanded=true] .dc-nav-item { width:100%; justify-content:flex-start; gap:12px; padding-inline:12px; }
.dc-rail[data-expanded=true] .dc-nav-item span { display:block; }
.dc-navigation-backdrop { position:fixed; inset:0 0 0 48px; z-index:50; background:#1a1a1a55; border:0; }
.dc-navigation-backdrop[hidden] { display:none; }
.dc-workspace-heading { position:absolute; z-index:2; left:calc(var(--dc-rail) + 32px); top:24px; pointer-events:none; }
.dc-workspace-heading h1 { font:600 30px/34px 'Ronivo Petrona',Petrona,Georgia,serif; letter-spacing:-.6px; text-align:left; color:#292823; }
.dc-workspace-heading p { margin:3px 0 0; font:400 12px/18px var(--system-font); color:#737373; }
.driver-coach-page { margin-left:var(--dc-rail); width:calc(100% - var(--dc-rail)); min-height:100dvh; padding:70px 16px 12px; background-image:none; transition:margin-left 180ms ease,width 180ms ease; }
.driver-scene { width:min(100%,calc((100dvh - 88px)*1.5987903226),1586px); }
.geographic-map { overflow:hidden; background:#efefed; border:1px solid #e2e2df; border-radius:8px; margin-top:10px; }
.geographic-map iframe { display:block; width:100%; height:220px; border:0; }
.geographic-map.is-compact { margin-top:0; border:0; border-radius:0; }
.geographic-map.is-compact iframe { height:200px; pointer-events:none; }
.map-location-caption { padding:9px 11px; display:flex; justify-content:space-between; align-items:center; gap:10px; background:#f5f5f4; }
.map-location-caption span { display:grid; gap:1px; min-width:0; }
.map-location-caption strong { font:500 12px/18px var(--system-font); }
.map-location-caption small { font:400 11px/16px var(--system-font); color:#737373; }
.map-location-caption a { font-size:11px; line-height:18px; white-space:nowrap; min-height:30px; display:flex; align-items:center; }
.phone-ui .map-data-caption { font:400 11px/16px var(--system-font); color:#737373; margin:6px 0 12px; }
.practice-preview-links { display:flex; gap:14px; justify-content:space-between; padding:8px 12px; border-top:1px solid #e4e4e1; font-size:11px; line-height:18px; }
.practice-preview-links a { min-height:30px; display:flex; align-items:center; }
.replay-heading-meta { display:flex; justify-content:space-between; margin:-6px 0 10px!important; color:#737373; font:400 12px/18px var(--system-font); }
.teaching-video-frame { position:relative; background:#e5e5e2; border-radius:8px; overflow:hidden; aspect-ratio:16/9; }
.teaching-video-frame video { display:block; width:100%; height:100%; object-fit:cover; }
.video-sample-label { position:absolute; top:8px; left:8px; padding:3px 7px; background:#1a1a1ac9; color:white; border-radius:4px; font:400 10px/16px var(--system-font); pointer-events:none; }
.teaching-play-overlay { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:48px; height:48px; border-radius:50%; border:1px solid #ffffffa0; background:#1a1a1ac9; color:#fff!important; font-size:18px!important; }
.teaching-video-controls { display:flex; gap:9px; align-items:center; padding:7px 0 3px; }
.teaching-play-button { width:32px; height:32px; flex:none; border:0; border-radius:50%; background:#1a1a1a; color:#fff!important; }
.teaching-video-controls input { min-width:0; flex:1; height:22px; accent-color:#1a1a1a; }
.teaching-clock { font:400 10px/16px var(--system-font); font-variant-numeric:tabular-nums; color:#737373; white-space:nowrap; }
.teaching-speed { width:35px; min-height:32px; border:1px solid #dededb; border-radius:5px; background:white; font-size:11px!important; }
.phone-ui .media-source-caption { font:400 10px/16px var(--system-font); margin:4px 0 13px; color:#737373; }
.sample-coach-note { background:#f3f3f1; padding:10px 12px; border-radius:7px; margin:10px 0 12px; }
.sample-coach-note>span { color:#737373; font:400 11px/17px var(--system-font); }
.sample-coach-note p { margin:3px 0 5px; font:500 15px/21px 'Ronivo Petrona',Petrona,Georgia,serif; }
.sample-coach-note>a { display:inline-flex; align-items:center; min-height:30px; font:400 11px/17px var(--system-font); text-decoration:underline; text-underline-offset:3px; }
.turn-explainer-link { display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid #dededb; border-radius:7px; padding:11px 12px; margin:12px 0; }
.turn-explainer-link>span:first-child { display:grid; gap:2px; }
.turn-explainer-link strong { font:500 16px/22px 'Ronivo Petrona',Petrona,Georgia,serif; }
.turn-explainer-link small { color:#737373; font:400 11px/17px var(--system-font); }
.teaching-view-tabs { display:flex; padding:3px; gap:3px; border-radius:7px; background:#eeeeec; margin:12px 0; }
.teaching-view-tabs>* { min-height:34px; display:flex; align-items:center; justify-content:center; flex:1; font:400 12px/18px var(--system-font); }
.teaching-view-tabs>[aria-current] { background:#fff; border-radius:5px; }
.teaching-model { overflow:hidden; border-radius:8px; background:#e5e5e2; }
.teaching-model .turn-map { height:266px; filter:grayscale(1); }
.teaching-explanation { margin:16px 0; border-top:1px solid #e4e4e0; padding-top:14px; }
.teaching-explanation h2 { font:500 22px/28px 'Ronivo Petrona',Petrona,Georgia,serif; margin-bottom:7px; }
.teaching-explanation p { font:400 13px/20px var(--system-font); color:#4d4d4d; }
body.phone-only { --concept-art-height:min(calc((100dvh - 32px)*1.1298405467),calc((100vw - var(--dc-rail) - 32px)*2.1333333333)); }
.phone-only .driver-coach-page { min-height:100dvh; }
.phone-only .dc-workspace-heading { display:none; }

@media(max-width:760px) {
  body,body.driver-navigation-expanded { --dc-rail:48px; }
  .dc-rail { width:48px; }
  .dc-rail[data-expanded=true] { width:220px; }
  .dc-brand-row { min-height:104px; flex-direction:column; gap:0; }
  .dc-nav-toggle { min-height:40px; }
  .dc-brand-mark { width:27px; height:20px; }
  .dc-rail[data-expanded=true] .dc-brand-row { min-height:104px; flex-direction:column; }
  .dc-rail[data-expanded=true] .dc-nav-toggle { min-height:40px; }
  .dc-nav-item { width:36px; min-height:40px; }
  .dc-workspace-heading { display:none; }
}
@media(max-width:600px) {
  .driver-coach-page { width:calc(100% - 48px); margin-left:48px; min-height:100dvh; }
  .driver-scene { top:calc(50dvh - var(--dc-mobile-art-height)*.5010080645); left:50%; width:calc(var(--dc-mobile-art-height)*1.5987903226); height:var(--dc-mobile-art-height); transform:translateX(-78.34174023%); clip-path:inset(5.84677419% 6.99873897% 5.64516129% 63.68221942%); }
  body { --dc-mobile-art-height:min(calc((100dvh - 16px)*1.1298405467),calc((100vw - 56px)*2.1333333333)); }
  .phone-only .driver-scene { top:calc(50dvh - var(--concept-art-height)*.5010080645); width:calc(var(--concept-art-height)*1.5987903226); height:var(--concept-art-height); }
}
@media(prefers-reduced-motion:reduce) { .dc-rail,.driver-coach-page { transition:none; } }


/* Three chosen hardware illustrations share an independent column; retain the
   current workspace navigation, geographic map, video and phone application. */
.driver-coach-page { display: block; padding: 100px 32px 24px; overflow: clip; }
.driver-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .68fr); align-items: start; gap: clamp(32px, 5vw, 90px); width: min(100%, 1280px); margin: auto; }
.hardware-column { position: relative; width: min(100%, 580px); justify-self: center; align-self: stretch; contain: size; min-height: 0; margin-top: -20px; display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hardware-flow-arrow { position: absolute; width: 24px; height: 36px; left: 50%; top: calc((100% - 32px) / 3 + 8px); transform: translate(-50%, -50%); pointer-events: none; }
.hardware-scene, .cab-installation { margin: 0; min-height: 0; aspect-ratio: auto; }
.hardware-scene .driver-light-plane { position: static; width: 100%; height: 100%; display: block; overflow: hidden; }
.cab-installation svg { width: 100%; height: 100%; display: block; }
.driver-stage .phone-stage { position: relative; top: auto; left: auto; width: min(100%, calc((100dvh - 130px) * .5296127563), 465px); height: auto; aspect-ratio: 465 / 878; margin: 0; transform: none; clip-path: none; justify-self: center; }
.phone-frame { display: block; width: 100%; height: 100%; }
.phone-stage .phone-screen { left: 7.311827957%; top: 3.075170843%; width: 85.376344086%; height: 92.596810934%; }
.phone-only .driver-coach-page { padding: 16px; display: grid; place-items: center; overflow: clip; }
.phone-only .driver-stage { display: flex; justify-content: center; width: 100%; }
.phone-only .hardware-column { display: none; }
.phone-only .driver-stage .phone-stage { width: min(100%, calc((100dvh - 32px) * .5296127563), 465px); height: auto; position: relative; top: auto; left: auto; transform: none; clip-path: none; }
@media (max-width: 700px) {
  .driver-coach-page, .phone-only .driver-coach-page { padding: 16px; display: grid; place-items: center; min-height: 100dvh; }
  .driver-stage { display: flex; justify-content: center; width: 100%; }
  .hardware-column { display: none; }
  .driver-stage .phone-stage, .phone-only .driver-stage .phone-stage { width: min(100%, calc((100dvh - 32px) * .5296127563), 465px); }
}

/* Shared sample-map grammar: original vector setting, separate from teaching clips. */
.geographic-map { background:#f1f3f4; }
.geographic-map .ronivo-training-map { display:block; width:100%; height:auto; aspect-ratio:360/190; }
.geographic-map.is-compact .ronivo-training-map { height:auto; pointer-events:none; }
.geographic-map .map-location-caption { background:#fff; }
.teaching-model .turn-map { height:auto; aspect-ratio:360/190; filter:none; }
.turn-map { background:#f1f3f4; }
.scene-preview { background:#f1f3f4; }
.current .scene-preview { background:#f1f3f4; }
.course-week.current:hover .scene-preview { background:#f1f3f4; }
.foundation-view,.technical-turn { background:#f1f3f4; }

.ronivo-training-map { fill:none; stroke:none; stroke-width:initial; }

/* Shared functional map controls. Same grammar in School, Driver and Talent. */
.ronivo-map-widget{position:relative;width:100%;height:100%;min-height:0;background:#f2f4f5}
.ronivo-map-viewport{width:100%;height:100%;overflow:hidden;outline-offset:-3px}
.ronivo-map-viewport>.ronivo-training-map{display:block;width:100%;height:100%;fill:none;stroke:none;stroke-width:initial}
.ronivo-map-key{position:absolute;top:8px;left:8px;display:flex;align-items:center;gap:6px;max-width:calc(100% - 16px);padding:5px 7px;border:1px solid #dfe4e8;border-radius:4px;background:#fffffff2;color:#30383d;font:400 10px/15px -apple-system,system-ui,Arial,sans-serif;pointer-events:none}
.ronivo-map-key i{display:block;flex:none;width:16px;height:0;border-top:3px solid #2385f6;border-radius:2px}
.ronivo-map-key i.area-key{height:8px;border:1px dashed #53626d;border-radius:2px}
.ronivo-map-tools{position:absolute;right:8px;bottom:8px;display:flex;align-items:center;gap:0;overflow:hidden;min-height:30px;border:1px solid #cdd5da;border-radius:5px;background:#fff;box-shadow:0 1px 4px #1f344514}
.ronivo-map-tools button{display:grid;place-items:center;min-width:30px;min-height:30px;height:30px;padding:0 7px;border:0;border-radius:0;background:#fff;color:#263139;font:500 16px/20px -apple-system,system-ui,Arial,sans-serif;white-space:nowrap;cursor:pointer}
.ronivo-map-tools button+button,.ronivo-map-tools output+button{border-left:1px solid #e6eaed}
.ronivo-map-tools button[data-map-action=expand]{font-size:12px}
.ronivo-map-tools button:hover:not(:disabled){background:#f0f3f5}
.ronivo-map-tools button:disabled{color:#aeb7bd;cursor:default;opacity:1}
.ronivo-map-tools output{min-width:37px;color:#667680;text-align:center;font:400 10px/16px -apple-system,system-ui,Arial,sans-serif;font-variant-numeric:tabular-nums}
.ronivo-map-tools button:focus-visible,.ronivo-map-viewport:focus-visible{outline:2px solid #252c31;outline-offset:-3px}
.ronivo-map-dialog{width:min(1100px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid #ced5da;border-radius:8px;background:#fff;color:#263139;font:400 14px/20px -apple-system,system-ui,Arial,sans-serif;overflow:auto}
.ronivo-map-dialog::backdrop{background:#17232b77}
.ronivo-map-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border-bottom:1px solid #e1e6e9}
.ronivo-map-dialog>header>button{min-height:32px;padding:5px 12px;border:1px solid #cbd3d9;border-radius:5px;background:#fff;color:#263139;font:400 13px/20px -apple-system,system-ui,Arial,sans-serif;cursor:pointer}
.ronivo-map-dialog>.ronivo-map-widget{height:min(60dvh,560px);min-height:230px}
.ronivo-map-dialog>p{margin:0;padding:10px 16px;color:#73818a;font-size:11px;line-height:17px}
@media(max-width:600px){.ronivo-map-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px)}.ronivo-map-dialog>.ronivo-map-widget{height:48dvh;min-height:220px}.ronivo-map-tools{right:6px;bottom:6px}.ronivo-map-key{top:6px;left:6px}}

.geographic-map .ronivo-map-widget{height:200px}
.geographic-map.is-compact .ronivo-map-widget{height:185px}
.teaching-model .ronivo-map-widget{height:230px}
.lesson-scene-preview .ronivo-map-widget{height:210px}
.teaching-video-block{border:1px solid #e1e6e9;border-radius:6px;overflow:hidden;background:#fff;margin-top:10px}
.teaching-video-block .media-source-caption{padding:0 8px 7px}

.geographic-map .ronivo-map-viewport>.ronivo-training-map,.teaching-model .ronivo-map-viewport>.ronivo-training-map{height:100%;aspect-ratio:auto;pointer-events:auto}
