.hidden { display: none !important; }
.slot-remove.hidden { display: none !important; }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --black:    #f8f9fb;
      --black2:   #f0f2f5;
      --black3:   #e8eaee;
      --black4:   #dde0e6;
      --line:     #b8bcc8;
      --line2:    #a8adb8;
      --red:      #0f52ba;
      --red-dim:  #e0eaff;
      --red-mid:  #6090e0;
      --text:     #0a0c10;
      --text2:    #28303e;
      --text3:    #505870;
      --white:    #0a0c10;
      --amber:     #c8a000;
      --amber-dim: rgba(180,140,0,0.12);
      --amber-mid: rgba(180,140,0,0.35);
      --green:     #5aaa72;
      --green-dim: rgba(220,252,231,1.0);
      --green-mid: rgba(134,239,172,1.0);
      --sev-high:     #e03535;
      --sev-high-dim: rgba(254,226,226,1.0);
      --sev-high-mid: rgba(252,165,165,1.0);
      --sev-med:      #f59e0b;
      --sev-med-dim:  rgba(254,249,195,1.0);
      --sev-med-mid:  rgba(253,224,71,1.0);
      --r:        4px;
      --r-lg:     8px;
    }

    html { scroll-behavior: smooth; background: #ffffff; }

    body {
      background: #ffffff;
      color: var(--text);
      font-family: 'DM Sans', sans-serif;
      font-size: 16px;
      line-height: 1.6;
      min-height: 100vh;
      -webkit-font-smoothing: antialiased;
      background-image:
        linear-gradient(160deg, #ffffff 0%, #ffffff 100%);
      background-size: auto;
      background-attachment: fixed;
    }

    /* PAGE CANVAS — decorative top arc */
    body::before {
      content: '';
      position: fixed;
      top: 0; left: 50%;
      transform: translateX(-50%);
      width: 900px; height: 2px;
      background: linear-gradient(90deg, transparent, rgba(15,82,186,0.15) 15%, rgba(15,82,186,0.22) 40%, rgba(15,82,186,0.28) 50%, rgba(15,82,186,0.22) 60%, rgba(15,82,186,0.15) 85%, transparent);
      z-index: 300;
      pointer-events: none;
    }

    /* HEADER */
    header {
      height: 52px;
      background: #141E2E;
      backdrop-filter: blur(16px) saturate(1.4);
      -webkit-backdrop-filter: blur(16px) saturate(1.4);
      border-bottom: none;
      box-shadow: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 2rem;
      position: sticky;
      top: 0;
      z-index: 200;
      overflow: hidden;
      will-change: transform;
    }



    /* Precise blue accent line at very bottom */
    /* Option S — Cobalt inner glow from left edge */
    header::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 420px; height: 100%;
      background: linear-gradient(90deg,
        rgba(15,82,186,0.38) 0%,
        rgba(15,82,186,0.30) 15%,
        rgba(15,82,186,0.18) 45%,
        rgba(15,82,186,0.06) 72%,
        transparent 100%);
      pointer-events: none;
      z-index: 0;
    }

    header::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 0;
      pointer-events: none;
    }


    .logo { display: flex; align-items: center; text-decoration: none; position: relative; z-index: 1; }

    .logo-name {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 30px; letter-spacing: 0.06em;
      line-height: 1;
      color: #ffffff;
      -webkit-text-fill-color: #ffffff;
      background: none;
      text-shadow: none;
    }
    .logo-name span:not(.logo-wrench) {
      background: none;
      -webkit-background-clip: unset;
      background-clip: unset;
      -webkit-text-fill-color: #6aa3d5;
      -webkit-text-stroke: 0;
      text-shadow: none;
    }
    .logo-name .logo-wrench {
      -webkit-text-fill-color: #ffffff;
      background: none;
      -webkit-background-clip: unset;
      background-clip: unset;
      text-shadow: none;
    }

    .header-scan {
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      pointer-events: none;
      overflow: hidden;
    }

    /* HERO */
    .hero {
      padding: 24px 2.5rem 16px;
      max-width: 1400px; margin: 0 auto;
      text-align: center;
      position: relative;
    }

    }

    }

    .hero h1 {
      position: relative; z-index: 1;
    }

    .hero h1 {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: clamp(30px, 3.2vw, 46px);
      font-weight: 700;
      font-style: normal;
      text-transform: uppercase;
      line-height: 1.2; letter-spacing: 0.08em;
      white-space: nowrap;
      background: linear-gradient(180deg, #4a5260 0%, #2a3045 40%, #0f1828 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 10px;
      max-width: 100%;
      text-align: center;
      margin-left: auto; margin-right: auto;
    }

    .hero h1 .hl-white {
      -webkit-text-fill-color: #0a0c10;
      background: none;
      font-weight: 800;
    }

    .hero h1 .hl-blue {
      -webkit-text-fill-color: #0f52ba;
      font-weight: 800;
    }
    .hero h1 .hl-pin {
      display: inline-block;
      width: 1.5px;
      height: 0.75em;
      margin: 0 0.45em;
      vertical-align: middle;
      position: relative;
      top: -0.05em;
      background: linear-gradient(
        to bottom,
        transparent 0%,
        #6aa3d5 35%,
        #6aa3d5 65%,
        transparent 100%
      );
      -webkit-text-fill-color: initial;
    }

    .hero-free {
      font-family: 'DM Sans', sans-serif;
      font-size: 13px; font-weight: 400;
      color: #5a6070;
      margin: 10px auto 0; text-align: center;
      letter-spacing: 0.01em;
    }


    @media (max-width: 768px) {
      /* ── HERO */
      .hero { padding: 28px 1.5rem 20px; }
      .hero h1 { font-size: clamp(22px, 5.6vw, 30px); white-space: nowrap; letter-spacing: 0.03em; }
            
      /* ── SELECTOR */
      .selector-section { padding: 0 1.25rem 48px; }
      .mode-bar { width: 100%; }
        .selector-panel { padding: 1.25rem; }
      .selector-card { background: transparent; border-radius: 0; }
      .dropdowns { grid-template-columns: 1fr 1fr; gap: 8px; }
      .slot-head { margin-bottom: 10px; }
      .action-row { flex-direction: column; align-items: stretch; gap: 14px; }
      .btn-run { text-align: center; padding: 14px; font-size: 13px; }
      .disclaimer { font-size: 12px; }
      .add-slot-btn { width: auto; justify-content: center; font-size: 12px; display: flex; margin: 0 auto 1.5rem; }

      /* ── RESULTS */
      .results-section { padding: 0 1.25rem 48px; }
      .results-header { flex-direction: column; align-items: flex-start; gap: 4px; }
      .tab-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
      .tab { padding: 10px 10px; font-size: 10px; flex: 0 0 auto; white-space: nowrap; letter-spacing: 0.04em; }
      .results-grid { grid-template-columns: 1fr !important; }
      .vehicle-col { padding: 1.1rem 1rem; }
      .issue-list { grid-template-columns: 1fr !important; }
      .fault-summary { gap: 12px; }
      .fault-count { font-size: 32px; }
      .fault-count-label { font-size: 13px; }
      .fault-count-sub { font-size: 13px; }
      .issue-name { font-size: 14px; }
      .issue-desc { font-size: 13px; }
      .meta-chip { font-size: 12px; }
      .vcol-name { font-size: 18px; }
      .freq-row { flex-wrap: wrap; }

      /* ── COVERAGE */
        /* ── COMPARISON — handled by comp-mobile-* CSS above */
      .results-grid { overflow-x: hidden; max-width: 100vw; }
      .results-section { overflow-x: hidden; max-width: 100vw; }

      /* ── FOOTER */
      .footer-brand-bar { padding: 0 1.25rem; }
      .footer-body { padding: 1.5rem 1.25rem; }
      .footer-top { flex-direction: column; gap: 6px; align-items: flex-start; }
      .disclaimer-block { grid-template-columns: 1fr; }
      .footer-bottom { flex-direction: column; gap: 4px; text-align: center; }
    }

    @media (max-width: 480px) {
      /* ── HERO */
      .hero { padding: 20px 1.25rem 16px; }
      .hero h1 { font-size: clamp(16px, 5.0vw, 22px); white-space: nowrap; letter-spacing: 0.00em; }
      .hero-free { font-size: 12px; }
      .repair-diff { flex-wrap: wrap; gap: 4px; }
      .mfr-badge { font-size: 9px; }

      /* ── SELECTOR */
      .selector-section { padding: 0 1rem 40px; }
      .dropdowns { grid-template-columns: 1fr; }
  
      /* ── RESULTS */
      .results-section { padding: 0 0.75rem 40px; }
      .results-title { font-size: 22px; }
      .tab { padding: 9px 8px; font-size: 9px; letter-spacing: 0.04em; }

        /* ── COVERAGE */
        /* ── FOOTER */
      .footer-brand-bar { padding: 0 1rem; }
      .footer-body { padding: 1.25rem 1rem; }
      .disclaimer-block { padding: 0 1rem 1.5rem; }
    }
    .selector-section {
      max-width: 1400px; margin: 0 auto;
      padding: 0 2rem 36px;
    }

    .selector-wrap {
      background: #f8f9fb;
      border-bottom: 1px solid #e8eaee;
    }


    .selector-panel {
      background: transparent;
      border: none;
      padding: 1.25rem 1.5rem 1.5rem;
    }

    .selector-card {
      background: #f8f9fb;
      padding: 1.5rem;
      margin-bottom: 1rem;
      border-radius: 8px;
    }
    @media (max-width: 480px) {
      .selector-card { padding: 1rem; border-radius: 0; background: transparent; }
    }

    .slots-grid {
      display: grid; gap: 1px;
      background: transparent;
      margin-bottom: 1.25rem;
    }

    .slot {
      background: transparent;
      padding: 1rem 1.25rem;
    }

    .slot-head {
      display: flex; align-items: center;
      justify-content: space-between;
      margin-bottom: 0.75rem;
    }

    .slot-id {
      font-family: 'DM Sans', sans-serif;
      font-size: 12px; letter-spacing: 0.12em;
      text-transform: uppercase; color: var(--red);
    }

    .slot-remove {
      background: none;
      border: 1px solid rgba(15,82,186,0.30);
      border-radius: 20px;
      color: #0f52ba;
      font-family: 'DM Sans', sans-serif;
      font-size: 15px; font-weight: 400;
      line-height: 1;
      width: 26px; height: 26px;
      display: inline-flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: all 0.18s ease;
      flex-shrink: 0;
      padding: 0;
    }
    .slot-remove:hover {
      background: rgba(15,82,186,0.06);
      border-color: rgba(15,82,186,0.65);
    }

    .dropdowns {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
      gap: 8px;
    }

    .field {
      display: flex; flex-direction: column;
      position: relative;
    }
    .field::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 80% 60% at 50% 100%,
        rgba(255,255,255,0.04) 0%,
        transparent 70%);
      pointer-events: none;
    }

    select {
      background-color: #f4f5f8;
      border: 1px solid #b8bcc8;
      border-radius: 6px;
      color: var(--text);
      font-family: 'DM Sans', sans-serif;
      font-size: 15px;
      padding: 10px 32px 10px 12px;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-clip: padding-box;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230f52ba' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      cursor: pointer; width: 100%;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    select:hover:not(:disabled) {
      border-color: #8890a0;
    }
    select:focus { outline: none; border-color: #0f52ba; box-shadow: 0 0 0 3px rgba(15,82,186,0.12); }
    select:disabled { opacity: 0.28; cursor: not-allowed; }
    select option { background: #ffffff; color: #0d0f14; }

    .action-row {
      display: flex; align-items: center;
      justify-content: flex-end;
      gap: 1rem; flex-wrap: wrap;
    }

    .disclaimer {
      font-size: 11px; color: var(--text3);
      line-height: 1.5; max-width: 500px;
      opacity: 0.7;
    }
    .disclaimer a { color: var(--text2); text-decoration: none; border-bottom: 1px solid var(--line2); }
    .disclaimer a:hover { color: var(--text); }

    .add-slot-btn {
      background: none;
      border: 1px solid rgba(15,82,186,0.35);
      border-radius: 20px;
      color: #0f52ba;
      font-family: 'DM Sans', sans-serif;
      font-size: 12px; font-weight: 600;
      letter-spacing: 0.04em;
      padding: 7px 18px; cursor: pointer;
      display: inline-flex; align-items: center;
      gap: 6px; transition: all 0.18s ease;
      margin-bottom: 1.5rem;
      width: auto;
    }
    .add-slot-btn:hover {
      background: rgba(15,82,186,0.06);
      border-color: rgba(15,82,186,0.65);
    }

    .btn-run {
      background: linear-gradient(135deg, #0a1f5c 0%, #0f52ba 50%, #1565d8 100%);
      color: #ffffff;
      border: none;
      font-family: 'DM Sans', sans-serif;
      font-size: 13px; font-weight: 600;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      padding: 13px 40px; cursor: pointer;
      transition: box-shadow 0.25s, transform 0.1s;
      white-space: nowrap; flex-shrink: 0;
      position: relative;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.20),
        0 2px 8px rgba(15,82,186,0.30);
    }
    .btn-run::after {
      content: '';
      position: absolute;
      top: 0; left: 10%; right: 10%;
      height: 1px;
      background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.50) 40%,
        rgba(255,255,255,0.80) 50%,
        rgba(255,255,255,0.50) 60%,
        transparent);
    }
    .btn-run:hover {
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.20),
        0 4px 20px rgba(15,82,186,0.45),
        0 8px 40px rgba(15,82,186,0.20);
      transform: translateY(-1px);
    }
    .btn-run:active { transform: scale(0.98); }
    .btn-run:disabled {
      background: var(--line); color: var(--text3);
      cursor: not-allowed; transform: none;
    }

    /* SEVERITY LEGEND + FRESHNESS */


    .freshness-note {
      font-family: 'DM Sans', sans-serif;
      font-size: 13px; color: var(--text3);
      letter-spacing: 0.06em;
      white-space: nowrap;
    }

    /* FAULT SUMMARY BAR */
    .fault-summary {
      display: flex; align-items: flex-start; gap: 14px;
      padding: 14px 0 16px;
      border-bottom: 1px solid var(--line);
      margin-bottom: 1.25rem;
      flex-wrap: wrap;
    }

    .fault-count {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 38px; color: var(--red);
      line-height: 1; flex-shrink: 0;
      margin-top: 2px;
    }

    .fault-count-label {
      font-family: 'DM Sans', sans-serif;
      font-size: 12px; font-weight: 700;
      color: var(--text2); line-height: 1;
      letter-spacing: 0.06em; text-transform: uppercase;
      margin-bottom: 5px;
    }

    .fault-count-sub {
      font-size: 13px; color: var(--text2);
      line-height: 1.6; margin-top: 0;
      max-width: 700px; font-weight: 400;
    }

    .fault-total-badge {
      display: flex; align-items: center; gap: 10px;
      padding: 0; flex-shrink: 0; align-self: center;
    }
    .fault-total-num {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 36px; line-height: 1;
      color: var(--text); flex-shrink: 0;
    }
    .fault-total-lbl {
      font-family: 'DM Sans', sans-serif;
      font-size: 11px; letter-spacing: 0.12em;
      text-transform: uppercase; color: var(--text);
      line-height: 1.5;
      font-weight: 600;
    }

    /* RESULTS */
    .results-section {
      max-width: 1400px; margin: 0 auto;
      padding: 0 2.5rem 64px; display: none;
    }
    .results-section.visible { display: block; }

    .results-header {
      display: flex; align-items: flex-end;
      justify-content: space-between;
      margin-bottom: 1px; flex-wrap: wrap; gap: 8px;
      padding: 0 0 0 0;
    }

    .results-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 28px; letter-spacing: 0.04em; color: var(--white);
    }

    .results-meta {
      font-family: 'DM Sans', sans-serif;
      font-size: 12px; color: var(--text3);
      letter-spacing: 0.08em; text-transform: uppercase;
      padding-bottom: 4px;
    }

    .tab-bar {
      display: flex;
      background: #eaecf5;
      border: 1px solid #c8ccd8;
      border-radius: 8px 8px 0 0;
      overflow-x: auto; scrollbar-width: none;
      gap: 0;
    }
    .tab-bar::-webkit-scrollbar { display: none; }

    .tab {
      background: #eaecf5; border: none;
      border-right: 1px solid #c8ccd8;
      padding: 11px 12px;
      font-family: 'DM Sans', sans-serif;
      font-size: 11px; font-weight: 600;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: #6070a0; cursor: pointer;
      white-space: nowrap;
      transition: background 0.18s, color 0.18s, box-shadow 0.18s;
      position: relative; flex: 1; text-align: center;
      display: flex; align-items: center; justify-content: center; gap: 7px;
    }
    .tab:last-child { border-right: none; }
    .tab.active {
      background: #ffffff;
      color: #0f52ba;
      font-weight: 800;
      font-size: 11.5px;
      letter-spacing: 0.07em;
      box-shadow:
        inset 0 5px 0 #0f52ba,
        0 4px 12px rgba(15,82,186,0.15),
        0 1px 3px rgba(15,82,186,0.08);
      z-index: 1;
      animation: none !important;
    }
    .tab.active::after { display: none; }
    .tab:hover:not(.active) { background: #dde1f0; color: #28303e; }

    .results-grid {
      display: grid; gap: 1px;
      background: linear-gradient(to bottom,
        transparent 0%,
        rgba(15,82,186,0.25) 20%,
        rgba(15,82,186,0.40) 50%,
        rgba(15,82,186,0.25) 80%,
        transparent 100%);
      border: 1px solid rgba(0,0,0,0.08);
      box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    }

    .vehicle-col { background: #ffffff; border-top: 3px solid #0f52ba; padding: 1.75rem 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }

    .vcol-head {
      border-bottom: 1px solid rgba(0,0,0,0.08);
      padding-bottom: 1rem; margin-bottom: 1.25rem;
    }

    .vcol-year {
      font-family: 'DM Sans', sans-serif;
      font-size: 13px; color: #0f52ba; font-weight: 700;
      letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 2px;
    }

    .vcol-name {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 24px; letter-spacing: 0.04em;
      color: #0a0c10; line-height: 1.1;
    }

    .vcol-trim { font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text3); margin-top: 2px; }

    .issue-list {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
      gap: 12px;
    }

    .issue-card {
      background: rgba(255,255,255,0.95);
      border: 1px solid rgba(0,0,0,0.08);
      box-shadow:
        0 1px 4px rgba(0,0,0,0.06);
      padding: 1rem 1.1rem;
    }
    @keyframes cardFadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .issue-card {
      animation: cardFadeIn 0.35s ease forwards;
      opacity: 0;
    }
    .issue-card.severity-high { border-left: 3px solid var(--sev-high); background: rgba(224,53,53,0.028); }
    .issue-card.severity-med  { border-left: 3px solid var(--sev-med); background: rgba(232,124,42,0.028); }
    .issue-card.severity-low  { border-left: 3px solid var(--green); background: rgba(90,170,114,0.025); }

    .issue-top {
      display: flex; flex-direction: column;
      align-items: flex-start; gap: 6px; margin-bottom: 6px;
    }

    .issue-name { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.4; }

    .sev-tag {
      font-family: 'DM Sans', sans-serif;
      font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
      text-transform: uppercase; padding: 3px 9px; flex-shrink: 0;
      transition: filter 0.15s ease;
    }
      box-shadow: 0 0 0 1px rgba(224,53,53,0.22), 0 4px 16px rgba(224,53,53,0.12);
      border-color: rgba(224,53,53,0.30);
    }
    .issue-card.severity-med {
      box-shadow: 0 0 0 1px rgba(232,124,42,0.22), 0 4px 16px rgba(232,124,42,0.12);
      border-color: rgba(232,124,42,0.30);
    }
    .issue-card.severity-low {
      box-shadow: 0 0 0 1px rgba(90,170,114,0.22), 0 4px 16px rgba(90,170,114,0.12);
      border-color: rgba(90,170,114,0.30);
    }
    .issue-card:nth-child(1)  { animation-delay: 0.05s; }
    .issue-card:nth-child(2)  { animation-delay: 0.10s; }
    .issue-card:nth-child(3)  { animation-delay: 0.15s; }
    .issue-card:nth-child(4)  { animation-delay: 0.20s; }
    .issue-card:nth-child(5)  { animation-delay: 0.25s; }
    .issue-card:nth-child(6)  { animation-delay: 0.30s; }
    .issue-card:nth-child(7)  { animation-delay: 0.35s; }
    .issue-card:nth-child(8)  { animation-delay: 0.40s; }
    .issue-card:nth-child(9)  { animation-delay: 0.45s; }
    .issue-card:nth-child(10) { animation-delay: 0.50s; }

    .sev-tag {
      font-family: 'DM Sans', sans-serif;
      font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
      text-transform: uppercase; padding: 2px 7px; flex-shrink: 0;
      transition: filter 0.15s ease;
    }
    .sev-tag:hover { filter: none; cursor: default; }
    .sev-tag.high { background: transparent; color: var(--sev-high); border: 1px solid var(--sev-high); }
    .sev-tag.med  { background: transparent; color: var(--sev-med);  border: 1px solid var(--sev-med); }
    .sev-tag.low  { background: transparent; color: var(--green);    border: 1px solid var(--green); }

    .issue-desc { font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text2); line-height: 1.6; margin-bottom: 8px; }

    .issue-divider {
      height: 1px; background: var(--line);
      margin: 8px 0;
      opacity: 0.6;
    }

    .issue-meta { display: flex; flex-wrap: wrap; gap: 6px; }

    .meta-chip {
      font-family: 'DM Sans', sans-serif;
      font-size: 12px; color: var(--text3);
      background: rgba(0,0,0,0.04);
      border: 1px solid var(--line); padding: 4px 9px;
    }

    .recall-card {
      background: var(--red-dim);
      border: 1px solid var(--red-mid);
      border-left: 3px solid var(--red);
      padding: 1rem 1.1rem;
    }

    .recall-badge {
      font-family: 'DM Sans', sans-serif;
      font-size: 9px; letter-spacing: 0.12em;
      text-transform: uppercase; color: var(--red); margin-bottom: 6px;
    }

    .recall-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
    .recall-desc { font-size: 14px; color: var(--text2); line-height: 1.6; }
    .recall-num { font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text3); margin-top: 6px; }
    .recall-component { font-size: 13px; color: var(--text3); margin-bottom: 4px; font-family: 'DM Sans', sans-serif; }

    /* FREQUENCY & YEARS */
    .freq-row { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; flex-wrap: wrap; }
    .freq-badge {
      font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
      padding: 3px 9px; text-transform: uppercase;
    }
    .freq-very   { background: transparent; color: #d44c0d; border: 1px solid #d44c0d; }
    .freq-common { background: transparent; color: #d97706; border: 1px solid #d97706; }
    .freq-occ    { background: transparent; color: #888;    border: 1px solid #aaa; }
    .freq-rare   { background: transparent; color: var(--text3); border: 1px solid var(--line2); }
    .years-chip {
      font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text3);
      border: 1px solid var(--line); padding: 3px 7px;
      letter-spacing: 0.02em;
    }

    /* NO RECALLS / NO ISSUES */
    .no-recalls {
      padding: 2.5rem 1.5rem; text-align: center;
      background: rgba(255,255,255,0.95); border: 1px solid var(--line);
    }
    .no-recalls-icon  { font-size: 24px; color: #3a7a3a; margin-bottom: 8px; }
    .no-recalls-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
    .no-recalls-sub   { font-size: 13px; color: var(--text3); line-height: 1.6; }
    .no-recalls-sub a { color: var(--red); }
    .no-issues { padding: 2rem 1.5rem; text-align: center; font-size: 14px; color: var(--text3); background: rgba(255,255,255,0.95); border: 1px solid var(--line); }

    /* ERROR STATE */
    .error-col {
      padding: 3rem 2rem; text-align: center;
      background: rgba(255,255,255,0.95); border: 1px solid var(--line);
    }
    .error-icon  { font-size: 28px; color: var(--red); margin-bottom: 10px; }
    .error-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
    .error-msg   { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 8px; }
    .error-hint  { font-size: 11px; color: var(--text3); font-family: 'DM Sans', sans-serif; }

    .loading-col {
      background: rgba(248,249,251,0.98); padding: 2rem 1.5rem;
      display: flex; flex-direction: column;
      align-items: center; gap: 10px;
    }
    .loading-steps {
      display: flex; flex-direction: column;
      gap: 8px; width: 100%; max-width: 280px; margin: 8px 0;
    }
    .loading-step {
      display: flex; align-items: center; gap: 10px;
      font-family: 'DM Sans', sans-serif;
      font-size: 12px; color: var(--text3);
      opacity: 0.4;
      transition: opacity 0.4s ease, color 0.4s ease;
    }
    .loading-step.active {
      color: var(--text2); opacity: 1;
    }
    .loading-step.done {
      color: #1a7a4a; opacity: 0.85;
    }
    .loading-step-icon { width: 14px; height: 14px; flex-shrink: 0; }
    @keyframes stepSpin {
      to { transform: rotate(360deg); }
    }
    .loading-step-icon.spinning {
      display: inline-block;
      width: 14px; height: 14px;
      border: 2px solid rgba(15,82,186,0.20);
      border-top-color: #0f52ba;
      border-radius: 50%;
      animation: stepSpin 0.7s linear infinite;
      font-size: 0;
    }
    .loading-step-icon.pending {
      display: inline-block;
      width: 14px; height: 14px;
      border: 2px solid var(--line);
      border-radius: 50%;
      font-size: 0;
    }
    .loading-step-icon.check {
      display: inline-flex; align-items: center; justify-content: center;
      width: 14px; height: 14px;
      background: #1a7a4a; border-radius: 50%;
      font-size: 9px; color: #fff; font-weight: 700;
    }

    .loading-label {
      font-family: 'DM Sans', sans-serif;
      font-size: 13px; font-weight: 600;
      letter-spacing: 0.02em;
      text-transform: uppercase; color: var(--text2);
    }
    /* COVERAGE */
    /* CURSOR GLOW */

    /* OBD SCAN ANIMATION — removed */

    /* SKELETON LOADING */
    @keyframes shimmer {
      0%   { background-position: -600px 0; }
      100% { background-position: 600px 0; }
    }
    .skeleton-wrap {
      width: 100%;
      margin-top: 20px;
      animation: fadeUp 0.4s ease both;
    }
    .skeleton-cat-label {
      font-family: 'DM Sans', sans-serif;
      font-size: 10px; letter-spacing: 0.14em;
      text-transform: uppercase; color: var(--text3);
      margin-bottom: 8px; padding-bottom: 6px;
      border-bottom: 1px solid var(--line);
    }
    .skeleton-card {
      border: 1px solid var(--line);
      border-left: 3px solid #e2e5eb;
      padding: 12px 14px;
      margin-bottom: 8px;
      background: #fff;
    }
    .skeleton-line {
      height: 10px;
      border-radius: 4px;
      background: linear-gradient(90deg, #f0f1f4 25%, #e4e6eb 50%, #f0f1f4 75%);
      background-size: 600px 100%;
      animation: shimmer 1.6s ease-in-out infinite;
      margin-bottom: 7px;
    }
    .skeleton-line:last-child { margin-bottom: 0; }
    .skeleton-tag {
      display: inline-block;
      width: 52px; height: 18px;
      border-radius: 3px;
      background: linear-gradient(90deg, #f0f1f4 25%, #e4e6eb 50%, #f0f1f4 75%);
      background-size: 600px 100%;
      animation: shimmer 1.6s ease-in-out infinite;
      margin-bottom: 8px;
    }
    .skeleton-status {
      font-family: 'DM Sans', sans-serif;
      font-size: 11px; color: var(--text3);
      text-align: center; margin-top: 16px;
      letter-spacing: 0.04em;
      animation: pulse 2s ease-in-out infinite;
    }
    @keyframes pulse {
      0%, 100% { opacity: 0.5; }
      50%       { opacity: 1; }
    }

    /* UNVISITED TAB — static dot indicator */
    @keyframes pulse-bg {
      0%   { background: #eaecf5; }
      50%  { background: #d8e4f8; }
      100% { background: #eaecf5; }
    }
    .tab.unvisited {
      animation: pulse-bg 2.2s ease-in-out infinite;
    }
    .tab.unvisited::after {
      content: '';
      position: absolute;
      top: 6px; right: 6px;
      width: 6px; height: 6px;
      border-radius: 50%;
      background: #0f52ba;
    }
    .tab-bar .tab:nth-child(2).unvisited { animation-delay: 0s; }
    .tab-bar .tab:nth-child(3).unvisited { animation-delay: 0.4s; }
    .tab-bar .tab:nth-child(4).unvisited { animation-delay: 0.8s; }
    .tab-bar .tab:nth-child(5).unvisited { animation-delay: 1.2s; }

    /* MANUFACTURER ACTION BADGE */
    .mfr-badge {
      display: inline-flex; align-items: center; gap: 5px;
      font-family: 'DM Sans', sans-serif;
      font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
      padding: 3px 7px; margin-top: 8px;
      border-radius: 2px;
    }
    .mfr-badge.tsb    { background: rgba(15,82,186,0.12); color: #0f52ba; border: 1px solid rgba(15,82,186,0.3); }
    .mfr-badge.recall { background: rgba(228,53,53,0.12);  color: #e03535; border: 1px solid rgba(228,53,53,0.3); }
    .mfr-badge.none   { background: rgba(0,0,0,0.04); color: var(--text3); border: 1px solid var(--line); }
    .mfr-badge.unknown{ background: rgba(0,0,0,0.04); color: var(--text3); border: 1px solid var(--line); }

    /* REPAIR DIFFICULTY */
    .repair-diff {
      display: flex; align-items: center; gap: 6px;
      margin-top: 8px;
    }
    .repair-diff-label {
      font-family: 'DM Sans', sans-serif;
      font-size: 10px; color: var(--text3);
      letter-spacing: 0.1em; text-transform: uppercase;
      flex-shrink: 0;
    }
    .repair-diff-pips {
      display: flex; gap: 3px;
    }
    .pip {
      width: 10px; height: 10px; border-radius: 50%;
      background: var(--line2);
    }
    .pip.filled-1 { background: var(--green); }
    .pip.filled-2 { background: #8fc45a; }
    .pip.filled-3 { background: #c8a000; }
    .pip.filled-4 { background: #e87c2a; }
    .pip.filled-5 { background: var(--sev-high); }
    .repair-diff-text {
      font-family: 'DM Sans', sans-serif;
      font-size: 10px; color: var(--text3);
      letter-spacing: 0.06em;
    }

    /* DYNAMIC TAB ISSUE COUNT */
    .tab .tab-count {
      display: inline-block;
      font-size: 11px; font-weight: 500;
      color: var(--text3);
      margin-left: 0;
      font-family: 'DM Sans', sans-serif;
      letter-spacing: 0;
    }
    .tab.active .tab-count { color: #0f52ba; font-weight: 700; }

    /* COMPARISON VIEW */
    .comparison-wrap {
      border: 1px solid var(--line);
      overflow: hidden;
      background: #ffffff;
    }

    /* Scoreboard — one card per vehicle */
    .comp-scoreboard {
      display: grid;
      border-bottom: 2px solid var(--line);
    }
    .comp-score-card {
      padding: 20px 22px;
      border-right: 1px solid var(--line);
      background: #fff;
    }
    .comp-score-card:last-child { border-right: none; }
    .comp-score-vname {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 21px; letter-spacing: 0.04em; line-height: 1.1;
      color: #0a0c10; margin-bottom: 3px;
    }
    .comp-score-sub {
      font-family: 'DM Sans', sans-serif;
      font-size: 12px; color: var(--text3); margin-bottom: 14px;
    }
    .comp-score-stats {
      display: flex; gap: 0;
      margin-bottom: 12px;
      border: 1px solid var(--line);
      overflow: hidden;
    }
    .comp-score-stat {
      flex: 1; padding: 8px 4px; text-align: center;
      border-right: 1px solid var(--line);
    }
    .comp-score-stat:last-child { border-right: none; }
    .comp-score-stat .csv {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 26px; line-height: 1; display: block;
    }
    .comp-score-stat .clbl {
      font-family: 'DM Sans', sans-serif;
      font-size: 8px; letter-spacing: 0.09em;
      text-transform: uppercase; color: var(--text3);
      display: block; margin-top: 2px;
    }
    .comp-score-cost {
      font-family: 'DM Sans', sans-serif;
      font-size: 12px; color: var(--text3);
      border-top: 1px solid var(--line);
      padding-top: 9px;
    }
    .comp-score-cost strong { color: var(--text2); font-weight: 600; }
    .comp-delta {
      display: inline-block;
      font-family: 'DM Sans', sans-serif;
      font-size: 9px; letter-spacing: 0.08em;
      text-transform: uppercase; padding: 2px 7px;
      vertical-align: middle; margin-left: 6px;
      position: relative; top: -2px;
    }
    .comp-delta.worse  { background: rgba(220,38,38,0.10); color: var(--sev-high); border: 1px solid rgba(220,38,38,0.25); }
    .comp-delta.better { background: rgba(90,170,114,0.12); color: var(--green);   border: 1px solid rgba(90,170,114,0.30); }

    /* Category section headers */
    .comp-cat-header {
      background: rgba(0,0,0,0.03);
      padding: 8px 20px;
      font-family: 'DM Sans', sans-serif;
      font-size: 10px; letter-spacing: 0.18em;
      text-transform: uppercase; color: var(--text2);
      border-bottom: 1px solid var(--line);
      border-top: 1px solid var(--line);
    }

    /* Issues per-vehicle columns */
    .comp-issues-row {
      display: grid;
      border-bottom: 1px solid var(--line);
      align-items: start;
    }
    .comp-issues-row:last-child { border-bottom: none; }
    .comp-vehicle-col {
      padding: 14px 18px;
      border-right: 1px solid var(--line);
      min-width: 0;
    }
    .comp-vehicle-col:last-child { border-right: none; }
    .comp-issue-item {
      padding: 9px 11px;
      margin-bottom: 7px;
      border-left: 3px solid var(--line);
      background: rgba(0,0,0,0.015);
    }
    .comp-issue-item:last-child { margin-bottom: 0; }
    .comp-issue-item.sev-high { border-left-color: var(--sev-high); background: rgba(224,53,53,0.04); }
    .comp-issue-item.sev-med  { border-left-color: var(--sev-med);  background: rgba(180,83,9,0.04); }
    .comp-issue-item.sev-low  { border-left-color: var(--green);    background: rgba(90,170,114,0.04); }
    .comp-issue-row-top {
      display: flex; align-items: flex-start;
      justify-content: space-between; gap: 8px; margin-bottom: 4px;
    }
    .comp-issue-name {
      font-size: 13px; font-weight: 600;
      color: var(--text); line-height: 1.3;
    }
    .comp-issue-detail {
      font-size: 11px; color: var(--text3);
      line-height: 1.5; margin-top: 2px;
    }
    .comp-no-issues {
      font-size: 12px; color: var(--text3);
      font-style: italic; padding: 4px 0;
    }

    /* Recall items within comparison */
    .comp-recall-item {
      padding: 8px 10px;
      margin-bottom: 6px;
      border-left: 3px solid rgba(220,38,38,0.5);
      background: rgba(220,38,38,0.03);
    }
    .comp-recall-item:last-child { margin-bottom: 0; }
    .comp-recall-name {
      font-size: 12px; font-weight: 600;
      color: var(--text); margin-bottom: 2px;
      line-height: 1.3;
    }
    .comp-recall-num {
      font-family: 'DM Sans', sans-serif;
      font-size: 10px; color: var(--text3);
    }
    .comp-no-recalls {
      font-size: 12px; color: var(--green); font-weight: 600;
    }

    /* ── MOBILE COMPARISON */
    .comparison-mobile { display: none; }
    @media (max-width: 768px) {
      .comparison-wrap    { display: none; }
      .comparison-mobile  { display: block; border: 1px solid var(--line); overflow: hidden; }
    }
    .comp-mobile-tabs {
      display: flex;
      border-bottom: 2px solid var(--line);
      background: rgba(0,0,0,0.02);
      overflow-x: auto; -webkit-overflow-scrolling: touch;
    }
    .comp-mobile-tab {
      flex: 1; min-width: 90px;
      padding: 11px 10px; text-align: center;
      background: none; border: none; cursor: pointer;
      font-family: 'DM Sans', sans-serif;
      font-size: 10px; letter-spacing: 0.07em;
      text-transform: uppercase; color: var(--text3);
      border-bottom: 2px solid transparent;
      margin-bottom: -2px; line-height: 1.3;
      transition: color 0.2s;
    }
    .comp-mobile-tab.active {
      color: var(--red); border-bottom-color: var(--red);
    }
    .comp-mobile-panel { display: none; padding: 14px 14px 18px; }
    .comp-mobile-panel.active { display: block; }
    .comp-stat-grid {
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 1px; background: var(--line);
      border: 1px solid var(--line);
      margin-bottom: 14px; overflow: hidden;
    }
    .comp-stat-cell {
      background: #fff; padding: 12px 6px; text-align: center;
    }
    .comp-stat-val {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 30px; line-height: 1;
    }
    .comp-stat-label {
      font-family: 'DM Sans', sans-serif;
      font-size: 8px; letter-spacing: 0.09em;
      text-transform: uppercase; color: var(--text3); margin-top: 2px;
    }
    .comp-mobile-cost {
      font-size: 12px; color: var(--text3);
      text-align: center; margin: -6px 0 12px;
      padding-bottom: 12px; border-bottom: 1px solid var(--line);
    }
    .comp-mobile-cost strong { color: var(--text2); }
    .comp-mobile-summary {
      font-size: 13px; color: var(--text2);
      line-height: 1.6; padding-bottom: 12px;
      border-bottom: 1px solid var(--line);
      margin-bottom: 12px;
    }
    .comp-mobile-cat { margin-bottom: 14px; }
    .comp-mobile-cat-label {
      font-family: 'DM Sans', sans-serif;
      font-size: 9px; letter-spacing: 0.14em;
      text-transform: uppercase; color: var(--text3);
      padding: 5px 0; border-bottom: 1px solid var(--line);
      margin-bottom: 7px;
    }
    .comp-mobile-issue {
      padding: 9px 11px;
      border: 1px solid var(--line);
      margin-bottom: 5px; background: #fff;
    }
    .comp-mobile-issue-name {
      font-size: 13px; font-weight: 600;
      color: var(--text); margin-bottom: 4px; line-height: 1.3;
    }
    .comp-mobile-issue-meta {
      display: flex; flex-wrap: wrap; gap: 5px;
      align-items: center;
    }

    /* FOOTER */
    footer {
      border-top: none;
      padding: 0;
      max-width: 100%;
    }

    .footer-brand-bar {
      background: #141E2E;
      padding: 0 2rem;
      height: 52px;
      display: flex; align-items: center;
      justify-content: space-between;
      position: relative;
      overflow: hidden;
    }

    .footer-brand-bar::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 420px; height: 100%;
      background: linear-gradient(90deg,
        rgba(15,82,186,0.38) 0%,
        rgba(15,82,186,0.30) 15%,
        rgba(15,82,186,0.18) 45%,
        rgba(15,82,186,0.06) 72%,
        transparent 100%);
      pointer-events: none;
      z-index: 0;
    }

    /* Cobalt top edge line */
    .footer-brand-bar::after {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: linear-gradient(90deg,
        rgba(15,82,186,0.80) 0%,
        rgba(15,82,186,0.40) 50%,
        transparent 100%);
      pointer-events: none;
    }

    .footer-body {
      padding: 2rem 2rem 1.5rem;
      border-top: 1px solid var(--line);
    }

    .footer-top {
      display: flex; align-items: center;
      justify-content: space-between;
      flex-wrap: wrap; gap: 12px;
      margin-bottom: 1.5rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid var(--line);
    }

    .footer-logo {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 22px; letter-spacing: 0.06em;
      line-height: 1; color: #ffffff;
      -webkit-text-fill-color: #ffffff;
      background: none;
      text-shadow: none;
      text-decoration: none;
      position: relative; z-index: 1;
    }
    .footer-logo span {
      background: none;
      -webkit-background-clip: unset;
      background-clip: unset;
      -webkit-text-fill-color: #6aa3d5;
      -webkit-text-stroke: 0;
      text-shadow: none;
    }
    .footer-logo .logo-wrench {
      -webkit-text-fill-color: #ffffff;
      background: none;
      -webkit-background-clip: unset;
      background-clip: unset;
      text-shadow: none;
    }


    .disclaimer-block {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
      margin-bottom: 1.5rem;
    }

    .disclaimer-col {}

    .disclaimer-heading {
      font-family: 'DM Sans', sans-serif;
      font-size: 11px; font-weight: 500;
      letter-spacing: 0.14em; text-transform: uppercase;
      color: var(--text3);
      margin-bottom: 8px;
      padding-bottom: 6px;
      border-bottom: 1px solid var(--line);
    }

    .disclaimer-text {
      font-size: 11px; color: var(--text3);
      line-height: 1.6; opacity: 0.65;
    }
    .disclaimer-text a { color: var(--text2); text-decoration: none; }
    .disclaimer-text a:hover { color: var(--text); }

    .footer-bottom {
      padding-top: 1.25rem;
      border-top: 1px solid var(--line);
      display: flex; align-items: center;
      justify-content: space-between;
      flex-wrap: wrap; gap: 8px;
    }

    .footer-how {
      padding: 1.25rem 0 1.5rem;
      border-bottom: 1px solid var(--line);
      margin-bottom: 1.5rem;
    }
    .footer-how-text {
      font-family: 'DM Sans', sans-serif;
      font-size: 12px; color: var(--text3);
      line-height: 1.75; max-width: 680px;
    }

    .footer-copy {
      font-family: 'DM Sans', sans-serif;
      font-size: 12px; color: var(--text3);
      letter-spacing: 0.06em;
    }
    .footer-legal-links {
      display: flex;
      gap: 20px;
    }
    .footer-legal-links a {
      font-family: 'DM Sans', sans-serif;
      font-size: 12px;
      color: var(--text3);
      letter-spacing: 0.06em;
      text-decoration: none;
    }
    .footer-legal-links a:hover {
      color: var(--text2);
    }


    .fade-up { animation: fadeUp 0.45s ease both; }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(12px); }
      to   { opacity: 1; transform: translateY(0); }
    }

  