    /*
      =============================================================
      DealerTools Credit Application - Master Rebuild
      Reconstructed from project requirements and all requested updates
      =============================================================
    */

    :root {
      --bg: #f4f6f8;
      --panel: #ffffff;
      --panel-2: #f8fafc;
      --text: #17212b;
      --muted: #5f6f81;
      --line: #d6dee6;
      --line-2: #c7d1dc;
      --brand: #c8102e;
      --brand-dark: #a30d25;
      --brand-soft: rgba(200, 16, 46, 0.10);
      --success: #1a7f37;
      --warn: #b26a00;
      --error: #c62828;
      --error-soft: rgba(198, 40, 40, 0.08);
      --focus: rgba(200, 16, 46, 0.22);
      --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
      --radius-xl: 24px;
      --radius-lg: 18px;
      --radius-md: 14px;
      --radius-sm: 10px;
      --container: 1180px;
      --nav-h: 78px;
      --font: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    }

    body.dark-mode {
      --bg: #0d131b;
      --panel: #121b26;
      --panel-2: #16202d;
      --text: #edf2f7;
      --muted: #a6b5c6;
      --line: #273647;
      --line-2: #33475d;
      --brand-soft: rgba(255, 83, 112, 0.12);
      --shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
      --focus: rgba(255, 83, 112, 0.24);
      --error-soft: rgba(255, 90, 90, 0.12);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      font-family: var(--font);
      background: linear-gradient(180deg, var(--bg) 0%, #eef2f5 100%);
      color: var(--text);
      line-height: 1.55;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    body.dark-mode {
      background: linear-gradient(180deg, #0b1118 0%, #101925 100%);
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button,
    input,
    select,
    textarea {
      font: inherit;
    }

    input[type="number"]::-webkit-outer-spin-button,
    input[type="number"]::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }

    input[type="number"] {
      -moz-appearance: textfield;
      appearance: textfield;
    }

    img {
      max-width: 100%;
      display: block;
    }

    .app-shell {
      min-height: 100vh;
      padding-bottom: 48px;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 1000;
      backdrop-filter: blur(14px);
      background: rgba(255, 255, 255, 0.92);
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
      box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
    }

    body.dark-mode .topbar {
      background: rgba(13, 19, 27, 0.9);
      border-bottom-color: rgba(255, 255, 255, 0.08);
      box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
    }

    .topbar-inner {
      max-width: calc(var(--container) + 40px);
      margin: 0 auto;
      min-height: var(--nav-h);
      padding: 14px 20px;
      display: grid;
      grid-template-columns: minmax(0, 320px) minmax(0, 1fr) auto;
      gap: 18px;
      align-items: center;
    }

    .brand-wrap {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .brand-badge {
      width: 52px;
      height: 52px;
      border-radius: 16px;
      background: linear-gradient(135deg, #ef233c 0%, #b8001f 100%);
      color: #fff;
      display: grid;
      place-items: center;
      box-shadow: 0 10px 22px rgba(200, 16, 46, 0.28);
      font-weight: 800;
      letter-spacing: 0.04em;
    }

    .brand-copy {
      min-width: 0;
    }

    .brand-copy .eyebrow {
      font-size: 11px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 2px;
      font-weight: 700;
    }

    .brand-copy .title {
      font-size: 20px;
      font-weight: 800;
      line-height: 1.2;
      white-space: normal;
    }

    .progress-wrap {
      min-width: 0;
    }

    .progress-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-bottom: 10px;
      font-size: 13px;
      color: var(--muted);
      font-weight: 700;
    }

    .progress-bar {
      position: relative;
      height: 12px;
      border-radius: 999px;
      background: rgba(100, 116, 139, 0.18);
      overflow: hidden;
    }

    .progress-fill {
      position: absolute;
      inset: 0 auto 0 0;
      width: 0%;
      border-radius: inherit;
      background: linear-gradient(90deg, #ef233c 0%, #c8102e 50%, #900c22 100%);
      transition: width 0.28s ease;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    }

    .progress-steps {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      margin-top: 10px;
      font-size: 11px;
      color: var(--muted);
      overflow-x: auto;
      padding-bottom: 2px;
    }

    .progress-step {
      flex: 1 1 auto;
      min-width: max-content;
      text-align: center;
      padding: 4px 8px;
      border-radius: 999px;
      transition: all 0.2s ease;
      border: 1px solid transparent;
      cursor: default;
      background: transparent;
      color: inherit;
      font: inherit;
      white-space: nowrap;
    }

    .progress-step.is-active {
      color: var(--brand);
      background: var(--brand-soft);
      border-color: rgba(200, 16, 46, 0.18);
      font-weight: 800;
    }

    .progress-step.is-complete,
    .progress-step.is-available {
      cursor: pointer;
    }

    .progress-step.is-complete {
      color: var(--success);
      background: rgba(26, 127, 55, 0.08);
      border-color: rgba(26, 127, 55, 0.18);
      font-weight: 700;
    }

    .progress-step.is-available:hover,
    .progress-step.is-complete:hover {
      background: rgba(200, 16, 46, 0.08);
      border-color: rgba(200, 16, 46, 0.18);
    }

    .toolbar {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }

    .toolbar-btn,
    .pill-btn,
    .nav-btn,
    .submit-btn,
    .action-chip {
      border: 0;
      cursor: pointer;
      transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
    }

    .toolbar-btn:hover,
    .pill-btn:hover,
    .nav-btn:hover,
    .submit-btn:hover,
    .action-chip:hover {
      transform: translateY(-1px);
    }

    .theme-toggle {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      border-radius: 999px;
      background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(246,248,251,0.95) 100%);
      color: var(--text);
      border: 1px solid rgba(15, 23, 42, 0.08);
      box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
      font-weight: 700;
      position: relative;
      overflow: hidden;
    }

    body.dark-mode .theme-toggle {
      background: linear-gradient(180deg, rgba(22,32,45,0.98) 0%, rgba(18,27,38,0.98) 100%);
      border-color: rgba(255,255,255,0.08);
      box-shadow: 0 10px 18px rgba(0,0,0,0.18);
    }

    .theme-toggle::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.18) 35%, transparent 70%);
      transform: translateX(-120%);
      transition: transform 0.45s ease;
    }

    .theme-toggle:hover::before {
      transform: translateX(120%);
    }

    .theme-toggle-icon {
      width: 30px;
      height: 30px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, #f7f7f8 0%, #d6dde7 100%);
      color: #111827;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
      font-size: 15px;
      flex: 0 0 auto;
    }

    body.dark-mode .theme-toggle-icon {
      background: linear-gradient(135deg, #1f2a37 0%, #32465f 100%);
      color: #fff;
    }

    .page {
      max-width: calc(var(--container) + 40px);
      margin: 24px auto 0;
      padding: 0 20px;
    }

    .hero-card,
    .form-card,
    .side-card,
    .section-card,
    .disclosure-card,
    .toast,
    .inline-note {
      background: var(--panel);
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
    }

    .hero-card {
      border-radius: 28px;
      overflow: hidden;
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
      gap: 0;
      min-height: 320px;
    }

    .hero-copy {
      padding: 34px 34px 28px;
      background:
        radial-gradient(circle at top left, rgba(200,16,46,0.12) 0%, transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,1) 100%);
    }

    body.dark-mode .hero-copy {
      background:
        radial-gradient(circle at top left, rgba(255,83,112,0.12) 0%, transparent 42%),
        linear-gradient(180deg, rgba(18,27,38,1) 0%, rgba(22,32,45,1) 100%);
    }

    .hero-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--brand-soft);
      color: var(--brand);
      border: 1px solid rgba(200, 16, 46, 0.16);
      padding: 8px 12px;
      border-radius: 999px;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-weight: 800;
      margin-bottom: 16px;
    }

    .hero-copy h1 {
      margin: 0 0 14px;
      font-size: clamp(30px, 4vw, 44px);
      line-height: 1.05;
      letter-spacing: -0.03em;
    }

    .hero-version {
      margin: -2px 0 16px;
      color: var(--brand);
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .hero-copy p {
      margin: 0 0 18px;
      color: var(--muted);
      max-width: 58ch;
      font-size: 16px;
    }

    .hero-points {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 24px;
    }

    .hero-point {
      display: flex;
      gap: 12px;
      padding: 14px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.7);
      border: 1px solid rgba(15, 23, 42, 0.06);
    }

    body.dark-mode .hero-point {
      background: rgba(255,255,255,0.02);
      border-color: rgba(255,255,255,0.06);
    }

    .hero-point-icon {
      width: 46px;
      height: 46px;
      border-radius: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #ef233c 0%, #b7001f 100%);
      color: #fff;
      padding: 6px;
      flex: 0 0 auto;
      box-shadow: 0 10px 18px rgba(200,16,46,0.22);
      border: 1px solid rgba(255,255,255,0.18);
    }

    .hero-point-icon svg {
      width: 22px;
      height: 22px;
      display: block;
    }

    .hero-point-icon.is-simple {
      background: linear-gradient(135deg, #ef233c 0%, #d41a33 45%, #8f1026 100%);
    }

    .hero-point-icon.is-ssn {
      background: linear-gradient(135deg, #cf1734 0%, #9f1029 100%);
    }

    .hero-point-icon.is-steps {
      background: linear-gradient(135deg, #f14f62 0%, #b50f2a 100%);
    }

    .hero-actions {
      margin-top: 22px;
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .begin-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 52px;
      padding: 0 20px;
      border-radius: 999px;
      background: linear-gradient(135deg, #ef233c 0%, #b7001f 100%);
      color: #fff;
      font-weight: 800;
      box-shadow: 0 12px 22px rgba(200,16,46,0.22);
    }

    .begin-test-btn {
      position: fixed;
      left: 8px;
      bottom: 8px;
      z-index: 160;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 28px;
      min-width: 28px;
      padding: 0 9px;
      border-radius: 999px;
      border: 1px solid transparent;
      background: rgba(248, 250, 252, 0.06);
      color: rgba(30, 41, 59, 0.22);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      opacity: 0;
      pointer-events: none;
      transform: translateY(4px);
      transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }

    body.qa-tools-enabled .begin-test-btn {
      opacity: 0.64;
      pointer-events: auto;
      transform: translateY(0);
      border-color: rgba(71, 85, 105, 0.38);
      background: rgba(248, 250, 252, 0.84);
      color: rgba(15, 23, 42, 0.86);
    }

    .begin-test-btn.is-peek {
      opacity: 1 !important;
      border-color: rgba(15, 23, 42, 0.85) !important;
      background: #ffffff !important;
      color: #0f172a !important;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.24), 0 8px 20px rgba(15, 23, 42, 0.32);
      animation: qaPeekPulse 1.15s ease-in-out infinite;
    }

    @keyframes qaPeekPulse {
      0% { transform: translateY(0) scale(1); }
      50% { transform: translateY(0) scale(1.06); }
      100% { transform: translateY(0) scale(1); }
    }

    .begin-test-btn:hover,
    .begin-test-btn:focus-visible {
      opacity: 0.9;
      color: #0f172a;
      border-color: rgba(71, 85, 105, 0.8);
      background: rgba(248, 250, 252, 0.92);
    }

    body.dark-mode .begin-test-btn {
      background: rgba(15, 23, 42, 0.62);
      color: rgba(226, 232, 240, 0.88);
      border-color: rgba(148, 163, 184, 0.55);
    }

    body.dark-mode .begin-test-btn:hover,
    body.dark-mode .begin-test-btn:focus-visible {
      color: rgba(226, 232, 240, 0.94);
      border-color: rgba(148, 163, 184, 0.82);
      background: rgba(15, 23, 42, 0.86);
    }

    .device-modal {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.58);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      z-index: 120;
      overflow-y: auto;
    }

    .device-modal.is-active {
      display: flex;
    }

    .device-modal-card {
      width: min(680px, 100%);
      border-radius: 26px;
      background: var(--panel);
      border: 1px solid var(--line);
      box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
      padding: 26px;
      max-height: min(720px, calc(100dvh - 40px));
      overflow: auto;
      -webkit-overflow-scrolling: touch;
    }

    .device-modal-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-top: 18px;
      align-items: stretch;
    }

    .device-choice {
      border: 1px solid var(--line);
      border-radius: 20px;
      background: rgba(248, 250, 252, 0.75);
      padding: 18px;
      text-align: left;
      color: var(--text);
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-start;
      min-height: 142px;
      width: 100%;
      white-space: normal;
      line-height: 1.45;
    }

    body.dark-mode .device-choice {
      background: rgba(20, 29, 41, 0.92);
    }

    .device-choice strong {
      display: block;
      margin-bottom: 6px;
      font-size: 16px;
      line-height: 1.2;
    }

    .device-choice span {
      display: block;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.45;
      white-space: normal;
      overflow-wrap: break-word;
    }

    .recaptcha-wrap {
      margin-top: 18px;
      padding: 16px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: rgba(248, 250, 252, 0.72);
      overflow: hidden;
    }

    body.dark-mode .recaptcha-wrap {
      background: rgba(20, 29, 41, 0.92);
    }

    #recaptchaContainer {
      width: 100%;
      max-width: 100%;
      min-height: 78px;
      --captcha-scale: 1;
      overflow: hidden;
    }

    #recaptchaContainer > div {
      transform-origin: top left;
      transform: scale(var(--captcha-scale));
    }

    .signature-box {
      margin-top: 18px;
      padding: 18px;
      border-radius: 22px;
      border: 1px solid var(--line);
      background: rgba(248, 250, 252, 0.78);
      display: grid;
      gap: 16px;
    }

    body.dark-mode .signature-box {
      background: rgba(20, 29, 41, 0.92);
    }

    .signature-canvas-wrap {
      border: 1px dashed var(--line-2);
      border-radius: 18px;
      background: var(--panel);
      padding: 12px;
    }

    .signature-canvas {
      display: block;
      width: 100%;
      height: 180px;
      border-radius: 14px;
      background:
        linear-gradient(to bottom, transparent 95%, rgba(148, 163, 184, 0.35) 95%),
        var(--panel-2);
      touch-action: none;
      cursor: crosshair;
    }

    .signature-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 10px;
    }

    .signature-clear-btn {
      min-height: 42px;
      padding: 0 14px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: transparent;
      color: var(--text);
      font-weight: 700;
      cursor: pointer;
    }

    .signature-help {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .privacy-notice-box {
      margin-top: 18px;
      padding: 18px;
      border-radius: 22px;
      border: 1px solid var(--line);
      background: rgba(248, 250, 252, 0.78);
      display: grid;
      gap: 14px;
    }

    body.dark-mode .privacy-notice-box {
      background: rgba(20, 29, 41, 0.92);
    }

    .privacy-notice-scroll {
      max-height: 320px;
      overflow: auto;
      padding: 16px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: var(--panel);
      display: grid;
      gap: 14px;
    }

    .privacy-notice-scroll h3,
    .privacy-notice-scroll h4 {
      margin: 0;
    }

    .privacy-notice-scroll p,
    .privacy-notice-scroll li {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.55;
    }

    .privacy-notice-scroll ul {
      margin: 0;
      padding-left: 18px;
      display: grid;
      gap: 6px;
    }

    .privacy-grid {
      display: grid;
      gap: 10px;
    }

    .privacy-grid-row {
      display: grid;
      grid-template-columns: minmax(0, 1.3fr) 120px 120px;
      gap: 10px;
      align-items: start;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--line);
    }

    .privacy-grid-row strong,
    .privacy-grid-row span {
      font-size: 13px;
      line-height: 1.45;
    }

    .intro-hidden .hero-card {
      display: none;
    }

    .app-shell:not(.intro-hidden) .layout {
      display: none;
    }

    .intro-hidden .page {
      margin-top: 16px;
    }

    .hero-point strong {
      display: block;
      font-size: 14px;
      margin-bottom: 2px;
    }

    .hero-point span {
      color: var(--muted);
      font-size: 13px;
    }

    .hero-side {
      position: relative;
      background:
        linear-gradient(135deg, rgba(200,16,46,0.98) 0%, rgba(152, 11, 36, 0.98) 100%),
        #c8102e;
      color: #fff;
      padding: 34px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      isolation: isolate;
    }

    .hero-side::before,
    .hero-side::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      background: rgba(255,255,255,0.09);
      z-index: -1;
    }

    .hero-side::before {
      width: 260px;
      height: 260px;
      right: -80px;
      top: -80px;
    }

    .hero-side::after {
      width: 180px;
      height: 180px;
      left: -40px;
      bottom: -30px;
    }

    .hero-side h2 {
      margin: 0 0 14px;
      font-size: 26px;
      line-height: 1.15;
    }

    .hero-side p {
      margin: 0 0 16px;
      color: rgba(255,255,255,0.86);
      font-size: 15px;
    }

    .hero-side ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 10px;
    }

    .hero-side li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 14px;
    }

    .hero-side li::before {
      content: "";
      width: 12px;
      height: 12px;
      margin-top: 4px;
      border-radius: 999px;
      flex: 0 0 12px;
      background: #fff;
      box-shadow: 0 0 0 4px rgba(255,255,255,0.16);
    }

    .layout {
      margin-top: 24px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 340px;
      gap: 24px;
      align-items: start;
    }

    .form-card {
      border-radius: 28px;
      padding: 26px;
      overflow: visible;
    }

    .side-column {
      display: grid;
      gap: 18px;
      position: sticky;
      top: calc(var(--nav-h) + 20px);
    }

    .side-card {
      border-radius: 22px;
      padding: 22px;
    }

    .side-card h3,
    .side-card h4 {
      margin: 0 0 12px;
      line-height: 1.2;
      color: var(--text);
    }

    .side-card p,
    .side-card li {
      color: var(--muted);
      font-size: 14px;
    }

    body.dark-mode .side-card p,
    body.dark-mode .side-card li,
    body.dark-mode .trust-list li,
    body.dark-mode .doc-list li {
      color: #d6e0ea;
    }

    body.dark-mode .side-card h3,
    body.dark-mode .side-card h4 {
      color: #f5f7fb;
    }

    .doc-list,
    .trust-list,
    .tip-list {
      margin: 0;
      padding-left: 18px;
      display: grid;
      gap: 8px;
    }

    .status-grid {
      display: grid;
      gap: 10px;
      margin-top: 12px;
    }

    .status-chip {
      padding: 12px 14px;
      border-radius: 16px;
      background: var(--panel-2);
      border: 1px solid var(--line);
      display: flex;
      justify-content: space-between;
      gap: 10px;
      align-items: center;
      font-size: 13px;
    }

    .status-chip b {
      font-size: 14px;
    }

    .section-card {
      border-radius: 24px;
      padding: 24px;
      margin-bottom: 18px;
      scroll-margin-top: calc(var(--nav-h) + 18px);
      overflow: visible;
      display: none;
    }

    .section-card.is-active {
      display: block;
      animation: fadeInUp 0.28s ease;
    }

    .completion-screen {
      display: none;
      border-radius: 24px;
      padding: 28px;
      background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,1) 100%);
      border: 1px solid var(--line);
    }

    .completion-screen.is-active {
      display: block;
      animation: fadeInUp 0.28s ease;
    }

    .completion-check {
      width: 72px;
      height: 72px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      font-size: 34px;
      font-weight: 800;
      color: #fff;
      background: linear-gradient(135deg, #1a7f37 0%, #2ca24d 100%);
      box-shadow: 0 14px 32px rgba(26, 127, 55, 0.22);
      margin-bottom: 18px;
    }

    .completion-title {
      margin: 0 0 10px;
      color: var(--text);
    }

    .completion-lead {
      margin: 0;
      color: var(--muted);
      max-width: 760px;
    }

    .completion-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
      gap: 20px;
      margin-top: 22px;
    }

    .completion-panel {
      border-radius: 18px;
      border: 1px solid var(--line);
      background: var(--panel-2);
      padding: 20px;
    }

    .completion-heading {
      margin: 0 0 10px;
      color: var(--text);
    }

    .completion-copy {
      margin: 0;
      color: var(--muted);
    }

    .completion-email {
      margin: 0 0 8px;
      color: var(--text);
    }

    .completion-email a {
      font-weight: 800;
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    body.dark-mode .completion-screen {
      background: linear-gradient(180deg, rgba(15,23,35,0.96) 0%, rgba(16,26,39,0.98) 100%);
      border-color: rgba(255,255,255,0.12);
    }

    body.dark-mode .completion-panel {
      background: linear-gradient(180deg, rgba(19,31,47,0.96) 0%, rgba(18,30,45,0.98) 100%);
      border-color: rgba(255,255,255,0.14);
    }

    body.dark-mode .completion-copy,
    body.dark-mode .completion-lead {
      color: #d6e0ea;
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(6px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .section-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 18px;
    }

    .section-head h2 {
      margin: 0;
      font-size: clamp(24px, 3vw, 30px);
      line-height: 1.1;
      letter-spacing: -0.02em;
    }

    .section-head p {
      margin: 6px 0 0;
      color: var(--muted);
    }

    .section-index {
      display: inline-grid;
      place-items: center;
      min-width: 54px;
      height: 54px;
      border-radius: 18px;
      background: linear-gradient(135deg, #ef233c 0%, #b7001f 100%);
      color: #fff;
      box-shadow: 0 10px 18px rgba(200,16,46,0.22);
      font-weight: 900;
      font-size: 18px;
      letter-spacing: 0.02em;
      padding: 0 16px;
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: 16px;
    }

    .trade-grid-compact {
      row-gap: 18px;
    }

    .trade-grid-compact .field > label:not(.checkbox-line) {
      min-height: 0;
      margin-bottom: 6px;
    }

    .trade-grid-divider {
      padding-top: 2px;
    }

    .trade-grid-divider .fieldset-label {
      margin: 0;
      padding-top: 12px;
      border-top: 1px solid var(--line);
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .trade-grid-divider.is-first .fieldset-label {
      border-top: 0;
      padding-top: 0;
    }

    .trade-notes textarea {
      min-height: 110px;
    }

    .field {
      grid-column: span 12;
      min-width: 0;
    }

    .span-2 { grid-column: span 2; }
    .span-3 { grid-column: span 3; }
    .span-4 { grid-column: span 4; }
    .span-5 { grid-column: span 5; }
    .span-6 { grid-column: span 6; }
    .span-7 { grid-column: span 7; }
    .span-8 { grid-column: span 8; }
    .span-9 { grid-column: span 9; }
    .span-12 { grid-column: span 12; }

    .field > label:not(.checkbox-line) {
      display: block;
      font-size: 13px;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 8px;
      letter-spacing: 0.01em;
      line-height: 1.25;
      min-height: calc(1.25em * 2);
    }

    .fieldset-label {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 8px;
      letter-spacing: 0.01em;
    }

    .label-help {
      color: var(--muted);
      font-weight: 600;
      font-size: 12px;
    }

    .required-dot {
      color: var(--brand);
      font-weight: 900;
      white-space: nowrap;
    }

    .field > label:not(.checkbox-line) .required-dot {
      margin-left: 4px;
    }

    .field input,
    .field select,
    .field textarea {
      width: 100%;
      border: 1px solid var(--line-2);
      background: var(--panel-2);
      color: var(--text);
      border-radius: 16px;
      min-height: 56px;
      padding: 15px 16px;
      outline: none;
      transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
    }

    .field textarea {
      min-height: 120px;
      resize: vertical;
    }

    .vin-input {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      letter-spacing: 0.04em;
    }

    .decode-btn {
      width: 100%;
      min-height: 56px;
      margin: 0;
    }

    .field input:focus,
    .field select:focus,
    .field textarea:focus {
      border-color: rgba(200,16,46,0.55);
      box-shadow: 0 0 0 5px var(--focus);
      background: var(--panel);
    }

    .field.is-invalid input,
    .field.is-invalid select,
    .field.is-invalid textarea {
      border-color: rgba(198,40,40,0.55);
      box-shadow: 0 0 0 5px rgba(198,40,40,0.12);
      background: var(--error-soft);
    }

    .field.is-valid input,
    .field.is-valid select,
    .field.is-valid textarea {
      border-color: rgba(26,127,55,0.38);
    }

    .field.is-warning input,
    .field.is-warning select,
    .field.is-warning textarea {
      border-color: rgba(178,106,0,0.55);
      box-shadow: 0 0 0 5px rgba(178,106,0,0.12);
      background: rgba(178,106,0,0.06);
    }

    .field small,
    .field-error,
    .field-note {
      display: block;
      margin-top: 8px;
      font-size: 12px;
      line-height: 1.45;
    }

    .field-note {
      color: var(--muted);
    }

    .field-error {
      color: var(--error);
      font-weight: 700;
      display: none;
    }

    .field.is-invalid .field-error {
      display: block;
    }

    .field.is-warning .field-error {
      display: block;
      color: var(--warn);
    }

    .section-validation-message {
      margin: 0 0 18px;
      padding: 12px 14px;
      border-radius: 12px;
      border: 1px solid rgba(198, 40, 40, 0.28);
      background: rgba(198, 40, 40, 0.08);
      color: #8f1d1d;
      font-size: 14px;
      line-height: 1.45;
    }

    .field-inline {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .radio-card-grid,
    .checkbox-card-grid,
    .mini-card-grid,
    .toggle-grid {
      display: grid;
      gap: 12px;
    }

    .radio-card-grid,
    .checkbox-card-grid {
      grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    }

    .mini-card-grid {
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .toggle-grid {
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .choice-card {
      position: relative;
    }

    .choice-card input {
      position: absolute;
      inset: 0;
      opacity: 0;
      pointer-events: none;
    }

    .choice-card label {
      min-height: 64px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 14px 16px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: var(--panel-2);
      color: var(--text);
      font-weight: 700;
      cursor: pointer;
      transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    }

    .choice-card input:checked + label {
      border-color: rgba(200,16,46,0.36);
      background: var(--brand-soft);
      color: var(--brand);
      box-shadow: 0 10px 18px rgba(200,16,46,0.12);
    }

    .subsection {
      margin-top: 6px;
      padding: 18px;
      border-radius: 20px;
      background: linear-gradient(180deg, rgba(148,163,184,0.06) 0%, rgba(148,163,184,0.02) 100%);
      border: 1px dashed rgba(100,116,139,0.26);
    }

    body.dark-mode .subsection {
      background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.015) 100%);
      border-color: rgba(255,255,255,0.14);
    }

    .inline-note {
      margin-top: 16px;
      border-radius: 18px;
      padding: 16px 18px;
      background: linear-gradient(180deg, rgba(248,250,252,0.96) 0%, rgba(241,245,249,1) 100%);
    }

    body.dark-mode .inline-note {
      background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.02) 100%);
    }

    .inline-note strong {
      display: block;
      margin-bottom: 6px;
    }

    .range-wrap {
      padding: 18px;
      border-radius: 20px;
      background: var(--panel-2);
      border: 1px solid var(--line);
    }

    .range-head {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      margin-bottom: 12px;
    }

    .range-value {
      font-size: 22px;
      font-weight: 900;
      color: var(--brand);
    }

    .range-wrap input[type="range"] {
      min-height: auto;
      padding: 0;
      background: transparent;
      border: 0;
      box-shadow: none;
    }

    .section-nav {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      margin-top: 22px;
      flex-wrap: wrap;
    }

    .nav-btn,
    .submit-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 54px;
      border-radius: 16px;
      padding: 14px 18px;
      font-weight: 800;
      letter-spacing: 0.01em;
    }

    .nav-btn.prev {
      background: var(--panel-2);
      color: var(--text);
      border: 1px solid var(--line);
    }

    .nav-btn.next,
    .submit-btn {
      background: linear-gradient(135deg, #ef233c 0%, #c8102e 45%, #900c22 100%);
      color: #fff;
      box-shadow: 0 16px 28px rgba(200,16,46,0.26);
    }

    .submit-btn.is-submitting {
      cursor: progress;
      opacity: 1;
    }

    .submit-btn.is-submitting::before {
      content: "";
      width: 16px;
      height: 16px;
      border-radius: 999px;
      border: 2px solid rgba(255, 255, 255, 0.38);
      border-top-color: #ffffff;
      animation: submitSpin 0.75s linear infinite;
      flex: 0 0 16px;
    }

    .submit-btn.is-submitting[disabled] {
      opacity: 1;
      box-shadow: 0 16px 28px rgba(200,16,46,0.26);
    }

    .nav-btn[disabled],
    .submit-btn[disabled] {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    @keyframes submitSpin {
      to {
        transform: rotate(360deg);
      }
    }

    .review-grid {
      display: grid;
      gap: 16px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .review-card {
      border: 1px solid var(--line);
      border-radius: 18px;
      background: var(--panel-2);
      padding: 16px;
    }

    .review-card h3 {
      margin: 0 0 10px;
      font-size: 15px;
    }

    .review-list {
      display: grid;
      gap: 8px;
      margin: 0;
    }

    .review-item {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      border-bottom: 1px dashed rgba(100,116,139,0.24);
      padding-bottom: 8px;
      font-size: 13px;
    }

    .review-item:last-child {
      border-bottom: 0;
      padding-bottom: 0;
    }

    .review-item dt {
      color: var(--muted);
      font-weight: 700;
      margin: 0;
    }

    .review-item dd {
      margin: 0;
      text-align: right;
      font-weight: 700;
      overflow-wrap: break-word;
      word-break: normal;
      max-width: 60%;
    }

    .consent-box {
      padding: 18px;
      border-radius: 20px;
      background: var(--panel-2);
      border: 1px solid var(--line);
      display: grid;
      gap: 14px;
    }

    .checkbox-line {
      display: grid;
      grid-template-columns: 22px minmax(0, 1fr);
      gap: 12px;
      align-items: start;
    }

    .checkbox-line input {
      margin-top: 3px;
      width: 20px;
      height: 20px;
      min-height: auto;
      padding: 0;
      border-radius: 6px;
      accent-color: #c8102e;
    }

    .disclosure-card {
      margin-top: 20px;
      border-radius: 24px;
      padding: 22px;
    }

    .disclosure-card h3 {
      margin: 0 0 12px;
      font-size: 18px;
    }

    .disclosure-card p,
    .disclosure-card li {
      font-size: 13px;
      color: var(--muted);
    }

    .utility-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
      flex-wrap: wrap;
    }

    .saved-state,
    .security-badges {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
    }

    .action-chip {
      padding: 9px 12px;
      border-radius: 999px;
      background: var(--panel-2);
      color: var(--text);
      border: 1px solid var(--line);
      font-weight: 700;
      font-size: 12px;
    }

    .action-chip.is-good {
      background: rgba(26,127,55,0.08);
      border-color: rgba(26,127,55,0.18);
      color: var(--success);
    }

    .toast-stack {
      position: fixed;
      right: 18px;
      bottom: 18px;
      z-index: 2000;
      display: grid;
      gap: 10px;
      width: min(420px, calc(100vw - 24px));
    }

    .toast {
      border-radius: 18px;
      padding: 14px 16px;
      display: grid;
      gap: 4px;
      border-left: 4px solid var(--brand);
    }

    .toast strong {
      font-size: 14px;
    }

    .toast span {
      font-size: 13px;
      color: var(--muted);
    }

    .toast.is-error {
      border-left-color: var(--error);
    }

    .toast.is-success {
      border-left-color: var(--success);
    }

    .hp-wrap {
      position: absolute !important;
      left: -10000px !important;
      top: auto !important;
      width: 1px !important;
      height: 1px !important;
      overflow: hidden !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }

    .visually-hidden {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      padding: 0 !important;
      margin: -1px !important;
      overflow: hidden !important;
      clip: rect(0, 0, 0, 0) !important;
      white-space: nowrap !important;
      border: 0 !important;
    }

    .footer-note {
      margin-top: 24px;
      text-align: center;
      color: var(--muted);
      font-size: 12px;
    }


    .version-stamp {
      margin-top: 6px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.02em;
    }
    @media (max-width: 980px) {
      .layout {
        grid-template-columns: minmax(0, 1fr);
      }

      .side-column {
        position: static;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      }
    }

    @media (max-width: 960px) {
      :root {
        --nav-h: 0px;
      }

      .app-shell {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
      }

      .topbar {
        position: static;
        backdrop-filter: none;
      }

      .topbar-inner {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        padding: 10px 14px 12px;
        gap: 10px;
      }

      .brand-wrap {
        justify-content: center;
        gap: 10px;
      }

      .brand-badge {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 13px;
      }

      .brand-copy {
        text-align: center;
      }

      .brand-copy .eyebrow {
        font-size: 10px;
        margin-bottom: 1px;
      }

      .brand-copy .title {
        font-size: 17px;
        line-height: 1.2;
      }

      .toolbar {
        justify-content: center;
      }

      .theme-toggle {
        min-height: 42px;
        padding: 8px 12px;
      }

      .theme-toggle-icon {
        width: 26px;
        height: 26px;
        font-size: 13px;
      }

      .progress-meta {
        margin-bottom: 8px;
      }

      .progress-steps {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        margin-top: 8px;
        padding-bottom: 3px;
      }

      .progress-step {
        flex: 0 0 auto;
        min-width: 108px;
        font-size: 10px;
        padding: 4px 10px;
      }

      .page {
        margin-top: 14px;
        padding: 0 14px;
      }

      .hero-card {
        grid-template-columns: 1fr;
      }

      .hero-copy,
      .hero-side {
        padding: 22px;
      }

      .hero-copy h1 {
        font-size: clamp(28px, 7.6vw, 38px);
      }

      .hero-side h2 {
        font-size: 22px;
      }

      .layout {
        margin-top: 16px;
      }

      .utility-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 14px;
      }

      .saved-state {
        width: 100%;
      }

      .form-card,
      .side-card,
      .section-card,
      .disclosure-card {
        border-radius: 20px;
        padding: 20px;
      }

      .section-card {
        margin-bottom: 14px;
      }

      .section-head {
        gap: 12px;
      }

      .section-head h2 {
        font-size: clamp(22px, 5.4vw, 28px);
      }

      .section-index {
        min-width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 17px;
        padding: 0 12px;
      }

      .field > label:not(.checkbox-line) {
        min-height: 0;
        margin-bottom: 6px;
        font-size: 12.5px;
      }

      .field input,
      .field select,
      .field textarea {
        min-height: 52px;
        padding: 13px 14px;
        border-radius: 14px;
      }

      .radio-card-grid,
      .checkbox-card-grid {
        grid-template-columns: 1fr;
      }

      .choice-card label {
        min-height: 56px;
      }

      .signature-box,
      .privacy-notice-box,
      .consent-box,
      .range-wrap,
      .subsection {
        padding: 14px;
      }

      .signature-canvas {
        height: 150px;
      }

      .signature-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
      }

      .signature-clear-btn {
        width: 100%;
      }

      .privacy-notice-scroll {
        max-height: 230px;
        padding: 14px;
      }

      .privacy-grid-row {
        grid-template-columns: 1fr;
        gap: 6px;
      }

      .section-nav {
        margin-top: 18px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
      }

      .nav-btn,
      .submit-btn {
        min-height: 50px;
      }

      .review-grid,
      .hero-points,
      .completion-grid {
        grid-template-columns: 1fr;
      }

      .review-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
      }

      .review-item dd {
        max-width: 100%;
        text-align: left;
      }

      .toast-stack {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
      }

      .toast {
        border-radius: 14px;
      }

      .device-modal {
        align-items: flex-end;
        padding: 12px;
      }

      .device-modal-card {
        width: 100%;
        border-radius: 18px;
        padding: 16px;
        max-height: calc(100dvh - 24px);
      }

      .device-modal-grid {
        grid-template-columns: 1fr;
        gap: 10px;
      }

      .device-choice {
        min-height: 0;
        padding: 14px;
        border-radius: 16px;
      }

      .field.span-6,
      .field.span-5,
      .field.span-4,
      .field.span-3,
      .field.span-2,
      .field.span-7,
      .field.span-8,
      .field.span-9 {
        grid-column: span 12;
      }
    }

    @media (max-width: 640px) {
      .topbar-inner {
        padding: 8px 10px 10px;
      }

      .brand-badge {
        width: 36px;
        height: 36px;
        border-radius: 10px;
      }

      .brand-copy .title {
        font-size: 15px;
      }

      .theme-toggle {
        min-height: 38px;
        padding: 6px 10px;
      }

      .theme-toggle span:last-child {
        display: none;
      }

      .progress-meta {
        font-size: 11px;
        margin-bottom: 7px;
      }

      .progress-bar {
        height: 10px;
      }

      .progress-step {
        min-width: 96px;
      }

      .page {
        padding: 0 10px;
      }

      .hero-copy,
      .hero-side,
      .form-card,
      .side-card,
      .section-card,
      .disclosure-card,
      .completion-screen {
        padding: 16px;
        border-radius: 16px;
      }

      .hero-kicker {
        font-size: 10px;
        letter-spacing: 0.06em;
        padding: 6px 10px;
      }

      .hero-copy h1 {
        font-size: clamp(24px, 9vw, 32px);
      }

      .hero-version {
        font-size: 11px;
        margin-bottom: 12px;
      }

      .hero-copy p {
        font-size: 14px;
      }

      .hero-point {
        padding: 12px;
      }

      .hero-point-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
      }

      .hero-side h2 {
        font-size: 20px;
      }

      .hero-side p,
      .hero-side li {
        font-size: 13px;
      }

      .hero-actions {
        margin-top: 14px;
      }

      .begin-btn {
        width: 100%;
        min-height: 48px;
      }

      .action-chip {
        font-size: 11px;
        padding: 8px 10px;
      }

      .status-chip {
        padding: 10px 12px;
        font-size: 12px;
      }

      .status-chip b {
        font-size: 13px;
      }

      .section-head {
        flex-direction: column;
      }

      .section-nav {
        flex-direction: column-reverse;
      }

      .nav-btn,
      .submit-btn {
        width: 100%;
      }

      .field-inline {
        grid-template-columns: 1fr;
      }

      .field input,
      .field select,
      .field textarea {
        font-size: 16px;
      }

      .checkbox-line {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 10px;
      }

      .signature-canvas {
        height: 136px;
      }

      .review-card {
        padding: 12px;
      }

      .toast-stack {
        left: 8px;
        right: 8px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
        width: auto;
      }
    }

    @media (max-width: 480px) {
      .progress-meta span:last-child {
        display: none;
      }

      .progress-step {
        min-width: 88px;
        font-size: 9.5px;
      }

      .form-card,
      .side-card,
      .section-card,
      .disclosure-card,
      .completion-screen {
        padding: 14px;
      }

      .field input,
      .field select,
      .field textarea {
        min-height: 50px;
      }

      .device-modal {
        padding: 8px;
      }

      .device-modal-card {
        padding: 14px;
        border-radius: 14px;
        max-height: calc(100dvh - 16px);
      }
    }
  
