/* VAEL 1.8.1 — interface legibility pass. Additive overrides only. */
:root{--reader-text:#c8d6cc;--reader-muted:#809688;--reader-rule:rgba(125,163,138,.23)}
html,body{max-width:100%;overflow-x:clip}
.station,.shell,.view,.view>*{min-width:0}
/* The document is primary; index and metadata must never suffocate it. */
@media (min-width:1250px){
  #idx.active{grid-template-columns:clamp(230px,19vw,285px) minmax(0,1fr) clamp(175px,15vw,220px)}
}
@media (min-width:981px) and (max-width:1249px){
  #idx.active{grid-template-columns:clamp(205px,22vw,260px) minmax(0,1fr)}
  #idx .meta{display:none}
}
#idx{width:100%;max-width:100%;overflow:hidden}
#idx .record{min-width:0;overflow-wrap:break-word;padding:clamp(22px,2.8vw,46px) clamp(22px,3.3vw,58px) 100px;background:linear-gradient(180deg,rgba(13,20,16,.42),transparent 240px)}
#idx .recordHead{align-items:flex-start;flex-wrap:wrap;gap:12px;padding-bottom:20px}
#idx .recordHead h1{min-width:0;max-width:100%;font-size:clamp(19px,2.1vw,30px);line-height:1.25;overflow-wrap:anywhere;word-break:normal;letter-spacing:.035em}
#idx .recordHead span{overflow-wrap:anywhere;line-height:1.5}
#idx .record pre{font:clamp(12px,1vw,14px)/1.9 var(--mono);color:var(--reader-text);white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;margin:26px 0 38px;max-width:80ch}
#idx .recordActions{margin-bottom:12px}
#idx .recordActions button{padding:9px 12px;min-height:34px}
#idx .indexPane{min-width:0;background:#040806}
#idx .tools{min-width:0}
#idx .tools input{min-width:0;width:100%}
#idx .tools button{width:42px;flex:none}
#idx .row{min-width:0;grid-template-columns:38px minmax(0,1fr) minmax(50px,75px);gap:6px}
#idx .row b,#idx .row small{min-width:0}
#idx .index{scrollbar-width:thin;scrollbar-color:#42624e #050a07}
#idx .meta{min-width:0;overflow:auto;padding:17px 13px 90px;background:#030705}
#idx .meta h3{font-size:10px;color:#93aa9a}
#idx .meta .linkBtn,#idx .meta .stateLine{max-width:100%;overflow-wrap:anywhere;white-space:normal;line-height:1.6;font-size:10px}
#idx .stateLine{gap:8px;align-items:start}
#idx .stateLine b{text-align:right;overflow-wrap:anywhere}
/* Prevent oversized text and rigid panel definitions from causing horizontal scrolling throughout the site. */
.readout,.record,.relationInspector,.search2Preview,.intelInspector,.scannerInspector,.caseInspector,.dynamicInspector,.pccInspector,.f44RoomPanel,.kgInspector,.timelineInspector,.netInspector,.protocolRead,.forensicPanel{min-width:0;overflow-wrap:anywhere}
.readout pre,.relationInspector pre,.search2Preview pre,.intelInspector pre,.scannerInspector pre,.caseInspector pre,.dynamicInspector pre,.pccInspector pre,.f44RoomPanel pre,.kgInspector pre,.timelineInspector pre,.netInspector pre,.protocolRead pre,.forensicPanel pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}
.readout{font-size:clamp(12px,1.02vw,14px);line-height:1.85;color:var(--reader-text)}
.readout h2,.pccInspector h2,.intelInspector h2,.relationInspector h2,.scannerInspector h2,.caseInspector h2{overflow-wrap:anywhere;line-height:1.24}
.sectionHead{gap:12px;min-width:0}
.sectionHead>*{min-width:0}
.workspaceGrid,.exploreShell,.dynamicShell,.f44Layout,.pccShell,.scannerShell,.caseShell,.kgShell,.relationLayout,.search2Layout,.compareLayout,.intelGrid,.reconLayout,.synthesisLayout,.patternLayout,.netViewport,.timelineViewport{max-width:100%;min-width:0}
.workspaceGrid>*,.exploreShell>*,.dynamicShell>*,.f44Layout>*,.pccShell>*,.scannerShell>*,.caseShell>*,.kgShell>*,.relationLayout>*,.search2Layout>*,.compareLayout>*,.intelGrid>*,.reconLayout>*,.synthesisLayout>*,.patternLayout>*{min-width:0}
/* Fixed telemetry should never obscure archive text or interactive controls. */
#idx.active .autonomousHud,#idx.active .ambientHud{pointer-events:none}
.osDock{max-width:calc(100vw - 62px);min-width:0;overflow-x:auto;scrollbar-width:thin}
.osDock button{flex-shrink:0}
/* Tablet: preserve reading width by stacking index over document. */
@media (min-width:701px) and (max-width:980px){
 #idx.active{display:grid;grid-template-columns:230px minmax(0,1fr)}
 #idx .meta{display:none}
 #idx .record{padding:24px 25px 95px}
 #idx .recordHead h1{font-size:clamp(19px,2.7vw,27px)}
}
@media (max-width:700px){
 #idx.active{display:block;overflow:visible}
 #idx .indexPane{min-height:0}
 #idx .index{height:min(30dvh,230px);min-height:130px}
 #idx .record{padding:22px 17px 115px;min-height:45vh}
 #idx .recordHead h1{font-size:clamp(20px,6vw,27px)}
 #idx .record pre{font-size:13px;line-height:1.78}
 #idx .meta{display:none}
 .osDock{max-width:100vw}
 .readout{padding:20px 16px 100px}
 .sectionHead{height:auto;min-height:52px;flex-wrap:wrap;padding:12px 16px}
 .recordActions button,.readout button{min-height:38px}
}
