html,body{height:100%;overflow:hidden}body{display:grid;grid-template-rows:64px 92px 1fr 72px}body>header{grid-row:1}.stepper{grid-row:2;position:relative;top:auto}main{grid-row:3;height:100%;width:100%;max-width:none;overflow:hidden;padding:18px 28px}.stage{height:100%;overflow:hidden}.stage.active{display:flex;flex-direction:column}.stage-head{flex:0 0 auto;margin-bottom:12px}.stage-head h1{font-size:23px;margin:4px 0}.stage-head p{white-space:nowrap}.stage>.split,.stage>.live-workbench,.stage>.write-workbench,.stage>#historyExtractResult,.stage>#updateResult,.stage>#searchResult,.stage>.evidence-layout{flex:1;min-height:0}body>footer{grid-row:4;position:relative;left:auto;right:auto;bottom:auto;height:72px}
#historyExtractResult{display:flex;flex-direction:column;min-height:0}.metric-row{flex:0 0 auto}.live-workbench{margin-top:9px;height:auto;min-height:0}.scan-stream,.live-board{height:100%}.live-workbench>.panel{min-height:0;display:flex;flex-direction:column}.live-workbench>.panel>.scan-stream,.live-workbench>.panel>.live-board{flex:1;min-height:0}
.stage[data-stage="0"] .split{min-height:0}.stage[data-stage="0"] .panel{height:100%}.stage[data-stage="0"] .editor textarea{height:calc(100% - 44px)}.stage[data-stage="0"] .source-map{padding:14px}.stage[data-stage="0"] .schema-note{margin:8px 18px;padding:12px}
.write-workbench{display:grid;grid-template-columns:1.08fr .92fr;gap:12px;min-height:0}.write-left{display:grid;grid-template-rows:1.05fr .95fr;gap:10px;min-height:0}.write-left>.panel,.write-buffer-panel{min-height:0}.new-editor textarea{height:calc(100% - 44px)}.scan-stream.compact{height:calc(100% - 44px);border:0}.write-buffer-panel{display:flex;flex-direction:column}.write-buffer-panel>#newExtractResult{flex:1;min-height:0}.live-board.compact-board{height:100%;border:0;grid-template-columns:1fr 1fr}.write-buffer-panel .empty{height:auto;flex:1;margin:10px}
#updateResult{min-height:0;display:flex;flex-direction:column}.update-console{flex:0 0 105px;margin-bottom:7px}.update-console>div{min-height:0}.compare{flex:1;min-height:0;margin-top:5px}.compare>div{min-height:0;display:flex;flex-direction:column}.mini-board{height:auto;flex:1;min-height:0}.decision-flow{flex:0 0 88px;margin-top:7px}
#searchResult{min-height:0;display:flex;flex-direction:column}.retrieve-pipe{flex:0 0 auto;margin-bottom:8px}.retrieval-ops{flex:0 0 218px;margin-bottom:7px}.retrieval-ops>div{min-height:96px;opacity:.16;filter:saturate(.3);transition:.3s}.retrieval-ops>div.op-active,.retrieval-ops>div.op-done{opacity:1;filter:none}.retrieval-ops>div.op-active{transform:scale(1.015);z-index:2}.search-meta{flex:0 0 28px;padding:5px}.candidate-board{flex:1;min-height:0;max-height:none}.candidate-board.result-locked{opacity:0;pointer-events:none}.candidate-board.result-unlocked{animation:resultOpen .45s ease}@keyframes resultOpen{from{opacity:0;transform:translateY(12px)}}
.retrieve-pipe.pipeline-focus{border-color:var(--cyan);box-shadow:0 0 35px #24dcc423;background:#0b2024}.retrieve-pipe.pipeline-focus:before{content:"RETRIEVAL EXECUTION";color:var(--cyan);font:7px monospace;letter-spacing:1.5px}
.stage[data-stage="5"] .evidence-layout{min-height:0}.evidence-layout .panel,.answer-panel{height:100%}.evidence-layout pre{height:calc(100% - 44px)}
.source-map{display:flex;flex-direction:column;gap:9px;padding:15px 20px}.source-map>div{display:flex;align-items:center;justify-content:space-between;min-height:54px;padding:12px 16px}.source-map>div b{font-size:11px}.source-map>div small{margin:0;text-align:right}.source-map>i{display:none}
.stage-head{position:relative}.execution-status{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);min-width:190px;padding:8px 14px;border:1px solid #294753;background:#081720;border-radius:99px;text-align:center;color:#76909b;font:8px monospace;letter-spacing:1px;transition:.25s}.execution-status.running{color:var(--cyan);border-color:var(--cyan);box-shadow:0 0 22px #24dcc42e}.execution-status.complete{color:#061511;background:var(--cyan);border-color:var(--cyan);font-weight:800}.execution-status.error{color:var(--red);border-color:var(--red)}
