/* Car Import56 · release 77 — exhaustive theme, navigation and review QA */

html[data-theme="dark"],
html[data-theme="dark"] body.ci-v9,
html[data-theme="dark"] body.ci-v9 .app-shell {
  background:#070b10!important;
  color:#f4f7f9!important;
}

@media (min-width:900px) {
  body.ci-v9 .desktop-market-subbar { top:0!important; }
  .ci-v9 .desktop-market-subbar__inner {
    width:100%!important;
    max-width:none!important;
    padding:0 clamp(12px,1.5vw,24px)!important;
    gap:clamp(2px,.3vw,6px)!important;
    overflow:hidden!important;
  }
  .ci-v9 .desktop-market-subbar .desktop-market-brand {
    width:clamp(158px,14vw,205px)!important;
    min-width:clamp(158px,14vw,205px)!important;
    margin-right:0!important;
  }
  .ci-v9 .desktop-market-subbar button {
    min-width:0!important;
    padding-inline:clamp(7px,.8vw,13px)!important;
    font-size:clamp(9px,.78vw,11px)!important;
  }
  .ci-v9 .desktop-market-subbar .desktop-market-home { flex:0 1 auto!important; }
  .ci-v9 .desktop-market-subbar .desktop-theme-switch {
    min-width:118px!important;
    flex:0 0 auto!important;
  }
  .ci-v9 .desktop-theme-switch__icons,
  .ci-v9 .desktop-theme-switch__icons .ci-icon { display:grid!important;visibility:visible!important; }
  .ci-v9 .desktop-market-search { flex:1 1 150px!important;min-width:120px!important;max-width:220px!important; }
  .ci-v9 .desktop-market-cta,.ci-v9 .desktop-market-phone { flex:0 0 auto!important; }
  .ci-v9 #app,.ci-v9 .app-shell { width:100%!important;max-width:none!important;margin:0!important; }
}

@media (min-width:900px) and (max-width:1450px) {
  .ci-v9 .desktop-market-search,
  .ci-v9 .desktop-market-cta,
  .ci-v9 .desktop-market-phone { display:none!important; }
}

@media (min-width:900px) and (max-width:1120px) {
  .ci-v9 .desktop-market-subbar .desktop-market-brand { width:146px!important;min-width:146px!important; }
  .ci-v9 .desktop-market-subbar .desktop-about-link { max-width:132px!important;overflow:hidden!important;text-overflow:ellipsis!important; }
}

/* Manager: every previously hard-coded white panel follows the dark theme. */
html[data-theme="dark"] body.ci-v9 :is(
  .manager-deal-quick-nav,.manager-stage-selector,.manager-stage-empty,
  .manager-case-check,.report-file,.manager-no-reports,.manager-history-empty,
  .manager-index-tools,.manager-route-overview,.manager-deal-index>.admin-deal-filter-empty
) {
  border-color:#2b3842!important;
  background:#101820!important;
  color:#eef3f6!important;
  box-shadow:none!important;
}

