* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #1f2933;
}

.app-shell {
    width: min(100% - 32px, 1050px);
    margin: 0 auto;
    padding: 32px 0 60px;
}

.site-header {
    margin-bottom: 28px;
}

.site-header h1 {
    margin: 0 0 8px;
    font-size: clamp(30px, 5vw, 44px);
}

.site-header p {
    margin: 0;
    color: #5f6b76;
}

.search-section {
    margin-bottom: 24px;
}

.search-section h2 {
    margin-bottom: 14px;
}

#vin-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

#vin-form input,
#vin-form select {
    font-family: inherit;
    font-size: 16px;
    line-height: 1.25;
}

#vin-form .vin-controls > input,
#vin-form .single-market-location select,
#vin-form .money-input,
#vin-form .mileage-input {
    height: 46px;
}

#vin-form .money-input input,
#vin-form .mileage-input input {
    height: 44px;
}

#vin-form .money-input span,
#vin-form .mileage-input span {
    font-size: 16px;
    line-height: 1.25;
}

#vin-form .single-vehicle-deal-inputs {
    margin-top: 16px;
}

#vin-form .single-vehicle-deal-inputs > label {
    gap: 0;
    margin-bottom: 0;
}

#vin-form .single-vehicle-deal-inputs .money-input,
#vin-form .single-vehicle-deal-inputs .mileage-input {
    margin-top: 8px;
}

.single-market-location {
    margin-top: 16px;
    margin-bottom: 12px;
}

.vin-controls {
    display: flex;
    gap: 10px;
}

input,
select {
    flex: 1;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #cfd6dc;
    border-radius: 9px;
    background: white;
    font-size: 16px;
}

button {
    padding: 13px 18px;
    border: none;
    border-radius: 9px;
    background: #20252b;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

.vehicle-card,
.message-card {
    background: white;
    border-radius: 16px;
    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, 0.08);
}

.vehicle-card {
    padding: 26px;
}

.message-card {
    padding: 20px;
}

.error-card {
    background: #fff1f1;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: bold;
    color: #64717d;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.section-heading h2 {
    margin: 4px 0 0;
}

.section-summary {
    color: #56616b;
    line-height: 1.55;
    margin-bottom: 18px;
}

.status-badge {
    white-space: nowrap;
    padding: 7px 10px;
    border-radius: 999px;
    background: #edf1f5;
    font-size: 13px;
    font-weight: bold;
}


/* =========================================
   MODE SELECTOR
   ========================================= */

.research-mode-selector {
    display: inline-flex;
    gap: 5px;
    padding: 5px;
    margin-bottom: 26px;
    background: #e9edf1;
    border-radius: 12px;
}

.mode-button {
    width: auto;
    padding: 10px 16px;
    border-radius: 8px;
    background: transparent;
    color: #4d5964;
    font-size: 14px;
}

.mode-button.active {
    background: white;
    color: #1f2933;
    box-shadow:
        0 1px 5px
        rgba(0, 0, 0, 0.08);
}


/* =========================================
   COMPARE FORM
   ========================================= */

.hidden {
    display: none !important;
}

.compare-search-section {
    margin-bottom: 28px;
}

.compare-heading {
    margin-bottom: 20px;
}

.compare-heading h2 {
    margin: 5px 0 7px;
    font-size: 28px;
}

.compare-heading > p:last-child {
    margin: 0;
    color: #66727d;
    line-height: 1.5;
}


/* =========================================
   VEHICLE GRID
   ========================================= */

.compare-input-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.compare-input-card {
    min-width: 0;
    padding: 18px;
    background: white;
    border: 1px solid #dde3e8;
    border-radius: 14px;
}

.compare-card-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.compare-card-heading > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.compare-card-heading small {
    color: #77828c;
}

.vehicle-number {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #20252b;
    color: white;
    font-weight: bold;
}

.compare-input-card > label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: bold;
}

.compare-input-card > input {
    width: 100%;
    margin-bottom: 16px;
}

.deal-input-row {
    display: grid;
    grid-template-columns:
        1fr 1fr;
    gap: 10px;
}

.deal-input-row > label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px;
    font-weight: bold;
}

.money-input,
.mileage-input {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #cfd6dc;
    border-radius: 9px;
    overflow: hidden;
}

