/* AUTOLEX Data Cockpit — vehicle intelligence workspace. */
body:has(.alx-vehicle-page) { background: #050b12; }
body:has(.alx-vehicle-page) .alx-main { padding: 0; }
body:has(.alx-vehicle-page) .alx-site-header { border-bottom-color: #152335; background: rgba(5, 11, 18, .96); box-shadow: none; }
body:has(.alx-vehicle-page) .alx-site-header .alx-brand-mark img { filter: brightness(0) invert(1); }
body:has(.alx-vehicle-page) .alx-primary-nav a { color: #a9b8c9; }
body:has(.alx-vehicle-page) .alx-primary-nav a:hover { color: #ffffff; }
body:has(.alx-vehicle-page) .alx-header-search-link,
body:has(.alx-vehicle-page) .alx-menu-toggle { border-color: #25384d; color: #d8e5f2; background: #0b1724; }
body:has(.alx-vehicle-page) .alx-mobile-menu { border-top-color: #1b2a3b; background: #07111d; }
body:has(.alx-vehicle-page) .alx-mobile-menu a { color: #dce7f2; }

.alx-vehicle-page {
  --cockpit-bg: #050b12;
  --cockpit-panel: #07111d;
  --cockpit-panel-2: #0a1623;
  --cockpit-line: #1a2b3d;
  --cockpit-line-strong: #29435d;
  --cockpit-text: #f2f7fb;
  --cockpit-muted: #94a7bb;
  --cockpit-blue: #16a8ff;
  min-height: 100vh;
  color: var(--cockpit-text);
  background:
    radial-gradient(circle at 100% 0, rgba(22, 168, 255, .095), transparent 29rem),
    linear-gradient(180deg, #050b12, #07101a 60%, #050b12);
  padding: clamp(32px, 4vw, 64px) 0 clamp(70px, 8vw, 116px);
}

.alx-vehicle-shell { display: grid; gap: 0; }
.alx-vehicle-hero { display: grid; min-height: 370px; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr); gap: clamp(38px, 7vw, 108px); align-items: center; border: 1px solid var(--cockpit-line); border-radius: 24px; background: linear-gradient(135deg, rgba(12, 27, 42, .92), rgba(6, 15, 24, .98)); padding: clamp(34px, 5vw, 72px); box-shadow: 0 34px 90px rgba(0, 0, 0, .3); }
.alx-vehicle-hero-copy { position: relative; }
.alx-vehicle-hero-copy::before { position: absolute; top: -34px; left: 0; width: 48px; height: 2px; background: var(--cockpit-blue); content: ''; }
.alx-vehicle-hero .alx-eyebrow { color: var(--cockpit-blue); }
.alx-vehicle-hero h1 { max-width: 900px; margin: 12px 0 17px; color: var(--cockpit-text); font-size: clamp(47px, 6.2vw, 90px); font-weight: 850; line-height: .95; letter-spacing: -.065em; text-wrap: balance; }
.alx-vehicle-lead { max-width: 700px; margin: 0; color: #a9b9c9; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.65; }
.alx-vehicle-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.alx-vehicle-actions .alx-button { min-height: 48px; border-radius: 11px; color: #ffffff; background: #087ff5; padding-inline: 19px; }
.alx-vehicle-actions .alx-button span { margin-left: 10px; }
.alx-vehicle-actions .alx-button-secondary { border-color: #29415a; color: #d9e5f1; background: transparent; }
.alx-vehicle-actions .alx-button-secondary:hover { border-color: #4b6985; color: #ffffff; background: #0d1c2b; }

.alx-vehicle-status { overflow: hidden; border: 1px solid var(--cockpit-line-strong); border-radius: 18px; background: rgba(5, 13, 21, .82); padding: 23px; }
.alx-vehicle-status-label { display: block; color: #6f879f; font: 750 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; text-transform: uppercase; }
.alx-vehicle-status > strong { display: flex; align-items: center; gap: 10px; margin-top: 15px; color: #ffffff; font-size: 16px; }
.alx-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #35d49a; box-shadow: 0 0 0 5px rgba(53, 212, 154, .1), 0 0 20px rgba(53, 212, 154, .38); }
[data-content-status="pending"] .alx-status-dot { background: #f3b84b; box-shadow: 0 0 0 5px rgba(243, 184, 75, .1); }
.alx-vehicle-status dl { margin: 22px 0 0; }
.alx-vehicle-status dl > div { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--cockpit-line); padding: 12px 0; font-size: 11px; }
.alx-vehicle-status dt { color: #71879d; }
.alx-vehicle-status dd { margin: 0; color: #d9e5f1; font-weight: 720; text-align: right; }
.alx-vehicle-status > a { display: flex; justify-content: space-between; border-top: 1px solid var(--cockpit-line); margin-top: 8px; padding-top: 17px; color: var(--cockpit-blue); font-size: 11px; font-weight: 760; text-decoration: none; }

.alx-vehicle-section-nav { display: flex; gap: 27px; overflow-x: auto; border-bottom: 1px solid var(--cockpit-line); padding: 0 4px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.alx-vehicle-section-nav a { position: relative; flex: 0 0 auto; min-height: 62px; padding: 23px 0 17px; color: #8195aa; font-size: 11px; font-weight: 750; text-decoration: none; scroll-snap-align: start; }
.alx-vehicle-section-nav a::after { position: absolute; right: 100%; bottom: -1px; left: 0; height: 2px; background: var(--cockpit-blue); content: ''; transition: right .16s ease; }
.alx-vehicle-section-nav a:hover,
.alx-vehicle-section-nav a:focus-visible { color: #ffffff; }
.alx-vehicle-section-nav a:hover::after,
.alx-vehicle-section-nav a:focus-visible::after { right: 0; }

.alx-vehicle-directory,
.alx-vehicle-workspace { margin-top: clamp(50px, 6vw, 84px); }
.alx-section-heading { display: grid; max-width: 930px; gap: 0; }
.alx-section-heading h2 { margin: 4px 0 10px; color: var(--cockpit-text); font-size: clamp(30px, 4vw, 54px); line-height: 1; letter-spacing: -.048em; }
.alx-section-heading > p:last-child { max-width: 760px; margin: 5px 0 0; color: var(--cockpit-muted); font-size: 14px; line-height: 1.65; }
.alx-vehicle-directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 28px 0 0; border: 1px solid var(--cockpit-line); border-radius: 17px; background: var(--cockpit-line); padding: 0; list-style: none; }
.alx-vehicle-directory-grid li { scroll-margin-top: 96px; background: var(--cockpit-panel); }
.alx-vehicle-directory-grid a { display: grid; min-height: 92px; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 9px; align-items: center; color: #d8e3ed; background: linear-gradient(135deg, rgba(255, 255, 255, .012), transparent); padding: 15px 17px; text-decoration: none; transition: background .18s ease; }
.alx-vehicle-directory-grid a:hover { color: #ffffff; background: #0b1c2c; }
.alx-vehicle-directory-grid small { color: var(--cockpit-blue); font: 720 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.alx-vehicle-directory-grid a > span:nth-child(2) { font-size: 12px; font-weight: 740; line-height: 1.35; }
.alx-vehicle-directory-grid a > span:last-child { color: #466580; }

.alx-vehicle-workspace { scroll-margin-top: 94px; border: 1px solid var(--cockpit-line); border-radius: 20px; background: var(--cockpit-panel); padding: clamp(26px, 4vw, 52px); }
.alx-section-heading--workspace { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; border-bottom: 1px solid var(--cockpit-line); padding-bottom: 25px; }
.alx-section-heading--workspace h2 { margin-bottom: 0; font-size: clamp(29px, 3.2vw, 45px); }
.alx-workspace-state { display: inline-flex; min-height: 30px; align-items: center; border: 1px solid #265273; border-radius: 999px; color: #92d2ff; background: #0a2234; padding: 0 11px; font: 720 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.alx-vehicle-plugin-output { min-width: 0; margin-top: 27px; color: #ccd8e4; }
.alx-vehicle-plugin-output h2,
.alx-vehicle-plugin-output h3,
.alx-vehicle-plugin-output h4 { color: #ffffff; }
.alx-vehicle-plugin-output a { color: #52bbff; }
.alx-vehicle-plugin-output table { width: 100%; overflow: hidden; border-collapse: collapse; border: 1px solid var(--cockpit-line); border-radius: 12px; }
.alx-vehicle-plugin-output th,
.alx-vehicle-plugin-output td { border-bottom: 1px solid var(--cockpit-line); padding: 14px 16px; text-align: left; vertical-align: top; }
.alx-vehicle-plugin-output th { width: 34%; color: #8fa4b9; background: #091725; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.alx-vehicle-plugin-output td { color: #dce7f1; background: #07111d; }
.alx-vehicle-plugin-output tr:nth-child(even) td { background: #091522; }
.alx-vehicle-plugin-output input,
.alx-vehicle-plugin-output select { border: 1px solid var(--cockpit-line-strong); color: #ffffff; background: #0b1927; }
.alx-vehicle-empty { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; max-width: 800px; margin-top: 28px; border: 1px dashed #31506c; border-radius: 14px; background: #081521; padding: 25px; }
.alx-vehicle-empty > span { color: var(--cockpit-blue); font-size: 28px; line-height: 1; }
.alx-vehicle-empty h3 { margin: 0; color: #ffffff; font-size: clamp(20px, 2vw, 26px); }
.alx-vehicle-empty p { margin: 8px 0 0; color: var(--cockpit-muted); line-height: 1.65; }

.alx-vehicle-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-top: clamp(38px, 5vw, 62px); border: 1px solid var(--cockpit-line); border-radius: 18px; background: var(--cockpit-line); }
.alx-vehicle-safety-note,
.alx-vehicle-source-note { min-height: 250px; background: var(--cockpit-panel-2); padding: clamp(25px, 3vw, 40px); }
.alx-note-index { color: #71879d; font: 730 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.alx-vehicle-safety-note h2,
.alx-vehicle-source-note h2 { margin: 17px 0 11px; color: #ffffff; font-size: clamp(23px, 2.4vw, 34px); line-height: 1.08; letter-spacing: -.035em; }
.alx-vehicle-safety-note p,
.alx-vehicle-source-note p { max-width: 650px; color: var(--cockpit-muted); font-size: 13px; line-height: 1.65; }
.alx-vehicle-safety-note a,
.alx-vehicle-source-note a { display: inline-block; margin-top: 13px; color: var(--cockpit-blue); font-size: 11px; font-weight: 780; text-decoration: none; }

@media (max-width: 1100px) {
  .alx-vehicle-hero { grid-template-columns: 1fr; }
  .alx-vehicle-status { max-width: 570px; }
  .alx-vehicle-directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .alx-vehicle-page { padding-top: 18px; }
  .alx-vehicle-hero { min-height: 0; gap: 32px; border-radius: 18px; padding: 31px 22px 22px; }
  .alx-vehicle-hero-copy::before { top: -18px; }
  .alx-vehicle-hero h1 { font-size: clamp(42px, 13vw, 65px); }
  .alx-vehicle-actions { flex-direction: column; }
  .alx-vehicle-actions .alx-button { width: 100%; }
  .alx-vehicle-status { padding: 20px; }
  .alx-vehicle-section-nav { gap: 21px; }
  .alx-vehicle-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alx-section-heading--workspace { grid-template-columns: 1fr; align-items: start; }
  .alx-vehicle-plugin-output { overflow-x: auto; }
  .alx-vehicle-plugin-output th,
  .alx-vehicle-plugin-output td { min-width: 130px; padding: 12px 10px; }
  .alx-vehicle-notes { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .alx-vehicle-directory-grid { grid-template-columns: 1fr; }
  .alx-vehicle-directory-grid a { min-height: 72px; }
  .alx-vehicle-workspace { border-radius: 16px; padding: 22px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .alx-vehicle-directory-grid a,
  .alx-vehicle-section-nav a::after { transition: none; }
}
