:root {
    --page: #f5f7fa;
    --surface: #ffffff;
    --surface-subtle: #f8fafc;
    --surface-blue: #eff6ff;
    --ink: #101828;
    --ink-soft: #344054;
    --muted: #667085;
    --muted-light: #98a2b3;
    --line: #e4e7ec;
    --line-strong: #d0d5dd;
    --brand: #175cd3;
    --brand-dark: #1849a9;
    --brand-soft: #eff8ff;
    --green: #067647;
    --green-soft: #ecfdf3;
    --yellow: #b54708;
    --yellow-soft: #fffaeb;
    --red: #b42318;
    --red-soft: #fef3f2;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-md: 0 8px 24px rgba(16, 24, 40, .06);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
summary,
label[for] {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: var(--brand);
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -.04em;
}

.brand-copy {
    display: grid;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 16px;
    letter-spacing: -.02em;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 10px;
    color: var(--ink-soft);
    background: var(--surface-subtle);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-item-muted {
    color: var(--muted);
    font-weight: 500;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #12b76a;
    box-shadow: 0 0 0 3px #d1fadf;
}

/* Hero */

.hero {
    padding: 68px 0 86px;
    color: #fff;
    background: #0b1f3a;
    border-bottom: 1px solid #17365f;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr);
    align-items: center;
    gap: 84px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #84adff;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(38px, 4.2vw, 58px);
    line-height: 1.06;
    letter-spacing: -.045em;
}

.hero-lead {
    max-width: 710px;
    margin: 24px 0 0;
    color: #c8d7ed;
    font-size: 18px;
    line-height: 1.65;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding: 0;
    margin: 30px 0 0;
    list-style: none;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #e6edf8;
    font-size: 13px;
    font-weight: 600;
}

.hero-benefits li::before {
    content: "";
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #1570ef;
    box-shadow: inset 0 0 0 5px #b2ccff;
}

.method-card {
    padding: 24px 26px 22px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: var(--radius-lg);
}

.method-label {
    margin: 0 0 12px;
    color: #9fb7d6;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.method-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.method-row span {
    color: #b7c8df;
    font-size: 13px;
}

.method-row strong {
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.method-card > p:last-child {
    margin: 17px 0 0;
    color: #9fb7d6;
    font-size: 12px;
    line-height: 1.6;
}

/* Panels and form */

.analysis-section {
    position: relative;
    z-index: 3;
    margin-top: -28px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.vehicle-panel {
    padding: 34px 36px 0;
}

.panel-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.heading-index {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid #d1e9ff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .04em;
}

.heading-copy {
    flex: 1;
    min-width: 0;
}

.heading-copy h2,
.heading-copy strong {
    display: block;
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 720;
    letter-spacing: -.025em;
}

.heading-copy p,
.heading-copy small {
    display: block;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.time-pill,
.optional-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    color: var(--muted);
    background: var(--surface-subtle);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
}

.form-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 27px 0 14px;
}

.form-section-label > span {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.form-section-label small {
    color: var(--muted-light);
    font-size: 11px;
}

.form-section-label small b,
.form-field label b {
    color: var(--red);
}

.form-section-label-spaced {
    margin-top: 34px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
}

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

.form-field {
    position: relative;
    min-width: 0;
}

.form-field > label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 650;
}

.form-field input,
.form-field select,
.comparables-table input,
.comparables-table select {
    width: 100%;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.form-field input,
.form-field select {
    height: 44px;
    padding: 0 12px;
    font-size: 14px;
}

.form-field select {
    padding-right: 38px;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #667085 50%), linear-gradient(135deg, #667085 50%, transparent 50%);
    background-position: calc(100% - 16px) 19px, calc(100% - 11px) 19px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.form-field input::placeholder,
.comparables-table input::placeholder {
    color: var(--muted-light);
}

.form-field input:hover,
.form-field select:hover,
.comparables-table input:hover,
.comparables-table select:hover {
    border-color: #98a2b3;
}

.form-field input:focus,
.form-field select:focus,
.comparables-table input:focus,
.comparables-table select:focus,
.combo-control:focus-within input {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(21, 112, 239, .12);
}

.form-field-wide {
    grid-column: span 2;
}

.field-help {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

.input-addon {
    position: relative;
}

.input-addon input {
    padding-right: 46px;
}

.input-addon > span {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    pointer-events: none;
}

/* Custom combobox */

.catalog-field {
    z-index: 2;
}

.catalog-field:focus-within,
.catalog-field.combo-open {
    z-index: 20;
}

.combo-control {
    position: relative;
}

.combo-control input {
    padding-right: 42px;
}

.combo-trigger {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 40px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0 7px 7px 0;
}

.combo-trigger:hover {
    background: var(--surface-subtle);
}

.combo-trigger span,
.optional-pill i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: translateY(-2px) rotate(45deg);
    transition: transform .16s ease;
}

.combo-open .combo-trigger span {
    transform: translateY(2px) rotate(225deg);
}

.combo-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: none;
    max-height: 272px;
    padding: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, .14);
}

.combo-menu.visible {
    display: block;
}

.combo-option {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    color: var(--ink-soft);
    background: transparent;
    border: 0;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 550;
    text-align: left;
}

.combo-option:hover,
.combo-option.active {
    color: var(--ink);
    background: #f2f4f7;
}

.combo-option.selected {
    color: var(--brand);
    background: var(--brand-soft);
}

.combo-option.selected::after {
    content: "✓";
    color: var(--brand);
    font-size: 13px;
    font-weight: 750;
}

.combo-empty {
    display: block;
    padding: 16px 12px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

/* Buttons and primary action */

.primary-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 34px -36px 0;
    padding: 22px 36px;
    background: var(--surface-subtle);
    border-top: 1px solid var(--line);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.action-copy {
    display: grid;
    gap: 3px;
}

.action-copy strong {
    color: var(--ink-soft);
    font-size: 13px;
}

.action-copy span {
    color: var(--muted);
    font-size: 12px;
}

.primary-button,
.secondary-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 42px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.primary-button {
    flex: 0 0 auto;
    padding: 0 18px;
    color: #fff;
    background: var(--brand);
    border: 1px solid var(--brand);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .12);
}

.primary-button:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.primary-button:active,
.secondary-button:active {
    transform: translateY(1px);
}

.primary-button:disabled {
    cursor: wait;
    opacity: .65;
}

.primary-button i {
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
}

.secondary-button {
    min-height: 38px;
    padding: 0 13px;
    color: var(--ink-soft);
    background: #fff;
    border: 1px solid var(--line-strong);
}

.secondary-button:hover {
    color: var(--ink);
    background: var(--surface-subtle);
    border-color: #98a2b3;
}

.text-button {
    min-height: 38px;
    padding: 0 6px;
    color: var(--brand);
    background: transparent;
    border: 0;
}

.text-button:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.file-button {
    position: relative;
    cursor: pointer;
}

.file-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 16px;
    height: 16px;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Optional comparables */

.comparables-panel {
    margin-top: 18px;
    overflow: hidden;
}

.comparables-summary {
    min-height: 94px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 36px;
    cursor: pointer;
    list-style: none;
}

.comparables-summary::-webkit-details-marker {
    display: none;
}

.comparables-summary:hover {
    background: #fcfcfd;
}

.optional-pill {
    gap: 10px;
}

.comparables-panel[open] .optional-pill i {
    transform: translateY(2px) rotate(225deg);
}

.comparables-content {
    padding: 0 36px 32px;
    border-top: 1px solid var(--line);
}

.info-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin: 24px 0;
    padding: 16px 18px;
    background: var(--brand-soft);
    border: 1px solid #d1e9ff;
    border-radius: var(--radius);
}

.info-note > div {
    display: grid;
    gap: 2px;
}

.info-note strong {
    color: #194185;
    font-size: 12px;
}

.info-note span,
.info-note p {
    color: #475467;
    font-size: 12px;
}

.info-note p {
    max-width: 390px;
    margin: 0;
    text-align: right;
}

.comparables-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

.toolbar-copy {
    display: grid;
}

.toolbar-copy strong {
    font-size: 14px;
}

.toolbar-copy span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.comparables-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.comparables-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
    table-layout: fixed;
}

.comparables-table th {
    padding: 10px 8px;
    color: var(--muted);
    background: var(--surface-subtle);
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .045em;
    text-align: left;
    text-transform: uppercase;
}

.comparables-table th:nth-child(1) { width: 170px; }
.comparables-table th:nth-child(2) { width: 130px; }
.comparables-table th:nth-child(3) { width: 90px; }
.comparables-table th:nth-child(4) { width: 110px; }
.comparables-table th:nth-child(5) { width: 115px; }
.comparables-table th:nth-child(6) { width: 135px; }
.comparables-table th:nth-child(7) { width: 170px; }
.comparables-table th:nth-child(8) { width: 44px; }

.comparables-table td {
    padding: 8px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.comparables-table tr:last-child td {
    border-bottom: 0;
}

.comparables-table input,
.comparables-table select {
    height: 38px;
    padding: 0 9px;
    font-size: 12px;
}

.row-remove {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-size: 19px;
    line-height: 1;
}

.row-remove:hover {
    color: var(--red);
    background: var(--red-soft);
}

.comparables-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
}

.row-count {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

/* Error */

.error-card {
    display: none;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    color: #912018;
    background: var(--red-soft);
    border: 1px solid #fecdca;
    border-radius: var(--radius);
    font-size: 13px;
}

.error-card.visible {
    display: flex;
}

.error-mark {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--red);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

/* Results */

.results {
    display: none;
    padding-top: 72px;
}

.results.visible {
    display: block;
}

.results-heading,
.section-heading {
    max-width: 690px;
}

.results-heading {
    margin-bottom: 24px;
}

.results-heading .eyebrow,
.section-heading .result-kicker,
.result-kicker {
    color: var(--brand);
}

.results-heading h2,
.section-heading h3,
.section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 27px;
    line-height: 1.25;
    letter-spacing: -.035em;
}

.results-heading > p:last-child,
.section-heading > p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.result-grid-primary {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}

.result-card {
    padding: 26px 28px;
}

.result-card-heading {
    padding-bottom: 19px;
    border-bottom: 1px solid var(--line);
}

.result-kicker {
    display: block;
    margin-bottom: 7px;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .085em;
    text-transform: uppercase;
}

.result-card-heading h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: -.02em;
}

