.report-public-page {
    background: #f6faf8;
    padding: 46px 0 72px;
}

.report-public-page .shell {
    width: min(1240px, calc(100% - 48px));
}

.inspection-report {
    display: grid;
    gap: 22px;
    color: #082f24;
}

.report-hero,
.report-essential,
.report-conclusion {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 26px;
    align-items: center;
    border: 1px solid rgba(8, 47, 36, .1);
    border-radius: 22px;
    background: linear-gradient(135deg, #073525, #0f5a43);
    color: #fff;
    padding: 28px;
    box-shadow: 0 20px 55px rgba(8, 47, 36, .13);
}

.report-brand-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #fff;
    font-size: .95rem;
    font-weight: 900;
}

.report-brand-inline img {
    width: 54px;
    height: 54px;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    background: #012619;
    padding: 3px;
}

.report-hero h1,
.report-essential h2,
.report-conclusion h2 {
    margin: 8px 0 12px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.02;
}

.report-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(125, 205, 166, .16);
    color: #7dcda6;
    font-weight: 800;
    font-size: .82rem;
}

.report-hero-meta,
.report-actions,
.report-essential-stats,
.report-conclusion-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.report-hero-meta span,
.report-essential-stats span,
.report-conclusion-meta span {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 9px 12px;
    color: rgba(255, 255, 255, .86);
    font-weight: 700;
}

.report-hero-side {
    display: grid;
    justify-items: end;
    gap: 14px;
}

.report-score {
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
}

.report-score strong,
.report-conclusion-meta strong {
    display: block;
    font-size: 2.2rem;
    line-height: 1;
}

.report-section-card,
.report-legend {
    border: 1px solid rgba(8, 47, 36, .08);
    border-radius: 20px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 14px 40px rgba(8, 47, 36, .06);
}

.report-section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.report-section-title h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.report-section-heading {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(8, 47, 36, .08);
}

.report-section-heading::after {
    content: "";
    width: 82px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #78BF9E, rgba(120, 191, 158, 0));
}

.report-section-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: #0f5a43;
    background: #e8f5ee;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.report-section-heading h2 {
    margin: 0;
    color: #082f24;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.report-section-heading p {
    margin: 6px 0 0;
    color: #5f6f68;
    line-height: 1.6;
}

.report-section-title p,
.report-item-value,
.report-explanation,
.report-note-card p,
.report-conclusion p,
.report-disclaimer {
    color: #5f6f68;
    line-height: 1.75;
}

.report-item-value.is-good {
    color: #075b3b;
    font-weight: 800;
}

.report-item-value.is-warning {
    color: #8a5400;
    font-weight: 800;
}

.report-item-value.is-danger {
    color: #9f1e1e;
    font-weight: 800;
}

.report-item-value.is-cosmetic {
    color: #5b3b89;
    font-weight: 800;
}

.report-item-value.is-neutral {
    color: #52615b;
    font-weight: 750;
}

.report-info-grid,
.report-check-grid,
.report-summary-grid,
.report-notes-grid,
.report-visual-grid,
.report-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

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

.report-info-cell,
.report-item,
.report-summary-card,
.report-note-card,
.report-visual-card {
    border: 1px solid rgba(8, 47, 36, .08);
    border-radius: 16px;
    background: #fbfdfc;
    padding: 16px;
}

.report-info-cell span,
.report-summary-card span {
    display: block;
    color: #728179;
    font-weight: 700;
    font-size: .86rem;
    margin-bottom: 6px;
}

.report-item-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.report-item h3,
.report-note-card h3,
.report-visual-card h3 {
    margin: 0;
    font-size: 1rem;
}

.report-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: .82rem;
    font-weight: 850;
    color: #52615b;
    background: #edf1ef;
    white-space: normal;
}

.report-status span {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .7);
}

.report-status.is-good {
    color: #075b3b;
    background: #dff6e9;
}

.report-status.is-warning {
    color: #8a5400;
    background: #fff1cf;
}

.report-status.is-danger {
    color: #9f1e1e;
    background: #ffe0de;
}

.report-status.is-cosmetic {
    color: #5b3b89;
    background: #eee7ff;
}

.report-legend {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.report-legend > span {
    display: grid;
    gap: 8px;
    color: #5f6f68;
    font-weight: 700;
}

.report-essential {
    background: #fff;
    color: #082f24;
}

.report-essential p {
    max-width: 760px;
    margin: 0;
    color: #5f6f68;
    font-size: 1.05rem;
}

.report-essential-stats span {
    border-color: rgba(8, 47, 36, .1);
    color: #082f24;
    background: #f3faf6;
}

.report-essential-stats strong {
    font-size: 1.5rem;
}

.report-progress-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
    color: #5f6f68;
}

.report-progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8efeb;
}

