
    /* Layout is intrinsic: iframe height never determines document height. */
    :root {
      color-scheme: dark;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: #edf0f1;
      background: #101417;
      font-synthesis: none;
      --surface: #171d22;
      --border: #333d45;
      --muted: #aeb9c2;
      --accent: #eec078;
      --error: #f08c80;
      --green: #9bc5b4;
    }
    * { box-sizing: border-box; }
    body { margin: 0; }
    button, input { font: inherit; }
    button { color: inherit; cursor: pointer; }
    button, a, input, summary { -webkit-tap-highlight-color: transparent; }
    button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible,
    [tabindex="0"]:focus-visible { outline: 3px solid #f5d7a6; outline-offset: 4px; }
    button:disabled { cursor: default; opacity: .55; }
    [hidden] { display: none !important; }
    h2, h3, p, figure { margin: 0; }
    svg { display: block; }
    .page { width: min(100% - 64px, 1728px); margin-inline: auto; padding-block: 26px 28px; }
    .eyebrow { color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
    .simulator { border: 1px solid var(--border); border-radius: 14px; overflow: clip; background: var(--surface); }
    .scene-heading { display: flex; align-items: center; gap: 20px; justify-content: space-between; padding: 13px 20px; border-bottom: 1px solid var(--border); }
    .scene-heading h2 { font-size: 13px; font-weight: 600; }
    .legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 12px; }
    .legend span { display: inline-flex; align-items: center; gap: 7px; }
    .line-key { width: 22px; border-top: 2px solid var(--accent); }
    .line-key.error { border-top: 2px dashed var(--error); }
    .simulation-grid { display: grid; grid-template-columns: minmax(0, 1fr) 304px; }
    .map-column { min-width: 0; display: grid; grid-template-rows: 1fr auto; }
    .map-area { position: relative; min-width: 0; background: #141c1e; }
    .map-scroll { height: clamp(330px, 26vw, 448px); overflow: auto; overscroll-behavior-x: contain; scrollbar-color: #647078 #141c1e; scrollbar-width: thin; }
    .track-scene { width: 100%; height: 100%; min-width: 0; }
    .map-tools { position: absolute; top: 16px; left: 20px; display: flex; align-items: center; gap: 9px; }
    .map-scale { color: var(--muted); font-size: 11px; }
    .zoom-button { display: none; min-height: 44px; padding: 0 12px; border: 1px solid #59636b; border-radius: 7px; background: #1b2429; font-size: 12px; }
    .map-inset { position: absolute; top: 76px; left: 28px; width: min(47%, 430px); pointer-events: none; }
    .map-inset .eyebrow { color: #afbab6; }
    .map-inset h3 { margin-top: 12px; font-size: clamp(22px, 2.5vw, 34px); font-weight: 550; line-height: 1.16; letter-spacing: -.035em; }
    .map-inset p { margin-top: 12px; max-width: 365px; color: #b6c3bf; font-size: 14px; line-height: 1.55; }
    .comparison-heading { color: var(--error); }
    .comparison-chain { display: grid; gap: 7px; margin-top: 13px; }
    .comparison-chain span { display: flex; align-items: baseline; gap: 9px; color: #d9c8c5; font-size: 13px; line-height: 1.35; }
    .comparison-chain b { display: inline-grid; place-items: center; flex: 0 0 19px; height: 19px; font-size: 11px; border: 1px solid #925a53; border-radius: 50%; color: #ffb5a9; }
    .phase-caption { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 18px; padding: 16px 22px; min-height: 91px; border-top: 1px solid var(--border); background: #1b2228; }
    .phase-caption h3 { margin-top: 4px; font-size: 19px; font-weight: 600; }
    .phase-caption p { max-width: 770px; color: #cad2d8; font-size: 14px; line-height: 1.55; }
    .phase-number { color: var(--accent); font-size: 11px; letter-spacing: .1em; font-weight: 650; }
    .telemetry { display: flex; flex-direction: column; justify-content: space-between; gap: 15px; min-width: 0; padding: 19px 20px 16px; border-left: 1px solid var(--border); background: #1c242b; }
    .telemetry-heading { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
    .telemetry-heading h2 { font-size: 12px; font-weight: 600; color: #c4cfd7; }
    .model-tag { color: var(--accent); font-size: 10px; letter-spacing: .08em; }
    .numeric-instruments { display: grid; grid-template-columns: minmax(0, 1fr) 62px; gap: 12px; align-items: end; }
    .instrument-label { display: block; font-size: 12px; color: var(--muted); }
    .speed-reading { display: flex; align-items: baseline; gap: 9px; margin-top: 2px; }
    .speed-reading output { font-size: 57px; line-height: 1.04; font-weight: 600; letter-spacing: -.055em; }
    .unit { color: var(--muted); font-size: 12px; white-space: nowrap; }
    output, .tabular { font-variant-numeric: tabular-nums; }
    .gear-reading { border-left: 1px solid #46525c; padding-left: 14px; }
    .gear-reading output { display: block; color: var(--accent); font-size: 37px; line-height: 1.2; font-weight: 500; }
    .roll-panel { border-top: 1px solid #37434c; padding-top: 13px; }
    .roll-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
    .roll-heading output { font-size: 26px; color: var(--accent); font-weight: 550; }
    .roll-view { width: 100%; height: 147px; margin-top: 2px; }
    .roll-caption { text-align: center; color: var(--muted); font-size: 11px; }
    .meter-stack { display: grid; gap: 13px; }
    .meter-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 12px; }
    .meter-label output { font-size: 13px; font-weight: 600; }
    .meter { height: 9px; overflow: hidden; border-radius: 3px; background: #36434d; }
    .meter-fill { height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; border-radius: 3px; }
    .meter-fill.brake { background: var(--error); }
    .meter-fill.throttle { background: var(--green); }
    .riding-status { padding-top: 12px; border-top: 1px solid #37434c; font-size: 12px; line-height: 1.4; color: #d7e0e5; }
    .riding-status::before { content: "↳"; color: var(--accent); margin-right: 7px; }
    .control-deck { border-top: 1px solid var(--border); padding: 0 20px 13px; background: #171d22; }
    .phase-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding-block: 12px; }
    .phase-button { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; min-height: 44px; padding: 8px; border: 1px solid transparent; border-radius: 7px; background: #20282e; color: #c5cdd3; font-size: 13px; }
    .phase-button span { color: #96a3ad; font-size: 11px; }
    .phase-button[aria-current="step"] { color: #f9dcb2; border-color: #a78756; background: #352f25; }
    .phase-button[aria-current="step"] span { color: #f9dcb2; }
    .transport-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
    .transport { display: flex; align-items: center; gap: 8px; }
    .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid #52606b; border-radius: 7px; padding: 0 15px; background: #222b32; font-size: 13px; font-weight: 550; }
    .button svg { width: 16px; height: 16px; flex-shrink: 0; }
    .button.primary { min-width: 160px; border-color: var(--accent); background: var(--accent); color: #211b14; }
    .button:hover:not(:disabled), .zoom-button:hover { border-color: #d7e0e5; }
    .button.primary:hover { background: #f6d2a0; border-color: #f6d2a0; }
    .phase-button:hover { border-color: #7b8994; }
    .comparison-select { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
    .comparison-select legend { float: left; padding: 0; margin-right: 10px; color: var(--muted); font-size: 12px; line-height: 44px; }
    .segmented { display: flex; gap: 4px; padding: 3px; border: 1px solid #47535d; border-radius: 8px; }
    .segmented button { min-height: 36px; padding: 0 12px; border: 1px solid transparent; border-radius: 5px; background: none; color: #c1cbd2; font-size: 12px; }
    .segmented button:hover { background: #29333b; }
    .segmented button[aria-pressed="true"] { color: #ffe2bb; background: #383126; border-color: #a3875d; }
    .segmented button[data-error]:not([data-error="off"])[aria-pressed="true"] { color: #ffbeb4; background: #3e2a29; border-color: #a4675d; }
    .timeline-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 44px; align-items: center; gap: 15px; margin-top: 9px; }
    .timeline-row label, .timeline-row output { font-size: 11px; color: var(--muted); }
    .timeline-row output { text-align: right; }
    .timeline { --progress: 0%; appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; height: 28px; margin: 0; background: transparent; cursor: pointer; }
    .timeline::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--progress), #657580 var(--progress)); }
    .timeline::-moz-range-track { height: 5px; border-radius: 3px; background: #657580; }
    .timeline::-moz-range-progress { height: 5px; background: var(--accent); }
    .timeline::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6.5px; border: 3px solid #f4d5a5; border-radius: 50%; background: #27261f; }
    .timeline::-moz-range-thumb { width: 13px; height: 13px; border: 3px solid #f4d5a5; border-radius: 50%; background: #27261f; }
    .simulation-note { padding: 10px 4px 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
    .mistakes { margin-top: 29px; scroll-margin-top: 20px; }
    .section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
    .section-heading h2 { font-size: 23px; font-weight: 600; letter-spacing: -.025em; }
    .section-heading p { color: var(--muted); font-size: 13px; }
    .mistake-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
    .mistake-card { min-width: 0; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: #171e23; }
    .card-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: #bd9188; }
    .card-topline svg { width: 26px; height: 26px; }
    .card-topline span { font-size: 11px; letter-spacing: .08em; }
    .mistake-card h3 { font-size: 16px; line-height: 1.32; font-weight: 600; }
    .mistake-card p { margin-top: 9px; font-size: 14px; line-height: 1.55; color: #b9c3cb; }
    .card-action { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 0 0; margin-top: auto; border: 0; background: none; color: #f5b3a7; font-size: 12px; text-align: left; }
    .card-action[aria-pressed="true"] { color: #ffe3dc; text-decoration: underline; text-underline-offset: 4px; }
    .warning { margin-top: 16px; display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border: 1px solid #64543b; border-radius: 9px; background: #26251f; color: #d9d5cc; font-size: 13px; line-height: 1.6; }
    .warning strong { color: #f2d3a4; }
    .warning svg { flex: 0 0 20px; width: 20px; margin-top: 2px; color: var(--accent); }
    .model-details { padding-top: 15px; color: var(--muted); font-size: 12px; line-height: 1.7; }
    .model-details summary { width: fit-content; min-height: 36px; cursor: pointer; color: #c3ccd2; }
    .model-details p { max-width: 1100px; margin-top: 8px; }
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
    .track-label { fill: #c4cdcc; font-size: var(--map-label-size, 13px); font-weight: 550; letter-spacing: .02em; paint-order: stroke; stroke: #141c1e; stroke-width: 4px; stroke-linejoin: round; }
    .landmark .marker-ring { r: var(--map-marker-radius, 10px); fill: #172126; stroke: #c0a375; stroke-width: 1.7; }
    .landmark .marker-number { fill: #f4d5a5; font-size: var(--map-number-size, 10px); font-weight: 700; text-anchor: middle; dominant-baseline: central; }
    .landmark .marker-leader { stroke: #a98f68; stroke-width: 1; }
    .landmark.is-current .marker-ring { fill: #eec078; stroke: #fff1da; stroke-width: 2.3; }
    .landmark.is-current .marker-number { fill: #231b12; }
    .landmark.is-passed .marker-leader { stroke: #eec078; }
    .error-pin circle { r: var(--map-marker-radius, 11px); fill: #382526; stroke: #f08c80; stroke-width: 1.8; }
    .error-pin text { fill: #ffc4ba; text-anchor: middle; dominant-baseline: central; font-size: var(--map-number-size, 11px); font-weight: 700; }
    .mobile-map-key { display: none; }
    @media (min-width: 2200px) {
      .page { width: min(100% - 96px, 1952px); padding-top: 34px; }
      .simulation-grid { grid-template-columns: minmax(0, 1fr) 328px; }
      .map-scroll { height: 490px; }
      .telemetry { padding: 24px; }
    }
    @media (max-width: 1500px) {
      .page { width: calc(100% - 40px); padding-top: 20px; }
      .simulation-grid { grid-template-columns: minmax(0, 1fr) 280px; }
      .telemetry { padding: 15px 17px; gap: 12px; }
      .roll-view { height: 128px; }
      .map-inset { top: 65px; width: 46%; }
      .map-inset h3 { font-size: 27px; }
      .map-inset p { font-size: 13px; }
      .phase-caption { grid-template-columns: 165px 1fr; padding: 13px 18px; }
      .mistake-card { padding: 15px; }
      .mistake-card h3 { font-size: 15px; }
    }
    @media (max-width: 1199px) {
      .page { width: calc(100% - 32px); }
      .simulation-grid { grid-template-columns: minmax(0, 1fr) 260px; }
      .map-scroll { height: 330px; }
      .map-inset { top: 55px; left: 20px; width: 48%; }
      .map-inset h3 { font-size: 24px; }
      .map-inset p { font-size: 12px; }
      .comparison-chain { gap: 5px; }
      .comparison-chain span { font-size: 12px; }
      .phase-caption { grid-template-columns: 1fr; gap: 5px; min-height: 121px; }
      .phase-caption h3 { display: inline; margin-left: 8px; font-size: 17px; }
      .phase-caption p { font-size: 13px; }
      .phase-button { gap: 6px; font-size: 12px; }
      .comparison-select legend { display: none; }
      .mistake-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .mistake-card h3 { font-size: 16px; }
      .mistake-card { padding: 18px; }
    }
    @media (max-width: 960px) {
      .simulation-grid { grid-template-columns: minmax(0, 1fr); }
      .map-scroll { height: auto; aspect-ratio: 1280 / 490; min-height: 300px; }
      .map-inset { top: 62px; width: 45%; }
      .map-inset h3 { font-size: 27px; }
      .map-inset p { font-size: 13px; }
      .phase-caption { grid-template-columns: 180px minmax(0, 1fr); gap: 14px; min-height: 93px; }
      .phase-caption h3 { display: block; margin: 4px 0 0; }
      .telemetry { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 14px 22px; padding: 16px 20px; border-left: 0; border-top: 1px solid var(--border); }
      .telemetry-heading { grid-column: 1 / -1; }
      .numeric-instruments { grid-column: 1; grid-row: 2; }
      .roll-panel { grid-column: 2; grid-row: 2 / 4; padding-top: 0; border: 0; }
      .meter-stack { grid-column: 3; grid-row: 2 / 4; }
      .riding-status { grid-column: 1; grid-row: 3; padding-top: 0; border: 0; }
      .roll-view { height: 96px; }
      .speed-reading output { font-size: 50px; }
      .gear-reading output { font-size: 32px; }
      .mistake-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .section-heading { display: block; }
      .section-heading p { margin-top: 7px; }
    }
    @media (max-width: 700px) {
      .page { width: calc(100% - 24px); padding-top: 18px; }
      .eyebrow { font-size: 10px; }
      .scene-heading { padding: 12px 14px; gap: 8px; flex-wrap: wrap; }
      .scene-heading h2 { font-size: 12px; }
      .legend { font-size: 11px; gap: 10px; }
      .map-tools { position: static; justify-content: space-between; padding: 10px 12px 0; }
      .zoom-button { display: inline-flex; align-items: center; }
      .map-scroll { min-height: 0; height: auto; aspect-ratio: 1280 / 600; }
      .map-scroll.is-zoomed { aspect-ratio: auto; height: 315px; }
      .map-scroll.is-zoomed .track-scene { min-width: 810px; }
      .map-inset { display: none; position: static; width: auto; margin: 0; padding: 10px 15px 14px; }
      .map-inset.is-comparing { display: block; }
      .map-inset .eyebrow { display: none; }
      .map-inset h3 { margin-top: 0; font-size: 18px; }
      .map-inset p { max-width: none; margin: 0; font-size: 13px; }
      .comparison-chain { display: flex; flex-wrap: wrap; margin-top: 10px; gap: 7px 14px; }
      .comparison-chain span { font-size: 12px; }
      .landmark .track-label, .marker-leader { display: none; }
      .mobile-map-key { display: flex; justify-content: center; gap: 18px; padding: 0 12px 9px; color: #d5c5ad; font-size: 11px; }
      .phase-caption { grid-template-columns: 1fr; gap: 8px; padding: 14px 15px; min-height: 128px; }
      .phase-caption h3 { display: inline; margin-left: 8px; font-size: 18px; }
      .phase-caption p { font-size: 14px; }
      .telemetry { grid-template-columns: 1fr 1fr; padding: 15px; gap: 12px 22px; }
      .numeric-instruments { grid-column: 1; grid-row: 2; grid-template-columns: 1fr 44px; gap: 9px; }
      .speed-reading { display: block; }
      .speed-reading .unit { display: block; margin-top: 3px; font-size: 11px; }
      .speed-reading output { font-size: 44px; }
      .gear-reading { padding-left: 10px; }
      .gear-reading .instrument-label { font-size: 10px; }
      .gear-reading output { font-size: 30px; }
      .roll-panel { grid-column: 2; grid-row: 2 / 4; }
      .roll-view { height: 105px; }
      .roll-heading output { font-size: 24px; }
      .meter-stack { grid-column: 1; grid-row: 3; gap: 10px; }
      .riding-status { grid-column: 1 / -1; grid-row: 4; font-size: 12px; }
      .control-deck { padding: 0 12px 12px; }
      .phase-nav { grid-template-columns: repeat(3, 1fr); gap: 6px; }
      .phase-button { justify-content: flex-start; padding-left: 10px; min-height: 44px; font-size: 12px; }
      .transport-row { gap: 12px; }
      .transport { width: 100%; }
      .button.primary { flex: 1; }
      .comparison-select { width: 100%; }
      .segmented { width: 100%; }
      .segmented button { flex: 1; padding-inline: 6px; min-height: 44px; }
      .timeline-row { gap: 10px; }
      .timeline-row label { font-size: 10px; }
      .timeline { height: 36px; }
      .mistakes { margin-top: 24px; }
      .section-heading h2 { font-size: 22px; }
      .mistake-grid { grid-template-columns: 1fr; gap: 10px; }
      .mistake-card { padding: 17px; }
      .card-topline { margin-bottom: 9px; }
      .mistake-card h3 { font-size: 17px; }
      .mistake-card p { font-size: 14px; }
      .warning { padding: 13px; }
    }
    @media (min-width: 701px) and (max-width: 960px) and (max-height: 540px) {
      .page { padding-top: 14px; }
      .simulation-grid { grid-template-columns: minmax(0, 1fr) 226px; }
      .map-scroll { min-height: 0; height: 280px; aspect-ratio: auto; }
      .map-inset { top: 48px; width: 53%; }
      .map-inset h3 { font-size: 23px; }
      .map-inset p { font-size: 12px; line-height: 1.45; }
      .map-inset #error-explanation p { display: none; }
      .phase-caption { grid-template-columns: 1fr; min-height: 116px; gap: 5px; }
      .phase-caption h3 { display: inline; margin-left: 8px; }
      .telemetry { display: flex; gap: 10px; padding: 14px; border-top: 0; border-left: 1px solid var(--border); }
      .telemetry-heading, .numeric-instruments, .roll-panel, .meter-stack, .riding-status { width: 100%; }
      .roll-view { height: 95px; }
      .speed-reading output { font-size: 44px; }
      .control-deck { padding-inline: 12px; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; }
    }
    .track-intro { margin: 0 0 20px; }
    .track-intro a { color: #adb7b1; font-size: 13px; }
    .track-intro h1 { font-size: clamp(22px, 3vw, 32px); line-height: 1.15; margin: 12px 0; }
    .track-intro p { color: #adb7b1; line-height: 1.5; margin: 0; }
    :root { font-family: "Segoe UI", "Noto Sans", "Liberation Sans", sans-serif; }
    body { background: #090c0b; }
