/* Quake Locator: the analyst's console panel beside the canvas (stacked below it on narrow screens).
   Shared shell screens and tokens stay intact; only var(--ts-*) colours and fonts. */
.ql-dock { display: grid; gap: 12px; font: 16px/1.4 var(--ts-font); color: var(--ts-ink); }
.ql-step { display: grid; gap: 8px; padding: 10px 12px 12px; border: 2px solid var(--ts-line); border-radius: 10px; background: var(--ts-panel-2); }
.ql-step h2 { margin: 0; font: 800 18px var(--ts-display, var(--ts-font)); color: var(--ts-accent); letter-spacing: .01em; }
.ql-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.ql-field { display: grid; gap: 3px; font-size: 16px; font-weight: 700; }
.ql-field input, .ql-field select { width: 128px; min-height: 44px; padding: 6px 8px; border: 2px solid var(--ts-line); border-radius: 8px; background: var(--ts-stage); color: var(--ts-ink); font: 18px var(--ts-mono); }
.ql-field select { width: 140px; font-family: var(--ts-font); }
.ql-field input:focus-visible, .ql-field select:focus-visible, .ql-mobile svg:focus-visible { outline: 3px solid var(--ts-focus); outline-offset: 2px; }
.ql-stations { gap: 6px; }
.ql-stations .ts-btn { min-width: 48px; padding-left: 10px; padding-right: 10px; font-size: 18px; }
.ql-stations button[aria-pressed=true], .ql-wave[aria-pressed=true] { border-color: var(--ts-accent); box-shadow: inset 0 0 0 2px var(--ts-accent); }
.ql-wave { min-width: 120px; }
.ql-lag { margin: 0; font-size: 16px; color: var(--ts-muted); }
.ql-feedback { margin: 0; min-height: 24px; font-size: 16px; padding: 8px 10px; border-left: 4px solid var(--ts-accent); background: var(--ts-panel-2); border-radius: 0 8px 8px 0; }
.ql-issue { width: 100%; min-height: 48px; font-size: 18px; }
.ql-model { font-size: 16px; color: var(--ts-muted); margin: 0; }
.ql-policy { font-size: 16px; margin: 0; padding: 8px 10px; border: 2px dashed var(--ts-warn); border-radius: 8px; }
.ql-data summary { cursor: pointer; padding: 8px 0; font-size: 16px; min-height: 44px; display: flex; align-items: center; }
.ql-data table { font: 16px var(--ts-mono); border-collapse: collapse; width: 100%; }
.ql-data td, .ql-data th { padding: 4px; border-bottom: 1px solid var(--ts-line); text-align: left; }
.ql-reference { width: 100%; font-size: 16px; border-collapse: collapse; }
.ql-reference th, .ql-reference td { padding: 5px; border-bottom: 1px solid var(--ts-line); text-align: left; }
.ql-mobile { display: none; }
@media (min-width: 901px) {
  #topic-game .ts-panel { width: 340px; padding: 12px; }
}
@media (max-width: 900px) {
  /* The page scrolls instead of the shell's fixed-height frame, so nothing is clipped or squeezed. */
  #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(56.25vw + 8px); min-height: 0; }
  #topic-game .ts-panel { overflow: visible; }
  .ql-dock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ql-dock > .ql-feedback, .ql-dock > .ql-policy, .ql-dock > .ql-model, .ql-dock > .ql-data { grid-column: 1 / -1; }
}
/* Phones: the canvas text would drop under 16 px, so readable SVG instruments replace it above the same controls. */
@media (max-width: 700px) {
  #topic-game .ts-stage { display: none; }
  #topic-game .ts-panel { padding: 12px; }
  .ql-dock { grid-template-columns: 1fr; }
  .ql-mobile { display: block; }
  .ql-mobile svg { width: 100%; display: block; background: var(--ts-stage); border: 2px solid var(--ts-line); border-radius: 10px; touch-action: pan-y; }
  .ql-mobile p { font-size: 16px; margin: 8px 0; }
  .ql-field input { width: 110px; }
}
