.vin-header .wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.vin-header img { width: clamp(145px, 22vw, 220px); }
.vin-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .35rem 1rem; }
.vin-nav .language-switch { display: inline-flex; align-items: center; min-height: 44px; padding: .25rem .85rem; border: 1px solid var(--forest); border-radius: .35rem; text-decoration: none; font-weight: 650; }
.vin-nav .language-switch:hover, .vin-nav .language-switch:focus-visible { background: var(--sage); }
@media (max-width: 32rem) { .vin-header .wrap { flex-wrap: wrap; gap: .25rem .75rem; padding-block: .4rem; } .vin-nav { margin-left: auto; } }
.home, #report a, footer a { font-weight: 600; text-underline-offset: .22em; }
.vin-wrap { max-width: 60rem; margin: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.search-panel { color: #fbfcf6; background: var(--forest); padding-block: clamp(2.8rem, 6vw, 5rem); }
h1 { font: italic 400 clamp(3.3rem, 8vw, 5rem)/1.05 var(--serif); letter-spacing: -.045em; }
.intro { max-width: 41rem; margin-top: 1rem; font-size: 1.15rem; line-height: 1.55; }
#lookup { margin-top: 1.75rem; max-width: 44rem; }
label { display: block; margin-bottom: .5rem; font-weight: 600; }
.entry { display: flex; gap: .7rem; }
input, button { min-height: 3.4rem; border-radius: .35rem; font-size: 1rem; }
input { padding: .75rem 1rem; flex: 1; min-width: 0; font: 600 1.05rem/1.4 ui-monospace, monospace; color: var(--ink); border: 1px solid var(--rule); }
input:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
button { background: var(--lime); color: var(--forest); padding: .75rem 1.35rem; border: 0; cursor: pointer; font-weight: 700; }
button:hover { background: #f0ffd2; }
#error:not(:empty) { color: #ffe2af; margin: .7rem 0; font-weight: 650; }
.report-wrap { padding-block: 1.6rem 3rem; }
#status { line-height: 1.6; color: var(--muted); }
#report { margin-top: 1.4rem; }
#queried { font: 600 1rem/1.6 ui-monospace, monospace; color: var(--muted); letter-spacing: .04em; }
#vehicle { margin: .4rem 0 1.2rem; font-size: clamp(2.1rem, 4vw, 3rem); }
.subheading { margin-top: 2rem; font-size: 1.7rem; letter-spacing: -.04em; }
.support, details p { margin-top: .65rem; line-height: 1.55; color: var(--muted); }
.spec-grid { margin: 0 0 .8rem; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap: 1rem; background: var(--sage); padding: 1.25rem; border-radius: .35rem; }
dt { font-size: .88rem; color: var(--muted); } dd { font-weight: 650; margin: .3rem 0 0; }
.finding { border-top: 1px solid var(--rule); padding: 1.05rem 0; }
#findings, #checks { margin-top: 1rem; }
.finding h3 { font-size: 1.06rem; line-height: 1.4; }
.finding p, .record, #specs > p, #checks p, details li { margin: .4rem 0; line-height: 1.55; overflow-wrap: anywhere; }
.record a { display: inline-block; margin-right: .4rem; }
.muted { color: var(--muted); }
details { margin-top: 1.4rem; padding: 1rem; background: var(--sage); border-radius: .35rem; }
summary { cursor: pointer; font-weight: 650; }
details ul { padding-left: 1.2rem; }
[hidden] { display: none !important; }
@media (max-width: 34rem) { .entry { flex-direction: column; } .entry button { align-self: stretch; } .vin-header .wrap { min-height: 62px; } }
#scan { margin-top: 1rem; max-width: 44rem; }
#scan p { margin: .6rem 0; }
#scan .secondary { border: 1px solid currentColor; color: #fff; background: transparent; }
#scan button, #search-history button { min-height: 44px; font-size: 1rem; padding: .5rem .9rem; }
#scan button:disabled { opacity: .6; cursor: wait; }
#photo-editor, #photo-review { margin-block: 1rem; }
.photo-stage { display: table; position: relative; max-width: 100%; background: #17231f; }
#photo-preview { display: block; width: auto; height: auto; max-width: 100%; max-height: 50vh; touch-action: none; cursor: crosshair; }
#crop-box { position: absolute; border: 2px solid white; outline: 2px solid #244d39; background: rgba(160,255,100,.12); pointer-events: none; }
.scan-actions, .history-actions, #vin-choices { display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; margin: .75rem 0; }
.scan-actions label { display: flex; align-items: center; gap: .4rem; margin: 0; }
.scan-actions input { min-height: 1.25rem; width: 1.25rem; }
#vin-digits { display: grid; grid-template-columns: repeat(9,minmax(0,2.85rem)); gap: .25rem; margin: .8rem 0; }
#vin-digits input { width: 100%; text-align: center; min-height: 44px; padding: .2rem 0; }
#vin-digits input:invalid { border: 2px solid #bd6720; }
#search-history { margin: 0 0 1.25rem; }
#past-list article { border-top: 1px solid var(--rule); margin-top: .85rem; padding: 1rem 0 .25rem; }
#past-list h3, #past-list code { overflow-wrap: anywhere; }
#search-history button { color: var(--forest); background: #fff; border: 1px solid var(--forest); }
#search-history button:disabled { opacity: .5; }
#past-list details { padding: 0; margin: .5rem 0; }
#past-list input { max-width: 100%; width: min(100%,31rem); }
#past-list label { margin-top: .5rem; }
#history-feedback:empty, #scan-status:empty { display: none; }

#mileage-warning { margin: 0 0 1.25rem; padding: 1rem 1.25rem; border-left: .3rem solid #a35412; border-radius: .25rem; background: #fff3da; color: #452c10; overflow-wrap: anywhere; }
#mileage-warning h3 { margin: 0; font-size: 1rem; font-weight: 500; }
#mileage-warning .mileage-delta { margin: .25rem 0 .65rem; font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; }
#mileage-warning ul { padding-left: 1.2rem; margin: .5rem 0; }
#mileage-warning li, #mileage-warning p { line-height: 1.5; }
#mileage-warning li + li { margin-top: .3rem; }
