.garage-page{height:auto;min-height:100dvh;background:#091822}.garage-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px max(24px,4vw);border-bottom:1px solid #24404c}.garage-header>a{text-decoration:none;font-size:30px;font-weight:900}.garage-header>a>span{color:#b0f1c9}.garage-header small{font-size:11px;letter-spacing:1.5px}.garage-header>div{display:flex;flex-direction:column;gap:2px;margin-right:auto}.garage-header>div>strong{font-size:18px}.garage-header>label{font-size:13px;white-space:nowrap}.garage-header select{background:#19313a;color:#eff4e7;border:1px solid #708d89;border-radius:6px;padding:9px}.garage-layout{max-width:1600px;margin:auto;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(340px,.8fr);gap:26px;padding:26px max(24px,4vw);align-items:start}.garage-display{position:sticky;top:20px;min-width:0;border:1px solid #36505b;border-radius:14px;overflow:hidden;background:#0c202c}.garage-display #garage-world{width:100%;height:clamp(420px,65vh,800px);touch-action:pan-y}.garage-display canvas{display:block;user-select:none;-webkit-user-select:none}.garage-caption{padding:13px 16px;background:#10242c;display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px}.garage-caption>span:first-child{font-weight:750;font-size:16px}.garage-caption>span:last-child{font-size:11px;color:#adc0c4}.garage-panel{min-width:0}.garage-panel h1{font-size:25px;margin:0 0 14px}.garage-car-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.garage-car-list button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:6px;padding:11px;min-height:80px}.garage-car-list button[aria-pressed=true]{background:#31594e;border-color:#b0f1c9}.garage-car-list i{width:22px;height:8px;border:1px solid #ffffff88;border-radius:2px}.garage-car-list strong{font-size:14px}.garage-car-list small{font-size:11px;color:#c4d3ca}#garage-status{font-size:12px;min-height:20px;color:#c2d2c5;margin:10px 0}.garage-panel .performance-panel{margin:12px 0 20px}.garage-panel .performance-panel p{font-size:14px}.garage-panel .performance-panel>small{font-size:12px}.garage-modes{border:0;padding:0;margin:15px 0 20px;display:flex;flex-direction:column;gap:8px}.garage-modes legend{font-size:16px;margin-bottom:10px;font-weight:700}.garage-modes label{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid #365453;border-radius:8px;cursor:pointer;background:#10282e}.garage-modes input{accent-color:#b0f1c9;width:18px;height:18px}.garage-modes span{display:flex;flex-direction:column;gap:3px}.garage-modes strong{font-size:14px}.garage-modes small{font-size:12px;color:#b7cac0}.garage-footnote{font-size:12px;line-height:1.8;color:#a8bec1}.garage-footnote a{color:#b0f1c9}#garage-error{position:absolute;inset:0 0 55px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;background:#112932e8}#garage-error strong{font-size:22px}#garage-error p{font-size:15px;max-width:350px;line-height:1.8}#garage-error button{background:#365349}
@media(max-width:850px){.garage-layout{grid-template-columns:1fr;padding:16px;gap:20px}.garage-display{position:relative;top:auto}.garage-display #garage-world{height:clamp(260px,46vh,450px)}.garage-header{padding:12px 16px;gap:12px}.garage-header>a small{display:none}.garage-header>div>strong{font-size:16px}.garage-panel h1{font-size:22px}.garage-caption{padding:10px 12px}.garage-caption>span:last-child{font-size:10px}.garage-car-list button{min-height:74px}.garage-header>label{font-size:12px}}
@media(max-width:360px){.garage-layout{padding:10px}.garage-header>div>small{font-size:9px}.garage-header{padding:10px}.garage-header select{padding:7px}.garage-display #garage-world{height:260px}.garage-car-list strong{font-size:13px}}
@media(max-height:500px) and (min-width:600px){.garage-layout{grid-template-columns:minmax(0,1.2fr) minmax(300px,1fr);padding:14px;gap:14px}.garage-display{position:sticky;top:12px}.garage-display #garage-world{height:280px}.garage-header{padding:10px 18px}.garage-panel h1{font-size:20px}}

.garage-display[data-loading=true] canvas{visibility:hidden}

/* Never redraw or expose an unloaded inspection scene while a car is loading. */
.garage-display[data-loading="true"] #garage-world{visibility:hidden}

.garage-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.garage-modes legend{grid-column:1/-1}.garage-modes label{min-width:0;transition:border-color .18s,background .18s}.garage-modes label:has(input:checked){border-color:#b0f1c9;background:#254a40}.garage-modes label:focus-within{outline:2px solid #d8ffe4;outline-offset:2px}.garage-panel #garage-go{width:100%}.garage-details{margin:18px 0}.garage-details summary{cursor:pointer;padding:12px 0;color:#d9efe0;font-weight:700}.garage-details summary:focus-visible{outline:2px solid #d8ffe4;outline-offset:3px}.garage-details .performance-panel{margin:4px 0 0}@media(max-width:360px){.garage-modes{grid-template-columns:1fr}}
