/* AutoAssist desktop redesign. Presentation only; all behavior stays in index.html.
   Desktop (>=1024px) recomposes the estimator; below that the existing mobile layout is untouched
   and the new content (benefits rail, pricing, audience) simply stacks. */
:root { --dr-grad: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%); --dr-line: rgba(148,163,184,.16); --dr-panel: rgba(255,255,255,.035); }

#bookingRepairPalLogo { display: flex; justify-content: center; padding: 14px 0 8px; order: 83 !important; }
#bookingRepairPalLogo img { display: block; width: 112px; max-width: 100%; height: auto; object-fit: contain; }
body.dr-res #bookingRepairPalLogo { display: none !important; }

/* PartsGeek / retailer consumer UI removed in this build (feature code kept) */
.pg-banner, .find-parts-btn, .save-parts-btn, .parts-job-pick, #partsSheet, #legalParts, #legalAffiliate { display: none !important; }

.dr-d { display: none; }
/* Historical common-problems disclosure and urgency-colored pills, on both layouts. */
.dr-chips.dr-d { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dr-chips > span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8396ad; margin-right: 4px; }
.dr-more .chip[aria-pressed="true"] { color: #e2fff9; border-color: #5eead4; background: rgba(45,212,191,.17); }
.dr-more .chip[aria-pressed="true"]::before { content: '✓ '; }
.dr-more { flex-basis: 100%; width: 100%; min-width: 0; margin: 4px auto 0; }
.dr-more summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 10px; background: rgba(15,23,42,.4); border: 1px solid var(--border); border-radius: 9px; color: #f1f5f9; font: inherit; cursor: pointer; list-style: none; }
.dr-more summary::-webkit-details-marker { display: none; }
.dr-more summary::marker { content: ''; }
.dr-more summary span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.dr-more summary svg { flex-shrink: 0; transition: transform .2s ease; }
.dr-more[open] summary svg { transform: rotate(180deg); }
.dr-more summary:focus-visible, .dr-more .chip:focus-visible { outline: 2px solid #5eead4; outline-offset: 2px; }
.dr-more .symptom-chips { margin: 10px 0 0; padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: rgba(15,23,42,.4); max-height: 320px; overflow-y: auto; }
#commonConcernsToggle, #symptomChips { display: none !important; } /* replaced by the shared branded disclosure */
#premiumSection { display: none !important; } /* superseded by #drPricing; checkout still driven via #premCta */
body.dr-res #drShopCard:not([hidden]) { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid rgba(45,212,191,.35); border-radius: 20px; background: rgba(15,23,42,.75); min-width: 0; scroll-margin-top: 80px; }
body.dr-res #nextSteps, body.dr-res #findShopBtn { display: none !important; }
#drInlineShops[hidden] { display: none !important; }
.dr-inline-shop-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.dr-inline-shop-form label { flex-basis: 100%; font-size: 12px; color: #b7c6da; }
.dr-inline-shop-form input { flex: 1 1 90px; width: 90px; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; color: #f1f5f9; background: #0f172a; font: inherit; }
#drInlineShopResults { min-width: 0; overflow-wrap: anywhere; }
#drInlineShopResults .rp-shop-actions { flex-wrap: wrap; }
.dr-grad { background: var(--dr-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.dr-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #5eead4; }
.dr-h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: #f1f5f9; margin: 8px 0 10px; }
.dr-lead { color: #9fb0c6; font-size: 15.5px; line-height: 1.6; max-width: 60ch; }
.dr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 13px 22px; font-family: inherit; font-weight: 800; font-size: 14.5px; line-height: 1.2; cursor: pointer; border: 1px solid rgba(96,165,250,.4); background: rgba(59,130,246,.1); color: #dbeafe; text-decoration: none; transition: transform .1s, background .15s; }
.dr-btn:hover { background: rgba(59,130,246,.2); }
.dr-btn:active { transform: scale(.98); }
.dr-btn.grad { background: var(--dr-grad); color: #04121c; border: 0; }
.dr-btn.grad:hover { background: var(--dr-grad); filter: brightness(1.08); }
#drCta, #drDrvCta { color: #fff !important; }
.dr-btn.orange { background: rgba(251,146,60,.14); border-color: rgba(251,146,60,.6); color: #fed7aa; }
.dr-btn.orange:hover { background: rgba(251,146,60,.26); }
.dr-btn:focus-visible, .dr-chip:focus-visible, #drNav a:focus-visible { outline: 2px solid #5eead4; outline-offset: 2px; }

/* ── Rail (benefits). Visible on mobile too, stacked ───────── */
#drRail { order: 91; display: flex; flex-direction: column; gap: 14px; }
.dr-rail-box { border: 1px solid var(--dr-line); border-radius: 20px; background: var(--dr-panel); padding: 22px; }
.dr-rail-box h2 { font-size: 22px; line-height: 1.2; font-weight: 800; color: #f1f5f9; margin: 6px 0 16px; letter-spacing: -.01em; }
.dr-ben { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--dr-line); }
.dr-ben:first-of-type { border-top: 0; padding-top: 0; }
.dr-ben-ic { flex: 0 0 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(45,212,191,.1); color: #5eead4; border: 1px solid rgba(45,212,191,.28); }
.dr-ben-ic svg { width: 19px; height: 19px; }
.dr-ben h3 { font-size: 15px; font-weight: 800; color: #f1f5f9; margin-bottom: 3px; }
.dr-ben p { font-size: 13.5px; line-height: 1.5; color: #9fb0c6; }
#drGenius { border-color: rgba(45,212,191,.35); background: linear-gradient(160deg, rgba(45,212,191,.09), rgba(59,130,246,.05)); }
#drGenius h3 { font-size: 17px; font-weight: 800; color: #f1f5f9; margin: 4px 0 4px; }
#drGenius p { color: #9fb0c6; font-size: 13.5px; margin-bottom: 14px; }
#drGeniusCall { width: 100%; }
#drRail > #quickTipsWrap { margin: 0 !important; min-width: 0; gap: 12px; padding: 18px; border: 1px solid var(--dr-line); border-radius: 20px; background: var(--dr-panel); }
#drRail #quickTipsWrap .qt-mascot { flex: 0 0 48px; width: 48px; height: 48px; animation: none; filter: none; }
#drRail #quickTipsWrap .qt-bubble { min-width: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; box-shadow: none; }
#drRail #quickTipsWrap .qt-bubble::before, #drRail #quickTipsWrap .qt-bubble::after { display: none; }
#drRail #quickTipsWrap .qt-bubble:focus-visible { outline: 2px solid #5eead4; outline-offset: 5px; }
#drRail #quickTipsWrap .qt-bubble-head { min-height: 48px; }
#drRail #quickTipsWrap .qt-title { font-size: 17px; }
#drRail #quickTipsWrap .qt-link { overflow-wrap: anywhere; }
#drRail #quickTipsWrap .qt-link svg { flex-shrink: 0; }

/* ── Pricing ───────────────────────────────────────────────── */
#drPricing, #drAudience { order: 92; padding: 56px 0 8px; }
#drAudience { order: 93; }
.dr-pgrid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 26px; }
.dr-plan { position: relative; border: 1px solid var(--dr-line); border-radius: 22px; background: var(--dr-panel); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.dr-plan.prem { border-color: rgba(45,212,191,.5); background: linear-gradient(165deg, rgba(59,130,246,.12), rgba(45,212,191,.07)); }
.dr-plan h3 { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9fb0c6; }
.dr-pill { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #04121c; background: var(--dr-grad); border-radius: 999px; padding: 5px 11px; }
.dr-price-big { font-size: 46px; font-weight: 800; letter-spacing: -.03em; color: #f1f5f9; line-height: 1; font-variant-numeric: tabular-nums; }
.dr-price-big small { font-size: 14px; font-weight: 600; color: #9fb0c6; letter-spacing: 0; margin-left: 6px; }
.dr-price-sub { color: #9fb0c6; font-size: 13px; margin-top: 6px; }
.dr-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dr-list li { display: flex; gap: 10px; font-size: 14px; color: #dbe5f1; line-height: 1.45; }
.dr-list li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: rgba(45,212,191,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235eead4' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }
.dr-list li.no { color: #6b7d93; text-decoration: line-through; text-decoration-color: rgba(107,125,147,.5); }
.dr-list li.no::before { background: rgba(148,163,184,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7d93' stroke-width='3.2' stroke-linecap='round'%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3C/svg%3E") center/11px no-repeat; }
.dr-prices { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-end; }
.dr-prices .sk { width: 120px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.07); }
.dr-save { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 800; color: #5eead4; background: rgba(45,212,191,.12); border: 1px solid rgba(45,212,191,.3); border-radius: 999px; padding: 3px 9px; }
.dr-terms { font-size: 12px; line-height: 1.55; color: #8396ad; }

/* ── Audience ──────────────────────────────────────────────── */
.dr-agrid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 26px; }
.dr-aic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; border: 1px solid; }
.dr-aic svg { width: 23px; height: 23px; }
.dr-aic.blue { color: #60a5fa; background: rgba(59,130,246,.12); border-color: rgba(96,165,250,.4); }
.dr-aic.teal { color: #5eead4; background: rgba(45,212,191,.12); border-color: rgba(45,212,191,.4); }
.dr-aic.orange { color: #fb923c; background: rgba(251,146,60,.13); border-color: rgba(251,146,60,.45); }
.dr-aud { border: 1px solid var(--dr-line); border-radius: 22px; background: var(--dr-panel); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.dr-aud h3 { font-size: 22px; font-weight: 800; color: #f1f5f9; letter-spacing: -.01em; }
.dr-aud p { color: #9fb0c6; font-size: 14.5px; line-height: 1.55; }
.dr-aud .dr-btn { align-self: flex-start; margin-top: auto; }
.dr-aud.shop { border-color: rgba(251,146,60,.45); background: linear-gradient(120deg, rgba(251,146,60,.1), rgba(251,146,60,.03)); }
.dr-aud.shop .dr-eyebrow { color: #fdba74; }
.dr-aud.shop .dr-list li::before { background-color: rgba(251,146,60,.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fb923c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.dr-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: #5eead4; background: rgba(0,0,0,.3); border: 1px solid var(--dr-line); border-radius: 8px; padding: 3px 8px; align-self: flex-start; }

/* ── Results pieces (desktop-only visibility below) ───────── */
#drLoader, #drResHead, .dr-range { display: none; }
#drNudge { display: none; }

@media (max-width: 1023px) {
  #dpAside .footer-rp { display: none; } /* Keep only the logo beneath the booking button on mobile. */
  #drActions { display: none !important; }
  #drPricing, #drAudience { padding: 28px 0 0; }
  .dr-plan, .dr-aud, .dr-rail-box { padding: 20px; }
  #carGenius { display: none !important; } /* use the rail's existing call card, not a duplicate results card */
  #drNudge.show { display: block; }
}

@media (min-width: 1024px) {
  .dr-d { display: block; }
  /* Header */
  header { position: sticky; top: 0; justify-content: flex-start !important; gap: 22px; padding: 0 32px !important; height: 68px !important; }
  header .brand-logo { height: 46px; }
  header picture { order: 0; flex: 0 0 auto; }
  #drNav { order: 1; flex: 1; display: flex; gap: 4px; align-items: center; justify-content: center; }
  #drNav a { color: #cbd5e1; text-decoration: none; font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 9px; transition: background .15s, color .15s; white-space: nowrap; }
  #drNav a:hover { background: rgba(148,163,184,.12); color: #fff; }
  header .hdr-right { position: static !important; order: 2; }
  header .hdr-left { position: static !important; order: 3; }
  #drSignup { order: 4; display: inline-flex; align-items: center; border: 0; border-radius: 11px; padding: 11px 18px; font-weight: 800; font-size: 14px; line-height: 1.2; font-family: inherit; color: #04121c; background: var(--dr-grad); cursor: pointer; white-space: nowrap; }
  #drSignup[hidden] { display: none; }
  #p6Nav { display: none !important; }

  /* Main becomes a 60/40 grid */
  body main#p6Main { max-width: 1280px; width: 100%; padding: 0 40px 64px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: 32px; row-gap: 18px; align-items: start; }
  body main#p6Main > * { grid-column: 1 / -1; order: 0 !important; max-width: none !important; width: auto !important; align-self: stretch !important; }
  /* Preserve the existing clipped accessibility heading; auto width overflows laptops. */
  body main#p6Main > h1 { width: 1px !important; max-width: 1px !important; }
  #manualBtn, #recallBtn { display: none !important; }
  body main#p6Main > .top-pitch, body main#p6Main > #dpAside, body main#p6Main > #setVehicleRow, body main#p6Main > #genRow, body main#p6Main > #carGenius { display: none !important; }
   body main#p6Main > #drHero { display: block; grid-row: 1; padding: 44px 0 10px; }
   body main#p6Main > #vehicleCard { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; margin-bottom: 0; }
   body main#p6Main > #drRail { grid-column: 2; grid-row: 2; }
  body main#p6Main > #maintCard { grid-column: 1; grid-row: 3; }
  body main#p6Main > #drPricing { padding-top: 36px; }
  body main#p6Main > #drAudience { padding-top: 84px; }
  .dr-pgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .dr-agrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  #drHero .dr-badge { display: inline-flex; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: #5eead4; border: 1px solid rgba(45,212,191,.4); background: rgba(45,212,191,.08); border-radius: 999px; padding: 8px 16px; }
  #drHeroTitle { font-size: clamp(40px, 4.3vw, 60px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; color: #f8fafc; margin: 22px 0 18px; max-width: 30ch; }
  #drHero .dr-lead { font-size: 18px; max-width: 62ch; }
  #drHero .dr-fine { margin-top: 16px; font-size: 12.5px; color: #7d90a8; }

  /* Estimator card */
  #vehicleCard .card-body { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 22px; }
  #vehicleCard > .card-body { flex: 1; grid-auto-rows: min-content; align-content: space-between; }
  #vehicleCard .card-body > * { grid-column: 1 / -1; margin-top: 0 !important; }
  #vehicleCard .card-header { padding: 16px 22px !important; font-size: 12.5px; letter-spacing: .12em; color: #e2e8f0 !important; }
  #panelYmm:not([style*="none"]) { display: grid !important; grid-template-columns: .8fr 1.1fr 1.4fr; gap: 12px; }
  #panelYmm .field-row { display: contents; }
  #vehicleCard .card-body > .field-row:has(#estimateMileage) { grid-column: 1; }
  #vehicleCard .zip-row { grid-column: 2; display: grid; grid-template-columns: auto 1fr; gap: 5px 6px; padding: 0 !important; border: 0 !important; background: none !important; align-content: start; }
  #vehicleCard .zip-icon { display: none; }
  #vehicleCard .zip-input { grid-column: 1 / -1; margin: 0; width: 100%; max-width: none; padding: 11px 12px; font-size: 15px; font-weight: 400; }
  #vehicleCard .zip-opt { margin-left: 0; align-self: center; }
  #vehicleCard #issueCard { display: block !important; animation: none !important; border: 0 !important; background: none !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0 !important; overflow: visible; }
  #vehicleCard #issueCard::before { display: none; }
  #vehicleCard #issueCard .card-header { display: none; }
  #vehicleCard #issueCard .card-body { display: block !important; padding: 0; }
  #vehicleCard #issueCard #commonConcernsToggle, #vehicleCard #issueCard #symptomChips { display: none !important; }
  #vehicleCard #issueInput { min-height: 112px; }
  .dr-ctabox { display: flex !important; flex-direction: column; gap: 10px; }
  #drCta { width: 100%; border: 0; border-radius: 14px; padding: 17px; font-weight: 800; font-size: 16.5px; line-height: 1.2; font-family: inherit; color: #04121c; background: var(--dr-grad); cursor: pointer; box-shadow: 0 0 26px rgba(45,212,191,.28), 0 10px 28px rgba(59,130,246,.22) !important; transition: transform .1s, filter .15s; }
  #drCta:hover { filter: brightness(1.08); }
  #drCta:active { transform: scale(.99); }
  .dr-note { text-align: center; font-size: 12.5px; color: #8396ad; }
  .dr-steps { border-top: 1px solid var(--dr-line); padding-top: 16px; }
  .dr-steps .how-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0; }
  .dr-steps .how-strip-arrow { display: none; }
  .dr-steps .how-strip-step { justify-content: flex-start; gap: 9px; font-size: 13px; }
  .dr-steps .how-strip-num { width: 24px; height: 24px; font-size: 12px; background: var(--dr-grad); color: #04121c; }

  #drShopCard { display: none !important; }
  body.dr-res main#p6Main > #drShopCard:not([hidden]) { display: flex !important; grid-column: 2; grid-row: 1; margin-top: 34px; flex-direction: column; gap: 10px; border: 1px solid rgba(45,212,191,.35); border-radius: 20px; padding: 22px; background: linear-gradient(160deg, rgba(45,212,191,.09), rgba(59,130,246,.05)); align-self: start !important; }
  #drShopCard h3 { font-size: 19px; font-weight: 800; color: #f1f5f9; line-height: 1.25; margin-bottom: 6px; }
  /* Compact rail: the full shop list is one click away via the existing findShop() sheet */
  body.dr-res main#p6Main > #nextSteps, body.dr-res main#p6Main > #findShopBtn { display: none !important; }
  body.dr-form main#p6Main > #jobsSection, body.dr-form main#p6Main > #resultActions, body.dr-form main#p6Main > #nextSteps { display: none !important; }
  #drActions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
  #drActions[hidden], #drFindShop[hidden], #drBackRes[hidden] { display: none !important; }
  .dr-actnote { flex-basis: 100%; font-size: 12.5px; color: #fbbf24; }
  .dr-actnote:empty { display: none; }
  .job .quote-checker { display: flex !important; margin-top: 14px; border-color: rgba(45,212,191,.4); background: rgba(45,212,191,.06); }
  .dr-ref { display: block; margin-top: 8px; font-size: 11px; color: #6b7d93; }
  #vehicleCard #tellUsMoreLbl { font-size: 12.5px !important; letter-spacing: .1em; color: #e2e8f0 !important; }
  #vehicleCard #issueInput { padding-bottom: 58px; }
  .dr-voicerow { position: absolute; left: 10px; bottom: 10px; margin: 0 !important; z-index: 2; }
  #vehicleCard #micInterim { bottom: 56px !important; }
  /* Results state: estimator + hero + rail retire; results + shop card only */
  body.dr-res main#p6Main > #drHero, body.dr-res main#p6Main > #vehicleCard, body.dr-res main#p6Main > #drRail, body.dr-res main#p6Main > #maintCard { display: none !important; }
  body.dr-res main#p6Main > #jobsSection { grid-column: 1; grid-row: 1; padding-top: 34px; }
  
  #drResHead { display: none; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
  body.dr-res.dr-has-jobs #drResHead { display: flex; }
  #drResHead .vz { font-size: 15px; font-weight: 800; color: #e2e8f0; }
  #drResHead .vz span { color: #8396ad; font-weight: 600; }
  #drResHead .tg { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5eead4; border: 1px solid rgba(45,212,191,.3); border-radius: 999px; padding: 5px 11px; }
  .job .price-row { display: none !important; }
  .job .dr-range { display: block; margin: 4px 0 2px; }
  .dr-big { font-size: clamp(34px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
  .dr-bar { height: 8px; border-radius: 99px; margin: 14px 0 8px; background: linear-gradient(90deg, rgba(45,212,191,.75), rgba(59,130,246,.75) 55%, rgba(251,146,60,.75)); position: relative; }
  .dr-bar i { position: absolute; top: -3px; bottom: -3px; left: 20%; right: 20%; border: 2px solid #f1f5f9; border-radius: 99px; }
  .dr-scale { display: grid; grid-template-columns: 1fr 1fr 1fr; font-size: 12px; color: #8396ad; font-variant-numeric: tabular-nums; }
  .dr-scale span:nth-child(2) { text-align: center; }
  .dr-scale span:nth-child(3) { text-align: right; }
  .dr-scale b { display: block; color: #e2e8f0; font-size: 13px; font-weight: 700; }

  #drLoader.on { display: block; border: 1px solid var(--dr-line); border-radius: 18px; background: var(--dr-panel); padding: 22px; margin-bottom: 14px; }
}

/* Loader (all viewports once injected) */
#drLoader.on { display: block; }
#drLoader ol { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
#drLoader li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #6b7d93; }
#drLoader li i { width: 10px; height: 10px; border-radius: 50%; background: #334155; flex: 0 0 10px; }
#drLoader li.on { color: #f1f5f9; font-weight: 700; }
#drLoader li.on i { background: #2dd4bf; animation: drPulse 1.1s ease-in-out infinite; }
#drLoader li.done { color: #9fb0c6; }
#drLoader li.done i { background: #3b82f6; }
#drLoader .pb { height: 6px; border-radius: 99px; background: rgba(148,163,184,.15); overflow: hidden; }
#drLoader .pb b { display: block; height: 100%; width: 100%; background: var(--dr-grad); transform-origin: left; transform: scaleX(.04); transition: transform .35s linear; }
@keyframes drPulse { 50% { opacity: .35; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { #drLoader li.on i { animation: none; } }

/* Signup nudge */
#drNudge.show { display: block; border: 1px solid rgba(45,212,191,.35); border-radius: 18px; background: linear-gradient(150deg, rgba(45,212,191,.08), rgba(59,130,246,.06)); padding: 22px; margin-top: 14px; }
#drNudge h3 { font-size: 18px; font-weight: 800; color: #f1f5f9; margin-bottom: 12px; }
#drNudge .dr-list { margin-bottom: 16px; }
#drNudge .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
#drNudge .dismiss { background: none; border: 0; color: #9fb0c6; font: 600 13px/1 inherit; font-family: inherit; cursor: pointer; padding: 8px; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) and (max-width: 1199px) {
  header { gap: 10px; padding: 0 20px !important; }
  header > picture { width: 128px; }
  #drNav { gap: 0; }
  #drNav a { padding: 9px 8px; font-size: 12.5px; }
  #authBtn { white-space: nowrap; }
  #drSignup { padding: 11px 12px; font-size: 12.5px; }
}

/* ── Addendum: recall/manual hidden everywhere ── */
#manualBtn, #recallBtn { display: none !important; }

/* ── Mobile header: logo | Sign In | Sign up free | menu ── */
#drMenuBtn, #drMenu { display: none; }
@media (max-width: 1023px) {
  header { justify-content: flex-start !important; gap: 6px; padding: 0 10px !important; height: 56px; }
  header picture { order: 0; flex: 1 1 auto; min-width: 0; }
  header .brand-logo { height: 34px; max-width: 100%; }
  header .hdr-left { position: static !important; order: 1; flex: 0 0 auto; }
  header .hdr-right { display: none !important; }
  #authBtn { white-space: nowrap; padding: 7px 9px !important; font-size: 12.5px !important; min-height: 36px; background: transparent !important; border: 1px solid rgba(148,163,184,.35) !important; color: #dbe5f1 !important; border-radius: 10px !important; box-shadow: none !important; }
  #authBtn svg { width: 14px; height: 14px; }
  #drSignup { order: 2; display: inline-flex; align-items: center; flex: 0 0 auto; border: 0; border-radius: 10px; padding: 0 11px; min-height: 36px; font-weight: 800; font-size: 12.5px; line-height: 1; font-family: inherit; color: #04121c; background: var(--dr-grad); cursor: pointer; white-space: nowrap; }
  #drSignup[hidden] { display: none; }
  #drMenuBtn { order: 3; display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 36px; border-radius: 10px; border: 1px solid rgba(148,163,184,.35); background: transparent; color: #e2e8f0; cursor: pointer; }
  #drMenuBtn svg { width: 20px; height: 20px; }
  #drMenuBtn:focus-visible, #drMenu a:focus-visible, #drMenu button:focus-visible { outline: 2px solid #5eead4; outline-offset: 2px; }
  #drMenu:not([hidden]) { display: block; position: absolute; left: 0; right: 0; top: 100%; z-index: 120; background: #05080f; border-bottom: 1px solid var(--dr-line); padding: 8px 14px 14px; box-shadow: 0 18px 30px rgba(0,0,0,.5); }
  #drMenuNav { display: flex; flex-direction: column; }
  #drMenuNav a { color: #e2e8f0; text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 4px; border-bottom: 1px solid var(--dr-line); }
  #drMenuLang { display: flex; gap: 8px; padding-top: 12px; }
  #drMenuLang button { background: none; border: 1px solid var(--dr-line); color: #cbd5e1; border-radius: 9px; padding: 8px 12px; font: 600 13px/1 inherit; font-family: inherit; cursor: pointer; }
  #drMenuLang button[aria-pressed="true"] { border-color: #5eead4; color: #5eead4; }
}
@media (max-width: 360px) {
  header { gap: 4px; padding: 0 8px !important; }
  header .brand-logo { height: 28px; }
  #authBtn svg { display: none; }
  #authBtn { padding: 7px 8px !important; font-size: 12px !important; }
  #drSignup { padding: 0 8px; font-size: 12px; }
  #drMenuBtn { flex-basis: 36px; width: 36px; }
}

/* ── Structured footer ── */
#appFooter { max-width: 1280px; width: 100%; padding: 0; border-top: 0; }
#appFooter > :not(#drFooter) { display: none !important; }
body.garage-page-open #drInfo { display: none !important; }
#drInfo { max-width: 860px; margin: 0 auto; padding: 0 16px; }
#drFooter { width: 100%; max-width: 1280px; margin: 0 auto; padding: 36px 20px 28px; border-top: 1px solid var(--dr-line); color: #9fb0c6; }
.drf-top { display: grid; gap: 28px; }
.drf-logo { height: 38px; width: auto; display: block; mix-blend-mode: screen; }
.drf-brand p { margin-top: 12px; max-width: 34ch; font-size: 14px; line-height: 1.55; }
.drf-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.drf-col h2 { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #5eead4; margin-bottom: 12px; }
.drf-col ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
#drFooter a { color: #cbd5e1; text-decoration: none; font-size: 14px; display: inline-block; padding: 6px 0; }
#drFooter a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
#drFooter a:focus-visible { outline: 2px solid #5eead4; outline-offset: 2px; }
.drf-bot { display: grid; gap: 14px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--dr-line); font-size: 12.5px; line-height: 1.55; }
.drf-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.drf-links a { font-size: 13px !important; }
@media (min-width: 1024px) {
  .drf-top { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
  .drf-bot { grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
  #drInfo { padding-top: 8px; }
}

/* ── Addendum 2: glow, pillars, frog, logo ── */
/* Glow: re-assert the original index.html orb rules (lines ~504-551) verbatim so no redesign layer flattens them. */
html { background-color: #0a0e1a; }
/* The older polish layer paints an opaque desktop body over the original
   negative-z-index glows. Restore the original transparent body, not new art. */
body { background: transparent; }
body::before { content: ''; position: fixed; top: -120px; left: -120px; width: 420px; height: 420px; max-height: none; transform: none; background: radial-gradient(circle at center, rgba(59,130,246,.70) 0%, rgba(59,130,246,.35) 35%, rgba(59,130,246,0) 70%); filter: blur(60px); mix-blend-mode: screen; border-radius: 50%; pointer-events: none; z-index: -1; }
body::after { content: ''; position: fixed; top: 18%; right: -140px; bottom: auto; left: auto; width: 460px; height: 460px; transform: none; background: radial-gradient(circle at center, rgba(45,212,191,.55) 0%, rgba(45,212,191,.28) 35%, rgba(45,212,191,0) 70%); filter: blur(70px); mix-blend-mode: screen; border-radius: 50%; pointer-events: none; z-index: -1; }
main::before { content: ''; position: fixed; bottom: -160px; left: -80px; width: 520px; height: 520px; background: radial-gradient(circle at center, rgba(99,102,241,.50) 0%, rgba(99,102,241,.22) 35%, rgba(99,102,241,0) 70%); filter: blur(80px); mix-blend-mode: screen; pointer-events: none; z-index: -1; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  body::before { animation: orbDriftA 14s ease-in-out infinite; }
  body::after { animation: orbDriftB 18s ease-in-out infinite; }
  main::before { animation: orbDriftC 22s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) { body::before, body::after, main::before { animation: none !important; } }

/* About pillars: one number style for all three */
.about-pillars .about-pillar .about-pillar-num, .about-pillars .about-pillar:first-child .about-pillar-num, .about-pillars .about-pillar:nth-child(n) .about-pillar-num { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #0a0f0a; font-size: 11px; font-weight: 900; line-height: 1; display: flex; align-items: center; justify-content: center; border: 0; margin: 0; padding: 0; }

/* Quick Tips frog: modestly larger, gentle slow drift */
#drRail #quickTipsWrap .qt-mascot { flex: 0 0 62px; width: 62px; height: 62px; }
#drRail #quickTipsWrap .qt-bubble-head { min-height: 62px; }
@keyframes drFrogDrift { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(3px, -4px) rotate(-2deg); } }
@media (prefers-reduced-motion: no-preference) { #drRail #quickTipsWrap .qt-mascot { animation: drFrogDrift 7s ease-in-out infinite; } }

/* Use the available header height, but reserve the logo's width in layout.
   Unlike transform scaling, this cannot paint over adjacent account controls. */
header > picture { overflow: hidden; height: calc(100% - 4px); display: flex; align-items: center; }
header .brand-logo { width: 100%; height: 100%; max-height: none; object-fit: contain; object-position: left center; transform: none; }

#drFooterSocial { flex-direction: row; justify-content: flex-start; gap: 20px; padding: 16px 0 0; }
#drFooterSocial a { padding: 6px; border-radius: 8px; }
#drFooterSocial a:hover { color: #5eead4; }
#drFooterSocial a:focus-visible { outline: 2px solid #5eead4; outline-offset: 3px; }

/* ── Mobile presentation restoration (<=768px only; desktop untouched) ──
   Compact header/hero/estimator spacing and a slim footer, reusing #drFooter. */
@media (max-width: 768px) {
  header { height: 52px !important; }
  main#p6Main { padding-top: 10px; gap: 10px; }
  main#p6Main > .top-pitch { padding: 0 2px; }
  main#p6Main > .top-pitch .top-pitch-main { font-size: 13px; padding: 6px 14px; }
  #dpAside .how-strip { padding: 4px 0 2px; }
  #vehicleCard .card-body { padding: 12px; }
  #issueCard #drChips { margin-top: 10px; }
  #drPricing, #drAudience { padding: 20px 0 0; }
  #drFooter { padding: 18px 16px 16px; text-align: center; }
  #drFooter .drf-top { gap: 0; }
  #drFooter .drf-cols, #drFooter #drfTag { display: none !important; }
  #drFooter .drf-logo { height: 28px; margin: 0 auto; }
  #drFooterSocial { justify-content: center; gap: 14px; padding: 8px 0 0; }
  #drFooter .drf-bot { margin-top: 10px; padding-top: 10px; gap: 4px; font-size: 11.5px; justify-items: center; }
  #drFooter .drf-links { justify-content: center; }
  #drFooter .drf-links a { padding: 2px 0; }
}