.money-input span {
    padding-left: 12px;
    color: #65717b;
}

.mileage-input span {
    padding-right: 12px;
    color: #65717b;
    font-size: 13px;
}

.money-input input,
.mileage-input input {
    width: 100%;
    border: none;
    outline: none;
    border-radius: 0;
}


/* =========================================
   ADD VEHICLE
   ========================================= */

.add-vehicle-card {
    min-height: 100%;
    width: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: transparent;
    color: #34404b;
    border: 2px dashed #c8d0d7;
    border-radius: 14px;
}

.add-vehicle-card:hover {
    background: #eef2f5;
    border-color: #89949e;
    opacity: 1;
}

.add-vehicle-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #20252b;
    color: white;
    font-size: 27px;
}


/* =========================================
   MARKET LOCATION
   ========================================= */

.market-location-section {
    margin-top: 22px;
    padding: 20px;
    background: white;
    border: 1px solid #dde3e8;
    border-radius: 14px;
}

.market-location-section h3 {
    margin: 5px 0 7px;
    font-size: 22px;
}

.market-location-section p:not(.eyebrow) {
    margin: 0 0 16px;
    color: #68747e;
    line-height: 1.5;
}

.market-location-section label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
    font-size: 13px;
}

.market-location-section select {
    width: min(100%, 280px);
}


/* =========================================
   PRIORITIES
   ========================================= */

.buyer-priority-section {
    margin-top: 22px;
    padding: 20px;
    background: white;
    border: 1px solid #dde3e8;
    border-radius: 14px;
}

.buyer-priority-section h3 {
    margin: 5px 0 7px;
    font-size: 22px;
}

.priority-description {
    margin: 0 0 17px;
    color: #68747e;
    line-height: 1.5;
}

.priority-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.priority-option {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
    border: 1px solid #dfe5e9;
    border-radius: 11px;
    cursor: pointer;
    background: #fafbfc;
}

.priority-option:has(
    input:checked
) {
    background: #eef5ff;
    border-color: #9bbce5;
}

.priority-option input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    padding: 0;
}

.priority-option > span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.priority-option strong {
    font-size: 14px;
}

.priority-option small {
    color: #707b84;
}

.priority-message {
    margin: 12px 0 0;
    font-size: 13px;
    color: #64717d;
}


/* =========================================
   ACTIONS
   ========================================= */

.compare-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.compare-actions-single {
    justify-content: flex-end;
}

.compare-button {
    width: auto;
}


/* =========================================
   REPORT
   ========================================= */

.compact-report {
    padding: 24px;
}

.compact-section {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #e2e7eb;
}

