.anatomy { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.stage { position: relative; min-height: 560px; height: calc(100vh - 230px); max-height: 760px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2);
  background: radial-gradient(70% 60% at 50% 55%, var(--stage-1), var(--stage-2)); }
.stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(60% 60% at 50% 55%, #000, transparent 90%); opacity: .5; }
.viewer-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; z-index: 1; }
.viewer-markers { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.marker { position: absolute; left: 0; top: 0; width: 22px; height: 22px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; font-weight: 800; background: var(--accent); color: var(--accent-ink); border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .45); transition: opacity .15s; will-change: transform; }
.marker:hover, .marker.active { background: #ffd24a; color: #2b1d00; z-index: 5; box-shadow: 0 0 0 5px rgba(255, 210, 74, .35), 0 2px 10px rgba(0, 0, 0, .45); }
.stage-hud { position: absolute; z-index: 3; left: 14px; right: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; pointer-events: none; }
.stage-hud > * { pointer-events: auto; } .stage-top { top: 14px; } .stage-top2 { top: 62px; } .stage-bottom { bottom: 14px; justify-content: space-between; }
.glass { background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--line-2); border-radius: 14px; padding: 8px 10px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line-2); }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: .82rem; color: var(--muted); }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.swatches { display: inline-flex; gap: 6px; } .swatches button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); padding: 0; } .swatches button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.explode { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted); } .explode input { width: 130px; padding: 0; accent-color: var(--accent); }
.legend { display: flex; gap: 12px; font-size: .74rem; color: var(--muted); align-items: center; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.hint { position: absolute; z-index: 3; bottom: 62px; left: 50%; transform: translateX(-50%); font-size: .78rem; color: var(--muted); pointer-events: none; padding: 5px 12px; border-radius: 99px; background: color-mix(in srgb, var(--bg) 60%, transparent); }

.side { display: grid; gap: 14px; align-content: start; }
.vehicle-pick { display: grid; gap: 10px; }
.part-detail { display: grid; gap: 10px; } .part-detail h3 { margin: 0; } .part-detail .pn { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #ffd24a; color: #2b1d00; font-weight: 800; font-size: .8rem; margin-right: 8px; }
.part-list { display: grid; gap: 4px; max-height: 340px; overflow: auto; padding-right: 4px; }
.part-row { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; }
.part-row:hover { background: var(--surface-2); } .part-row.active { background: color-mix(in srgb, #ffd24a 18%, transparent); border-color: #ffd24a; }
.part-row .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; font-weight: 800; background: var(--accent); color: var(--accent-ink); flex: none; }
.part-row span.t { flex: 1; font-size: .88rem; } .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; } .dot.good { background: var(--good); } .dot.conditional { background: var(--warn); } .dot.restricted { background: var(--bad); }
.body-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: .78rem; font-weight: 600; }
.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.vehicle-card { text-align: left; display: grid; gap: 6px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: .15s; }
.vehicle-card:hover { border-color: var(--accent); transform: translateY(-2px); } .vehicle-card b { font-family: var(--font-display); font-size: 1.05rem; }
@media (min-width: 1101px) { .stage { position: sticky; top: 88px; } }
@media (max-width: 1100px) { .anatomy { grid-template-columns: 1fr; } .stage { height: 62vh; min-height: 440px; } }
@media (max-width: 560px) { .stage-hud .legend, .hint { display: none; } .seg button { padding: 7px 9px; } .marker { width: 17px; height: 17px; font-size: .56rem; border-width: 1.5px; } }

.stage[data-env="sunset"] { background: radial-gradient(75% 65% at 50% 62%, #5a3452, #1b1224 70%, #0d0a16); }
.stage[data-env="night"] { background: radial-gradient(70% 60% at 50% 60%, #0f1a33, #04060d 75%); }
@media (max-width: 560px) { .stage-top2 { top: 108px; } }

/* ── 2D schematic ─────────────────────────────────────────────────────────────────────────── */
.stage2d { background: radial-gradient(70% 60% at 50% 55%, color-mix(in srgb, var(--stage-1) 70%, var(--bg)), var(--bg)); }
.stage2d #svg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; display: block; z-index: 1; }
.stage2d #svg:active { cursor: grabbing; }
.stage2d .stage-hud { z-index: 3; } .stage2d .glass .btn { border: 0; }
.stage2d .btn[aria-pressed="true"], .btn.sm.on { background: var(--accent); color: var(--accent-ink); }
.p { cursor: pointer; }
.p * { fill: var(--c); fill-opacity: .16; stroke: var(--c); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.p .pipe { fill: none; stroke-width: 3; } .p .tire { fill: none; stroke-opacity: .38; vector-effect: none; }
.p.thru * { pointer-events: none; } .p.thru .hit { pointer-events: stroke; } .p.thru .tire { pointer-events: stroke; }
.p:hover *, .p.hv * { fill-opacity: .34; }
.p.sel * { stroke: #ffd24a; fill: #ffd24a; fill-opacity: .28; } .p.sel .tire { fill: none; stroke-opacity: .55; }
.p.dim { opacity: .14; pointer-events: none; } .p.off { display: none; }
.lab { opacity: 0; pointer-events: none; transition: opacity .15s; } #svg.all .lab:not([style*="none"]) .nm { display: none; }
#svg.all .lab, .lab.on { opacity: 1; } .lab.on .nm { display: inline !important; }
.lab text.nm { font-size: 13px; font-weight: 600; fill: var(--text); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.lab circle { stroke: var(--bg); stroke-width: 2px; }
