/* Generator Garage: the work order + answer controls and the garage bench scene inside the practice shell's stage. */
.gg { position: absolute; inset: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 12px; padding: 8px 12px; }
.gg-panel { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding: 2px; }

/* the work order */
.gg-ticket { padding: 8px 14px 10px; border-radius: var(--tlg-radius-lg, 14px); border: 2px dashed #7fa9bd; background: #f2f8fb; color: #13293a; }
.gg-ticket-k { margin: 0 0 4px; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: var(--tlg-tracking-caps, .08em); color: #245c70; }
.gg-given { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 17px; line-height: 1.35; font-weight: 650; }
.gg-note { margin: 8px 0 0; font-size: 16px; line-height: 1.3; color: #3f5a68; font-style: italic; }
html[data-theme="dark"] .gg-ticket { background: #13283a; color: #e6f2f8; border-color: #4f86a0; }
html[data-theme="dark"] .gg-ticket-k { color: #8fd0ea; }
html[data-theme="dark"] .gg-note { color: #b9d2de; }

/* the answer chips */
.gg-field-k { margin: 0 0 2px; font-size: 17px; font-weight: 800; }
.gg-field-sub { margin: 0 0 6px; font-size: 16px; color: var(--tlg-text-muted, #4b5d68); }
.gg-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gg-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; padding: 8px 6px; font-size: 17px; line-height: 1.2;
  border-radius: var(--tlg-radius-md, 12px); white-space: normal; text-align: center; touch-action: manipulation; }
.gg-ico { width: 34px; height: 34px; flex: none; }
.gg-chip:disabled { cursor: default; }
.gg-chip:focus-visible { outline: 3px solid #b16a08; outline-offset: 2px; }
.gg-msg { margin: 0; min-height: 1.2em; font-size: 16px; font-weight: 700; color: var(--tlg-danger, #b42318); }
html[data-theme="dark"] .gg-msg { color: #ffb4a8; }
.gg-about { font-size: 16px; line-height: 1.4; }
.gg-about summary { cursor: pointer; font-weight: 700; }
.gg-about p { margin: 4px 0 0; }

/* the station scene */
.gg-view { position: relative; min-width: 0; min-height: 0; display: flex; align-items: flex-start; justify-content: center; }
.gg-scene { position: relative; width: 100%; aspect-ratio: 720 / 620; border-radius: var(--tlg-radius-lg, 14px); overflow: hidden; border: var(--tlg-border-width, 1px) solid var(--tlg-border, #a5b6c1);
  user-select: none; -webkit-user-select: none; touch-action: pan-y; }

.gg.is-locked .gg-scene { cursor: default; }
.gg-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; font-family: var(--tlg-font-body, system-ui, sans-serif); }
html[data-theme="dark"] .gg-svg { filter: brightness(.92); }
.gg-example-svg { display: block; width: 100%; height: auto; max-height: 460px; font-family: var(--tlg-font-body, system-ui, sans-serif); }

@media (max-width: 1100px) { .gg { grid-template-columns: 300px minmax(0, 1fr); } }
@media (max-width: 900px) {
  .gg { position: static; grid-template-columns: 1fr; }
  .gg-view { display: block; }
  .gg-scene { width: 100% !important; }
}

/* A small scene (a phone): the SVG labels would render under 16 px, so they are hidden and listed under the scene. */
.gg-caps { display: none; }
.gg--small .gg-svg text, .gg--small .gg-svg .gg-pill { display: none; }
.gg--small .gg-view { flex-direction: column; align-items: stretch; }
.gg--small .gg-caps { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.gg-caps li { font-size: 16px; line-height: 1.3; padding: 4px 10px; border-radius: 12px; background: #eef6fa; border: 1px solid #7fa9bd; color: #13293a; }
html[data-theme="dark"] .gg-caps li { background: #13283a; border-color: #4f86a0; color: #e6f2f8; }
.gg-chips--3 { grid-template-columns: repeat(3, 1fr); }
.gg-chips--3 .gg-chip { min-height: 84px; padding: 6px 4px; font-size: 16px; }
.gg-chips--list { grid-template-columns: 1fr; gap: 6px; }
.gg-chips--list .gg-chip { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 48px; padding: 6px 12px; font-size: 16px; }

/* the spin control and the number boxes */
.gg-speed-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 8px; align-items: center; }
.gg-step { min-height: 52px; font-size: 26px; font-weight: 800; justify-content: center; touch-action: manipulation; }
.gg-range { width: 100%; min-height: 44px; accent-color: #8f2a23; }
.gg-speed-out { display: block; margin-top: 4px; font-size: 22px; font-weight: 800; text-align: center; }
.gg-num-row { display: flex; align-items: center; gap: 8px; }
.gg-input { flex: 1; min-width: 0; min-height: 48px; padding: 8px 12px; font: inherit; font-size: 20px; border: 2px solid var(--tlg-border, #7e98a6); border-radius: 10px;
  background: var(--tlg-surface, #fff); color: var(--tlg-text, #172c38); }
.gg-input:focus-visible, .gg-range:focus-visible, .gg-step:focus-visible { outline: 3px solid #b16a08; outline-offset: 2px; }
.gg-unit { font-size: 19px; font-weight: 800; min-width: 2ch; }
.gg-chip span { overflow-wrap: anywhere; }
.gg--upgrade .gg-chips .gg-chip { min-height: 84px; font-size: 16px; }
.gg-ticket { border-color: #c9a27a; background: #fbf5ec; }
.gg-ticket-k { color: #8f2a23; }
html[data-theme="dark"] .gg-ticket { background: #2a2017; color: #f6ece0; border-color: #a0805c; }
html[data-theme="dark"] .gg-ticket-k { color: #f2a59c; }
html[data-theme="dark"] .gg-note { color: #e2d3c0; }
.gg-start-svg { display: block; width: 100%; height: auto; max-height: 100%; }