.compact-section-heading {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.compact-section-heading h3 {
    margin: 4px 0 0;
    font-size: 21px;
}

.compact-note {
    margin: -4px 0 14px;
    color: #69757f;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================
   RECOMMENDATIONS
   ========================================= */

.recommendation-section {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #cadbec;
    border-radius: 14px;
    background: #f5f9ff;
}

.recommendation-empty {
    padding: 18px;
    border-radius: 12px;
    background: #f7f9fa;
    border: 1px solid #e0e5e9;
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.recommendation-header h2 {
    margin: 6px 0 2px;
}

.recommendation-score {
    flex: 0 0 auto;
    padding: 10px 14px;
    text-align: center;
    border-radius: 11px;
    background: white;
    border: 1px solid #d8e3ee;
}

.recommendation-score strong {
    display: block;
    font-size: 28px;
}

.recommendation-score span {
    font-size: 12px;
    color: #6d7882;
}

.recommendation-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.recommendation-positive,
.recommendation-warning {
    padding: 14px;
    border-radius: 10px;
}

.recommendation-positive {
    background: #eaf6ed;
}

.recommendation-warning {
    background: #fff5e4;
}

.alternative-card {
    margin-top: 12px;
    padding: 11px 13px;
    background: white;
    border: 1px solid #dce4eb;
    border-radius: 9px;
}

.advisor-note {
    margin-top: 14px;
    padding: 15px;
    background: #eef5ff;
    border-radius: 10px;
}


/* =========================================
   PRICE CHECK
   ========================================= */

.price-check-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.price-check-card {
    padding: 18px;
    border: 1px solid #dfe5e9;
    border-radius: 12px;
    background: #fafbfc;
}

.price-check-card h4 {
    margin: 10px 0 14px;
    font-size: 17px;
}

.price-status {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.price-status.great {
    background: #dff4e5;
}

.price-status.good {
    background: #e9f5e9;
}

.price-status.fair {
    background: #eef2f5;
}

.price-status.high {
    background: #fff1d8;
}

.price-status.very-high {
    background: #ffe4e4;
}

.price-status.neutral {
    background: #edf1f5;
}

.price-number-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.price-number-grid > div {
    padding: 12px;
    background: white;
    border: 1px solid #e0e5e9;
    border-radius: 9px;
}

.price-number-grid span {
    display: block;
    margin-bottom: 4px;
    color: #74808a;
    font-size: 11px;
}

.price-number-grid strong {
    display: block;
    font-size: 19px;
}

.price-difference {
    margin: 14px 0;
    line-height: 1.5;
}

.market-range {
    padding: 12px;
    background: white;
    border-radius: 9px;
    border: 1px solid #e0e5e9;
}

.market-range span,
.market-range small {
    display: block;
    color: #6f7b85;
    font-size: 12px;
}

.market-range strong {
    display: block;
    margin: 4px 0;
}

.price-source {
    margin: 12px 0 0;
    color: #76818a;
    font-size: 12px;
    line-height: 1.45;
}


/* =========================================
   GLANCE TABLE
   ========================================= */

.compare-glance-table {
    border: 1px solid #dfe5e9;
    border-radius: 12px;
    overflow: hidden;
}

.compare-glance-top,
.compare-glance-row {
    display: grid;
    grid-template-columns:
        130px
        repeat(
            var(--vehicle-count),
            minmax(0, 1fr)
        );
}

.compare-glance-top {
    background: #f6f8fa;
}

.compare-glance-header,
.compare-glance-cell,
.compare-row-label {
    padding: 12px;
}

.compare-glance-header {
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-left: 1px solid #e4e8ec;
}

.compare-glance-header span,
.compare-glance-header small {
    color: #6f7a84;
    font-size: 11px;
}

.compare-glance-row {
    border-top: 1px solid #e6eaed;
}

.compare-row-label {
    display: flex;
    align-items: center;
    background: #fafbfc;
    font-size: 12px;
    font-weight: bold;
}

.compare-glance-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    border-left: 1px solid #e6eaed;
}

.compare-glance-cell small {
    padding: 4px 6px;
    border-radius: 999px;
    background: #e4f3e7;
    font-size: 10px;
    font-weight: bold;
}

.comparison-winner {
    background: #f1f8f3;
}

.mobile-row-label {
    display: none;
}

.shopper-footer {
    margin-top: 32px;
    padding: 20px 16px 28px;
    border-top: 1px solid #d9e2e8;
    color: #465866;
    font-size: 14px;
}

.shopper-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
}

.shopper-footer a {
    color: #315a73;
    line-height: 1.5;
    text-underline-offset: 3px;
}

.shopper-footer a:focus-visible {
    outline: 3px solid #f4b942;
    outline-offset: 3px;
    border-radius: 2px;
}

.product-disclosure {
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid #c8d8e4;
    border-radius: 10px;
    color: #253746;
    background: #f3f8fb;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.product-disclosure strong {
    display: block;
    margin-bottom: 3px;
    color: #18364b;
}

.product-disclosure p,
.quick-decision-disclosure {
    margin: 0;
}

.quick-decision-disclosure {
    margin-top: 14px;
    color: #465866;
    font-size: 13px;
    line-height: 1.5;
}

.mobile-vehicle-label {
    display: none;
}


/* =========================================
   BEST USE
   ========================================= */

.best-use-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.best-use-card {
    padding: 15px;
    border: 1px solid #e0e5e9;
    border-radius: 11px;
    background: #fafbfc;
}

.best-use-card > span {
    display: block;
    margin-bottom: 6px;
    color: #68747e;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.best-use-card > strong {
    display: block;
}

.best-use-card > p {
    color: #67737d;
    font-size: 12px;
    line-height: 1.45;
}

.current-car-label {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #e9edf1;
    font-size: 10px;
    font-weight: bold;
}

.best-purchase-option {
    margin-top: 16px;
    padding: 14px;
    border-radius: 9px;
    background: white;
    border: 1px solid #dce3e8;
}


/* =========================================
   SAFETY
   ========================================= */

.evidence-grid {
    display: grid;
    gap: 8px;
}

.evidence-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 15px;
    border: 1px solid #e0e5e9;
    border-radius: 10px;
    background: #fafbfc;
}

.evidence-numbers {
    display: flex;
    gap: 22px;
}

.evidence-numbers > div {
    text-align: right;
}

.evidence-numbers span {
    display: block;
    font-size: 10px;
    color: #75808a;
}


/* =========================================
   DETAILS
   ========================================= */

.accordion {
    margin-top: 8px;
    border: 1px solid #dde3e8;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.accordion summary::after {
    content: "+";
}

.accordion[open] summary::after {
    content: "−";
}

.accordion-content {
    padding: 14px;
    border-top: 1px solid #e4e8ec;
}

.detail-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.detail-item {
    padding: 10px;
    background: #f7f9fa;
    border-radius: 8px;
}

.detail-item span {
    display: block;
    margin-bottom: 3px;
    color: #74808a;
    font-size: 11px;
}


/* =========================================
   EXISTING SINGLE-CAR STYLES
   ========================================= */

.vehicle-heading h2 {
    margin: 4px 0 12px;
}

.vehicle-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vehicle-tags span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f1f4f7;
}

