@import url('./vinsearch-fonts.css?v=vinsearch-fonts-20260713a');

:root {
    --font-size: 15px;
    --background: #fafaf7;
    --foreground: #0f1b2d;
    --card: #ffffff;
    --primary: #0a2540;
    --primary-foreground: #ffffff;
    --secondary: #f0eee8;
    --muted: #e8e5de;
    --muted-foreground: #6b7280;
    --accent: #b8935a;
    --destructive: #b91c1c;
    --border: rgba(15, 27, 45, 0.12);
    --soft-border: rgba(15, 27, 45, 0.07);
    --head-sans: "Barlow Condensed", "Noto Serif SC", sans-serif;
    --head-serif: "Noto Serif SC", serif;
    --body-font: "Inter", "Noto Serif SC", sans-serif;
    --mono: "DM Mono", monospace;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--background);
    color: var(--foreground);
    font-size: var(--font-size);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background: var(--background) !important;
    color: var(--foreground);
    font-family: var(--body-font);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

html[dir="rtl"] {
    --head-sans: "Cairo", sans-serif;
    --head-serif: "Cairo", sans-serif;
    --body-font: "Cairo", sans-serif;
    --mono: "Cairo", sans-serif;
}

html[lang^="en"],
html[lang^="ru"] {
    --head-serif: "Inter", sans-serif;
}

.report-page.combination-page,
.vinsearch-single-page {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden;
}

.vinsearch-insurance-page {
    font-family: var(--head-serif);
}

