:root {
    --report-bg: #f4f7fb;
    --report-card: #ffffff;
    --report-ink: #0f1b31;
    --report-muted: #687892;
    --report-line: #dce5f0;
    --report-blue: #0ea5e9;
    --report-blue-dark: #087cab;
    --report-green: #0aa778;
    --report-green-soft: #e9fbf4;
    --report-red: #e7475b;
    --report-red-soft: #fff0f2;
    --report-amber: #d89011;
    --report-amber-soft: #fff7e7;
    --report-navy: #101d35;
    --report-radius: 20px;
}

.imotive-report-page { background: var(--report-bg); color: var(--report-ink); }
.report-main { min-height: 70vh; padding: 34px 20px 70px; }
.report-shell { width: min(1180px, 100%); margin: 0 auto; }
.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.report-back-link { color: var(--report-muted); font-weight: 700; text-decoration: none; }
.report-back-link:hover { color: var(--report-blue-dark); }
.report-toolbar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.report-button { appearance: none; border: 1px solid transparent; border-radius: 12px; padding: 12px 18px; font: inherit; font-weight: 800; cursor: pointer; transition: .18s ease; }
.report-button:hover:not(:disabled) { transform: translateY(-1px); }
.report-button:disabled { opacity: .5; cursor: not-allowed; }
.report-button.is-primary { background: var(--report-navy); color: white; }
.report-button.is-primary:hover { background: #071124; }
.report-button.is-bright { background: var(--report-blue); color: white; width: 100%; }
.report-button.is-bright:hover { background: var(--report-blue-dark); }
.report-button.is-quiet { background: white; border-color: var(--report-line); color: var(--report-ink); }
.report-tier-badge { display: inline-flex; align-items: center; min-height: 40px; border-radius: 999px; padding: 0 14px; background: var(--report-green-soft); color: #087456; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }

.report-status-banner { display: flex; align-items: center; gap: 14px; border: 1px solid #bcead9; background: linear-gradient(90deg, #ebfff7, #f7fffc); border-radius: 16px; padding: 17px 20px; margin-bottom: 22px; }
.report-status-banner.is-warning { border-color: #f6c7ce; background: linear-gradient(90deg, var(--report-red-soft), #fff8f9); }
.report-status-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--report-green); color: white; font-size: 20px; font-weight: 900; flex: 0 0 auto; }
.report-status-banner.is-warning .report-status-icon { background: var(--report-red); }
.report-status-banner strong, .report-status-banner span { display: block; }
.report-status-banner strong { font-size: 16px; margin-bottom: 2px; }
.report-status-banner span { color: var(--report-muted); font-size: 13px; }

.report-top-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.report-primary-column, .report-side-column { display: grid; gap: 22px; }
.report-side-column { position: sticky; top: 104px; }
.report-card { background: var(--report-card); border: 1px solid var(--report-line); border-radius: var(--report-radius); overflow: hidden; box-shadow: 0 10px 32px rgba(31, 48, 76, .045); }


.report-print-brand { display: none !important; }
.report-print-brand-mark { display: inline-flex; align-items: center; font-size: 32px; font-weight: 900; color: var(--report-navy); letter-spacing: -.04em; }
.report-print-brand-mark span { color: var(--report-blue); }
.report-print-brand-meta { display: grid; gap: 3px; }
.report-print-brand-meta strong { font-size: 17px; color: var(--report-navy); }
.report-print-brand-meta span { color: var(--report-muted); font-size: 12px; }
.report-identity-title-block { display: flex; align-items: center; gap: 16px; min-width: 0; }
.report-make-logo { width: 72px; height: 72px; border-radius: 18px; border: 1px solid var(--report-line); background: #f8fbfd; display: grid; place-items: center; padding: 14px; flex: 0 0 72px; overflow: hidden; }
.report-make-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.report-make-logo.is-fallback { color: var(--report-blue-dark); font-size: 26px; font-weight: 900; }

.report-identity-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 24px; }
.report-number-plate { display: inline-flex; align-items: center; gap: 11px; border-radius: 7px; background: #ffd900; color: #111; padding: 10px 14px 10px 0; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 20px; font-weight: 900; letter-spacing: .13em; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.report-number-plate span { align-self: stretch; display: grid; place-items: center; background: #073aa5; color: white; padding: 0 7px; font-size: 9px; letter-spacing: 0; }
.report-identity-main h1 { margin: 0 0 4px; font-size: clamp(22px, 3vw, 30px); line-height: 1.08; }
.report-identity-main p { margin: 0; color: var(--report-muted); }
.report-identity-source { text-align: right; }
.report-identity-source strong, .report-identity-source span { display: block; }
.report-identity-source strong { color: var(--report-green); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.report-identity-source span { color: var(--report-muted); font-size: 12px; margin-top: 4px; }
.report-metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--report-line); }
.report-metric-grid div { padding: 18px 20px; border-right: 1px solid var(--report-line); }
.report-metric-grid div:last-child { border-right: 0; }
.report-metric-grid dt { color: var(--report-muted); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.report-metric-grid dd { margin: 7px 0 0; font-size: 18px; font-weight: 900; }

.report-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px; border-bottom: 1px solid var(--report-line); }
.report-card-header h2 { margin: 4px 0 0; font-size: 20px; }
.report-card-kicker { color: var(--report-blue-dark); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.report-current-mileage { color: var(--report-blue-dark); font-size: 25px; text-align: right; }
.report-current-mileage small { display: block; color: var(--report-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.report-chart-wrap { padding: 24px 24px 12px; }
.report-mileage-chart { width: 100%; height: auto; color: var(--report-blue); overflow: visible; }
.report-chart-axis { stroke: #d8e2ec; stroke-width: 1; }
.report-chart-area { fill: url(#reportArea); }
.report-chart-line { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.report-chart-point { fill: white; stroke: currentColor; stroke-width: 3; }
.report-chart-label { fill: #8290a4; font-size: 12px; }
.report-test-history { padding: 12px 24px 28px; }
.report-test-history > h3 { margin: 0 0 18px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.report-test-list { list-style: none; padding: 0 0 0 20px; margin: 0; position: relative; }
.report-test-list::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 7px; width: 2px; background: #e0e7ef; }
.report-test-item { position: relative; display: grid; grid-template-columns: 16px 1fr; gap: 12px; margin-bottom: 16px; }
.report-test-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--report-green); box-shadow: 0 0 0 6px var(--report-green-soft); margin-left: -20px; margin-top: 22px; z-index: 1; }
.report-test-item.is-fail .report-test-dot { background: var(--report-red); box-shadow: 0 0 0 6px var(--report-red-soft); }
.report-test-item article { border: 1px solid var(--report-line); border-radius: 14px; padding: 17px; }
.report-test-item header { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.report-test-item header > div { display: flex; align-items: center; gap: 10px; }
.report-test-item header > span { color: var(--report-muted); font-size: 12px; }
.report-result-chip { padding: 4px 7px; border-radius: 6px; background: var(--report-green-soft); color: #087456; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.is-fail .report-result-chip { background: var(--report-red-soft); color: var(--report-red); }
.report-clean-test { margin: 12px 0 0; color: #188565; font-size: 13px; }
.report-test-comments { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.report-test-comments li { display: grid; grid-template-columns: 86px 1fr; gap: 10px; background: #f6f8fb; padding: 9px 11px; border-radius: 8px; color: #4c5c73; font-size: 12px; line-height: 1.45; }
.report-test-comments li span { color: var(--report-amber); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.is-fail .report-test-comments li span { color: var(--report-red); }

.report-guarantee-card { background: var(--report-navy); color: white; border-radius: var(--report-radius); padding: 28px; box-shadow: 0 18px 45px rgba(16, 29, 53, .18); }
.report-guarantee-card.is-ineligible { opacity: .78; }
.report-guarantee-status { display: inline-flex; border-radius: 999px; background: rgba(13, 200, 150, .14); color: #64e4be; padding: 7px 10px; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.report-guarantee-card h2 { font-size: 27px; line-height: 1.05; margin: 20px 0 12px; }
.report-guarantee-card p, .report-guarantee-card > small { color: #aebbd0; line-height: 1.55; }
.report-guarantee-card ul { list-style: none; padding: 18px 0; margin: 18px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); display: grid; gap: 13px; }
.report-guarantee-card li::before { content: "✓"; color: #6fe3c1; margin-right: 8px; }
.report-guarantee-price { display: block; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 17px; text-align: center; font-size: 31px; margin-bottom: 15px; }
.report-guarantee-price small { color: #aebbd0; font-size: 13px; }
.report-guarantee-card > small { display: block; margin-top: 12px; text-align: center; font-size: 10px; }
.report-summary-card { padding: 24px; }
.report-summary-card h2 { font-size: 20px; margin: 6px 0 18px; }
.report-summary-card ul { list-style: none; padding: 0; margin: 0; display: grid; }
.report-summary-card li { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-top: 1px solid var(--report-line); color: var(--report-muted); }
.report-summary-card li strong { color: var(--report-ink); }

.report-upgrade-section, .report-premium-section { margin-top: 34px; }
.report-section-heading { max-width: 730px; margin-bottom: 20px; }
.report-section-heading > span { color: var(--report-blue-dark); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.report-section-heading h2 { margin: 7px 0 8px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; }
.report-section-heading p { color: var(--report-muted); line-height: 1.65; margin: 0; }
.report-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.report-tier-card { display: flex; flex-direction: column; background: white; border: 1px solid var(--report-line); border-radius: var(--report-radius); padding: 25px; }
.report-tier-card.is-featured { border-color: #8ad5f5; box-shadow: 0 18px 40px rgba(14,165,233,.12); }
.report-tier-card > span { color: var(--report-blue-dark); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.report-tier-card h3 { font-size: 23px; margin: 8px 0 4px; }
.report-tier-card > strong { font-size: 31px; margin-bottom: 15px; }
.report-tier-card ul { flex: 1; margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--report-muted); }
.report-tier-card li::before { content: "✓"; color: var(--report-green); margin-right: 8px; }

.report-module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.report-module.is-wide { grid-column: 1 / -1; }
.report-module-state { color: var(--report-muted); font-size: 11px; font-weight: 800; }
.report-module-content { min-height: 145px; padding: 22px 24px; }
.report-module-content.is-loading { display: grid; place-items: center; color: var(--report-muted); }
.report-module-content.is-loading::before { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #dce9f1; border-top-color: var(--report-blue); animation: report-spin .75s linear infinite; }
@keyframes report-spin { to { transform: rotate(360deg); } }
.report-module-error { border: 1px solid #f4c8ce; background: var(--report-red-soft); color: #a72f40; padding: 13px; border-radius: 10px; }
.report-signal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.report-signal { border: 1px solid var(--report-line); border-radius: 12px; padding: 15px; }
.report-signal.is-good { background: var(--report-green-soft); border-color: #c8ecdd; }
.report-signal.is-alert { background: var(--report-red-soft); border-color: #f4c8ce; }
.report-signal span, .report-signal strong { display: block; }
.report-signal span { color: var(--report-muted); font-size: 11px; }
.report-signal strong { margin-top: 5px; }
.report-risk-details { margin-top: 18px; border: 1px solid var(--report-line); border-radius: 15px; overflow: hidden; background: #fff; }
.report-risk-details.is-alert { border-color: #efbcc4; }
.report-risk-details > header { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 15px 17px; background: var(--report-red-soft); border-bottom: 1px solid #f4c8ce; }
.report-risk-details > header span { color: #9f2237; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.report-risk-details > header strong { color: #7f1d2d; font-size: 13px; }
.report-risk-records { display: grid; gap: 14px; padding: 16px; }
.report-risk-record { border: 1px solid #ead7da; border-radius: 13px; overflow: hidden; break-inside: avoid; }
.report-risk-record > header { display: flex; justify-content: space-between; gap: 14px; padding: 13px 14px; background: #fff8f9; border-bottom: 1px solid #f0e1e4; }
.report-risk-record > header span { color: #a72f40; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.report-risk-record > header strong { color: var(--report-navy); font-size: 13px; text-align: right; }
.report-risk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.report-risk-grid > div { min-width: 0; padding: 12px 14px; border-bottom: 1px solid #f0e6e8; }
.report-risk-grid > div:nth-child(odd) { border-right: 1px solid #f0e6e8; }
.report-risk-grid span, .report-risk-grid strong { display: block; overflow-wrap: anywhere; }
.report-risk-grid span { color: var(--report-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.report-risk-grid strong { margin-top: 4px; color: var(--report-navy); font-size: 13px; line-height: 1.45; }
.report-risk-details > .report-data-note { margin: 0 16px 16px; }
.report-value-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.report-value { text-align: center; background: #f7f9fc; border-radius: 13px; padding: 18px; }
.report-value span { display: block; color: var(--report-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.report-value strong { display: block; font-size: 25px; margin-top: 4px; }
.report-data-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.report-data-list li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--report-line); padding-bottom: 10px; }
.report-data-list span { color: var(--report-muted); }
.report-advert-list { display: grid; gap: 12px; }
.report-advert { border: 1px solid var(--report-line); border-radius: 13px; padding: 15px; }
.report-advert header { display: flex; justify-content: space-between; gap: 12px; }
.report-advert p { color: var(--report-muted); margin: 7px 0 0; font-size: 13px; }
.report-option-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.report-option-cloud span { display: inline-flex; padding: 8px 10px; border-radius: 9px; background: #f3f6fa; color: #4f6077; font-size: 12px; }
.report-data-note { background: #f7f9fc; border: 1px dashed #ccd7e5; border-radius: 12px; padding: 16px; color: var(--report-muted); }

.report-dealer-section { margin-top: 22px; padding: 0 24px 24px; }
.report-dealer-section > p { color: var(--report-muted); }
.report-dealer-form label { display: block; font-size: 12px; font-weight: 800; margin-bottom: 7px; }
.report-dealer-form > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.report-dealer-form input, .report-dialog-panel input { width: 100%; border: 1px solid var(--report-line); border-radius: 11px; padding: 13px 14px; font: inherit; }
.report-dealer-result { margin-top: 18px; }
.report-dealer-profile { border-radius: 14px; background: #f7f9fc; padding: 18px; }
.report-dealer-profile h3 { margin: 0 0 3px; }
.report-dealer-profile p { color: var(--report-muted); margin: 0 0 14px; }

.report-next-step { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 22px; padding: 25px; }
.report-next-step h2 { margin: 5px 0 7px; }
.report-next-step p { margin: 0; color: var(--report-muted); max-width: 760px; }

.report-empty-state { width: min(700px, 100%); margin: 65px auto; background: white; border: 1px solid var(--report-line); border-radius: 24px; text-align: center; padding: 44px; }
.report-empty-state.is-error { border-color: #f4c8ce; }
.report-empty-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #eaf7fd; color: var(--report-blue-dark); font-size: 28px; font-weight: 900; margin: 0 auto 18px; }
.report-empty-state.is-error .report-empty-icon { background: var(--report-red-soft); color: var(--report-red); }
.report-empty-state h1 { font-size: 32px; margin: 0 0 10px; }
.report-empty-state > p { color: var(--report-muted); line-height: 1.6; }
.report-vrm-search { margin-top: 25px; text-align: left; }
.report-vrm-search > label { display: block; font-size: 12px; font-weight: 900; margin-bottom: 7px; }
.report-vrm-field { display: grid; grid-template-columns: auto 1fr auto; border: 1px solid var(--report-line); border-radius: 13px; overflow: hidden; }
.report-vrm-field > span { display: grid; place-items: center; background: #073aa5; color: white; padding: 0 12px; font-size: 11px; font-weight: 900; }
.report-vrm-field input { border: 0; padding: 14px; font: inherit; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; min-width: 0; }
.report-vrm-field button { border: 0; background: var(--report-navy); color: white; padding: 0 18px; font-weight: 800; cursor: pointer; }

.report-dialog[hidden] { display: none; }
.report-dialog { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 20px; }
.report-dialog-backdrop { position: absolute; inset: 0; background: rgba(7, 17, 36, .6); backdrop-filter: blur(5px); }
.report-dialog-panel { position: relative; z-index: 1; width: min(460px, 100%); border-radius: 20px; background: white; padding: 30px; box-shadow: 0 28px 90px rgba(0,0,0,.25); }
.report-dialog-panel h2 { margin: 6px 0 8px; }
.report-dialog-panel p { color: var(--report-muted); }
.report-dialog-panel form { display: grid; gap: 10px; }
.report-dialog-panel label { font-size: 12px; font-weight: 800; }
.report-dialog-close { position: absolute; top: 13px; right: 13px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--report-line); background: white; font-size: 22px; cursor: pointer; }
.report-form-message { min-height: 20px; margin: 0 !important; font-size: 13px; }

@media (max-width: 920px) {
    .report-top-grid { grid-template-columns: 1fr; }
    .report-side-column { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-tier-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .report-main { padding: 20px 12px 52px; }
    .report-identity-title-block { align-items: flex-start; }
    .report-make-logo { width: 58px; height: 58px; padding: 11px; flex-basis: 58px; border-radius: 14px; }
    .report-toolbar { align-items: flex-start; }
    .report-toolbar-actions { justify-content: flex-end; }
    .report-identity-main { grid-template-columns: 1fr; }
    .report-identity-source { text-align: left; }
    .report-metric-grid { grid-template-columns: repeat(2, 1fr); }
    .report-metric-grid div:nth-child(2) { border-right: 0; }
    .report-metric-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--report-line); }
    .report-side-column, .report-module-grid { grid-template-columns: 1fr; }
    .report-module.is-wide { grid-column: auto; }
    .report-signal-grid, .report-value-grid { grid-template-columns: 1fr; }
    .report-risk-grid { grid-template-columns: 1fr; }
    .report-risk-grid > div:nth-child(odd) { border-right: 0; }
    .report-next-step { align-items: flex-start; flex-direction: column; }
    .report-next-step .report-button { width: 100%; }
    .report-test-item header { align-items: flex-start; flex-direction: column; }
    .report-test-comments li { grid-template-columns: 1fr; }
    .report-dealer-form > div { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .report-toolbar { flex-direction: column; }
    .report-toolbar-actions { width: 100%; }
    .report-toolbar-actions .report-button { flex: 1; }
    .report-number-plate { font-size: 17px; }
    .report-card-header { align-items: flex-start; flex-direction: column; }
    .report-current-mileage { text-align: left; }
    .report-vrm-field { grid-template-columns: auto 1fr; }
    .report-vrm-field button { grid-column: 1 / -1; min-height: 48px; }
    .report-empty-state { padding: 30px 18px; }
}
@media print {
    .report-print-brand { display: grid !important; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin: 0 0 18px; padding: 0 0 14px; border-bottom: 2px solid #d8e3ee; }
    .imotive-site-header, .imotive-site-footer, .report-toolbar, .report-upgrade-section, .report-next-step, .report-dialog, .imotive-aimee-launcher, .imotive-aimee-panel { display: none !important; }
    .imotive-report-page, .report-main { background: white !important; }
    .report-main { padding: 0; }
    .report-shell { width: 100%; }
    .report-side-column { position: static; }
    .report-card, .report-guarantee-card { box-shadow: none; break-inside: avoid; }
    .report-make-logo { background: white; }
}

/* 4.6.6 MOT defect-state correction */
.report-missing-defects { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--report-red-soft); color: #a6263e; font-size: 13px; line-height: 1.45; }
.report-test-comments li.is-dangerous { background: #fff0f2; }
.report-test-comments li.is-dangerous span,
.report-test-comments li.is-major span { color: var(--report-red); }
.report-test-comments li.is-minor span,
.report-test-comments li.is-advisory span,
.report-test-comments li.is-prs span { color: var(--report-amber); }
