/* Vehicle bookmarks beside an open, unframed workspace. */
#app .header { height: 0; position: relative; z-index: 5; }
#app .header #sound { position: absolute; top: 14px; right: 0; }
#app .modes { height: 76px; margin: 0; align-items: center; padding: 0 54px; }
#app .workshop { position: relative; padding-left: 72px; height: calc(100svh - 122px); }
#app .stage-shell { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
#app .stage-shell::after { content: none; }
#app .garage {
  position: absolute; top: 22px; left: 0; width: 64px;
  display: flex; flex-direction: column; gap: 10px;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
}
#app .garage button {
  position: relative; width: 64px; min-width: 64px; height: 68px; padding: 12px 10px;
  border: 0; border-radius: 12px 0 0 12px; background: #e9e9df; box-shadow: none;
  transition: background .18s;
}
#app .garage button::before {
  content: ''; position: absolute; top: 14px; bottom: 14px; left: 0;
  width: 3px; border-radius: 0 3px 3px 0; background: transparent;
}
#app .garage button[aria-pressed=true] { background: #dee9df; }
#app .garage button[aria-pressed=true]::before { background: #658c76; }
#app .garage button:hover:not(:disabled) { background: #e1e6d9; filter: none; }
#app .garage button .vehicle-art { transform: scale(1.1); }
#app .garage button { justify-content: center; padding: 4px; }
#app .garage .vehicle-picture { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
@media(max-width:1100px) {
  #app .workshop { padding-left: 62px; }
  #app .garage, #app .garage button { width: 54px; min-width: 54px; }
  #app .garage button { height: 62px; padding: 3px; }
  #app .garage button .vehicle-art { transform: scale(.98); }
}
@media(max-width:760px) {
  #app .modes { height: 70px; padding: 0 38px 0 0; gap: 2px; }
  #app .modes button { height: 44px; gap: 5px; font-size: 12px; }
  #app .header #sound { top: 12px; right: -4px; width: 36px; height: 44px; }
  #app .workshop { padding-left: 0; height: auto; }
  #app .stage-shell { margin-left: 48px; }
  #app .garage { z-index: 5; top: 15px; width: 44px; }
  #app .garage button { width: 44px; min-width: 44px; height: 56px; padding: 2px; border-radius: 10px 0 0 10px; }
  #app .garage button .vehicle-art { transform: scale(.86); }
  #app .bench { grid-column: 1/-1; }
  #app .stage-top { left: 12px; right: 12px; }
  #app .stage-bottom { left: 8px; right: 8px; }
  #app .view-tools>[data-view] { padding: 0 10px; }
}
@media(prefers-reduced-motion:reduce) { #app .garage button { transition: none; } }

/* Optional joint detail uses the existing instruction picture, not another panel. */
#reference-wrap { padding-top: 46px; }
.reference-caption { top: 10px; max-width: calc(100% - 103px); line-height: 1.4; }
#joint-view { position: absolute; top: 3px; right: 5px; display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 84px; height: 40px; border-radius: 10px; background: #fffdf3; border: 1px solid #cbd8c6; font-size: 12px; font-weight: 600; }
#joint-view svg { width: 18px; height: 18px; }
#joint-view[aria-pressed=true] { background: #d5e6d7; border-color: #87a58f; }
#joint-view:disabled { opacity: .32; }