.report-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #19a36b;
}

.report-progress.is-warning .report-progress-track span {
    background: #f2a51a;
}

.report-progress.is-danger .report-progress-track span {
    background: #df4b3f;
}

.report-photo {
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #edf3ef;
}

.report-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.report-photo figcaption {
    padding: 9px 10px;
    color: #52615b;
    background: #fff;
    font-size: .82rem;
    font-weight: 750;
}

.report-conclusion {
    background: #082f24;
}

.report-disclaimer {
    margin: 0;
    border-left: 4px solid #7dcda6;
    padding: 14px 18px;
    border-radius: 12px;
    background: #eef8f2;
}

.public-inspection {
    display: grid;
    gap: 28px;
}

.public-inspection-overview,
.public-compact-block {
    border: 1px solid rgba(8, 47, 36, .08);
    border-radius: 16px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(8, 47, 36, .045);
}

.public-inspection-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #ffffff, #f2faf6);
}

.public-inspection-overview h3,
.public-inspection-title h3 {
    margin: 5px 0 6px;
    color: #082f24;
    font-size: 1.25rem;
}

.public-inspection-overview p,
.public-inspection-title p,
.public-visual-card p,
.public-notes-grid p,
.public-mini-card p {
    margin: 0;
    color: #61736b;
    line-height: 1.55;
}

.public-inspection-score {
    display: grid;
    place-items: center;
    min-width: 96px;
    min-height: 82px;
    border-radius: 14px;
    background: #e9f7ef;
    color: #082f24;
}

.public-inspection-score strong {
    font-size: 1.8rem;
    line-height: 1;
}

.public-inspection-cards,
.public-category-grid,
.public-visual-grid,
.public-notes-grid {
    display: grid;
    gap: 12px;
}

.public-inspection-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-category-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
}

.public-mini-card,
.public-category-card,
.public-visual-card,
.public-notes-grid article {
    border: 1px solid rgba(8, 47, 36, .08);
    border-radius: 14px;
    background: #fbfdfc;
    padding: 13px;
}

.public-summary-section {
    display: grid;
    gap: 14px;
}

.public-category-card {
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(8, 47, 36, .035);
}

.public-mini-card-wide {
    grid-column: span 2;
}

.public-mini-card > span,
.public-field-row > span,
.public-notes-grid span {
    display: block;
    margin-bottom: 7px;
    color: #6e8178;
    font-size: .8rem;
    font-weight: 800;
}

.public-category-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: start;
    margin-bottom: 10px;
}

.public-category-head h3 {
    margin: 0;
    color: #082f24;
    font-size: 1rem;
}

.public-category-head > span {
    border-radius: 999px;
    background: #eef8f2;
    color: #0d6848;
    padding: 5px 8px;
    font-size: .72rem;
    font-weight: 850;
    white-space: nowrap;
}

.public-field-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

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

.public-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    border-top: 1px solid rgba(8, 47, 36, .07);
    min-height: 52px;
    padding: 10px 0;
}

.public-visual-card {
    display: grid;
    gap: 9px;
}

.public-visual-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 18px;
    align-items: stretch;
}