.vehicle-tags .primary-tag {
    background: #20252b;
    color: white;
}

.dashboard-section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid #e0e5e9;
}

.problem-list {
    display: grid;
    gap: 14px;
}

.problem-row {
    padding: 14px;
    background: #f7f9fa;
    border-radius: 10px;
}

.pattern-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pattern-section {
    padding: 18px;
    border: 1px solid #e2e7eb;
    border-radius: 12px;
}

.complaint-context-note {
    padding: 15px;
    background: #fff8e8;
    border-radius: 10px;
}

.source-note {
    color: #77828c;
    font-size: 12px;
}

.mpg-grid {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 10px;
}

.mpg-card {
    padding: 18px;
    text-align: center;
    background: #f5f7f9;
    border-radius: 12px;
}

.fuel-calculator {
    margin-top: 20px;
    padding: 18px;
    background: #f7f9fb;
    border-radius: 12px;
}

.fuel-input-grid,
.fuel-cost-grid {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 10px;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (
    max-width: 900px
) {

    .compare-input-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .add-vehicle-card,
    #vehicle-3-card {
        grid-column:
            1 / -1;
    }
}


@media (
    max-width: 750px
) {

    .mode-button,
    .section-nav a {
        min-height: 44px;
    }

    .priority-grid,
    .recommendation-summary-grid,
    .price-check-grid,
    .best-use-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .compare-glance-top {
        display: none;
    }

    .compare-glance-row {
        display: grid;
        grid-template-columns:
            repeat(
                var(--vehicle-count),
                minmax(0, 1fr)
            );
    }

    .compare-row-label {
        display: none;
    }

    .mobile-row-label {
        display: block;
        font-size: 10px;
        color: #75808a;
        text-transform: uppercase;
    }

    .compare-glance-cell {
        flex-wrap: wrap;
    }

    .mobile-vehicle-label {
        order: -1;
        display: block;
        flex: 0 0 100%;
        color: #4f5b65;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }
}


@media (
    max-width: 600px
) {

    .compare-input-grid {
        grid-template-columns: 1fr;
    }

    .deal-input-row {
        grid-template-columns: 1fr;
    }
}


@media (
    max-width: 520px
) {

    .app-shell {
        width: min(
            100% - 18px,
            1050px
        );
    }

    .vin-controls {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .research-mode-selector {
        display: flex;
        width: 100%;
    }

    .mode-button {
        flex: 1;
    }

    .compare-actions {
        flex-direction: column;
    }

    .compare-button {
        width: 100%;
    }

    .price-number-grid {
        grid-template-columns: 1fr;
    }

    .compare-glance-row {
        grid-template-columns: 1fr;
    }

    .compare-glance-cell {
        border-left: none;
        border-top: 1px solid #e0e5e9;
    }

    .mpg-grid,
    .fuel-input-grid,
    .fuel-cost-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   RESEARCH ONE CAR — FINAL SUMMARY
   ========================================= */

.section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    padding: 10px;
    background: #f7f9fb;
    border: 1px solid #e1e6ea;
    border-radius: 12px;
}

.section-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    color: #34404b;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    border-radius: 8px;
}

.section-nav a:hover {
    background: white;
}

.nav-count {
    min-width: 20px;
    padding: 2px 6px;
    text-align: center;
    border-radius: 999px;
    background: #e8edf2;
    font-size: 10px;
}

.quick-trim-message {
    margin: 10px 0 0;
    color: #65717b;
    font-size: 13px;
}

.safe-badge {
    background: #dff4e5;
}

.warning-badge {
    background: #fff1d8;
}

.advisor-summary-section {
    padding-top: 24px;
}

.advisor-verdict {
    margin-top: 14px;
    border: 1px solid #cfdeee;
}

.advisor-verdict p {
    line-height: 1.55;
}

.advisor-verdict small {
    display: block;
    color: #68747e;
    line-height: 1.45;
}

.advisor-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.advisor-summary-card {
    padding: 14px;
    border: 1px solid #dfe5e9;
    border-radius: 10px;
    background: #fafbfc;
}

.advisor-summary-card > span {
    display: block;
    margin-bottom: 6px;
    color: #6d7882;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.advisor-summary-card > strong {
    display: block;
    margin-bottom: 6px;
}

.advisor-summary-card p {
    margin: 4px 0 0;
    color: #66727d;
    font-size: 12px;
    line-height: 1.45;
}

.trim-confidence-note {
    margin-top: 12px;
}

.trim-confidence-note p {
    margin-bottom: 0;
    line-height: 1.5;
}

@media (max-width: 750px) {
    .advisor-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   RESEARCH ONE CAR — TRIM RESOLUTION
   ========================================= */

.trim-resolution-card {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #d9e1e7;
    border-radius: 12px;
    background: #fbfcfd;
}

.trim-resolution-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

.trim-resolution-heading h3 {
    margin: 5px 0 0;
    font-size: 20px;
}

.trim-resolution-help {
    margin: 0 0 14px;
    color: #5f6b76;
    line-height: 1.5;
}

.trim-shopper-selection {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #eef5f8;
    color: #34434e;
}

.trim-shopper-selection p {
    margin: 5px 0 0;
    line-height: 1.5;
}

.trim-resolution-card label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: bold;
}

.trim-resolution-card select,
.trim-resolution-card input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
}

