/* Gear Up: the workshop panel beside the dockside canvas (stacked below it on narrow screens; on phones the stage
   buttons, part tray and readout carry the rig). Only var(--ts-*) colours and fonts. */
.gu-dock { display: grid; gap: 8px; font: 16px/1.4 var(--ts-font); color: var(--ts-ink); }
.gu-step { display: grid; gap: 6px; padding: 8px 10px 10px; border: 2px solid var(--ts-line); border-radius: 10px; background: var(--ts-panel-2); }
.gu-step[hidden] { display: none; }
.gu-step h2 { margin: 0; font: 800 18px var(--ts-display, var(--ts-font)); color: var(--ts-accent); }
.gu-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; }
.gu-stage { display: grid; gap: 0; min-height: 52px; padding: 4px; text-align: center; line-height: 1.2; }
.gu-stage strong { font-size: 18px; }
.gu-stage .gu-fitted { font-size: 16px; color: var(--ts-muted); }
.gu-tray { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.gu-part, .gu-option { min-height: 46px; padding: 4px 8px; font-size: 16px; line-height: 1.2; }
.gu-geo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.gu-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gu-option { text-align: left; }
.gu-stage[aria-pressed=true] { border-color: var(--ts-focus); box-shadow: inset 0 0 0 2px var(--ts-focus); }
.gu-part[aria-pressed=true], .gu-option[aria-pressed=true] { border-color: var(--ts-good); box-shadow: inset 0 0 0 2px var(--ts-good); }
.gu-part[aria-pressed=true]::before, .gu-option[aria-pressed=true]::before { content: "✓ "; }
.gu-part.gu-used { border-style: dashed; color: var(--ts-muted); }
.gu-part.gu-cursor { outline: 2px dashed var(--ts-accent); outline-offset: 1px; }
.gu-empty { margin: 0; color: var(--ts-muted); }
.gu-remove { min-height: 44px; padding: 4px 12px; font-size: 16px; }
.gu-run { width: 100%; min-height: 52px; font-size: 18px; }
.gu-status { margin: 0; padding: 8px 10px; border-left: 4px solid var(--ts-accent); background: var(--ts-panel-2); border-radius: 0 8px 8px 0; }
.gu-readout { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; padding: 8px 10px; border: 2px solid var(--ts-line); border-radius: 10px; font: 16px/1.4 var(--ts-mono); }
.gu-readout dt { color: var(--ts-muted); }
.gu-readout dd { margin: 0; text-align: right; }
.gu-model { margin: 0; font-size: 16px; color: var(--ts-muted); }
.gu-dock :focus-visible { outline: 3px solid var(--ts-focus); outline-offset: 2px; }
@media (min-width: 901px) {
  #topic-game .ts-panel { width: 330px; padding: 12px; }
}
@media (max-width: 900px) {
  /* The page scrolls instead of the shell's fixed-height frame, so nothing is clipped or sits over the footer. */
  #topic-game { height: auto !important; min-height: 0 !important; }
  #topic-game .ts-play { min-height: 100dvh; }
  #topic-game .ts-play > * { flex-shrink: 0; }
  #topic-game .ts-body { flex: none; flex-direction: column; }
  #topic-game .ts-stage { flex: none; height: calc(58.33vw + 8px); min-height: 0; }
  #topic-game .ts-panel { overflow: visible; }
  .gu-dock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gu-dock > .gu-run, .gu-dock > .gu-status, .gu-dock > .gu-readout, .gu-dock > .gu-model { grid-column: 1 / -1; }
}
/* Phones: canvas text would fall under 16 px, so the panel (stages, tray, geometry, status, readout) carries the rig. */
@media (max-width: 700px) {
  #topic-game .ts-stage { display: none; }
  .gu-dock { grid-template-columns: 1fr; }
}
.gu-geo .gu-empty { grid-column: 1 / -1; }
