/* Only the review candidate receives these changes. */
body.dot-spatial-codex .pre-reader .guided-command strong {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  font-size: clamp(16px, 2.5vw, 20px) !important;
  line-height: 1.2;
  color: #17473e;
}
body.dot-spatial-codex .pre-reader .guided-command {
  grid-template-columns: 48px minmax(0, 1fr);
  justify-items: stretch;
  gap: 12px;
  min-height: 74px;
  padding: 8px 12px !important;
  text-align: left;
}
body.dot-spatial-codex .pre-reader .guided-command > span {
  width: 48px;
  height: 48px;
  font-size: 32px;
  animation: none;
}
body.dot-spatial-codex .pre-reader .guided-command div { width: auto; min-width: 0; }
body.dot-spatial-codex .guided-command .dot-grid-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
}
body.dot-spatial-codex .dot-step-pips { display: inline-flex; gap: 5px; }
body.dot-spatial-codex .dot-step-pip {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 2px solid #627c71;
  border-radius: 7px;
  background: #fff;
  color: #41675b;
  font: 800 17px/1 system-ui, sans-serif;
}
body.dot-spatial-codex .dot-step-pip.is-done { background: #167257; border-color: #167257; color: #fff; }
body.dot-spatial-codex .dot-step-count { color: #245b4d; font: 800 14px/1.2 system-ui, sans-serif; }
body.dot-spatial-codex :is(.right-angle-grid, .health-grid) {
  grid-template-columns: repeat(6, minmax(44px, 1fr));
  gap: 4px !important;
  padding: 6px !important;
}
body.dot-spatial-codex :is(.right-angle-grid, .number-walk-grid, .health-grid) button {
  min-width: 44px !important;
  min-height: 44px !important;
  box-sizing: border-box;
}
body.dot-spatial-codex :is(.picture-hotspot, .route-node, .location-zone, .position-token-dock, .object-dock) {
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
}
body.dot-spatial-codex :is(button, [role="button"]):focus-visible {
  outline: 3px solid #ea7b1f !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fff9 !important;
}
body.dot-spatial-codex :is(.picture-hotspot, .location-zone):focus-visible {
  background: transparent !important;
  transform: none !important;
}
body.dot-spatial-codex :is(.position-token-dock, .object-dock).selected {
  outline: 3px solid #ea7b1f !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fff9 !important;
}
/* The instruction and grid share real rows; restoring text must not cover row one. */
body.dot-spatial-codex .teaching-board .grid-board {
  padding: 12px !important;
  height: 100% !important;
  aspect-ratio: auto !important;
}
body.dot-spatial-codex .teaching-board .grid-board > div {
  width: 100% !important;
  height: 100% !important;
  min-height: 0;
  min-width: 0;
}
body.dot-spatial-codex .teaching-board :is(.right-angle-wrap, .health-grid-wrap) {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  grid-template-rows: 76px minmax(0, 1fr) !important;
  gap: 8px !important;
}
body.dot-spatial-codex .teaching-board .guided-command {
  height: 76px !important;
  min-height: 0 !important;
}
body.dot-spatial-codex .teaching-board :is(.right-angle-grid, .health-grid) {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  justify-self: stretch !important;
}
body.dot-spatial-codex .teaching-board .right-angle-grid { grid-template-rows: repeat(5, minmax(44px, 1fr)) !important; }
body.dot-spatial-codex .teaching-board .health-grid { grid-template-rows: repeat(6, minmax(44px, 1fr)) !important; }
body.dot-spatial-codex .dot-position-support-open .positioning-board {
  padding: 12px !important;
  height: 100% !important;
  aspect-ratio: auto !important;
}
body.dot-spatial-codex .dot-position-support-open .positioning-board > div,
body.dot-spatial-codex .dot-position-support-open .positioning-host {
  height: 100% !important;
  min-height: 0 !important;
  width: 100% !important;
}
body.dot-spatial-codex .dot-position-support-open .positioning-stage {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(180px, 1fr) 94px !important;
  height: 100% !important;
  min-height: 0 !important;
  gap: 8px !important;
}
body.dot-spatial-codex .dot-position-support-open .relation-space {
  min-height: 0 !important;
  height: 100% !important;
  width: 100% !important;
}
body.dot-spatial-codex .dot-position-tools { display: flex; align-items: center; gap: 10px; min-width: 0; }
body.dot-spatial-codex .dot-position-tools .position-token-dock {
  flex: 0 0 80px;
  width: 80px !important;
  height: 80px !important;
  min-height: 80px !important;
  padding: 4px !important;
}
body.dot-spatial-codex .dot-position-tools .position-token {
  width: 64px !important;
  height: 64px !important;
  animation: none !important;
}
body.dot-spatial-codex .dot-position-support {
  flex: 1;
  min-width: 0;
  height: 94px;
  padding: 2px;
  border: 2px solid #9cbcad;
  border-radius: 15px;
  background: #f6fbf2;
}
body.dot-spatial-codex .dot-position-support svg { display: block; width: 100%; height: 100%; }
@media (max-width: 600px) {
  body.dot-spatial-codex .teaching-board:has(.health-grid) { min-height: 400px !important; }
  body.dot-spatial-codex :is(.right-angle-wrap, .health-grid-wrap) { gap: 8px; }
  body.dot-spatial-codex .pre-reader .guided-command { gap: 8px; padding: 6px 8px !important; }
}
@media (orientation: landscape) and (max-height: 560px) {
  body.dot-spatial-codex .teaching-board:has(.right-angle-grid, .health-grid) {
    width: min(100%, 620px) !important;
    max-width: none !important;
    height: 320px !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }
  body.dot-spatial-codex .teaching-board .grid-board { padding: 8px !important; }
  body.dot-spatial-codex .teaching-board .grid-board > div { zoom: 1 !important; }
  body.dot-spatial-codex .teaching-board.dot-position-support-open .positioning-board > div { zoom: 1 !important; }
  body.dot-spatial-codex .teaching-board :is(.right-angle-wrap, .health-grid-wrap) {
    grid-template-columns: minmax(90px, 1fr) minmax(296px, 2fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
  }
  body.dot-spatial-codex .teaching-board .guided-command {
    align-self: center;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    height: auto !important;
    text-align: center;
  }
  body.dot-spatial-codex .guided-command .dot-grid-status { justify-content: center; flex-wrap: wrap; }
}

/* Help is a separate row. Scene geometry stays square and no answer is covered. */
body.dot-spatial-codex .teaching-board.dot-spatial-help-open {
  container-type:size;
  display:grid!important;
  grid-template-rows:minmax(0,1fr) 76px!important;
  gap:4px;
  justify-items:center;
  align-items:center;
  overflow:visible!important;
}
body.dot-spatial-codex .dot-spatial-help-open>.board-square {
  width:min(100cqw,calc(100cqh - 80px))!important;
  height:min(100cqw,calc(100cqh - 80px))!important;
  min-height:0!important;
  margin:0!important;
  aspect-ratio:1!important;
}
body.dot-spatial-codex .dot-spatial-help-panel {
  display:flex;align-items:center;justify-content:center;
  width:min(100%,280px);height:76px;min-height:76px;
  padding:2px;border:2px solid #9cbcad;border-radius:14px;background:#f6fbf2;
  box-sizing:border-box;
}
body.dot-spatial-codex .dot-spatial-help-panel svg{display:block;width:100%;height:100%}
body.dot-spatial-codex .dot-spatial-help-open:has(.right-angle-grid,.health-grid)>.grid-board{
  width:100%!important;height:100%!important;aspect-ratio:auto!important;
}
@media(max-width:600px){
  body.dot-spatial-codex .teaching-board.dot-spatial-help-open:has(.right-angle-grid){min-height:432px!important}
  body.dot-spatial-codex .teaching-board.dot-spatial-help-open:has(.health-grid){min-height:484px!important}
}

@media(max-width:600px){
 body.dot-spatial-codex:has(.dot-spatial-help-open) .lesson-teacher .lesson-support-dock{grid-column:2!important;grid-row:3!important}
 body.dot-spatial-codex:has(.dot-spatial-help-open) .lesson-teacher .raise-hand{grid-column:1!important;grid-row:3!important;width:76px!important;min-width:44px!important;height:64px!important;min-height:44px!important;margin:0!important}
}

body.dot-spatial-codex .teaching-board.dot-spatial-help-open:has(.health-grid){min-height:484px!important}

body.dot-spatial-codex .teaching-board.dot-spatial-help-open:has(.number-walk-grid){min-height:448px!important}
body.dot-spatial-codex .dot-spatial-help-open .number-walk-grid{grid-template-rows:repeat(5,minmax(44px,1fr))!important;min-height:256px!important;flex-shrink:0!important}

body.dot-spatial-codex .dot-spatial-help-open .walk-board>div{height:100%!important;width:100%!important;padding:12px!important;box-sizing:border-box}
body.dot-spatial-codex .dot-spatial-help-open .number-walk{height:100%!important;display:grid!important;grid-template-rows:minmax(256px,1fr) 32px!important;gap:8px!important}
body.dot-spatial-codex .dot-spatial-help-open .number-walk-grid{height:100%!important;aspect-ratio:auto!important}
body.dot-spatial-codex .dot-spatial-help-open .walk-steps{margin:0!important;align-items:center;justify-content:center}
body.dot-spatial-codex .dot-spatial-help-open .walk-steps span:not(:last-child){display:none!important}
body.dot-spatial-codex .number-walk-grid button.walked{transform:none!important}

/* Legacy scene minimums must yield to the separate help row. */
body.dot-spatial-codex .teaching-board.dot-position-support-open .positioning-board .positioning-host .positioning-stage,
body.dot-spatial-codex .teaching-board.dot-position-support-open .positioning-board .positioning-host .relation-space{
 min-height:0!important;height:100%!important;
}
body.dot-spatial-codex .teaching-board.dot-spatial-help-open .dictionary-board>div{height:100%!important;width:100%!important;box-sizing:border-box;padding:8px!important}
body.dot-spatial-codex .teaching-board.dot-spatial-help-open .location-dictionary{height:100%!important;grid-template-rows:minmax(140px,1fr) 84px!important;gap:8px!important}
body.dot-spatial-codex .teaching-board.dot-spatial-help-open .dictionary-stage{min-height:0!important;height:100%!important}
body.dot-spatial-codex .teaching-board.dot-spatial-help-open .dictionary-choices{min-height:0!important;height:84px!important;padding:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.dot-spatial-codex .teaching-board.dot-spatial-help-open .dictionary-choices button{min-height:44px!important;height:84px!important;padding:4px!important;grid-template-rows:46px 20px!important;min-width:0!important}
body.dot-spatial-codex .teaching-board.dot-spatial-help-open .dictionary-choices button span{display:flex!important;align-items:center;gap:4px;white-space:nowrap!important;font-size:0!important;letter-spacing:0!important;line-height:1!important;height:28px!important}
body.dot-spatial-codex .teaching-board.dot-spatial-help-open .dictionary-choices button span::before,
body.dot-spatial-codex .teaching-board.dot-spatial-help-open .dictionary-choices button span::after{content:'';width:12px;height:12px;border-radius:50%;background:currentColor;flex:none}
body.dot-spatial-codex .teaching-board.dot-spatial-help-open .dictionary-choices button[data-location-word="uzak"] span{gap:0;width:68px!important;justify-content:space-between}
body.dot-spatial-codex .teaching-board.dot-spatial-help-open .route-map-board{overflow:visible!important}