.market-specificity-note {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-left: 4px solid #5d7f91;
    border-radius: 8px;
    background: #f2f6f8;
    color: #34434e;
    line-height: 1.5;
}

.trim-manual-wrap {
    margin-top: 12px;
}

.trim-resolution-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.trim-resolution-actions button {
    width: auto;
}

.secondary-button {
    background: #e8edf2;
    color: #26323c;
    border: 1px solid #cfd7de;
}

.secondary-button:hover {
    background: #dde4ea;
}

.trim-resolution-error {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff1f1;
    color: #8b2e2e;
    font-size: 13px;
    font-weight: bold;
}

@media (max-width: 520px) {
    .trim-resolution-heading {
        flex-direction: column;
    }

    .trim-resolution-actions {
        flex-direction: column;
    }

    .trim-resolution-actions button {
        width: 100%;
    }
}

@media (max-width: 360px) {
    #vehicle-results .vehicle-card {
        padding: 18px;
    }

    #vehicle-results .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    #vehicle-results .section-heading > *,
    #vehicle-results .section-heading > div,
    #vehicle-results .section-heading h2 {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    #vehicle-results .status-badge {
        align-self: flex-start;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* =========================================
   TSB LINKAGE
   ========================================= */

.tsb-theme-matches {
    grid-column: 1 / -1;
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid #d8e2ea;
    border-radius: 10px;
    background: #f7fafc;
}

.tsb-match-card {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #e2e7eb;
    border-radius: 8px;
    background: #fff;
}

.tsb-match-card p {
    margin: 7px 0 0;
}

.tsb-match-card small {
    display: block;
    margin-top: 8px;
    color: #596772;
}

.tsb-match-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

