/* Signal Architect — Intelligence scanner containment v1.0
   Scope: intelligence.html only. Preserves all eight scanner fields. */
.scanner-panel{min-width:0;max-width:100%;overflow:hidden!important;}
.scanner-panel .scanner-rows{min-width:0;max-width:100%;}
.scanner-panel .scanner-header,.scanner-panel .scanner-row{box-sizing:border-box;width:100%;max-width:100%;}
@media (min-width:821px) and (max-width:1180px){
  .scanner-panel{overflow-x:auto!important;}
  .scanner-panel .scanner-header,.scanner-panel .scanner-row{min-width:860px;grid-template-columns:64px 1.25fr 1.15fr 62px 96px 92px 116px 82px!important;}
}
@media (max-width:820px){
  .scanner-panel{overflow:visible!important;}
  .scanner-panel .scanner-header{display:none!important;}
  .scanner-panel .scanner-rows{overflow:visible!important;display:flex!important;flex-direction:column!important;gap:10px!important;}
  .scanner-panel .scanner-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px 14px!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:12px!important;overflow:visible!important;}
  .scanner-panel .scanner-row>*{display:block!important;min-width:0!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere!important;}
  .scanner-panel .scanner-row>*::before{content:attr(data-label);display:block;margin-bottom:3px;color:#78a897;font-size:8px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;}
  .scanner-panel .scanner-row>strong{grid-column:1/-1;font-size:14px!important;}
  .scanner-panel .scanner-row>strong::before{display:none!important;}
  .scanner-panel .scanner-horizon-loading{grid-template-columns:1fr!important;}
  .scanner-panel .scanner-horizon-loading span{grid-column:1!important;}
}
@media (max-width:430px){.scanner-panel .scanner-row{grid-template-columns:1fr!important}.scanner-panel .scanner-row>strong{grid-column:1!important}}

/* Intelligence scanner width allocation v1.1 — intelligence.html only.
   Give the eight-field scanner more desktop room without changing research logic. */
@media (min-width:1101px){
  .target-grid,
  .phase14-grid{
    grid-template-columns:minmax(0,1.18fr) minmax(0,.66fr) minmax(470px,1.16fr)!important;
  }
  .engine-panel,.drivers-panel,.context-panel,.regime-panel,.scanner-panel{min-width:0!important;}
  .scanner-panel{overflow-x:auto!important;}
  .scanner-panel .scanner-header,
  .scanner-panel .scanner-row{
    min-width:760px!important;
    grid-template-columns:58px minmax(78px,.9fr) minmax(112px,1.2fr) 54px minmax(82px,.9fr) minmax(88px,.95fr) minmax(104px,1.08fr) minmax(72px,.78fr)!important;
    gap:6px!important;
  }
}
@media (min-width:1101px) and (max-width:1320px){
  .target-grid,
  .phase14-grid{
    grid-template-columns:minmax(0,1.12fr) minmax(0,.62fr) minmax(500px,1.26fr)!important;
  }
}
