/* Watershed Keeper: the planning panel beside the canvas (stacked below it on narrow screens).
   Shared shell screens and tokens stay intact; only var(--ts-*) colours and fonts. */
.wk-dock { display: grid; gap: 10px; font: 16px/1.35 var(--ts-font); color: var(--ts-ink); }
.wk-step { display: grid; gap: 6px; padding: 8px 10px 10px; border: 2px solid var(--ts-line); border-radius: 10px; background: var(--ts-panel-2); }
.wk-step h2 { margin: 0; font: 800 18px var(--ts-display, var(--ts-font)); color: var(--ts-accent); }
.wk-goals { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.wk-goals li { font-size: 16px; }
.wk-goals em { font-style: normal; font-weight: 800; display: inline-block; width: 1.2em; }
.wk-goals .wk-ok em { color: var(--ts-good); }
.wk-goals .wk-miss em { color: var(--ts-bad); }
.wk-goals .wk-target { color: var(--ts-muted); margin-top: 4px; }
.wk-field { display: grid; gap: 4px; font-weight: 700; }
.wk-field select { min-height: 44px; padding: 6px 8px; font: 16px var(--ts-font); background: var(--ts-panel); color: var(--ts-ink); border: 2px solid var(--ts-line); border-radius: 8px; }
.wk-field input[type=range] { width: 100%; min-height: 44px; accent-color: var(--ts-accent); }
.wk-info { margin: 0; font-size: 16px; color: var(--ts-muted); }
.wk-covers { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wk-cover { display: flex; align-items: center; gap: 8px; justify-content: flex-start; text-align: left; min-height: 48px; padding: 4px 6px; min-width: 0; }
.wk-cover canvas { flex: none; width: 36px; height: 36px; border-radius: 6px; }
.wk-ctext { display: grid; min-width: 0; line-height: 1.15; }
.wk-ctext b { font-size: 16px; overflow-wrap: anywhere; }
.wk-ctext small { font-size: 16px; color: var(--ts-muted); font-weight: 600; }
.wk-cover[aria-pressed=true] { border-color: var(--ts-focus); box-shadow: inset 0 0 0 2px var(--ts-focus); }
.wk-place { min-height: 48px; font-size: 16px; }
.wk-run { display: grid; justify-items: center; min-height: 54px; font-size: 18px; font-weight: 800; background: var(--ts-accent); color: var(--ts-accent-ink, #062a27); border-color: var(--ts-accent); }
.wk-run small { font-size: 16px; font-weight: 700; }
.wk-run:disabled, .wk-place:disabled, .wk-cover:disabled { opacity: .55; }
.wk-status { margin: 0; padding: 8px 10px; border-left: 4px solid var(--ts-accent); background: var(--ts-panel); border-radius: 0 8px 8px 0; font-size: 16px; }
.wk-status[data-kind=good] { border-left-color: var(--ts-good); }
.wk-status[data-kind=bad] { border-left-color: var(--ts-bad); }
.wk-results { display: grid; gap: 6px; }
.wk-event { padding: 6px 8px; border: 2px solid var(--ts-line); border-radius: 8px; background: var(--ts-panel); }
.wk-event.wk-good { border-color: var(--ts-good); }
.wk-event.wk-bad { border-color: var(--ts-bad); }
.wk-event ul { margin: 4px 0; padding: 0; list-style: none; }
.wk-event li, .wk-event p { font-size: 16px; margin: 0; }
.wk-event .wk-miss { color: var(--ts-bad); font-weight: 700; }
.wk-event p { color: var(--ts-muted); }
.wk-approve.wk-ready { background: var(--ts-good); border-color: var(--ts-good); color: #0b2414; font-weight: 800; min-height: 52px; font-size: 18px; }
.wk-model summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.wk-model p { margin: 0 0 8px; font-size: 16px; color: var(--ts-muted); }
[hidden] { display: none !important; }
@media (min-width: 901px) {
  #topic-game .ts-panel { width: 340px; padding: 10px; }
}
@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((100vw - 16px) * 900 / 600 + 8px); max-height: 1400px; min-height: 0; }
  #topic-game .ts-panel { overflow: visible; }
  .wk-dock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-dock > .wk-run, .wk-dock > .wk-test, .wk-dock > .wk-model, .wk-dock > section:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wk-dock { grid-template-columns: 1fr; }
}