.combination-evidence {
    width: 100%;
    min-width: 0;
    background: var(--card);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.combination-document-header {
    display: grid;
    gap: 32px;
    padding: 32px 20px 40px;
    background: var(--card);
    border-bottom: 8px solid var(--primary);
}

.combination-cover-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.combination-brand-line {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.combination-brand-line img {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 10px;
    object-fit: contain;
}

.combination-kicker {
    margin: 0;
    color: var(--foreground);
    font-family: var(--head-sans);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.06em;
}

.combination-brand-sub {
    margin: 4px 0 0;
    color: var(--muted-foreground);
    font-family: var(--head-sans);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.combination-report-no {
    position: relative;
    max-width: 220px;
    min-width: 0;
    text-align: right;
}

html[dir="rtl"] .combination-report-no {
    text-align: left;
}

.combination-report-no span,
.combination-title-sub,
.combination-vin-block span,
.combination-cover-stats span {
    display: block;
    color: var(--muted-foreground);
    font-family: var(--head-sans);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.combination-report-no strong {
    display: block;
    max-width: 100%;
    margin-top: 3px;
    color: var(--foreground);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.combination-report-no small {
    display: block;
    margin-top: 6px;
    color: var(--muted-foreground);
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1.4;
}

.sample-postmark {
    position: absolute;
    top: -12px;
    right: -8px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border: 2px solid rgba(185, 28, 28, 0.72);
    border-radius: 50%;
    color: var(--destructive);
    font-family: var(--head-sans);
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-9deg);
    pointer-events: none;
}

html[dir="rtl"] .sample-postmark {
    right: auto;
    left: -8px;
}

.sample-postmark::before {
    content: "";
    position: absolute;
    width: 62px;
    height: 62px;
    border: 1px dashed rgba(185, 28, 28, 0.52);
    border-radius: 50%;
}

.sample-postmark span {
    position: relative;
    display: block;
    color: var(--destructive);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.sample-postmark small {
    position: relative;
    display: block;
    margin-top: 4px;
    color: var(--destructive);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.combination-cover-title {
    display: grid;
    gap: 0;
    min-width: 0;
}

.combination-title-sub {
    margin: 0 0 8px;
    color: var(--primary);
    letter-spacing: 0.24em;
}

.combination-document-header h1 {
    margin: 0;
    color: var(--foreground);
    font-family: var(--head-serif);
    font-size: clamp(28px, 8vw, 44px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0;
}

.combination-document-subtitle {
    max-width: 620px;
    margin: 12px 0 0;
    color: var(--muted-foreground);
    font-size: 15px;
    line-height: 1.65;
}

.combination-title-rule {
    width: 64px;
    height: 3px;
    margin-top: 14px;
    background: var(--accent);
}

.combination-cover-identity {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
}

.combination-vin-block {
    min-width: 0;
}

.combination-vin-block strong {
    display: block;
    max-width: 100%;
    margin-top: 8px;
    color: var(--foreground);
    font-family: var(--head-sans);
    font-size: clamp(22px, 7vw, 34px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.combination-vin-block p {
    margin: 12px 0 0;
    color: var(--muted-foreground);
    font-family: var(--head-serif);
    font-size: 14px;
    line-height: 1.6;
}

.combination-vin-block .combination-vin-meta {
    margin-top: 6px;
    font-family: var(--mono);
    font-size: 11px;
}

.combination-seal {
    width: 84px;
    height: 84px;
    flex: 0 0 auto;
    color: var(--destructive);
}

.combination-seal svg {
    display: block;
    width: 100%;
    height: 100%;
}

.combination-seal circle {
    fill: none;
    stroke: currentColor;
}

.combination-seal circle:first-child {
    stroke-width: 1.5;
}

.combination-seal circle:nth-child(2) {
    stroke-width: 0.6;
}

.combination-seal text {
    fill: currentColor;
    font-family: var(--head-serif);
    font-size: 9px;
    letter-spacing: 1px;
}

.combination-seal .seal-main {
    font-family: var(--head-sans);
    font-size: 11px;
    font-weight: 700;
}

.combination-seal .seal-date {
    font-family: var(--mono);
    font-size: 6px;
    letter-spacing: 0;
}

.combination-cover-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.combination-cover-stats div {
    min-width: 0;
    padding: 12px;
    border-top: 2px solid var(--primary);
    background: rgba(240, 238, 232, 0.4);
}

.combination-cover-stats strong {
    display: block;
    min-width: 0;
    margin-top: 6px;
    color: var(--foreground);
    font-family: var(--head-sans);
    font-size: clamp(16px, 4vw, 24px);
    font-weight: 700;
    line-height: 1;
    overflow-wrap: anywhere;
}

.combination-cover-stats strong span {
    display: inline;
    margin-left: 4px;
    color: var(--muted-foreground);
    font-family: var(--head-serif);
    font-size: 14px;
    font-weight: 400;
}

.combination-cover-stats .condition-cover-status {
    font-size: clamp(16px, 2.7vw, 20px);
    line-height: 1.2;
}

.combination-cover-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border-left: 4px solid #059669;
    background: #ecfdf5;
}

.combination-cover-alert.has-claim {
    border-left-color: var(--destructive);
    background: #fef2f2;
}

.combination-cover-alert.has-service-claim {
    border-left-color: var(--accent);
    background: #fffbeb;
}

.combination-cover-alert img {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.combination-cover-alert.has-claim img {
    filter: invert(19%) sepia(62%) saturate(2764%) hue-rotate(344deg) brightness(85%) contrast(95%);
}

.combination-cover-alert div {
    min-width: 0;
}

.combination-cover-alert strong {
    display: block;
    color: var(--foreground);
    font-family: var(--head-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.combination-cover-alert.has-claim strong {
    color: var(--destructive);
}

.combination-cover-alert.is-clear strong {
    color: #065f46;
}

.combination-cover-alert span {
    display: block;
    margin-top: 4px;
    color: var(--muted-foreground);
    font-size: 12px;
    line-height: 1.55;
}

.formal-report-summary {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    background: #ffffff;
}

.formal-conclusion {
    display: grid;
    gap: 6px;
}

.formal-conclusion span,
.formal-key-facts span {
    color: var(--muted-foreground);
    font-family: var(--head-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.formal-key-facts span {
    display: block;
    height: 3.9em;
}

.formal-conclusion strong {
    color: var(--foreground);
    font-family: var(--head-serif);
    font-size: 17px;
    line-height: 1.35;
}

.formal-key-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.formal-key-facts div {
    min-width: 0;
    padding: 10px;
    border-top: 1px solid var(--border);
    background: rgba(248, 250, 252, 0.72);
}

.formal-key-facts strong {
    display: block;
    margin-top: 6px;
    color: var(--foreground);
    font-family: var(--head-sans);
    font-size: 16px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.formal-report-notes {
    display: grid;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.formal-report-notes p {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 11px;
    line-height: 1.55;
}

.formal-report-notes b {
    color: var(--foreground);
}

.combination-card {
    display: grid;
    gap: 0;
    padding: 32px 20px;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: var(--card);
    box-shadow: none;
}

.combination-card-head,
.combination-card-head.vinsearch-chapter-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.vinsearch-chapter-number {
    flex: 0 0 auto;
    color: var(--primary);
    font-family: var(--head-sans);
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: 0.02em;
}

.combination-card-head > div {
    min-width: 0;
}

.combination-card-head h3 {
    display: block;
    margin: 0;
    color: var(--foreground);
    font-family: var(--head-serif);
    font-size: clamp(15px, 4vw, 18px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

.combination-card-head h3::before {
    content: none !important;
}

.combination-card-head p {
    margin: 2px 0 0;
    padding: 0;
    border: 0;
    color: var(--muted-foreground);
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.55;
}

.combination-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-width: 0;
}

@media (min-width: 640px) {
    .vinsearch-two-column-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 32px;
    }
}

.combination-field,
.combination-event div,
.combination-condition-item,
.combination-vehicle-part {
    display: grid;
    grid-template-columns: minmax(150px, 32%) minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--soft-border);
}

.vinsearch-insurance-page .combination-field {
    display: flex;
    grid-template-columns: none;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.vinsearch-insurance-page .combination-field span {
    flex: 0 0 auto;
}

.vinsearch-insurance-page .combination-field strong {
    text-align: right;
    word-break: break-word;
}

html[dir="rtl"] .vinsearch-insurance-page .combination-field strong {
    text-align: left;
}

.combination-field span,
.combination-event span,
.combination-condition-item span,
.combination-vehicle-part span {
    color: var(--muted-foreground);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.combination-field strong,
.combination-event strong,
.combination-condition-item strong,
.combination-vehicle-part strong {
    min-width: 0;
    color: var(--foreground);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.combination-field .mono-value {
    font-family: var(--mono);
    font-weight: 500;
}

.condition-grade-strip {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    background: #fffdf7;
}

.condition-grade-mark {
    color: var(--accent);
    font-family: var(--head-sans);
    font-size: 40px;
    font-weight: 700;
    line-height: 0.9;
    text-align: center;
}

.condition-grade-copy {
    min-width: 0;
}

.condition-grade-copy span {
    display: block;
    color: var(--muted-foreground);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.condition-grade-copy strong {
    display: block;
    margin-top: 2px;
    color: var(--foreground);
    font-family: var(--head-serif);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.condition-grade-strip.grade-a {
    border-left-color: #059669;
    background: #f0fdf4;
}

.condition-grade-strip.grade-a .condition-grade-mark {
    color: #059669;
}

.condition-grade-strip.grade-b {
    border-left-color: #0891b2;
    background: #ecfeff;
}

.condition-grade-strip.grade-b .condition-grade-mark {
    color: #0891b2;
}

.condition-grade-strip.grade-c {
    border-left-color: #d97706;
    background: #fffbeb;
}

.condition-grade-strip.grade-c .condition-grade-mark {
    color: #d97706;
}

.condition-grade-strip.grade-d {
    border-left-color: var(--destructive);
    background: #fef2f2;
}

.condition-grade-strip.grade-d .condition-grade-mark {
    color: var(--destructive);
}

.insurance-risk-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.insurance-risk-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 2px;
    background: #ffffff;
}

.insurance-risk-grid-secondary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 10px;
}

.insurance-risk-grid-secondary .insurance-risk-card {
    border-top: 1px solid var(--border);
}

.key-risk-card {
    display: flex;
    min-height: 116px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 16px 8px;
    text-align: center;
}

.key-risk-card img {
    width: 22px;
    height: 22px;
    opacity: 0.22;
}

.key-risk-card.is-alert img {
    opacity: 0.45;
}

.insurance-risk-card.is-alert {
    border-color: #fecaca;
    border-top-color: var(--destructive);
    background: #fef2f2;
}

.insurance-risk-card span {
    display: block;
    color: var(--foreground);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.insurance-risk-card strong {
    display: block;
    margin-top: 8px;
    color: var(--muted-foreground);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
}

.key-risk-card strong {
    margin-top: 0;
}

.key-risk-card .risk-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.key-risk-card .risk-note img,
.insurance-risk-grid-secondary .risk-note img,
.risk-card-head img {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    opacity: 1;
    filter: invert(36%) sepia(74%) saturate(747%) hue-rotate(118deg) brightness(91%) contrast(90%);
}

.risk-card-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.risk-card-head span {
    font-weight: 700;
}

.insurance-risk-grid-secondary .insurance-risk-card strong {
    margin-top: 8px;
}

.insurance-risk-grid-secondary .risk-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    text-align: center;
}

.insurance-risk-card.is-alert .risk-note img,
.insurance-risk-card.is-alert .risk-card-head img {
    filter: invert(19%) sepia(62%) saturate(2764%) hue-rotate(344deg) brightness(85%) contrast(95%);
}

.insurance-risk-card.is-alert span,
.insurance-risk-card.is-alert strong {
    color: var(--destructive);
}

.insurance-condition-risk {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #fecaca;
    border-left: 3px solid var(--destructive);
    background: #fff7f7;
}

.insurance-condition-risk strong {
    display: block;
    color: var(--foreground);
    font-size: 14px;
    font-weight: 800;
}

.insurance-condition-risk > div:first-child span {
    display: block;
    margin-top: 4px;
    color: var(--muted-foreground);
    font-size: 12px;
}

.insurance-condition-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.insurance-condition-tags span {
    padding: 5px 9px;
    border: 1px solid #fecaca;
    background: #ffffff;
    color: var(--destructive);
    font-size: 12px;
    font-weight: 700;
}

.is-alert-text {
    color: var(--destructive) !important;
}

.combination-timeline {
    display: grid;
    gap: 0;
    min-width: 0;
}

.combination-claim-event {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 18px;
    min-width: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.combination-claim-event:first-child {
    padding-top: 0;
}

.combination-claim-event:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.combination-claim-date {
    color: var(--foreground);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.combination-claim-body {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding-left: 16px;
    border-left: 3px solid var(--border);
}

.combination-claim-body.severity-medium {
    border-left-color: var(--accent);
}

.combination-claim-body.severity-severe {
    border-left-color: var(--destructive);
}

.claim-headline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.claim-headline span {
    color: var(--muted-foreground);
    font-family: var(--head-sans);
    font-size: 13px;
    font-weight: 700;
}

.claim-headline strong {
    color: var(--foreground);
    font-family: var(--head-sans);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.severity-medium .claim-headline strong {
    color: #9a5f17;
}

.severity-severe .claim-headline strong {
    color: var(--destructive);
}

.claim-subline {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 13px;
    line-height: 1.6;
}

.claim-parts-detail {
    max-width: 100%;
    overflow-x: auto;
}

.claim-parts-detail summary {
    cursor: pointer;
    width: fit-content;
    color: var(--muted-foreground);
    font-family: var(--head-sans);
    font-size: 12px;
    font-weight: 700;
}

.claim-parts-table {
    width: 100%;
    min-width: 520px;
    margin-top: 10px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: #ffffff;
}

.claim-parts-table th,
.claim-parts-table td {
    padding: 5px 8px;
    border-bottom: 1px solid #e8edf3;
    color: #334155;
    font-size: 10px;
    line-height: 1.45;
    text-align: left;
    vertical-align: middle;
}

html[dir="rtl"] .claim-parts-table th,
html[dir="rtl"] .claim-parts-table td {
    text-align: right;
}

.claim-parts-table th {
    color: var(--muted-foreground);
    font-family: var(--head-sans);
    font-weight: 700;
}

.claim-parts-table td {
    font-weight: 500;
}

.claim-detail-card {
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: #ffffff;
}

.claim-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--primary);
    color: var(--primary-foreground);
}

.claim-detail-grid > div {
    min-width: 0;
    padding: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

html[dir="rtl"] .claim-detail-grid > div {
    border-right: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.claim-detail-grid > div:last-child {
    border-right: 0;
}

html[dir="rtl"] .claim-detail-grid > div:last-child {
    border-left: 0;
}

.claim-detail-grid span {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--head-sans);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.claim-detail-grid strong {
    display: block;
    color: #ffffff;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.claim-parts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0 12px;
    padding: 0 8px;
}

.claim-parts-header p {
    margin: 0;
    color: var(--muted-foreground);
    font-family: var(--head-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.claim-parts-header > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.part-count {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border: 1px solid currentColor;
    border-radius: 2px;
    font-size: 11px;
    line-height: 1.2;
}

.part-count.replace {
    color: var(--destructive);
}

.part-count.repair {
    color: var(--accent);
}

.claim-parts-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: 2px;
}

.claim-parts-list::-webkit-scrollbar {
    height: 4px;
}

.claim-parts-list::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.18);
    border-radius: 999px;
}

.claim-part-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.claim-part-row.is-odd {
    background: rgba(240, 238, 232, 0.4);
}

.claim-part-row > div {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.claim-part-row span {
    flex: 0 0 auto;
    color: var(--muted-foreground);
    font-family: var(--mono);
    font-size: 10px;
}

.claim-part-row strong {
    min-width: 0;
    color: var(--foreground);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.claim-part-row b {
    flex: 0 0 auto;
    padding: 2px 8px;
    border: 1px solid currentColor;
    border-radius: 2px;
    background: #fff7f7;
    color: var(--destructive);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.claim-part-row b.repair {
    background: #fffbeb;
    color: var(--accent);
}

.claim-parts-table th:nth-child(1),
.claim-parts-table td:nth-child(1) {
    width: 58%;
}

.claim-parts-table th:nth-child(2),
.claim-parts-table td:nth-child(2) {
    width: 24%;
}

.claim-parts-table th:nth-child(3),
.claim-parts-table td:nth-child(3) {
    width: 18%;
    text-align: center;
}

.maintain-service-list {
    display: grid;
    gap: 16px;
}

.maintain-service-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: #ffffff;
}

.maintain-service-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 12px 16px;
    background: var(--primary);
    color: var(--primary-foreground);
}

.maintain-service-head div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.maintain-service-head span {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.maintain-service-head b {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    background: rgba(184, 147, 90, 0.2);
    color: #ffffff;
    font-family: var(--head-sans);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.maintain-service-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(240, 238, 232, 0.2);
}

.maintain-service-summary img {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    opacity: 0.62;
}

.maintain-service-summary strong {
    min-width: 0;
    color: var(--foreground);
    font-family: var(--head-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.maintain-service-summary p {
    margin: 0;
    color: #334155;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.maintain-service-summary p b {
    color: var(--foreground);
    font-family: var(--head-sans);
    font-size: 11px;
    font-weight: 700;
}

.maintain-service-count {
    padding: 10px 16px;
}

.maintain-service-count span {
    color: var(--muted-foreground);
    font-family: var(--head-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.maintain-parts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 2px;
}

.maintain-part-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
}

.maintain-part-item > div {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.maintain-part-item:nth-child(odd) {
    background: #ffffff;
}

.maintain-part-item:nth-child(even) {
    background: rgba(240, 238, 232, 0.4);
}

.maintain-part-item span {
    flex: 0 0 auto;
    color: var(--muted-foreground);
    font-family: var(--mono);
    font-size: 10px;
}

.maintain-part-item strong {
    min-width: 0;
    color: var(--foreground);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.maintain-part-item b {
    flex: 0 0 auto;
    padding: 2px 8px;
    border: 1px solid rgba(10, 37, 64, 0.2);
    border-radius: 2px;
    background: rgba(10, 37, 64, 0.05);
    color: var(--primary);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
}

.combination-vehicle-map {
    max-width: 420px;
    margin-bottom: 18px;
    padding: 10px;
    border: 1px solid var(--border);
    background: #f8fafc;
}

.combination-vehicle-svg {
    display: block;
    width: 100%;
    height: auto;
}

.vehicle-stage {
    fill: #f8fafc;
    stroke: var(--border);
}

.vehicle-base {
    filter: drop-shadow(0 16px 24px rgba(15, 27, 45, 0.14));
}

.vehicle-zone {
    fill: transparent;
    stroke: transparent;
}

.vehicle-zone.is-repaired {
    fill: rgba(185, 28, 28, 0.18);
    stroke: rgba(185, 28, 28, 0.7);
    stroke-width: 2;
}

.vehicle-alert-marker circle {
    fill: #fff7f7;
    stroke: var(--destructive);
    stroke-width: 1.5;
}

.vehicle-alert-marker use {
    fill: var(--destructive);
}

.combination-vehicle-parts {
    display: grid;
    gap: 0;
    min-width: 0;
}

.vinsearch-damage-diagram {
    min-width: 0;
}

.vinsearch-damage-svg-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
}

.vinsearch-damage-svg {
    display: block;
    width: 100%;
    height: auto;
}

.damage-zone-label {
    font-family: var(--mono);
    letter-spacing: 0.02em;
}

.vinsearch-damage-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
}

.vinsearch-damage-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-foreground);
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.4;
}

.vinsearch-damage-legend span:first-child {
    color: var(--foreground);
    font-weight: 500;
}

.vinsearch-damage-summary {
    margin-top: 20px;
    padding: 16px;
    border-left: 2px solid var(--primary);
    border-radius: 0 2px 2px 0;
    background: rgba(10, 37, 64, 0.05);
}

html[dir="rtl"] .vinsearch-damage-summary {
    border-left: 0;
    border-right: 2px solid var(--primary);
    border-radius: 2px 0 0 2px;
}

.vinsearch-damage-summary p {
    margin: 0 0 6px;
    color: var(--muted-foreground);
    font-family: var(--head-sans);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vinsearch-damage-summary strong {
    display: block;
    color: var(--primary);
    font-family: var(--head-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.report-glossary dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.report-glossary dl > div {
    display: grid;
    gap: 5px;
    padding: 12px 0;
    border-bottom: 1px solid var(--soft-border);
}

.report-glossary dt {
    color: var(--primary);
    font-family: var(--head-sans);
    font-size: 13px;
    font-weight: 700;
}

.report-glossary dd {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 12px;
    line-height: 1.65;
}

.vinsearch-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 40px;
    background: var(--primary);
    color: var(--primary-foreground);
}

.vinsearch-footer > div > p:first-child {
    margin: 0 0 8px;
    font-family: var(--head-sans);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.72;
}

.vinsearch-footer-note {
    display: block;
    max-width: 680px;
    margin: 0;
    font-size: 11px;
    line-height: 1.75;
    letter-spacing: 0;
    opacity: 0.88;
    overflow-wrap: anywhere;
}

.vinsearch-footer small {
    display: block;
    margin-top: 10px;
    font-family: var(--mono);
    font-size: 12px;
    opacity: 1;
}

.vinsearch-footer small a {
    color: inherit;
    text-decoration: none;
}

.vinsearch-footer > div:last-child {
    flex: 0 0 auto;
    text-align: right;
}

html[dir="rtl"] .vinsearch-footer > div:last-child {
    text-align: left;
}

.report-empty {
    padding: 14px;
    border: 1px dashed var(--border);
    border-radius: 2px;
    color: var(--muted-foreground);
    background: rgba(255, 255, 255, 0.75);
}

.vinsearch-subsection-title {
    margin: 28px 0 14px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--primary);
    font-family: var(--head-sans);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vinsearch-data-list {
    display: grid;
    gap: 12px;
}

.vinsearch-data-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: #ffffff;
}

.vinsearch-data-row > div {
    min-width: 0;
    padding: 12px;
    border-right: 1px solid var(--border);
}

html[dir="rtl"] .vinsearch-data-row > div {
    border-right: 0;
    border-left: 1px solid var(--border);
}

.vinsearch-data-row > div:last-child {
    border-right: 0;
}

html[dir="rtl"] .vinsearch-data-row > div:last-child {
    border-left: 0;
}

.vinsearch-data-row span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted-foreground);
    font-family: var(--head-sans);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.vinsearch-data-row strong {
    display: block;
    color: var(--foreground);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.vinsearch-condition-description {
    margin: 0 0 16px;
    color: var(--foreground);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.75;
}

@media (min-width: 720px) {
    .combination-document-header {
        padding: 32px 40px 40px;
    }

    .combination-card {
        padding: 32px 40px;
    }

    .combination-field,
    .combination-event div,
    .combination-condition-item,
    .combination-vehicle-part {
        grid-template-columns: minmax(180px, 30%) minmax(0, 1fr);
    }

    .combination-claim-event {
        grid-template-columns: 136px minmax(0, 1fr);
    }
}

@media (max-width: 430px) {
    .combination-document-header {
        gap: 24px;
        padding: 24px 20px 32px;
    }

    .combination-cover-top {
        gap: 12px;
    }

    .combination-brand-line {
        gap: 10px;
    }

    .combination-brand-line img {
        width: 38px;
        height: 38px;
    }

    .combination-report-no {
        max-width: 118px;
    }

    .combination-report-no span {
        font-size: 9px;
        letter-spacing: 0.12em;
    }

    .combination-report-no strong {
        font-size: 8px;
        line-height: 1.3;
    }

    .combination-report-no small {
        font-size: 7px;
    }

    .sample-postmark {
        top: -8px;
        right: -4px;
        width: 58px;
        height: 58px;
    }

    html[dir="rtl"] .sample-postmark {
        right: auto;
        left: -4px;
    }

    .sample-postmark::before {
        width: 48px;
        height: 48px;
    }

    .sample-postmark span {
        font-size: 12px;
    }

    .sample-postmark small {
        font-size: 6px;
    }

    .combination-cover-identity {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .combination-cover-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .combination-cover-stats div {
        padding: 10px 8px;
    }

    .combination-cover-stats span {
        font-size: 9px;
        letter-spacing: 0.08em;
    }

    .combination-cover-stats strong {
        font-size: 16px;
        line-height: 1.1;
    }

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

    .combination-card {
        padding: 28px 20px;
    }

    .combination-field,
    .combination-event div,
    .combination-condition-item,
    .combination-vehicle-part,
    .combination-claim-event {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .condition-grade-strip {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .condition-grade-mark {
        font-size: 34px;
    }

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

    .insurance-risk-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .insurance-risk-grid-secondary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .vinsearch-data-row {
        grid-template-columns: 1fr;
    }

    .vinsearch-data-row > div {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .vinsearch-data-row > div:last-child {
        border-bottom: 0;
    }

    .insurance-risk-card {
        padding: 10px 8px;
    }

    .maintain-parts-grid {
        grid-template-columns: 1fr;
    }

    .claim-parts-list {
        grid-template-columns: 1fr;
    }

    .combination-claim-body {
        padding-left: 0;
        padding-top: 12px;
        border-left: 0;
        border-top: 3px solid var(--border);
    }

    .combination-claim-body.severity-medium {
        border-top-color: var(--accent);
    }

    .combination-claim-body.severity-severe {
        border-top-color: var(--destructive);
    }

    .vinsearch-footer {
        flex-direction: column;
        padding: 32px 20px;
    }

    .vinsearch-footer > div:last-child {
        text-align: left;
    }
}

@media print {
    html,
    body {
        background: #ffffff !important;
    }

    .report-page.combination-page,
    .vinsearch-single-page {
        max-width: none;
    }

    .combination-document-header {
        page-break-after: always;
        break-after: page;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .combination-card {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .combination-card-head,
    .combination-card-head.vinsearch-chapter-head {
        margin-bottom: 10px;
        padding-bottom: 6px;
    }

    .combination-field,
    .combination-event div,
    .combination-condition-item,
    .combination-vehicle-part {
        padding: 7px 0;
    }

    .insurance-risk-grid {
        margin-bottom: 0;
    }

    .insurance-risk-card {
        padding: 10px;
    }

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

    .claim-detail-grid > div:nth-child(2n) {
        border-right: 0;
    }

    html[dir="rtl"] .claim-detail-grid > div:nth-child(2n) {
        border-left: 0;
    }

    .combination-card-head,
    .condition-grade-strip,
    .insurance-risk-card,
    .claim-detail-grid,
    .maintain-service-head,
    .maintain-service-count,
    .maintain-part-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}
