#garage .jdm-screen {
  height: auto; grid-template-rows: auto auto;
  grid-template-columns: minmax(0,1.65fr) minmax(245px,.72fr); align-items: start;
}
#garage .jdm-visual { min-width: 0; height: auto; display: flex; flex-direction: column; gap: .45rem; }
#garage .jdm-image-frame {
  flex: none; width: 100%; height: auto; aspect-ratio: 3 / 2; touch-action: pan-y pinch-zoom;
}
#jdmLightboxCanvas { touch-action: pan-y pinch-zoom; }
#garage .jdm-view-face, #jdmLightbox .jdm-lightbox-image {
  background-size: var(--part-image-size,contain) !important;
  background-position: var(--part-image-pos,center center) !important;
}
#garage .jdm-visual .jdm-callout {
  position: relative !important; inset: auto !important; width: 100% !important; min-height: 0;
  display: flex; flex-direction: row; flex-wrap: wrap; gap: .15rem .7rem;
  padding: .5rem .7rem; align-items: baseline; box-sizing: border-box;
}
#garage .jdm-visual .jdm-callout::before { display:none; }
#garage .jdm-visual .jdm-callout-tag { font: 700 .74rem/1.3 ui-monospace,Consolas,monospace; }
#garage .jdm-visual .jdm-callout strong { font: 720 1rem/1.25 system-ui,sans-serif; margin:0; }
#garage .jdm-visual .jdm-callout small { font: 450 .89rem/1.3 system-ui,sans-serif; }
#garage .jdm-facts {
  display: flex; flex-direction: column; justify-content: flex-start; align-self: stretch;
  min-height: 0; height: auto; gap: .55rem;
}
#garage .jdm-facts h4 { height:auto; min-height:0; max-height:none; line-height:1.55; }
#garage .jdm-nav { margin-top:auto; }
#garage .jdm-guide-link { align-self:flex-start; color:#a4e7dc; text-decoration:underline; text-underline-offset:.2em; font:650 .95rem/1.45 system-ui,sans-serif; padding:.4rem .05rem; }
#garage .jdm-guide-link:focus-visible { outline:2px solid #ffe9a4; outline-offset:2px; }
#garage .jdm-source { grid-column:1/-1; }
#garage .jdm-hotspots { position:absolute; inset:0; z-index:8; pointer-events:none; }
#garage .jdm-part-pin {
  position:absolute; transform:translate(-50%,-50%); width:44px; height:44px; min-width:0; min-height:0;
  margin:0; padding:0; border:0; border-radius:50%; pointer-events:auto; background:transparent;
  box-shadow:none; cursor:zoom-in; touch-action:manipulation; display:grid; place-items:center;
}
#garage .jdm-part-pin::before {
  content:'+'; display:grid; place-items:center; box-sizing:border-box; width:1.52rem; height:1.52rem;
  border:1px solid #e6fff3; border-radius:50%; background:#104345e6; color:#ecffcf;
  font:600 1.28rem/1 system-ui,sans-serif; box-shadow:0 0 0 3px #061b20a8,0 0 7px #52dcb3;
}
#garage .jdm-part-pin[aria-pressed=true] { cursor:zoom-out; }
#garage .jdm-part-pin[aria-pressed=true]::before { content:'−'; color:#21180a; border-color:#fff4cb; background:#f0bc66; }
#garage .jdm-part-pin:focus-visible, #garage .jdm-image-frame:focus-visible, #jdmLightboxCanvas:focus-visible,
#garage .jdm-inspect-dock button:focus-visible { outline:2px solid #ffe9a4; outline-offset:1px; }
.jdm-inspect-dock {
  display:grid; gap:.45rem; background:#102028; padding:.55rem .65rem; border:1px solid #385964;
  color:#e4f1ed; font: 500 .89rem/1.35 system-ui,sans-serif; letter-spacing:normal; text-transform:none;
}
.jdm-selector-line { display:grid; grid-template-columns:3.2rem minmax(0,1fr); align-items:baseline; gap:.35rem; min-width:0; }
.jdm-selector-line > span { font:700 .74rem/1.2 ui-monospace,Consolas,monospace; color:#8ecbc9; }
#garage .jdm-inspect-views, #garage .jdm-part-choices {
  display:flex; align-items:stretch; gap:.25rem; flex-wrap:wrap; margin:0; height:auto; min-height:0; min-width:0; overflow:visible;
}
#garage .jdm-inspect-views button, #garage .jdm-part-choices button, .jdm-inspect-note button {
  appearance:none; cursor:pointer; width:auto; min-width:0; height:auto; min-height:36px;
  padding:.3rem .54rem; margin:0; border:1px solid #45636b; border-radius:3px;
  background:#172d36; color:#d1e4e4; text-transform:none; white-space:normal; letter-spacing:normal;
  box-shadow:none; text-shadow:none; font:600 .82rem/1.25 system-ui,sans-serif;
}
#garage .jdm-inspect-views button[aria-pressed=true] { color:#101e20; border-color:#9de7d9; background:#96d8cc; }
#garage .jdm-part-choices button[aria-pressed=true] { background:#f0c577; color:#202429; border-color:#ffe2a2; }
.jdm-inspect-note { display:flex; gap:.7rem; align-items:center; justify-content:space-between; border-top:1px solid #3f5960; padding-top:.45rem; }
.jdm-inspect-note[hidden] { display:none; }
#garage .jdm-inspect-note p { min-width:0; margin:0; color:#cce1dc; font:400 .89rem/1.42 system-ui,sans-serif; }
.jdm-inspect-note strong { display:block; color:#ffda94; font-size:.92rem; }
.jdm-inspect-note button { flex:none; color:#fff0cd; min-height:38px; }
#garage .jdm-lightbox-footer { min-width:0; }
#jdmLightbox .jdm-lightbox-readout { display:none; }
#jdmLightbox .jdm-inspect-dock { margin:0; }
#jdmLightbox .jdm-lightbox-controls { grid-template-columns:repeat(5,minmax(0,1fr)); }
#garage .jdm-lightbox-shell { grid-template-rows:auto minmax(0,1fr) auto; }
#garage .jdm-lightbox-shell>.ship-telemetry { display:none; }
@media(max-width:900px) {
  #garage .jdm-screen { grid-template-columns:1fr; grid-template-rows:auto; }
}
@media(max-width:650px) {
  #garage .jdm-heading p { font:400 .92rem/1.4 system-ui,sans-serif; }
  #garage .jdm-stamp { font:700 .67rem/1.3 ui-monospace,Consolas,monospace; }
  #garage .jdm-facts .jdm-nav { margin-top:.25rem; }
  .jdm-selector-line { grid-template-columns:1fr; gap:.18rem; }
  #garage .jdm-inspect-views, #garage .jdm-part-choices { flex-wrap:nowrap; overflow:auto; scrollbar-width:thin; }
  #garage .jdm-inspect-views button, #garage .jdm-part-choices button { flex:0 0 auto; min-height:40px; }
  .jdm-inspect-dock { padding:.45rem; gap:.38rem; }
  .jdm-inspect-note { gap:.45rem; }
  #garage .jdm-facts h4 { font-size:1rem; }
  #jdmLightbox .jdm-lightbox-shell { gap:.35rem; }
  #jdmLightbox .jdm-lightbox-canvas { width:min(100%,calc((100dvh - 365px)*1.5)); min-width:min(100%,235px); }
  #jdmLightbox .jdm-inspect-dock { gap:.28rem; }
}
@media(orientation:landscape) and (max-height:600px) {
  #garage .jdm-lightbox-shell { display:grid; grid-template-rows:auto minmax(0,1fr); grid-template-columns:minmax(0,1.5fr) minmax(200px,.8fr); gap:.3rem; }
  #garage .jdm-lightbox-header { grid-column:1/-1; }
  #garage .jdm-lightbox-stage { grid-column:1; grid-row:2; }
  #garage .jdm-lightbox-canvas { width:100%; height:100%; aspect-ratio:auto; }
  #garage .jdm-lightbox-footer { grid-column:2; grid-row:2; display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:.3rem; overflow:auto; }
  #jdmLightbox .jdm-selector-line { display:block; }
  #jdmLightbox .jdm-inspect-views, #jdmLightbox .jdm-part-choices { flex-wrap:wrap; }
  #jdmLightbox .jdm-inspect-dock { padding:.3rem; }
  #jdmLightbox .jdm-inspect-dock button { min-height:32px; padding:.25rem .4rem; font-size:.76rem; }
  #jdmLightbox .jdm-lightbox-controls { grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:auto; }
}
@media(prefers-reduced-motion:reduce) {
  #garage .jdm-connector-flow, #garage .jdm-lightbox-connector-flow, #garage .jdm-turntable { animation:none !important; }
  #garage .jdm-part-pin, #garage .jdm-inspect-dock * { transition:none !important; }
}
#jdmQuarterBuild { display:block; width:fit-content; margin-top:.3rem; color:#9defdc; text-decoration:underline; text-underline-offset:.15em; }
#jdmQuarterBuild[hidden] { display:none; }

.scanner-build-card, .scanner-film-shortcut { display: none; }
#garage[data-scanner-car="350z"] .scanner-channel { display: none; }
#garage[data-scanner-car="350z"] .scanner-build-card {
  display: flex; align-items: center; gap: clamp(.8rem, 2.8vw, 2rem);
  margin-top: 1rem; padding: .75rem; color: #ecf7f3;
  background: #101c21; border: 1px solid #527775;
  font-family: system-ui, sans-serif; text-decoration: none;
}
.scanner-build-card img {
  width: clamp(6rem, 21vw, 13rem); height: auto; aspect-ratio: 16/9;
  object-fit: cover; border-radius: .15rem;
}
.scanner-build-card > span { display: grid; gap: .25rem; text-align: left; }
.scanner-build-card small { color: #ace1d8; font-size: .83rem; }
.scanner-build-card strong { font-size: clamp(1rem, 2.8vw, 1.5rem); line-height: 1.2; }
.scanner-build-card > span > span { color: #fbd486; text-decoration: underline; text-underline-offset: .19em; font-size: .93rem; }
#garage[data-scanner-car="350z"] .scanner-film-shortcut {
  display: inline-flex; align-items: center; flex: none; margin-left: auto;
  color: #ffdf98; min-height: 2.5rem; font: 650 .87rem/1.2 system-ui, sans-serif;
  text-decoration: underline; text-underline-offset: .18em;
}