.result-card-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 45px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-label {
    color: var(--muted);
    font-size: 12px;
}

.detail-value {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.price-big {
    margin: 26px 0 12px;
    color: var(--ink);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 760;
    line-height: 1.1;
    letter-spacing: -.045em;
}

.verdict-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .035em;
}

.verdict-badge.suspicious-low,
.verdict-badge.overpriced {
    color: var(--red);
    background: var(--red-soft);
    border-color: #fecdca;
}

.verdict-badge.underpriced {
    color: var(--green);
    background: var(--green-soft);
    border-color: #abefc6;
}

.verdict-badge.fair {
    color: var(--yellow);
    background: var(--yellow-soft);
    border-color: #fedf89;
}

.gauge-bar {
    height: 7px;
    margin-top: 24px;
    overflow: hidden;
    background: #eaecf0;
    border-radius: 99px;
}

.gauge-fill {
    height: 100%;
    border-radius: inherit;
    transition: width .5s ease;
}

.confidence-text {
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.confidence-text strong {
    color: var(--ink-soft);
}

.explanation-list {
    margin-top: 9px;
    padding-left: 18px;
    list-style: disc;
}

.explanation-list li {
    margin-bottom: 3px;
    line-height: 1.5;
    color: var(--ink-muted, #8a8f98);
    font-size: 12px;
}

.price-risk-alert {
    margin-top: 18px;
    padding: 14px 16px;
    color: #912018;
    background: var(--red-soft);
    border: 1px solid #fecdca;
    border-radius: 10px;
    font-size: 12px;
}

.price-risk-alert strong {
    display: block;
    margin-bottom: 6px;
}

.price-risk-alert ul {
    padding-left: 17px;
    margin: 0;
}

.price-risk-alert li + li {
    margin-top: 4px;
}

.damage-meter {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin-top: 32px;
}

.damage-meter .bar {
    height: 8px;
    background: #eaecf0;
    border-radius: 99px;
}

.damage-meter .active.level-0,
.damage-meter .active.level-1 { background: #12b76a; }
.damage-meter .active.level-2 { background: #f79009; }
.damage-meter .active.level-3,
.damage-meter .active.level-4 { background: #f04438; }

.damage-label {
    margin-top: 13px;
    font-size: 15px;
    font-weight: 750;
    text-align: center;
}

.damage-price-impact {
    margin-top: 20px;
    padding: 13px 14px;
    color: var(--muted);
    background: var(--surface-subtle);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.55;
}

/* Recommendations and peers */

.recommendations-card,
.peers-card,
.product-actions {
    margin-top: 18px;
    padding: 30px;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 25px;
}

.recommendation-group {
    min-width: 0;
    padding: 19px;
    background: var(--surface-subtle);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.group-number {
    display: block;
    margin-bottom: 10px;
    color: var(--brand);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
}

.recommendation-group h4 {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
}

.recommendation-group > p {
    min-height: 56px;
    margin: 7px 0 16px;
    color: var(--muted);
    font-size: 12px;
}

.recommendation-item {
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.recommendation-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.alt-title {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.alt-meta,
.alt-reason {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.alt-price {
    margin-top: 8px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 750;
}

.recommendation-delta {
    display: inline-block;
    margin-top: 7px;
    padding: 3px 7px;
    color: var(--green);
    background: var(--green-soft);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.recommendation-delta.positive {
    color: var(--yellow);
    background: var(--yellow-soft);
}

.recommendation-disclaimer {
    margin: 18px 0 0;
    padding-top: 16px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 11px;
}

#altList {
    margin-top: 20px;
}

.peer-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.alt-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 15px 17px;
    color: inherit;
    background: #fff;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.alt-item:last-child {
    border-bottom: 0;
}

a.alt-item:hover {
    background: var(--surface-subtle);
}

.alt-info {
    min-width: 0;
}

.alt-item > div:last-child {
    min-width: 180px;
    text-align: right;
}

.alt-item .alt-price {
    margin-top: 0;
}

.more-peers {
    margin-top: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.more-peers > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 14px;
    color: var(--brand);
    background: var(--surface-subtle);
    cursor: pointer;
    list-style: none;
    font-size: 12px;
    font-weight: 700;
}

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

.more-peers > summary:hover {
    background: var(--brand-soft);
}

.more-peers > summary i {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .16s ease;
}

.more-peers[open] > summary i {
    transform: translateY(2px) rotate(225deg);
}

.peer-list-more {
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
}

.empty-state {
    margin: 0;
    padding: 15px 0;
    color: var(--muted);
    font-size: 12px;
}

.compact-heading h3,
.compact-heading h2 {
    font-size: 20px;
}

.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.product-actions .action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.action-status {
    flex-basis: 100%;
    margin: -18px 0 0;
    font-size: 12px;
}

/* Saved */

.saved-section {
    padding: 18px 0 72px;
}

.saved-panel {
    padding: 30px;
}

.saved-list {
    margin: 22px 0 14px;
}

.saved-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.saved-item:first-child {
    border-top: 1px solid var(--line);
}

.compare-check {
    width: 17px;
    height: 17px;
    accent-color: var(--brand);
}

.saved-title {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
}

.saved-meta {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.saved-remove {
    padding: 5px 8px;
    color: var(--red);
    background: transparent;
    border: 0;
    font-size: 11px;
    font-weight: 700;
}

.comparison-wrap {
    margin-top: 16px;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    border: 1px solid var(--line);
}

.comparison-table th,
.comparison-table td {
    padding: 11px 13px;
    border: 1px solid var(--line);
    font-size: 12px;
    text-align: left;
}

.comparison-table th {
    color: var(--muted);
    background: var(--surface-subtle);
}

/* Footer */

.site-footer {
    color: #d0d5dd;
    background: #0b1f3a;
}

.footer-inner {
    min-height: 116px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-inner > div {
    display: grid;
    gap: 4px;
}

.footer-inner strong {
    color: #fff;
    font-size: 15px;
}

.footer-inner span,
.footer-inner p {
    margin: 0;
    color: #9fb0c8;
    font-size: 11px;
}

/* Responsive */

@media (max-width: 980px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .method-card {
        max-width: 560px;
    }

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

    .recommendation-grid {
        grid-template-columns: 1fr;
    }

    .recommendation-group > p {
        min-height: auto;
    }

    .comparables-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .toolbar-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .site-header {
        height: 64px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .brand-copy small,
    .status-item-muted {
        display: none;
    }

    .status-item {
        min-height: 28px;
        padding-inline: 8px;
        font-size: 10px;
    }

    .hero {
        padding: 46px 0 58px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-lead {
        margin-top: 18px;
        font-size: 16px;
    }

    .hero-benefits {
        display: grid;
        margin-top: 24px;
    }

    .method-card {
        padding: 20px;
    }

    .analysis-section {
        margin-top: -18px;
    }

    .vehicle-panel {
        padding: 24px 20px 0;
    }

    .panel-heading {
        align-items: flex-start;
        padding-bottom: 21px;
    }

    .time-pill {
        display: none;
    }

    .heading-copy h2,
    .heading-copy strong {
        font-size: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-field-wide {
        grid-column: auto;
    }

    .primary-action {
        align-items: stretch;
        flex-direction: column;
        margin: 28px -20px 0;
        padding: 20px;
    }

    .primary-action .primary-button {
        width: 100%;
    }

    .comparables-summary {
        align-items: flex-start;
        min-height: 0;
        padding: 21px 20px;
    }

    .comparables-summary .heading-index {
        display: none;
    }

    .comparables-summary .heading-copy strong {
        font-size: 16px;
    }

    .optional-pill {
        width: 28px;
        height: 28px;
        justify-content: center;
        padding: 0;
        font-size: 0;
    }

    .comparables-content {
        padding: 0 20px 24px;
    }

    .info-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .info-note p {
        text-align: left;
    }

    .toolbar-actions {
        width: 100%;
    }

    .toolbar-actions .secondary-button,
    .toolbar-actions .text-button {
        flex: 1 1 calc(50% - 8px);
    }

    .comparables-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    .comparables-table,
    .comparables-table tbody,
    .comparables-table tr,
    .comparables-table td {
        width: 100%;
        display: block;
    }

    .comparables-table {
        min-width: 0;
    }

    .comparables-table thead {
        display: none;
    }

    .comparables-table tr {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 12px;
        padding: 16px;
        background: var(--surface-subtle);
        border: 1px solid var(--line);
        border-radius: var(--radius);
    }

    .comparables-table td {
        padding: 0;
        border: 0;
    }

    .comparables-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 5px;
        color: var(--muted);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .comparables-table td:first-child,
    .comparables-table td:nth-child(7) {
        grid-column: 1 / -1;
    }

    .comparables-table td:last-child {
        position: absolute;
        top: 8px;
        right: 8px;
        width: auto;
    }

    .comparables-table td:last-child::before {
        display: none;
    }

    .comparables-table td:first-child input {
        padding-right: 36px;
    }

    .comparables-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .comparables-footer .primary-button {
        width: 100%;
    }

    .results {
        padding-top: 52px;
    }

    .result-grid,
    .result-grid-primary {
        grid-template-columns: 1fr;
    }

    .recommendations-card,
    .peers-card,
    .product-actions,
    .saved-panel,
    .result-card {
        padding: 22px 20px;
    }

    .results-heading h2,
    .section-heading h3,
    .section-heading h2 {
        font-size: 23px;
    }

    .product-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .product-actions .action-row {
        width: 100%;
    }

    .product-actions .secondary-button {
        flex: 1 1 auto;
    }

    .action-status {
        margin: -15px 0 0;
    }

    .alt-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .alt-item > div:last-child {
        min-width: 0;
        text-align: left;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }
}

@media (max-width: 420px) {
    .header-meta .status-item {
        padding: 0;
        background: transparent;
        border: 0;
    }

    .hero h1 {
        font-size: 34px;
    }

    .method-row {
        gap: 10px;
    }

    .form-section-label small {
        display: none;
    }

    .comparables-table tr {
        grid-template-columns: 1fr;
    }

    .comparables-table td:first-child,
    .comparables-table td:nth-child(7) {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ─────────────────────────────────────────────────────────────
   Kazık mı? inspection desk — bespoke visual layer
   ───────────────────────────────────────────────────────────── */

:root {
    --page: #efede7;
    --surface: #fffdf8;
    --surface-subtle: #f5f1e8;
    --surface-blue: #edf3f8;
    --ink: #1d252b;
    --ink-soft: #303b42;
    --muted: #69737a;
    --muted-light: #939a9e;
    --line: #d8d4cb;
    --line-strong: #aaa69d;
    --brand: #e95432;
    --brand-dark: #c83e21;
    --brand-soft: #fff0e9;
    --green: #17765a;
    --green-soft: #e9f5ef;
    --yellow: #b8681b;
    --yellow-soft: #fff5dc;
    --red: #c83e2f;
    --red-soft: #fff0eb;
    --original: #d3d0c8;
    --local-painted: #f29b3f;
    --painted: #3f79bd;
    --replaced: #ed553d;
    --shadow-sm: 4px 4px 0 #d5d1c8;
    --shadow-md: 7px 7px 0 #d0cbc1;
    --radius-sm: 3px;
    --radius: 5px;
    --radius-lg: 7px;
}

body {
    background-color: var(--page);
    font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

.site-header {
    height: 70px;
    background: rgba(255, 253, 248, .96);
    border-bottom: 2px solid var(--ink);
    backdrop-filter: none;
}

.brand {
    gap: 12px;
}

.brand-mark {
    position: relative;
    width: 39px;
    height: 39px;
    color: #fff;
    background: var(--ink);
    border-radius: 3px;
    box-shadow: 3px 3px 0 var(--brand);
}

.brand-mark > span {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    background: var(--brand);
    border-radius: 50%;
}

.brand-copy strong {
    font-size: 17px;
    font-weight: 800;
}

.brand-copy small {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.status-item {
    min-height: 28px;
    color: var(--ink-soft);
    background: transparent;
    border-color: var(--ink);
    border-radius: 3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    letter-spacing: .01em;
}

.status-dot {
    background: var(--brand);
    box-shadow: none;
}

.site-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 3px;
    border: 1px solid var(--line-strong);
    background: #f4f0e7;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 12px;
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--ink);
    outline: none;
}

.site-nav a.active {
    color: #fff;
    background: var(--ink);
}

.site-nav a span {
    padding: 1px 4px;
    color: #fff;
    background: var(--brand);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 8px;
    letter-spacing: .04em;
}

.hero {
    position: relative;
    padding: 70px 0 105px;
    color: var(--ink);
    background-color: #f4efe3;
    background-image:
        linear-gradient(rgba(29, 37, 43, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 37, 43, .045) 1px, transparent 1px);
    background-size: 28px 28px;
    border-bottom: 2px solid var(--ink);
}

.hero::after {
    content: "VERİYE DAYALI · BAĞIMSIZ · YEREL";
    position: absolute;
    right: max(20px, calc((100vw - var(--container)) / 2));
    bottom: 13px;
    color: #7d766c;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
}

.hero-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr);
    gap: 74px;
}

.hero .eyebrow {
    color: var(--brand);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    letter-spacing: .13em;
}

.hero h1 {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 5.1vw, 70px);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.055em;
}

.hero h1 span {
    display: inline-block;
    margin-top: 6px;
    color: var(--brand);
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 500;
    letter-spacing: -.045em;
    border-bottom: none;
}

.hero-lead {
    max-width: 700px;
    color: #4f585d;
    font-size: 17px;
    line-height: 1.65;
}

.hero-benefits {
    gap: 8px;
}

.hero-benefits li {
    gap: 8px;
    padding: 7px 10px 7px 7px;
    color: var(--ink-soft);
    background: rgba(255, 253, 248, .78);
    border: 1px solid var(--ink);
    border-radius: 3px;
    font-size: 11px;
    box-shadow: 2px 2px 0 rgba(29, 37, 43, .14);
}

.hero-benefits li::before {
    display: none;
}

.hero-benefits li b {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: #fff;
    background: var(--ink);
    border-radius: 2px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
}

.method-card {
    position: relative;
    padding: 26px;
    color: #fff;
    background: var(--brand);
    border: 2px solid var(--ink);
    border-radius: 4px;
    box-shadow: 8px 8px 0 var(--ink);
    transform: rotate(1.2deg);
}

.method-card::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 42px;
    width: 62px;
    height: 16px;
    background: rgba(255, 244, 213, .8);
    transform: rotate(-5deg);
}

.method-label,
.method-row span,
.method-card > p:last-child {
    color: rgba(255, 255, 255, .8);
}

.method-row {
    border-color: rgba(255, 255, 255, .3);
}

.method-row strong {
    color: #fff;
}

.analysis-section {
    margin-top: -38px;
}

.panel {
    background: var(--surface);
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.vehicle-panel {
    position: relative;
    padding-top: 31px;
    border-top: 7px solid var(--brand);
}

.panel-heading {
    border-color: var(--ink);
}

.heading-index {
    color: #fff;
    background: var(--ink);
    border: 0;
    border-radius: 3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.heading-copy h2,
.heading-copy strong {
    font-weight: 800;
}

.time-pill,
.optional-pill {
    color: var(--ink-soft);
    background: #f1ede4;
    border-color: var(--ink);
    border-radius: 3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.form-section-label > span,
.result-kicker,
.condition-number,
.condition-summary-label {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.form-section-label-spaced {
    border-color: var(--ink);
}

.form-field > label {
    color: var(--ink);
}

.form-field input,
.form-field select,
.comparables-table input,
.comparables-table select {
    background: #fffefa;
    border-color: #8d918e;
    border-radius: 3px;
}

.form-field input:focus,
.form-field select:focus,
.comparables-table input:focus,
.comparables-table select:focus,
.combo-control:focus-within input {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(233, 84, 50, .17);
}

.combo-menu {
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    box-shadow: 5px 5px 0 rgba(29, 37, 43, .18);
}

.combo-option {
    border-radius: 2px;
}

.combo-option.selected {
    color: var(--ink);
    background: var(--brand-soft);
    box-shadow: inset 3px 0 0 var(--brand);
}

.primary-button {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
    border-radius: 3px;
    box-shadow: 3px 3px 0 var(--brand);
}

.primary-button:hover {
    background: var(--brand);
    border-color: var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
}

.secondary-button {
    border-color: var(--ink);
    border-radius: 3px;
}

.primary-action {
    background: #e9e5dc;
    border-color: var(--ink);
}

/* Bespoke condition studio */

.condition-studio {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 3px solid var(--ink);
}

.condition-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 17px;
}

.condition-number {
    display: block;
    margin-bottom: 7px;
    color: var(--brand);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.condition-heading h3 {
    margin: 0;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.condition-heading p {
    max-width: 660px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.heavy-damage-field {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 70px);
    padding: 0;
    margin: 0;
    border: 0;
}

.condition-record-fields {
    flex: 0 0 auto;
    display: flex;
    align-items: end;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 540px;
}

.tramer-amount-field {
    display: grid;
    gap: 4px;
    width: 178px;
}

.tramer-amount-field[hidden] { display: none; }

.tramer-amount-field > span:first-child {
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 750;
}

.tramer-amount-field .input-addon {
    height: 37px;
    background: #fff;
}

.tramer-amount-field .input-addon input {
    min-width: 0;
    height: 35px;
    padding: 0 8px;
    border-color: var(--ink);
    font-size: 12px;
}

.tramer-amount-field .input-addon b {
    padding-right: 8px;
    color: var(--brand);
    font-size: 10px;
}

.tramer-amount-field small {
    color: var(--muted);
    font-size: 9px;
}

.heavy-damage-field legend {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 6px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 750;
    text-align: right;
}

.heavy-damage-field label {
    position: relative;
}

.heavy-damage-field input {
    position: absolute;
    opacity: 0;
}

.heavy-damage-field span {
    height: 37px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--ink);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.heavy-damage-field label:first-of-type span {
    border-radius: 3px 0 0 3px;
}

.heavy-damage-field label:last-of-type span {
    margin-left: -1px;
    border-radius: 0 3px 3px 0;
}

.heavy-damage-field input:checked + span {
    position: relative;
    z-index: 1;
    color: #fff;
    background: var(--ink);
}

.heavy-damage-field label:last-of-type input:checked + span {
    background: var(--replaced);
}

.heavy-damage-field input:focus-visible + span {
    outline: 3px solid rgba(233, 84, 50, .3);
    outline-offset: 2px;
}

.condition-workbench {
    display: grid;
    grid-template-areas:
        "palette palette"
        "car summary";
    grid-template-columns: 310px minmax(0, 1fr);
    align-items: stretch;
    max-width: 760px;
    min-height: 0;
    overflow: hidden;
    background: #f8f3e8;
    border: 1.5px solid var(--ink);
    border-radius: 4px;
}

.condition-palette {
    grid-area: palette;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 13px;
    background: #ede8de;
    border-bottom: 1px solid var(--ink);
}

.condition-palette > p {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.condition-tool {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    margin: 0;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, .55);
    border: 1px solid transparent;
    border-radius: 3px;
    text-align: left;
}

.condition-tool:hover {
    background: #fff;
    border-color: var(--line-strong);
}

.condition-tool.active {
    color: var(--ink);
    background: #fff;
    border-color: var(--ink);
    box-shadow: 3px 3px 0 rgba(29, 37, 43, .16);
}

.condition-tool > i,
.condition-counts i,
.result-condition-chip i {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    border: 1px solid rgba(29, 37, 43, .3);
    border-radius: 2px;
}

.condition-tool > span {
    display: grid;
}

.condition-tool strong {
    font-size: 12px;
}

.condition-tool small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.state-original { background: var(--original); }
.state-local { background: var(--local-painted); }
.state-painted { background: var(--painted); }
.state-replaced { background: var(--replaced); }

.car-stage {
    position: relative;
    grid-area: car;
    min-width: 0;
    min-height: 370px;
    display: grid;
    place-items: center;
    padding: 31px 22px;
    background-color: #f8f3e8;
    background-image: radial-gradient(rgba(29, 37, 43, .15) .8px, transparent .8px);
    background-size: 17px 17px;
}

.car-direction {
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 2;
    padding: 3px 7px;
    color: var(--muted);
    background: #f8f3e8;
    border: 1px solid var(--line-strong);
    transform: translateX(-50%);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .16em;
}

.car-direction-rear {
    top: auto;
    bottom: 18px;
}

.car-condition-map {
    width: min(100%, 235px);
    height: auto;
    overflow: visible;
}

.car-underlay path {
    fill: #e9e5dc;
    stroke: #c8c4ba;
    stroke-width: 2;
}

.car-underlay circle {
    fill: #c5c5c1;
    stroke: #f8f3e8;
    stroke-width: 5;
}

.car-glass {
    fill: #b9c4c8;
    stroke: #fff;
    stroke-width: 3;
}

.car-panel {
    stroke: #fffdf8;
    stroke-width: 3;
    cursor: pointer;
    transition: filter .14s ease, stroke .14s ease, transform .14s ease;
    transform-box: fill-box;
    transform-origin: center;
}

.car-panel[data-state="original"] { fill: var(--original); }
.car-panel[data-state="local_painted"] { fill: var(--local-painted); }
.car-panel[data-state="painted"] { fill: var(--painted); }
.car-panel[data-state="replaced"] { fill: var(--replaced); }

.car-panel:hover {
    filter: brightness(1.05);
    stroke: var(--ink);
    stroke-width: 5;
    transform: scale(1.015);
}

.car-panel:focus-visible {
    outline: none;
    stroke: var(--ink);
    stroke-width: 7;
}

.car-panel.selected {
    filter: drop-shadow(0 0 3px rgba(29, 37, 43, .45));
    stroke: var(--ink);
    stroke-width: 5;
}

.condition-summary {
    grid-area: summary;
    display: flex;
    flex-direction: column;
    padding: 22px 18px;
    background: #fffdf8;
    border-left: 1px solid var(--ink);
}

.condition-summary-label {
    margin: 0 0 7px;
    color: var(--brand);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.condition-summary > strong {
    min-height: 42px;
    font-size: 13px;
    line-height: 1.45;
}

.condition-counts {
    margin-top: 20px;
    border-top: 1px solid var(--ink);
}

.condition-counts > div {
    display: grid;
    grid-template-columns: 16px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.condition-counts i {
    width: 14px;
    height: 14px;
}

.condition-counts span {
    color: var(--muted);
    font-size: 10px;
}

.condition-counts b {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
}

.condition-impact-preview {
    display: grid;
    gap: 5px;
    margin-top: auto;
    padding: 15px;
    color: #fff;
    background: var(--ink);
    border-radius: 3px;
}

.tramer-summary {
    display: grid;
    gap: 5px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.tramer-summary > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tramer-summary small {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .1em;
}

.tramer-summary b { color: var(--green); font-size: 12px; }
.tramer-summary.has-record b { color: var(--replaced); }
.tramer-summary p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.4; }

.condition-impact-preview span {
    color: rgba(255, 255, 255, .68);
    font-size: 9px;
    text-transform: uppercase;
}

.condition-impact-preview strong {
    color: #ff8061;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 27px;
}

.condition-impact-preview small {
    color: rgba(255, 255, 255, .62);
    font-size: 9px;
    line-height: 1.45;
}

.condition-reset {
    margin-top: 9px;
    padding: 8px;
    color: var(--ink-soft);
    background: transparent;
    border: 1px dashed var(--line-strong);
    border-radius: 2px;
    font-size: 9px;
    font-weight: 700;
}

.condition-reset:hover {
    color: var(--brand);
    border-color: var(--brand);
}

.valuation-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 22px;
    padding: 16px 18px;
    background: #f4f0e7;
    border: 1px dashed var(--ink);
}

.disclaimer-mark {
    flex: 0 0 auto;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--ink);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 13px;
    font-weight: 700;
}

.valuation-disclaimer strong {
    font-size: 11px;
}

.valuation-disclaimer p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

/* Comparables and result sheet */

.comparables-panel {
    box-shadow: 4px 4px 0 #d5d1c8;
}

.comparables-summary {
    border-left: 7px solid var(--painted);
}

.info-note {
    background: #fff6df;
    border-color: var(--ink);
    border-radius: 3px;
}

.comparables-wrap {
    border-color: var(--ink);
    border-radius: 3px;
}

.comparables-table th {
    color: #fff;
    background: var(--ink);
}

.comparables-table th:nth-child(4) { width: 115px; }
.comparables-table th:nth-child(5) { width: 130px; }
.comparables-table th:nth-child(6) { width: 125px; }

.results-heading {
    padding-left: 15px;
    border-left: 6px solid var(--brand);
}

.results-heading .eyebrow,
.section-heading .result-kicker,
.result-kicker {
    color: var(--brand);
}

.result-card,
.recommendations-card,
.peers-card,
.product-actions,
.saved-panel {
    box-shadow: 4px 4px 0 #d5d1c8;
}

.verdict-card {
    border-top: 7px solid var(--brand);
}

.price-big {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 850;
}

.verdict-badge {
    border-radius: 3px;
}

.damage-meter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 25px;
}

.result-condition-chip {
    min-width: 0;
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 4px 7px;
    padding: 10px;
    background: #f5f1e8;
    border: 1px solid var(--line);
    border-radius: 3px;
}

.result-condition-chip i {
    width: 12px;
    height: 12px;
    grid-row: span 2;
}

.result-condition-chip.local i { background: var(--local-painted); }
.result-condition-chip.painted i { background: var(--painted); }
.result-condition-chip.replaced i { background: var(--replaced); }

.result-condition-chip span {
    overflow: hidden;
    color: var(--muted);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-condition-chip b {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 16px;
}

.damage-label {
    padding: 11px;
    margin-top: 11px;
    background: #f5f1e8;
    border: 1px solid var(--line);
    border-radius: 3px;
}

.recommendation-group {
    background: #f6f2e9;
    border-color: var(--ink);
    border-radius: 3px;
}

.recommendation-group:nth-child(1) { border-top: 5px solid var(--painted); }
.recommendation-group:nth-child(2) { border-top: 5px solid var(--local-painted); }
.recommendation-group:nth-child(3) { border-top: 5px solid var(--replaced); }

.site-footer {
    background: var(--ink);
}

@media (max-width: 1040px) {
    .condition-workbench {
        grid-template-columns: 290px minmax(0, 1fr);
    }

    .condition-summary {
        display: flex;
        border-top: 0;
        border-left: 1px solid var(--ink);
    }

    .condition-summary > strong {
        min-height: 42px;
    }

    .condition-counts {
        margin-top: 20px;
        border-top: 1px solid var(--ink);
    }

    .condition-impact-preview {
        margin-top: auto;
    }

    .condition-reset {
        margin-top: 14px;
    }
}

@media (max-width: 760px) {
    .site-header {
        height: 64px;
    }

    .header-meta {
        display: none;
    }

    .site-nav {
        gap: 1px;
        margin-left: 0;
    }

    .site-nav a {
        min-height: 31px;
        padding: 6px 8px;
        font-size: 10px;
    }

    .site-nav a span {
        display: none;
    }

    .hero {
        padding: 49px 0 68px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero h1 span {
        margin-top: 4px;
    }

    .hero-benefits {
        display: flex;
    }

    .method-card {
        transform: none;
        box-shadow: 5px 5px 0 var(--ink);
    }

    .hero::after {
        right: 14px;
    }

    .vehicle-panel {
        padding-top: 21px;
    }

    .condition-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .heavy-damage-field {
        align-self: flex-start;
    }

    .condition-record-fields {
        align-self: stretch;
        justify-content: flex-start;
        max-width: none;
    }

    .heavy-damage-field legend {
        text-align: left;
    }

    .condition-workbench {
        display: block;
        max-width: 520px;
        min-height: 0;
    }

    .condition-palette {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding: 15px;
        border-right: 0;
        border-bottom: 1px solid var(--ink);
    }

    .condition-palette > p {
        grid-column: 1 / -1;
        margin-bottom: 2px;
    }

    .condition-tool {
        min-height: 52px;
        margin: 0;
        padding: 7px;
    }

    .condition-tool > i {
        width: 17px;
        height: 17px;
    }

    .condition-tool small {
        display: none;
    }

    .car-stage {
        min-height: 350px;
        padding: 35px 10px;
    }

    .car-condition-map {
        width: min(100%, 215px);
    }

    .condition-summary {
        display: flex;
        padding: 17px;
        border-top: 1px solid var(--ink);
        border-left: 0;
    }

    .condition-counts {
        width: 100%;
        margin-top: 15px;
        border-top: 1px solid var(--ink);
    }

    .condition-impact-preview {
        width: 100%;
        margin-top: 14px;
    }

    .condition-reset {
        width: 100%;
        margin-top: 8px;
    }

    .valuation-disclaimer {
        padding: 14px;
    }

    .comparables-summary {
        border-left-width: 5px;
    }

    .comparables-table tr {
        background: #f4f0e7;
        border-color: var(--ink);
        border-radius: 3px;
    }

    .damage-meter {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero-benefits li {
        width: 100%;
    }

    .condition-heading h3 {
        font-size: 18px;
    }

    .car-stage {
        min-height: 455px;
    }
}
