/* Connect the original observation, generated geometry and the route decision. */
.spatial-flow { display: flex; justify-content: space-between; gap: 5px; margin: 0 0 10px; font-size: 10px; font-weight: 700; color: #586578; }
.spatial-flow i { color: #b86a0c; font-style: normal; }
.brain-panel:not(.carry-mode):not(.gate-mode) .original-input { float: left; display: flex; flex-direction: column; gap: 5px; width: 78px; margin: 0 10px 8px 0; text-align: center; }
.brain-panel:not(.carry-mode):not(.gate-mode) .original-input img { width: 72px; height: 72px; }
.brain-panel:not(.carry-mode):not(.gate-mode) .original-input p { font-size: 9px; line-height: 1.5; }
.brain-panel:not(.carry-mode):not(.gate-mode) .original-input small { font-size: 8px; }
.brain-panel:not(.carry-mode):not(.gate-mode) .model-imagination { margin-left: 88px; margin-bottom: 10px; height: 170px; }
.dream-view { clear: both; }
.dream-view #dream-label { padding: 3px 5px; border-radius: 5px; background: #0b1320df; }
.route-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 9px; margin: 9px 0 6px; font-size: 9px; color: #586578; }
.route-legend span { display: flex; align-items: center; gap: 5px; }
.route-legend span::before { content: ''; flex: 0 0 17px; height: 8px; }
.visible-area-key::before { border: 1px solid #66bbc5; background: #8de0e87a; }
.hypothesis-area-key::before { border: 1px dashed #b86a0c; background: #f0a93b66; }
.visible-route-key::before { height: 0!important; border-top: 2px dashed #8995a5; }
.hypothesis-route-key::before { height: 0!important; border-top: 2px solid #b86a0c; }
.route-legend.passed .hypothesis-route-key::before { border-color: #257d6d; }
#route-insight { margin: 7px 0 10px; padding-left: 8px; border-left: 2px solid #d5ad67; font-size: 10px; line-height: 1.6; }
.validation-chain { margin-top: 10px; padding: 9px 10px; background: #f2efe6; border: 1px solid #e3dfd3; border-radius: 10px; }
.validation-chain p { display: grid; gap: 3px; margin: 0 0 8px; font-size: 10px; }
.validation-chain p:last-child { margin: 8px 0 0; }
.validation-chain b { font-size: 10px; color: #26364a; }
.validation-chain span { font-size: 9px; color: #586578; }
.validation-chain #world-results .passed, .validation-chain .passed { color: #257d6d; }
.validation-chain #world-results .failed, .validation-chain .failed { color: #b44d45; }
.game-stage .result-card .run-recap { margin: 10px 0; padding: 10px 12px; border-left: 3px solid #d5ad67; border-radius: 0 8px 8px 0; background: #f2efe6; color: #304158; font-size: 11px; line-height: 1.8; }
.brain-panel.gate-mode .spatial-flow, .brain-panel.gate-mode .route-legend, .brain-panel.gate-mode #route-insight, .brain-panel.gate-mode .validation-chain { display: none; }
@media(min-width:1100px) {
  .brain-panel:not(.carry-mode):not(.gate-mode) { width: 440px; top: 80px; max-height: calc(100% - 140px); }
  .brain-panel:not(.carry-mode):not(.gate-mode) .dream-view { height: 200px; }
}
@media(min-width:1100px) and (max-height:800px) {
  .brain-panel:not(.carry-mode):not(.gate-mode) { top: 70px; max-height: calc(100% - 110px); }
  .brain-panel:not(.carry-mode):not(.gate-mode) .brain-heading { padding: 10px 16px 8px; }
  .brain-panel:not(.carry-mode):not(.gate-mode) .model-imagination { height: 145px; }
  .brain-panel:not(.carry-mode):not(.gate-mode) .dream-view { height: 160px; }
}
@media(max-width:600px) {
  .spatial-flow { font-size: 8px; margin-bottom: 6px; }
  .brain-panel:not(.carry-mode):not(.gate-mode) .original-input { width: 62px; gap: 3px; margin-right: 7px; }
  .brain-panel:not(.carry-mode):not(.gate-mode) .original-input img { width: 54px; height: 54px; }
  .brain-panel:not(.carry-mode):not(.gate-mode) .original-input p { font-size: 8px; }
  .brain-panel:not(.carry-mode):not(.gate-mode) .model-imagination { margin-left: 69px; height: 130px; }
  .route-legend { font-size: 8px; gap: 4px; }
}