@media (max-width: 520px) {
    .tsb-match-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

/* =========================================
   RESEARCH ONE CAR — COST TO OWN
   ========================================= */

.ownership-cost-section > p {
    color: #56616b;
    line-height: 1.55;
}

.ownership-cost-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.ownership-cost-item {
    padding: 16px;
    border: 1px solid #dfe5e9;
    border-radius: 11px;
    background: #fafbfc;
}

.ownership-cost-item > span {
    display: block;
    margin-bottom: 6px;
    color: #6d7882;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ownership-cost-item > strong {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
}

.ownership-cost-item > p {
    margin: 0;
    color: #66727d;
    font-size: 13px;
    line-height: 1.5;
}

.research-another-car-wrap {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e0e5e9;
}

.research-another-car-wrap .primary-button {
    width: auto;
}


/* =========================================
   RESEARCH ONE CAR — BETA FEEDBACK
   ========================================= */

.research-feedback-card {
    padding: 20px;
    border: 1px solid #dbe2e7;
    border-radius: 14px;
    background: #f8fafb;
}

.research-feedback-card h2 {
    margin: 6px 0 14px;
    font-size: 21px;
}

.research-feedback-choices,
.research-feedback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.research-feedback-choice {
    min-width: 100px;
    min-height: 44px;
}

.research-feedback-choice.selected {
    border-color: #334a5c;
    background: #dfe9ef;
    color: #172733;
    box-shadow: inset 0 0 0 1px #334a5c;
}

.feedback-selected-indicator {
    font-weight: 700;
}

.research-feedback-comment {
    margin-top: 18px;
}

.research-feedback-comment > label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.research-feedback-comment textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 104px;
    padding: 12px 14px;
    resize: vertical;
    border: 1px solid #cfd6dc;
    border-radius: 9px;
    background: white;
    color: #1f2933;
    font: inherit;
    font-size: 16px;
    line-height: 1.45;
}

.research-feedback-guidance {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 7px;
    color: #5f6b76;
    font-size: 12px;
    line-height: 1.4;
}

.research-feedback-actions {
    margin-top: 14px;
}

.research-feedback-actions button {
    min-height: 44px;
}

.research-feedback-thanks {
    margin: 14px 0 0;
    color: #2d6140;
    font-weight: 700;
}

@media (max-width: 750px) {
    .ownership-cost-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .research-another-car-wrap .primary-button {
        width: 100%;
    }

    .research-feedback-actions button {
        flex: 1 1 150px;
    }
}

@media (max-width: 360px) {
    .research-feedback-card {
        padding: 16px;
    }

    .research-feedback-choice,
    .research-feedback-actions button {
        width: 100%;
    }

    .research-feedback-guidance {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}


/* =========================================
   QUICK DECISION — MOBILE-FIRST MVP #23A-B
   Presentation only. Decision logic remains
   in research-report.js.
   ========================================= */

.quick-decision-card {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid #d9e1e7;
    border-radius: 16px;
    background: #fbfcfd;
}

.quick-decision-card.quick-decision-good {
    border-color: #b9d8c1;
    background: #f7fcf8;
}

.quick-decision-card.quick-decision-warning {
    border-color: #ead39e;
    background: #fffaf0;
}

.quick-decision-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-top: 5px;
}

.quick-decision-title h2 {
    margin: 0 0 6px;
    font-size: clamp(22px, 4vw, 28px);
    line-height: 1.15;
}

.quick-decision-title p {
    margin: 0;
    color: #66727d;
    font-size: 13px;
    line-height: 1.45;
}

.quick-decision-title .status-badge {
    flex: 0 0 auto;
    max-width: 180px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
}

.quick-decision-good .status-badge {
    background: #dff4e5;
}

.quick-decision-warning .status-badge {
    background: #fff1d8;
}

.quick-decision-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 17px;
    padding: 14px 15px;
    border: 1px solid #e0e5e9;
    border-radius: 11px;
    background: white;
}

.quick-decision-price strong {
    flex: 0 0 auto;
    font-size: 16px;
}

.quick-decision-price span {
    color: #5f6b76;
    font-size: 13px;
    line-height: 1.4;
}

.quick-decision-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.quick-decision-highlights li {
    min-width: 0;
    padding: 13px;
    border: 1px solid #e0e5e9;
    border-radius: 10px;
    background: white;
    color: #66727d;
    font-size: 12px;
    line-height: 1.45;
}