html[data-theme="dark"] body.ci-v9 .manager-deal-quick-nav {
  background:rgba(15,24,32,.96)!important;
  box-shadow:0 16px 42px rgba(0,0,0,.3)!important;
}
html[data-theme="dark"] body.ci-v9 .manager-deal-quick-nav button { color:#eef3f6!important; }
html[data-theme="dark"] body.ci-v9 .manager-deal-quick-nav button:hover { color:#fff!important;background:#1a252e!important; }
html[data-theme="dark"] body.ci-v9 .manager-deal-quick-nav button>i { color:#ff3c58!important;background:#241820!important; }
html[data-theme="dark"] body.ci-v9 .manager-deal-quick-nav small { color:#91a0ab!important; }
html[data-theme="dark"] body.ci-v9 .manager-deal-quick-nav strong { color:#f5f8fa!important; }

html[data-theme="dark"] body.ci-v9 .manager-stage-selector>button,
html[data-theme="dark"] body.ci-v9 .manager-stage-card,
html[data-theme="dark"] body.ci-v9 .manager-stage-card[open] {
  border-color:#2c3943!important;
  background:#141e26!important;
  color:#eef3f6!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.ci-v9 .manager-stage-selector>button:hover,
html[data-theme="dark"] body.ci-v9 .manager-stage-selector>button.selected { border-color:#ef2b45!important;background:#1a252e!important; }
html[data-theme="dark"] body.ci-v9 .manager-stage-selector>button.active { background:linear-gradient(110deg,#171f27,#281820)!important; }
html[data-theme="dark"] body.ci-v9 .manager-stage-selector>button.issue { border-color:#a97923!important;background:#2a2418!important; }
html[data-theme="dark"] body.ci-v9 .manager-stage-selector :is(strong,time,small),
html[data-theme="dark"] body.ci-v9 .manager-stage-card summary :is(strong,em,small) { color:#dce4e9!important; }
html[data-theme="dark"] body.ci-v9 .manager-stage-selector small,
html[data-theme="dark"] body.ci-v9 .manager-stage-selector time { color:#8f9da7!important; }

html[data-theme="dark"] body.ci-v9 .manager-stage-empty strong { color:#f4f7f9!important; }
html[data-theme="dark"] body.ci-v9 .manager-stage-empty small { color:#9eabb5!important; }
html[data-theme="dark"] body.ci-v9 .manager-case-check :is(strong,span),
html[data-theme="dark"] body.ci-v9 .report-file :is(strong,span) { color:#f2f6f8!important; }
html[data-theme="dark"] body.ci-v9 .manager-case-check small,
html[data-theme="dark"] body.ci-v9 .report-file small,
html[data-theme="dark"] body.ci-v9 .manager-no-reports { color:#9eabb5!important; }
html[data-theme="dark"] body.ci-v9 .manager-case-check>i,
html[data-theme="dark"] body.ci-v9 .report-file>i { border-color:#394751!important;background:#17222b!important; }

html[data-theme="dark"] body.ci-v9 .manager-stage-status-options button,
html[data-theme="dark"] body.ci-v9 .manager-stage-date>div>button,
html[data-theme="dark"] body.ci-v9 .manager-stage-quick-actions button,
html[data-theme="dark"] body.ci-v9 .manager-stage-actions>.stage-upload-btn {
  border-color:#34424c!important;
  background:#17222b!important;
  color:#cdd6dc!important;
}
html[data-theme="dark"] body.ci-v9 .manager-stage-status-options button:hover,
html[data-theme="dark"] body.ci-v9 .manager-stage-date>div>button:hover,
html[data-theme="dark"] body.ci-v9 .manager-stage-quick-actions button:hover { border-color:#ef2b45!important;color:#fff!important;background:#211820!important; }
html[data-theme="dark"] body.ci-v9 .manager-stage-status-options button.selected { color:#fff!important;background:#ef2b45!important; }
html[data-theme="dark"] body.ci-v9 .manager-stage-status-options button[data-stage-quick-status="done"].selected { background:#1ab873!important; }
html[data-theme="dark"] body.ci-v9 .manager-stage-status-options button[data-stage-quick-status="issue"].selected { color:#151b20!important;background:#ffc348!important; }

html[data-theme="dark"] body.ci-v9 .manager-case-history>header>b { color:#ff3c58!important;background:#261820!important; }
html[data-theme="dark"] body.ci-v9 .manager-history-entry { border-color:#31404b!important; }
html[data-theme="dark"] body.ci-v9 .manager-history-entry:not(:last-child)::after { background:linear-gradient(#ef2b45,#34424c)!important; }
html[data-theme="dark"] body.ci-v9 .manager-history-entry>i { border-color:#101820!important; }
html[data-theme="dark"] body.ci-v9 .manager-history-entry strong { color:#f2f6f8!important; }
html[data-theme="dark"] body.ci-v9 .manager-history-entry :is(small,em) { color:#91a0aa!important; }
html[data-theme="dark"] body.ci-v9 .manager-history-entry>b { color:#cbd4da!important;background:#1c2730!important; }

html[data-theme="dark"] body.ci-v9 .manager-index-tools>label,
html[data-theme="dark"] body.ci-v9 .manager-index-tools .deal-filter-chips button,
html[data-theme="dark"] body.ci-v9 .manager-route-map>button,
html[data-theme="dark"] body.ci-v9 .manager-index-body>header>i {
  border-color:#32404a!important;
  background:#141e26!important;
  color:#dce4e9!important;
}
html[data-theme="dark"] body.ci-v9 .manager-route-map>button:hover,
html[data-theme="dark"] body.ci-v9 .manager-route-map>button.active { border-color:#ef2b45!important;background:#241820!important; }
html[data-theme="dark"] body.ci-v9 .manager-route-map :is(strong,time,small),
html[data-theme="dark"] body.ci-v9 .manager-route-overview :is(h2,strong) { color:#f4f7f9!important; }

html[data-theme="dark"] body.ci-v9 .tracking-status { color:#cdd6dc!important;background:#1b2730!important; }
html[data-theme="dark"] body.ci-v9 .tracking-status.tracking-live,
html[data-theme="dark"] body.ci-v9 .tracking-status.tracking-link_verified { color:#70e4ad!important;background:#123124!important; }
html[data-theme="dark"] body.ci-v9 .deal-leaflet-map { background:#111a22!important; }
html[data-theme="dark"] body.ci-v9 .deal-leaflet-map .leaflet-tile-pane { filter:invert(.92) hue-rotate(180deg) brightness(.62) saturate(.55) contrast(1.08)!important; }
html[data-theme="dark"] body.ci-v9 .ci-country-marker span { border-color:#26343e!important;background:#101820!important; }

/* Catalog and favorites had isolated white controls. */
html[data-theme="dark"] body.ci-v9 .desktop-hot-switch {
  border-color:#34424c!important;
  background:#141e26!important;
  color:#dbe3e8!important;
}
html[data-theme="dark"] body.ci-v9 .desktop-catalog-shell .desktop-card-facts {
  border-color:#303d47!important;
  background:#26333d!important;
}
html[data-theme="dark"] body.ci-v9 .desktop-catalog-shell .desktop-card-facts>span { background:#18232c!important; }
html[data-theme="dark"] body.ci-v9 .desktop-catalog-shell .desktop-card-facts b { color:#f3f7f9!important; }
html[data-theme="dark"] body.ci-v9 .desktop-catalog-shell .desktop-card-facts small { color:#93a2ad!important; }
html[data-theme="dark"] body.ci-v9 .desktop-catalog-shell .desktop-card-secondary {
  border-color:#394751!important;
  background:#17222b!important;
  color:#f2f6f8!important;
}
html[data-theme="dark"] body.ci-v9 .desktop-catalog-shell .desktop-card-secondary.saved { border-color:#ef2b45!important;color:#ff5a71!important;background:#25171f!important; }
html[data-theme="dark"] body.ci-v9 .favorites-tools .market-compare-cta {
  border-color:#34424c!important;
  background:#17222b!important;
  color:#eef3f6!important;
}
html[data-theme="dark"] body.ci-v9 .favorites-tools .market-compare-cta :is(strong,small,span) { color:#eef3f6!important; }

/* Footer now stays inside the viewport and never exposes clipped side strips. */
.ci-v9 .site-footer { width:100%!important;max-width:none!important;margin-right:0!important;margin-left:0!important;overflow:hidden!important; }
.ci-v9 .site-footer-grid { width:min(1400px,calc(100% - 56px))!important; }
html[data-theme="dark"] body.ci-v9 .site-footer,
html[data-theme="dark"] body.ci-v9 .site-footer-grid,
html[data-theme="dark"] body.ci-v9 .site-footer-bottom { background:#0a1015!important; }
html[data-theme="dark"] body.ci-v9 .site-footer-grid :is(button,a) { color:#d2dbe1!important; }
html[data-theme="dark"] body.ci-v9 .site-footer-bottom { color:#8997a1!important; }

/* Reviews: substantial cards and a purpose-built player with a readable story. */
.ci-v9 .client-review-card {
  width:590px!important;
  min-height:310px!important;
  grid-template-columns:210px minmax(0,1fr)!important;
  border-radius:26px!important;
}
.ci-v9 .review-video { min-height:310px!important; }
.ci-v9 .review-card-copy { padding:25px!important;display:flex!important;flex-direction:column!important;min-width:0!important; }
.ci-v9 .review-card-copy>header { display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important; }
.ci-v9 .review-card-copy>header>span { color:#f2b01e!important;font-size:21px!important;letter-spacing:.07em!important;line-height:1!important; }
.ci-v9 .review-card-copy>header>em { color:#8a98a2!important;font-size:9px!important;font-style:normal!important;font-weight:800!important; }
.ci-v9 .review-card-copy h3 { margin:18px 0 9px!important;color:#17222b!important;font-size:19px!important;line-height:1.12!important;letter-spacing:-.035em!important; }
.ci-v9 .review-card-copy>p { min-height:0!important;margin:0!important;color:#566570!important;font-size:11px!important;line-height:1.62!important; }
.ci-v9 .review-card-copy>footer { margin-top:auto!important;padding-top:17px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;border-top:1px solid #e5e9ec!important; }
.ci-v9 .review-card-copy>footer b { color:#202c35!important;font-size:9px!important;text-transform:uppercase!important;letter-spacing:.08em!important; }
.ci-v9 .review-card-copy>footer small { color:#89959e!important;font-size:8px!important; }
.ci-v9 .review-marquee:hover .review-track,
.ci-v9 .review-marquee:focus-within .review-track,
.ci-v9 .review-marquee:active .review-track { animation-play-state:paused!important; }
.ci-v9 .review-marquee { width:100%!important;margin-left:0!important;margin-right:0!important; }
html[data-theme="dark"] body.ci-v9 .review-card-copy h3 { color:#f4f7f9!important; }
html[data-theme="dark"] body.ci-v9 .review-card-copy>p { color:#b7c2ca!important; }
html[data-theme="dark"] body.ci-v9 .review-card-copy>footer { border-color:#2c3943!important; }
html[data-theme="dark"] body.ci-v9 .review-card-copy>footer b { color:#eef3f6!important; }

.client-review-modal>section {
  width:min(1180px,calc(100vw - 36px))!important;
  max-height:calc(100dvh - 36px)!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  border-radius:28px!important;
}
.client-review-modal .review-modal-layout { min-height:0;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.7fr); }
.client-review-modal .review-modal-player { min-width:0;min-height:0;display:flex;flex-direction:column;justify-content:center;background:#020405; }
.client-review-modal .review-modal-player video { width:100%!important;height:auto!important;max-height:calc(100dvh - 150px)!important;aspect-ratio:16/9!important;object-fit:contain!important;background:#000!important; }
.client-review-modal .review-modal-player>span { padding:10px 16px;color:#7f8d97;font-size:9px;background:#070b0e; }
.client-review-modal .review-modal-layout>aside { min-height:0;padding:32px;overflow:auto;border-left:1px solid rgba(255,255,255,.1);background:#0e151b; }
.client-review-modal .review-modal-layout>aside>.review-modal-rating { display:block;color:#f2b01e;font-size:26px;letter-spacing:.08em; }
.client-review-modal .review-modal-layout>aside>small { display:block;margin-top:8px;color:#8d9aa4;font-size:8px;font-weight:800;letter-spacing:.1em;text-transform:uppercase; }
.client-review-modal .review-modal-layout>aside h3 { margin:24px 0 12px;color:#f5f7f9;font-size:clamp(25px,2.5vw,38px);line-height:1.04;letter-spacing:-.045em; }
.client-review-modal .review-modal-layout>aside p { margin:0;color:#b7c2ca;font-size:13px;line-height:1.7; }
.client-review-modal .review-modal-layout dl { margin:26px 0 0;display:grid;gap:10px; }
.client-review-modal .review-modal-layout dl>div { padding:12px 0;display:grid;gap:5px;border-top:1px solid rgba(255,255,255,.09); }
.client-review-modal .review-modal-layout dt { color:#798690;font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.1em; }
.client-review-modal .review-modal-layout dd { margin:0;color:#e6ebee;font-size:10px;line-height:1.45; }

@media (max-width:899px) {
  .ci-v9 .site-footer-grid { width:calc(100% - 32px)!important; }
  .ci-v9 .process-tree-row { opacity:1!important; }
  .ci-v9 .client-review-card { width:360px!important;min-height:270px!important;grid-template-columns:128px minmax(0,1fr)!important; }
  .ci-v9 .review-video { min-height:270px!important; }
  .ci-v9 .review-card-copy { padding:17px!important; }
  .ci-v9 .review-card-copy>header>span { font-size:17px!important; }
  .ci-v9 .review-card-copy h3 { margin-top:13px!important;font-size:17px!important;line-height:1.15!important; }
  .ci-v9 .review-card-copy>p { font-size:10.5px!important;line-height:1.52!important; }
  .ci-v9 .review-card-copy>footer { padding-top:11px!important;align-items:flex-start!important;flex-direction:column!important;gap:4px!important; }
  .client-review-modal { padding:0!important;place-items:stretch!important; }
  .client-review-modal>section { width:100%!important;max-height:100dvh!important;border:0!important;border-radius:0!important; }
  .client-review-modal .review-modal-layout { grid-template-columns:1fr;overflow:auto; }
  .client-review-modal .review-modal-player video { max-height:52dvh!important; }
  .client-review-modal .review-modal-layout>aside { overflow:visible;padding:22px 18px 34px;border-top:1px solid rgba(255,255,255,.1);border-left:0; }
  .client-review-modal .review-modal-layout>aside h3 { font-size:27px; }
}

@media (prefers-reduced-motion:reduce) {
  .ci-v9 .review-track { animation:none!important; }
}