.public-visual-map-card {
    display: grid;
    align-content: center;
    gap: 0;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(8, 47, 36, .08);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.public-visual-list {
    display: grid;
    gap: 10px;
    align-content: start;
    padding-left: 18px;
    border-left: 1px solid rgba(8, 47, 36, .1);
}

.public-visual-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.public-visual-card span {
    color: #61736b;
    font-size: .86rem;
    font-weight: 800;
}

.visual-car-map {
    width: 100%;
    height: auto;
    display: block;
}

.visual-car-map .vehicle-shape,
.visual-car-map .vehicle-zone {
    fill: #c3c8d0;
    stroke: #aeb5be;
    stroke-width: 1.4;
}

.visual-car-map .vehicle-accent {
    fill: #b79ae8;
    stroke: #9d7bd8;
}

.visual-car-map .vehicle-window,
.visual-car-map .vehicle-glass {
    fill: #91b3e5;
    stroke: #9fb1c9;
    stroke-width: 1.2;
}

.visual-car-map .vehicle-detail {
    fill: none;
    stroke: #eef2f5;
    stroke-width: 2;
}

.visual-car-map circle.vehicle-zone {
    fill: transparent;
    stroke: transparent;
}

.visual-car-map .vehicle-zone.has-minor {
    fill: #b79ae8;
    stroke: #8b5cf6;
}

.visual-car-map .vehicle-zone.has-medium {
    fill: #f3b351;
    stroke: #d88712;
}

.visual-car-map .vehicle-zone.has-important {
    fill: #df5b57;
    stroke: #b92626;
}

.visual-car-map .wheel-fill {
    fill: #1f2733;
}

.visual-car-map .wheel-hole {
    fill: #fff;
}

.visual-car-map .visual-map-caption rect {
    fill: #f2f5f4;
}

.visual-car-map .visual-map-caption text {
    fill: #66736d;
    font-size: 14px;
    font-style: italic;
}

.visual-car-map-reference .reference-click-zone {
    fill: transparent;
    stroke: transparent;
    stroke-width: 2;
}

.visual-car-map-reference .reference-click-zone.has-minor,
.visual-car-map-reference .reference-click-zone.is-minor {
    fill: rgba(139, 92, 246, .42);
    stroke: rgba(139, 92, 246, .9);
}

.visual-car-map-reference .reference-click-zone.has-medium,
.visual-car-map-reference .reference-click-zone.is-medium {
    fill: rgba(242, 165, 26, .45);
    stroke: rgba(216, 135, 18, .9);
}

.visual-car-map-reference .reference-click-zone.has-important,
.visual-car-map-reference .reference-click-zone.is-important {
    fill: rgba(223, 75, 63, .42);
    stroke: rgba(185, 38, 38, .9);
}

.public-inspection .report-status {
    padding: 6px 9px;
    font-size: .76rem;
}

.public-inspection .report-status span {
    width: 16px;
    height: 16px;
}

.public-inspection .report-progress-top {
    display: grid;
    gap: 5px;
    margin-bottom: 7px;
    font-size: .8rem;
}

.public-inspection .report-progress-top > span {
    display: none;
}

.public-inspection .report-progress-track {
    height: 7px;
}

/* Compact report presentation when embedded in a vehicle detail page. */
.car-report-shell .public-inspection {
    gap: 10px;
}

.car-report-shell .public-summary-section {
    gap: 10px;
}

.car-report-shell .report-section-heading {
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.car-report-shell .report-section-heading::after {
    width: 58px;
    height: 2px;
}

.car-report-shell .public-inspection-overview,
.car-report-shell .public-compact-block,
.car-report-shell .public-category-card {
    padding: 12px;
    border-radius: 12px;
}

.car-report-shell .public-inspection-cards,
.car-report-shell .public-category-grid {
    gap: 8px;
}

.car-report-shell .public-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.car-report-shell .public-category-grid > .public-compact-block {
    grid-column: 1 / -1;
}

.car-report-shell .public-category-card.is-expanded {
    grid-column: 1 / -1;
}

.car-report-shell .public-category-card {
    box-shadow: none;
}

.car-report-shell .public-category-head {
    margin-bottom: 6px;
}

.car-report-shell .public-field-list {
    gap: 0 14px;
}

.car-report-shell .public-field-row {
    min-height: 40px;
    padding: 5px 0;
}

.car-report-shell .public-mini-card {
    padding: 12px;
    border-radius: 10px;
}

.car-report-shell .report-status {
    gap: 6px;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid rgba(8, 47, 36, .08);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .01em;
}

.car-report-shell .report-status span {
    width: 14px;
    height: 14px;
    font-size: .64rem;
    background: rgba(255, 255, 255, .82);
}

.car-report-shell .report-status.is-good { border-color: rgba(7, 91, 59, .16); }
.car-report-shell .report-status.is-warning { border-color: rgba(138, 84, 0, .16); }
.car-report-shell .report-status.is-danger { border-color: rgba(159, 30, 30, .16); }
.car-report-shell .report-status.is-cosmetic { border-color: rgba(91, 59, 137, .16); }

@media (min-width: 1180px) {
    .car-report-shell .public-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .car-report-shell .public-field-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .car-report-shell .public-category-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .report-hero,
    .report-essential,
    .report-conclusion {
        grid-template-columns: 1fr;
    }

    .report-hero-side {
        justify-items: start;
    }

    .report-legend,
    .report-photo-grid,
    .public-inspection-cards,
    .public-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .report-public-page {
        padding: 28px 0 48px;
    }

    .report-hero,
    .report-essential,
    .report-conclusion,
    .report-section-card,
    .report-legend {
        border-radius: 16px;
        padding: 18px;
    }

    .report-info-grid,
    .report-check-grid,
    .report-summary-grid,
    .report-notes-grid,
    .report-visual-grid,
    .report-photo-grid,
    .report-legend,
    .public-inspection-overview,
    .public-inspection-cards,
    .public-category-grid,
    .public-field-list,
    .public-visual-layout,
    .public-visual-grid,
    .public-notes-grid {
        grid-template-columns: 1fr;
    }

    .public-visual-list {
        padding-left: 0;
        border-left: 0;
    }

    .public-mini-card-wide {
        grid-column: auto;
    }

    .public-field-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .report-section-title,
    .report-item-head,
    .report-progress-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-actions .btn,
    .section-headline .btn {
        width: 100%;
        justify-content: center;
    }
}
