:root {
  color-scheme: light;
  --navy: #151d2e;
  --blue: #0b3de7;
  --blue-hover: #1731ad;
  --blue-wash: #eef2ff;
  --line: #dce3ef;
  --control-line: #899ab4;
  --muted: #4c5c73;
  --green: #13723b;
  --red: #991335;
  --paper: #fff;
  --wash: #f5f7fb;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--navy);
  background: var(--wash);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
::selection { color: var(--navy); background: #d7e0ff; }
main, .topbar-inner { width: min(1220px, 100% - 64px); margin: auto; }
main { padding: 32px 0 54px; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-size: 1.25rem; font-weight: 750; letter-spacing: -.025em; white-space: nowrap; }
.brand img { display: block; flex: none; }
.topbar-actions, .profile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.topbar-actions { justify-content: flex-end; }
.ghost { background: transparent; border: 1px solid #8fa1b7; padding: 7px 12px; min-height: 34px; }
.ghost:hover { background: #2b4260; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 19px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.tabs button { background: none; color: var(--muted); border-radius: 0; border-bottom: 3px solid transparent; padding: 9px 0; }
.tabs button:hover { background: none; color: var(--blue); }
.tabs [aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.page-heading { margin-bottom: 22px; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.62rem, 3.25vw, 2.65rem); line-height: 1.12; letter-spacing: -.034em; margin-bottom: 9px; }
h2 { font-size: 1.2rem; line-height: 1.2; margin-bottom: 15px; }
h3 { font-size: 1rem; margin-bottom: 10px; }
p { color: var(--muted); line-height: 1.55; }
.configuration { display: grid; grid-template-columns: minmax(0, 2.45fr) minmax(245px, 1fr); gap: 22px; align-items: start; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 21px 24px; min-width: 0; }
.summary dl { margin: 18px 0; padding: 7px 0; border-block: 1px solid var(--line); }
.summary dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 7px; }
.summary dt { color: var(--muted); font-size: .9rem; }
.summary dd { margin: 0; font-weight: 650; text-align: end; }
.vehicle-summary, #seller-name { color: var(--navy); font-weight: 650; }
.summary p:not(.vehicle-summary) { font-size: .9rem; }
form { margin: 0; }
fieldset { border: none; padding: 0; margin: 0; min-width: 0; }
.quote-form fieldset + fieldset { margin-top: 27px; border-top: 1px solid var(--line); padding-top: 5px; }
legend { font-size: 1.16rem; font-weight: 690; margin: 0 0 14px; padding: 0 8px 0 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; }
label { display: block; min-width: 0; color: var(--navy); font-weight: 590; font-size: .9rem; }
label small { color: var(--muted); font-weight: 400; }
input, select, textarea { display: block; background: var(--paper); color: var(--navy); width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--control-line); border-radius: 7px; margin: 6px 0 2px; padding: 9px 11px; font: 400 1rem/1.34 "Segoe UI", Arial, sans-serif; }
select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 52%, var(--muted) 53%), linear-gradient(135deg, var(--muted) 52%, transparent 53%); background-position: calc(100% - 15px) center, calc(100% - 9px) center; background-size: 6px 6px; background-repeat: no-repeat; }
select:disabled { opacity: .8; background-color: var(--wash); }
textarea { resize: vertical; }
input, textarea { caret-color: var(--blue); }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
#price-source { display: inline-block; margin-top: 4px; }
button { background: var(--blue); border: 0; border-radius: 7px; min-height: 44px; padding: 9px 15px; font: 650 .95rem/1.2 "Segoe UI", Arial, sans-serif; color: white; cursor: pointer; }
button:hover { background: var(--blue-hover); }
button:disabled { opacity: .65; cursor: wait; }
a, .text-button { color: var(--blue); text-decoration: underline; text-underline-offset: .19em; }
.text-button { background: none; padding: 0; min-height: auto; text-align: left; }
.text-button:hover { background: none; color: var(--navy); }
.small { font-size: .83rem; font-weight: 500; }
.form-footer, .actions { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; margin-top: 20px; }
.form-footer { border-top: 1px solid var(--line); padding-top: 17px; }
.form-footer span, .actions span { color: var(--muted); font-size: .9rem; }
.error { background: #fff0f4; color: var(--red); padding: 10px 14px; margin-top: 15px; border-radius: 7px; }
.auth { max-width: 480px; margin: 24px auto; }
.auth h1 { margin-bottom: 24px; }
.auth label, #content label { margin: 13px 0 0; }
.panel-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.panel-actions h2 { margin: 0; }
#invite-result { margin-top: 9px; margin-bottom: 16px; max-width: 500px; }
.table-scroll { max-width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: start; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; min-width: 94px; }
th { background: #e9eff6; font-size: .86rem; }
td { overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
td .small { display: block; color: var(--muted); margin-top: 3px; }
.history { margin-top: 18px; }
@media (max-width: 880px) {
  main, .topbar-inner { width: min(760px, 100% - 32px); }
  .configuration { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 580px) {
  main { padding-top: 20px; }
  .topbar-inner { flex-wrap: wrap; padding-block: 10px; }
  .content-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 17px 15px; }
  .tabs { gap: 4px 14px; margin-bottom: 23px; }
  .tabs button { font-size: .87rem; }
}

.demo-note { font-size: .875rem; margin: -3px 0 13px; }
.profile .role-label { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.profile select { width: auto; margin: 0; }
.heading-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.secondary { white-space: nowrap; color: var(--navy); border: 1px solid var(--control-line); background: var(--paper); }
.secondary:hover { color: var(--blue); background: var(--blue-wash); }
@media (max-width: 580px) {
  .topbar-actions { justify-content: flex-start; }
  .profile select { font-size: .875rem; }
  .heading-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
}

.program-filter { margin-bottom: 18px; }
.program-results { display: grid; gap: 18px; }
.program-results .panel > p { margin-bottom: 13px; }
.program-results th { white-space: nowrap; }
.program-results tbody th { background: none; font-size: .95rem; white-space: normal; min-width: 160px; }
.program-results td { font-variant-numeric: tabular-nums; }
.program-results th, .program-results td { padding: 11px 10px; }
.program-results tbody tr:last-child th { border-bottom: 0; }
.program-details { margin-top: 18px; }
.program-details summary { cursor: pointer; font-weight: 650; }
.program-details h3 { margin: 20px 0 8px; }
.program-details p + p { margin-top: 8px; }
.program-details ul, .program-results ul { margin: 10px 0 0; padding-left: 22px; color: var(--muted); line-height: 1.55; }
.program-details li + li, .program-results li + li { margin-top: 4px; }
.program-footnote { margin: 12px 0 0; }

.kb-filters { display: grid; grid-template-columns: .85fr 1.1fr 1.2fr 1fr; gap: 12px 16px; margin-bottom: 18px; }
.kb-vehicle { display: grid; gap: 16px; }
.kb-hero { display: grid; grid-template-columns: minmax(250px, .85fr) minmax(0, 1.65fr); align-items: center; gap: 22px; padding: 24px; }
.kb-overview { padding: 0 8px; }
.kb-model-brand { color: var(--blue); font-size: .8rem; font-weight: 700; letter-spacing: .09em; }
.kb-hero h2 { margin: 5px 0 8px; font-size: clamp(1.75rem, 4vw, 2.8rem); letter-spacing: -.04em; line-height: 1.08; }
.kb-configuration { margin-top: 9px; color: var(--navy); font-weight: 650; }
.kb-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--line); margin: 18px 0 0; padding-top: 14px; }
.kb-create-quote { margin-top: 20px; }
.kb-highlights dt { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.kb-highlights dd { margin: 4px 0 0; font-weight: 700; font-size: .99rem; }
.kb-highlights dd span { font-size: .72rem; white-space: nowrap; }
.kb-figure { margin: 0; min-width: 0; }
.kb-photo { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1.86; background: #f1f3f5; border-radius: 13px; overflow: hidden; }
.kb-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.kb-angles:not(:empty) { margin-top: .65rem; }
.kb-figure figcaption { color: var(--muted); font-size: .8rem; margin-top: 7px; min-height: 1.2em; }
.kb-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px; }
.kb-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.kb-swatches button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 9px; font-size: .8rem; white-space: normal; border-color: var(--line); }
.kb-swatches button[aria-pressed="true"], .kb-panel-tabs button[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); background: var(--blue-wash); }
.kb-paint-chip { flex: 0 0 13px; width: 13px; height: 13px; border-radius: 50%; border: 1px solid #738395; }
#kb-interior-note { margin-top: 8px; }
.kb-panel-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; }
.kb-panel-tabs button { min-height: 40px; }
.kb-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; }
.kb-specs section { min-width: 0; }
.kb-specs dl { margin: 0 0 12px; }
.kb-stat { display: grid; grid-template-columns: 1.15fr minmax(0, 1fr); gap: 5px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.kb-stat dt, .kb-stat dd { margin: 0; line-height: 1.4; font-size: .9rem; }
.kb-stat dt { color: var(--muted); }
.kb-stat dd { font-weight: 625; }
.kb-stat .small { display: block; color: var(--muted); margin-top: 4px; }
.kb-equipment-tools { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-bottom: 12px; }
.kb-equipment-tools label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.kb-equipment-tools input { width: 17px; min-height: auto; height: 17px; margin: 0; accent-color: var(--blue); }
.kb-group { border-top: 1px solid var(--line); }
.kb-group summary { padding: 13px 0; cursor: pointer; font-weight: 650; }
.kb-group ul { list-style: none; padding: 0 0 10px; margin: 0; }
.kb-group li { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: start; gap: 6px 12px; padding: 6px 4px; font-size: .91rem; }
.kb-equipment-state { color: var(--muted); font-size: .81rem; }
.kb-equipment-state.optional { color: #735008; }
.kb-sources ul { margin: 0 0 10px; padding-left: 20px; line-height: 1.75; }
.kb-sources p + p { margin-top: 5px; }
@media (max-width: 880px) {
  .kb-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .kb-hero, .kb-gallery, .kb-specs { grid-template-columns: 1fr; }
  .kb-hero { gap: 15px; }
  .kb-overview { padding: 0; }
  .kb-stat { padding: 8px 0; }
}

.cmp-layout, .cmp-cars { display: grid; gap: 18px; }
.cmp-cars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cmp-three .cmp-cars, .cmp-three #cmp-sources { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cmp-heading-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.cmp-car { display: grid; grid-template-rows: auto auto 1fr; gap: 14px; }
.cmp-car h2 { margin: 0; }
.cmp-car-controls { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 10px 14px; }
.cmp-car-version { grid-column: 1 / -1; }
.cmp-car-preview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: center; }
.cmp-car-preview img { width: 100%; height: 112px; object-fit: contain; }
.cmp-three .cmp-car-controls, .cmp-three .cmp-car-preview { grid-template-columns: minmax(0, 1fr); }
.cmp-three .cmp-car-preview { grid-template-rows: 112px auto; align-items: start; align-content: start; gap: 6px; }
.cmp-car-trim { font-weight: 700; color: var(--navy); }
.cmp-summary-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.cmp-summary-list li { background: var(--wash); border-radius: 9px; padding: 10px 12px; }
.cmp-summary-list strong { display: block; margin-bottom: 3px; font-size: .86rem; color: var(--blue); overflow-wrap: anywhere; }
.cmp-summary-list p { font-size: .9rem; }
.cmp-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.cmp-controls .kb-panel-tabs { padding-bottom: 0; }
.cmp-filter { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.cmp-filter input { width: 17px; min-height: auto; height: 17px; margin: 0; accent-color: var(--blue); }
.cmp-table { table-layout: fixed; }
.cmp-table :is(th, td) { min-width: 0; vertical-align: top; overflow-wrap: anywhere; }
.cmp-table thead th:first-child { width: 34%; }
.cmp-three .cmp-table thead th:first-child { width: 28%; }
.cmp-mobile-name { display: none; }
.cmp-table thead th .small { display: block; font-weight: 500; margin-top: 3px; color: var(--muted); }
.cmp-table tbody th { background: transparent; font-size: .88rem; }
.cmp-table tbody tr:last-child th { border-bottom: 0; }
.cmp-table td { font-size: .92rem; }
.cmp-table .cmp-section-label { padding-block: 8px; font-size: .83rem; font-weight: 700; color: var(--navy); background: var(--wash); }
.cmp-delta { display: inline-block; border-radius: 5px; color: var(--blue); background: var(--blue-wash); padding: 2px 6px; margin: 5px 0 0 7px; font-size: .78rem; font-weight: 650; }
.cmp-muted, .cmp-state.unknown, .cmp-state.absent { color: var(--muted); }
.cmp-state.standard { color: var(--green); font-weight: 650; }
.cmp-state.optional { color: #735008; }
.cmp-sources summary { cursor: pointer; font-weight: 650; }
#cmp-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-top: 15px; }
#cmp-sources ul { margin: 0 0 8px; padding-left: 18px; line-height: 1.65; }
@media (max-width: 880px) {
  .cmp-car-controls { grid-template-columns: 1fr; }
  .cmp-summary-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-three .cmp-cars, .cmp-three #cmp-sources { grid-template-columns: minmax(0, 1fr); }
  .cmp-three .cmp-car-preview { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto; align-items: center; gap: 14px; }
}
@media (max-width: 650px) {
  .cmp-cars, #cmp-sources { grid-template-columns: 1fr; }
  .cmp-layout, .cmp-cars { gap: 14px; }
  .cmp-heading-actions { justify-content: flex-start; }
  .cmp-heading-actions button { white-space: normal; }
  .cmp-table, .cmp-table tbody, .cmp-table tr { display: block; }
  .cmp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cmp-table tbody tr { border-bottom: 1px solid var(--line); }
  .cmp-table tbody tr:last-child { border-bottom: 0; }
  .cmp-table tbody th, .cmp-table tbody td { border-bottom: 0; }
  .cmp-table tbody th, .cmp-table .cmp-section-label { display: block; padding: 10px 8px 6px; }
  .cmp-table .cmp-cell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: 8px; padding: 4px 8px 7px; }
  .cmp-mobile-name { display: block; color: var(--muted); font-size: .79rem; line-height: 1.35; }
  .cmp-value { min-width: 0; font-size: .84rem; }
  .cmp-value .small { font-size: .76rem; }
  .cmp-delta { display: table; margin-left: 0; }
}
@media (max-width: 460px) {
  .cmp-summary-list { grid-template-columns: minmax(0, 1fr); }
}

.account-form { max-width: 32rem; margin: 1.25rem auto; }
.account-form label { display: grid; gap: .35rem; margin-block: 1rem; }

.login { display: grid; place-items: center; min-height: 100svh; padding-block: 24px; }
.login-form { width: min(100%, 416px); padding: 32px; }
.login-form .brand { margin-bottom: 28px; }
.login-form h1 { font-size: 1.85rem; margin-bottom: 23px; }
.login-form label + label { margin-top: 16px; }
.login-form button { width: 100%; margin-top: 23px; }
.login-form .error { margin: 0 0 16px; }
@media (max-width: 400px) {
  .login-form { padding: 24px; }
}