.quick-decision-highlights strong {
    display: block;
    margin-bottom: 4px;
    color: #26323c;
    font-size: 13px;
}

.quick-decision-card .advisor-note {
    margin-top: 14px;
}

.quick-decision-card .advisor-note > strong {
    display: block;
    margin-bottom: 5px;
}

.quick-decision-card .advisor-note p {
    margin: 0;
    color: #53606b;
    font-size: 13px;
    line-height: 1.5;
}

.quick-decision-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

@media (max-width: 750px) {
    .quick-decision-highlights {
        grid-template-columns: 1fr;
    }

    .quick-decision-price {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 520px) {
    .quick-decision-card {
        margin-top: 16px;
        padding: 16px;
        border-radius: 14px;
    }

    .quick-decision-title {
        flex-direction: column;
        gap: 10px;
    }

    .quick-decision-title h2 {
        font-size: 22px;
    }

    .quick-decision-title .status-badge {
        align-self: flex-start;
        max-width: 100%;
    }

    .quick-decision-price {
        margin-top: 14px;
        padding: 12px;
    }

    .quick-decision-highlights {
        gap: 8px;
    }

    .quick-decision-highlights li {
        padding: 11px 12px;
    }

    .quick-decision-details {
        width: 100%;
    }
}


/* =========================================
   DETAILS / ACCORDION MARKER NORMALIZATION
   Prevent native + custom duplicate markers
   ========================================= */

details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

details > summary::marker {
    content: "";
}


/* =========================================
   COST TO OWN — COMPACT DECISION DESIGN
   ========================================= */

.ownership-cost-section {
    position: relative;
}

.ownership-cost-section > .section-heading {
    margin-bottom: 16px;
}

.ownership-cost-snapshot {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.ownership-snapshot-item {
    min-width: 0;
    padding: 15px;
    border: 1px solid #dfe5e9;
    border-radius: 12px;
    background: #fafbfc;
    color: #1f2933;
    text-decoration: none;
}

.ownership-snapshot-item > span,
.ownership-cost-item > span {
    display: block;
    margin-bottom: 6px;
    color: #6d7882;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ownership-snapshot-item > strong {
    display: block;
    line-height: 1.3;
    font-size: 16px;
}

.ownership-snapshot-item > small {
    display: block;
    margin-top: 6px;
    color: #75808a;
    font-size: 11px;
    line-height: 1.4;
}

.ownership-snapshot-link {
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}

.ownership-snapshot-link:hover {
    background: #f4f8fc;
    border-color: #bccbd8;
    transform: translateY(-1px);
}

.ownership-details {
    margin-top: 12px;
    border: 1px solid #dde3e8;
    border-radius: 12px;
    background: white;
    overflow: hidden;
}

.ownership-details > summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 46px 14px 15px;
    cursor: pointer;
    color: #34404b;
    font-size: 13px;
    font-weight: 700;
}

.ownership-details > summary::after {
    content: "+";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef2f5;
    color: #34404b;
    font-size: 18px;
    line-height: 1;
}

.ownership-details[open] > summary::after {
    content: "−";
}

.ownership-details-content {
    padding: 0 15px 16px;
    border-top: 1px solid #e6eaed;
}

.ownership-details-content > p:first-child {
    margin: 14px 0;
    color: #68747e;
    font-size: 13px;
    line-height: 1.5;
}

.ownership-cost-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ownership-cost-item {
    min-width: 0;
    padding: 15px;
    border: 1px solid #e0e5e9;
    border-radius: 11px;
    background: #fafbfc;
}

.ownership-cost-item > strong {
    display: block;
    margin-bottom: 7px;
    font-size: 15px;
    line-height: 1.35;
}

.ownership-cost-item > p {
    margin: 0;
    color: #68747e;
    font-size: 12px;
    line-height: 1.5;
}

.ownership-calculator {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.ownership-calculator label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #4f5b65;
    font-size: 12px;
    font-weight: 700;
}

.ownership-calculator input,
.ownership-calculator select {
    width: 100%;
}

.ownership-calculator .primary-button {
    grid-column: 1 / -1;
}

.ownership-money-input,
.ownership-percent-input {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #cfd6dc;
    border-radius: 9px;
    background: white;
}

.ownership-money-input > span {
    padding-left: 12px;
    color: #65717b;
}

.ownership-percent-input > span {
    padding-right: 12px;
    color: #65717b;
}

.ownership-money-input input,
.ownership-percent-input input {
    border: 0;
    border-radius: 0;
    outline: 0;
}

.ownership-fuel-result,
.ownership-finance-result {
    margin-top: 12px;
    padding: 12px;
    border-radius: 9px;
    background: white;
    border: 1px solid #e2e7eb;
}

.ownership-fuel-result > p,
.ownership-finance-result > p {
    margin: 0;
    color: #68747e;
    font-size: 12px;
    line-height: 1.5;
}

.ownership-fuel-summary,
.ownership-finance-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ownership-fuel-summary > div,
.ownership-finance-summary > div {
    padding: 10px;
    border-radius: 8px;
    background: #f7f9fa;
}

.ownership-fuel-summary span,
.ownership-finance-summary span {
    display: block;
    margin-bottom: 4px;
    color: #75808a;
    font-size: 10px;
}

.ownership-fuel-summary strong,
.ownership-finance-summary strong {
    display: block;
    font-size: 16px;
}

.ownership-fuel-details {
    margin-top: 10px;
}

.ownership-fuel-details p {
    margin: 5px 0 0;
    color: #68747e;
    font-size: 12px;
    line-height: 1.5;
}

.ownership-finance-price {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e2e7eb;
}

.ownership-finance-price span {
    color: #68747e;
    font-size: 12px;
}

.ownership-finance-price strong {
    font-size: 13px;
}

/* =========================================
   VEHICLE HISTORY
   ========================================= */

.vehicle-history-section {
    border: 1px solid #cfdde6;
    background: linear-gradient(145deg, #f9fcfe 0%, #f1f7fa 100%);
}

.vehicle-history-intro {
    max-width: 780px;
}

.vehicle-history-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.vehicle-history-grid span {
    padding: 12px 14px;
    border: 1px solid #dce5eb;
    border-radius: 9px;
    background: #fff;
    color: #344c5a;
    font-size: 13px;
    font-weight: 600;
}

.vehicle-history-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 18px;
}

.vehicle-history-button {
    min-width: 200px;
}

.vehicle-history-button:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.vehicle-history-status {
    color: #61717c;
    line-height: 1.4;
}

.vehicle-history-disclosure {
    margin-top: 16px;
}

@media (max-width: 750px) {
    .vehicle-history-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   SHOPPER SERVICES — INSURANCE & FINANCING
   ========================================= */

.shopper-services-section {
    border: 1px solid #cddce7;
    background: linear-gradient(145deg, #f7fbfe 0%, #eef6fa 100%);
}

.shopper-services-intro {
    max-width: 760px;
}

.shopper-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.shopper-service-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    border: 1px solid #d8e2ea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 55, 73, 0.07);
}

.shopper-service-kicker {
    color: #426377;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shopper-service-card h3 {
    margin: 7px 0 8px;
}

.shopper-service-card p {
    margin: 0;
}

.shopper-service-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
}

.shopper-service-action .primary-button {
    min-width: 190px;
}

.shopper-service-action .primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.shopper-service-status {
    color: #61717c;
    line-height: 1.4;
}

.shopper-services-disclosure {
    margin-top: 16px;
}

@media (max-width: 750px) {
    .shopper-services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 750px) {
    .ownership-cost-snapshot {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ownership-cost-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .ownership-cost-section > .section-heading {
        align-items: flex-start;
    }

    .ownership-cost-section > .section-heading .status-badge {
        font-size: 10px;
        padding: 5px 8px;
    }

    .ownership-cost-snapshot {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .ownership-snapshot-item {
        padding: 12px;
    }

    .ownership-snapshot-item > strong {
        font-size: 14px;
    }

    .ownership-snapshot-item > small {
        font-size: 10px;
    }

    .ownership-details > summary {
        padding-top: 13px;
        padding-bottom: 13px;
    }

    .ownership-details-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .ownership-cost-item {
        padding: 13px;
    }

    .ownership-calculator,
    .ownership-fuel-summary,
    .ownership-finance-summary {
        grid-template-columns: 1fr;
    }

    .ownership-calculator .primary-button {
        grid-column: auto;
    }
}
