/*! Solar System Repair Co. | Source: https://orbitalforest.com */
/* Generated repair parts and bounded layouts for the v158 puzzle revisions. */
.bench-part-art { display:block;width:100%;height:100%;min-height:0;object-fit:contain;pointer-events:none; }
.bench-part .bench-part-art { max-width:92px; }
.bench-socket .bench-part-art { max-width:104px; }
.bench-slots[data-mode="gears"] { grid-template-columns:repeat(var(--bench-gear-count,2),minmax(0,1fr)); }
.bench-weight-art { max-width:100px; }
.bench-bay-controls { display:none; }
.is-wide-pipes .bench-pipe-controls { display:none; }
.needs-board-controls :is(.bench-pipe-controls,.bench-bay-controls) { display:grid;grid-template-columns:auto 44px 88px 44px;align-items:center;justify-content:center;gap:4px; }
.needs-board-controls .bench-button { min-height:44px;min-width:44px; }
#game-shell :is(.is-wide-pipes .bench-pipe,.is-expanded-bay .bench-square) { min-width:0;min-height:0; }
.needs-board-controls .bench-square.is-cursor { outline:3px solid #edce86;outline-offset:-4px; }
.is-timed-bench .bench-top { grid-template-columns:minmax(0,1fr) 110px;column-gap:8px;align-items:center; }
.is-timed-bench :is(.bench-instruction,.bench-clue) { grid-column:1; }
.bench-timer { grid-column:2;grid-row:1/3;display:grid;gap:4px;justify-items:stretch; }
.bench-time { text-align:center;color:#ebdca8;font:800 24px/28px ui-monospace,monospace;background:#0c252e;border:2px inset #7c9888; }
.bench-time[data-expired="true"] { color:#e6a081; }
#game-shell .bench-start { height:44px;font-size:13px; }
.is-timed-bench .bench-assembly { gap:4px; }
.is-timed-bench .bench-bottom { grid-template-columns:80px minmax(0,1fr) 96px; }
.harness-repair-board { box-sizing:border-box;height:100%;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) 38px;gap:8px;padding:8px;overflow:hidden;color:#eddfb9; }
.harness-title { font:800 13px/1.3 ui-monospace,monospace;color:#e8bd75; }
.harness-howto { margin:0;font:14px/1.35 system-ui,sans-serif; }
.harness-work { display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:14px;align-items:center;min-height:0; }
.harness-diagram { min-width:0;min-height:0;height:100%;display:grid;align-items:center; }
.harness-diagram svg { display:block;width:100%;height:100%;max-height:360px; }
.harness-answers { display:grid;gap:14px; }
.harness-answer { display:grid;gap:5px; }
.harness-answer label { font:800 13px/1.2 ui-monospace,monospace; }
.harness-answer small { font:12px/1.25 system-ui,sans-serif;color:#c4d8cb; }
.harness-value-controls { display:grid;grid-template-columns:44px minmax(44px,1fr) 44px;gap:5px; }
#game-shell .harness-value-controls .concept-button { height:48px;min-width:44px;min-height:44px;border-image:none;padding:2px;font-size:24px; }
.harness-number { box-sizing:border-box;width:100%;min-width:44px;height:48px;border:3px inset #78958a;background:#0c262f;color:#f4e2b0;text-align:center;font:800 26px/1 ui-monospace,monospace;appearance:textfield; }
.harness-number::-webkit-inner-spin-button,.harness-number::-webkit-outer-spin-button { appearance:none;margin:0; }
.harness-number:focus-visible { outline:3px solid #96d5dc;outline-offset:1px; }
.harness-number:disabled { opacity:1; }
.harness-footer { padding-right:96px;min-height:0;align-self:center; }
.harness-feedback { margin:0;font:12px/1.3 system-ui,sans-serif; }
#game-shell .harness-repair-board .concept-test { display:none; }
#answer-grid:has(.harness-repair-board,.has-four-sum-rows,.has-circuit,.is-triples) { container-type:size; }
#game-shell #answer-grid .has-four-sum-rows .proto-sum-grid { gap:6px; }
#game-shell #answer-grid .has-four-sum-rows .proto-number-tiles { grid-template-columns:repeat(2,minmax(44px,88px));gap:6px; }
#game-shell #answer-grid .has-four-sum-rows :is(.proto-number-slot,.proto-given,.proto-number-tile) { height:clamp(44px,calc((100cqh - 164px)/4),68px); }
#game-shell #answer-grid .proto-puzzle.has-circuit { position:relative; }
#game-shell #answer-grid .has-circuit .proto-work { grid-template-columns:minmax(132px,1fr) 184px;grid-template-rows:minmax(0,1fr);gap:10px; }
#game-shell #answer-grid .has-circuit .proto-jigsaw-board { width:min(100%,calc((100cqh - 170px)*332/232)); }
#game-shell #answer-grid .has-circuit .proto-jigsaw-pieces { grid-template-columns:repeat(2,minmax(44px,86px));gap:5px; }
#game-shell #answer-grid .has-circuit .proto-jigsaw-piece { height:clamp(44px,calc((100cqh - 230px)/3),76px); }
.proto-circuit-board { background:#0a1e23; }
.proto-turn-piece { height:44px;font-size:15px; }
#game-shell #answer-grid .proto-memory-grid.is-triples { grid-template-columns:repeat(var(--memory-columns,6),var(--proto-card-size));gap:8px; }
#game-shell #answer-grid .proto-puzzle:has(.is-triples) { grid-template-rows:auto minmax(0,1fr) 44px;gap:6px; }
#game-shell #answer-grid .proto-puzzle:has(.is-triples) .proto-howto { font-size:13px;line-height:1.25; }
#game-shell #answer-grid .proto-puzzle:has(.is-triples) .proto-feedback { font-size:11px;line-height:1.2; }
#game-shell #answer-grid .proto-puzzle:has(.is-triples) .proto-memory-progress { display:block;margin:3px 0 0; }
@container (max-width:619px) {
  .harness-work { grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:8px; }
  .harness-answers { grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
  .harness-answer label { font-size:11px; }
  .harness-answer small { font-size:10px; }
  .harness-value-controls { gap:3px; }
  .harness-howto { font-size:12px;line-height:1.3; }
  .harness-title { font-size:11px; }
  .harness-repair-board { gap:5px;padding:4px; }
  .harness-footer { font-size:11px; }
  #game-shell #answer-grid .has-circuit .proto-work { grid-template-columns:minmax(132px,1fr) 134px;gap:4px; }
  #game-shell #answer-grid .has-circuit .proto-jigsaw-pieces { grid-template-columns:repeat(3,44px);gap:2px; }
  #game-shell #answer-grid .has-circuit .proto-jigsaw-piece { height:56px; }
  #game-shell #answer-grid .has-circuit .proto-rack { gap:6px; }
  #game-shell #answer-grid .has-circuit .proto-rack-title { font-size:10px; }
  #game-shell #answer-grid .has-four-sum-rows .proto-work { grid-template-columns:minmax(185px,1fr) 92px;gap:4px; }
  #game-shell #answer-grid .has-four-sum-rows .proto-number-tiles { grid-template-columns:repeat(2,44px);gap:4px; }
  #game-shell #answer-grid .proto-memory-grid.is-triples { gap:4px; }
  .is-timed-bench .bench-top { grid-template-columns:minmax(0,1fr) 92px;gap:4px; }
  .bench-time { font-size:20px;line-height:24px; }
  #game-shell .bench-start { font-size:11px; }
  .is-timed-bench .bench-instruction { font-size:12px;line-height:1.2; }
  .is-timed-bench .bench-clue { font-size:10px;line-height:1.2; }
}
@container (max-height:399px) {
  .harness-repair-board { grid-template-rows:auto auto minmax(0,1fr) 30px;gap:4px;padding:4px; }
  .harness-howto { font-size:12px;line-height:1.2; }
  .harness-answers { gap:8px; }
  .harness-answer { gap:2px; }
  .harness-answer label { font-size:11px; }.harness-answer small { font-size:10px; }
  #game-shell .harness-value-controls .concept-button,.harness-number { height:44px; }
  .harness-feedback { font-size:11px; }
  .is-timed-bench { grid-template-rows:auto minmax(0,1fr) 48px;gap:4px; }
  .is-timed-bench .bench-instruction { font-size:11px;line-height:1.2; }
  .is-timed-bench .bench-clue { font-size:10px;line-height:1.2;padding:2px; }
  #game-shell #answer-grid .has-four-sum-rows { grid-template-rows:auto minmax(0,1fr) 44px;gap:4px;padding:4px; }
  #game-shell #answer-grid .has-four-sum-rows .proto-howto { font-size:11px;line-height:1.15; }
  #game-shell #answer-grid .has-four-sum-rows :is(.proto-number-slot,.proto-given,.proto-number-tile) { height:44px; }
  #game-shell #answer-grid .has-four-sum-rows .proto-sum-grid { gap:3px; }
  #game-shell #answer-grid .has-four-sum-rows .proto-number-tiles { gap:3px; }
  #game-shell #answer-grid .has-four-sum-rows .proto-row-target b { font-size:20px; }
  #game-shell #answer-grid .has-four-sum-rows .proto-feedback { font-size:10px; }
  #game-shell #answer-grid .has-circuit .proto-jigsaw-pieces { grid-template-columns:repeat(3,minmax(44px,66px));gap:4px; }
  #game-shell #answer-grid .has-circuit .proto-jigsaw-piece { height:48px; }
  #game-shell #answer-grid .has-circuit .proto-rack-title { display:none; }
  #game-shell #answer-grid .has-circuit .proto-turn-piece { position:absolute;left:96px;bottom:8px;width:80px; }
  #game-shell #answer-grid .has-circuit .proto-footer { grid-template-columns:174px minmax(0,1fr); }
  #game-shell #answer-grid .has-circuit .proto-feedback { font-size:10px; }
  #game-shell #answer-grid .has-circuit .proto-jigsaw-board { width:min(100%,calc((100cqh - 148px)*332/232)); }
  #game-shell #answer-grid .proto-memory-grid.is-triples { gap:4px; }
  #game-shell #answer-grid .proto-puzzle:has(.is-triples) { padding:4px;gap:4px; }
  #game-shell #answer-grid .proto-puzzle:has(.is-triples) .proto-howto { font-size:11px;line-height:1.15; }
}
@media(prefers-reduced-motion:no-preference) { .is-repaired .bench-gear-art { animation:bench-gears-turn 9s linear infinite; } }
body.reduce-motion .bench-gear-art { animation:none; }
@container (max-width:619px) and (max-height:399px) {
  /* The header keeps visible circuit feedback beside the large Turn/Clear keys. */
  #game-shell #answer-grid .has-circuit .proto-feedback { position:absolute;width:1px;height:1px;margin:-1px;clip-path:inset(50%);overflow:hidden;padding:0; }
  #game-shell #answer-grid .has-circuit .proto-howto { font-size:11px;line-height:1.15; }
}
