/* AEGIS PRIMARY AVIONICS — compact aircraft instrumentation, not another report.
 * Preserve every detailed motor in a bounded, keyboard-scrollable systems bay.
 */
body.acf-mode .acf-root{gap:8px}
body.acf-mode .acf-top{padding:9px 14px;gap:9px}
body.acf-mode .acf-topcontrols{gap:7px}
body.acf-mode .acf-statusbar{padding:7px 13px}
body.acf-mode .acf-contacts-section{padding:7px 11px;gap:5px}
body.acf-mode .acf-contact{padding:6px 9px}
body.acf-mode .acf-primary{gap:8px}
body.acf-mode .acf-pilot-panel{
 grid-column:1/-1;min-width:0;display:grid;gap:10px;
 padding:10px 12px 9px;border:1px solid #527889;border-top:3px solid #7be4ea;
 border-radius:10px;background:linear-gradient(100deg,#09253b,#0a1d30 62%,#112d3d);
 box-shadow:inset 0 1px 0 #b9eefb20,0 5px 18px #0006
}
body.acf-mode .acf-pilot-head,body.acf-mode .acf-pilot-footer{
 display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap
}
body.acf-mode .acf-pilot-caption{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
body.acf-mode .acf-pilot-kicker{
 font:950 .75em/1.25 system-ui,sans-serif;color:#bbf3f3;letter-spacing:.11em
}
body.acf-mode .acf-pilot-subtitle{
 font:800 .60em/1.3 system-ui,sans-serif;color:#86b5c7;letter-spacing:.06em
}
body.acf-mode .acf-pilot-master{
 border:1px solid #5d8193;background:#183040;color:#bfdbed;
 padding:7px 11px;border-radius:4px;font:900 .68em/1.3 system-ui,sans-serif;
 letter-spacing:.075em;max-width:100%;text-align:center
}
body.acf-mode .acf-pilot-master[data-state=CONFLICTING_OBSERVATIONS],
body.acf-mode .acf-pilot-master[data-state=CAUTION]{
 border-color:#e2a45f;background:#422c1e;color:#ffdbaf;
 box-shadow:inset 0 0 0 1px #f7b76e33
}
body.acf-mode .acf-pilot-gauges{
 display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;min-width:0
}
body.acf-mode .acf-pilot-gauge{
 display:grid;grid-template-rows:auto 1fr;justify-items:center;gap:6px;
 padding:9px 5px 7px;min-width:0;border:1px solid #335d71;border-radius:7px;
 background:linear-gradient(#0a2737,#081827);
}
body.acf-mode .acf-pilot-gauge[data-kind=sample]{border-color:#357c9c}
body.acf-mode .acf-pilot-gauge[data-kind=validated]{border-color:#468f80}
body.acf-mode .acf-pilot-gauge[data-kind=caution]{border-color:#947049}
body.acf-mode .acf-pilot-label{
 color:#a7d4e4;font:950 .65em/1.25 system-ui,sans-serif;
 letter-spacing:.07em;text-align:center;overflow-wrap:anywhere
}
body.acf-mode .acf-pilot-dial{
 --pilot-fill:0%;
 width:100%;max-width:112px;aspect-ratio:1;border-radius:50%;
 position:relative;display:grid;place-items:center;
 background:conic-gradient(from 215deg,
  #68d5e7 var(--pilot-fill),#234458 var(--pilot-fill));
 box-shadow:0 1px 10px #0007,inset 0 0 0 3px #24485a;
}
body.acf-mode .acf-pilot-gauge[data-kind=validated] .acf-pilot-dial{
 background:conic-gradient(from 215deg,#6ee2bf var(--pilot-fill),#234458 var(--pilot-fill))
}
body.acf-mode .acf-pilot-gauge[data-kind=caution] .acf-pilot-dial{
 background:conic-gradient(from 215deg,#e9b474 var(--pilot-fill),#234458 var(--pilot-fill))
}
body.acf-mode .acf-pilot-gauge[data-kind=context] .acf-pilot-dial{
 background:conic-gradient(from 215deg,#8fa6fb var(--pilot-fill),#234458 var(--pilot-fill))
}
body.acf-mode .acf-pilot-gauge[data-kind=empty] .acf-pilot-dial{
 background:conic-gradient(#294b5e 100%,#294b5e 0)
}
body.acf-mode .acf-pilot-dial:before{
 content:"";position:absolute;inset:8%;background:radial-gradient(circle,#102f40,#061525);
 border:1px solid #557b89;border-radius:50%
}
body.acf-mode .acf-pilot-core{
 display:grid;gap:2px;place-items:center;position:relative;z-index:1;
 width:90%;max-width:90%;min-width:0;
}
body.acf-mode .acf-pilot-value{
 color:#e7faff;font:950 clamp(.87rem,1.36vw,1.25rem)/1.12 ui-monospace,monospace;
 letter-spacing:-.045em;text-align:center;overflow-wrap:anywhere
}
body.acf-mode .acf-pilot-unit{
 color:#9ec1ce;font:750 .48em/1.2 system-ui,sans-serif;text-align:center;
 max-width:95%;overflow-wrap:anywhere
}
body.acf-mode .acf-pilot-gauge[data-kind=caution] .acf-pilot-value{color:#ffdfad}
body.acf-mode .acf-pilot-age{
 font:720 .62em/1.3 ui-monospace,monospace;color:#90b7ca
}
body.acf-mode .acf-pilot-lock{
 color:#ffd19f;font:950 .66em/1.3 system-ui,sans-serif;letter-spacing:.065em
}
body.acf-mode .acf-second{grid-template-columns:minmax(0,1fr)}
body.acf-mode .acf-chart-panel{padding:10px 12px;gap:7px}
body.acf-mode .acf-systems-bay{
 display:grid;gap:8px;padding:10px 12px;min-width:0;border-radius:10px;
 border:1px solid #2f5369;background:linear-gradient(120deg,#071d2d,#071626)
}
body.acf-mode .acf-systems-head{
 display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap
}
body.acf-mode .acf-systems-heading{display:grid;gap:3px;min-width:0}
body.acf-mode .acf-systems-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
body.acf-mode .acf-systems-hint{
 color:#93acbb;font:650 .61em/1.3 system-ui,sans-serif
}
body.acf-mode .acf-systems-toggle{
 min-height:36px;padding:7px 11px;border:1px solid #78d5e4;border-radius:6px;
 background:#113d51;color:#d5f7fa;cursor:pointer;
 font:850 .67em/1.3 system-ui,sans-serif
}
body.acf-mode .acf-systems-toggle:focus-visible,
body.acf-mode .acf-systems-window:focus-visible{
 outline:3px solid #ade6f0;outline-offset:2px
}
body.acf-mode .acf-systems-window{
 display:grid;align-content:start;gap:10px;overflow-y:auto;overscroll-behavior:contain;
 max-height:clamp(240px,32vh,380px);padding:2px 6px 3px 2px;
 scrollbar-color:#418497 #102838;min-width:0
}
body.acf-mode .acf-systems-window>:is(section,div){min-width:0}
body.acf-mode .acf-systems-bay[data-expanded=true] .acf-systems-window{
 max-height:none;overflow-y:visible
}
@media(max-width:1200px){
 body.acf-mode .acf-pilot-gauges{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.acf-mode .acf-pilot-dial{max-width:96px}
}
@media(max-width:650px){
 body.acf-mode .acf-pilot-panel{padding:8px 7px}
 body.acf-mode .acf-pilot-gauges{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 body.acf-mode .acf-pilot-gauge{padding:6px 3px}
 body.acf-mode .acf-pilot-dial{max-width:86px}
 body.acf-mode .acf-pilot-value{font-size:.95rem}
 body.acf-mode .acf-pilot-core{gap:1px}
 body.acf-mode .acf-pilot-unit{font-size:.42em}
 body.acf-mode .acf-systems-bay{padding:8px}
 body.acf-mode .acf-systems-head{align-items:flex-start}
 body.acf-mode .acf-systems-window{max-height:300px}
}

/* Mobile cockpit: EICAS behaves like an aircraft instrument strip, not six
 * vertically stacked report cards. Scope/attitude remain legible and usable. */
@media(max-width:650px){
 body.acf-mode .acf-top{padding:7px 8px;gap:6px}
 body.acf-mode .acf-title{font-size:clamp(1.0rem,4vw,1.25rem)}
 body.acf-mode .acf-statusbar{padding:6px 9px;gap:4px}
 body.acf-mode .acf-contacts-section{padding:5px 7px}
 body.acf-mode .acf-pilot-panel{gap:6px}
 body.acf-mode .acf-pilot-gauge{gap:3px;padding:4px 2px}
 body.acf-mode .acf-pilot-dial{max-width:64px}
 body.acf-mode .acf-pilot-label{font-size:.54em}
 body.acf-mode .acf-pilot-value{font-size:.83rem}
 body.acf-mode .acf-pilot-unit{font-size:.4em}
 body.acf-mode .acf-leftbank{padding:7px 8px}
 body.acf-mode .acf-leftbank>.acf-panel-title{margin:0}
 body.acf-mode .acf-instruments{
  display:flex;grid-template-columns:none;gap:6px;overflow-x:auto;
  scroll-snap-type:x mandatory;overscroll-behavior-x:contain;
  scrollbar-color:#4e97a9 #0a2638;padding:3px 4px 8px
 }
 body.acf-mode .acf-instrument{
  flex:0 0 110px;min-width:110px;padding:5px 3px;
  gap:4px;scroll-snap-align:start
 }
 body.acf-mode .acf-dial{width:76px}
 body.acf-mode .acf-instrument-label{font-size:.56em}
 body.acf-mode .acf-instrument-foot{font-size:.48em}
 body.acf-mode .acf-pfd{padding:7px 8px}
 body.acf-mode .acf-horizon{min-height:190px}
 body.acf-mode .acf-horizon-ring{width:min(164px,68%)}
 body.acf-mode .acf-radar-panel{padding:7px 8px;gap:4px}
 body.acf-mode .acf-radar-scope{width:min(145px,100%);margin:2px auto}
 body.acf-mode .acf-radar-blip{
  transform:rotate(var(--angle)) translateY(-56px) rotate(calc(0deg - var(--angle)));
 }
 body.acf-mode .acf-engine-rows{
  grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px
 }
 body.acf-mode .acf-engine-row{padding:2px 0;gap:4px;grid-template-columns:7px minmax(0,1fr)}
 body.acf-mode .acf-engine-row span{grid-column:2;text-align:left;font-size:.48em}
 body.acf-mode .acf-chart-panel{padding:7px 8px}
 body.acf-mode .acf-systems-window{max-height:230px}
}

/* Passive four-motor avionics annunciator: states are descriptive and never
 * imply a synchronized decision, independent corroboration, or permission. */
body.acf-mode .acf-pilot-enginebus{
 display:flex;gap:6px;align-items:center;flex-wrap:wrap;min-width:0
}
body.acf-mode .acf-pilot-bustitle{
 color:#8fb2c4;font:850 .58em/1.25 system-ui,sans-serif;
 letter-spacing:.06em;margin-right:3px
}
body.acf-mode .acf-pilot-engine{
 display:inline-flex;align-items:center;gap:6px;padding:3px 7px;
 border:1px solid #365266;border-radius:4px;background:#0a1b2a;
 font:780 .58em/1.3 system-ui,sans-serif;color:#acc6d2;
 min-width:0
}
body.acf-mode .acf-pilot-engine:before{
 content:"";width:6px;height:6px;border-radius:50%;flex:none;
 background:#6c7d87
}
body.acf-mode .acf-pilot-engine-name{font-weight:950;color:#b6d4e0}
body.acf-mode .acf-pilot-engine-status{font-weight:850;letter-spacing:.025em}
body.acf-mode .acf-pilot-engine[data-state=observed]{
 border-color:#447e91;color:#a8dce6
}
body.acf-mode .acf-pilot-engine[data-state=observed]:before{background:#65c7de}
body.acf-mode .acf-pilot-engine[data-state=caution]{
 border-color:#967448;color:#f5c992
}
body.acf-mode .acf-pilot-engine[data-state=caution]:before{background:#ecb76c}
body.acf-mode .acf-pilot-engine[data-state=context]{
 border-color:#626a94;color:#c8ccf6
}
body.acf-mode .acf-pilot-engine[data-state=context]:before{background:#98a2e5}
/* On phones, keep the annunciators on ONE aircraft-style strip rather
 * than adding a second row to the document's vertical cockpit height.
 * Overflow scrolls inside the strip; labels and individual lamps remain visible
 * and accessible, with no clipping of the page or suppressed motor readings. */
@media(max-width:650px){
 body.acf-mode .acf-pilot-enginebus{
  display:flex;flex-wrap:nowrap;align-items:center;gap:5px;
  overflow-x:auto;overflow-y:hidden;max-width:100%;min-width:0;
  padding:2px 1px 4px;white-space:nowrap;
  overscroll-behavior-x:contain;scrollbar-color:#4e97a9 #0a2638
 }
 body.acf-mode .acf-pilot-bustitle{
  width:auto;flex:0 0 auto;margin-right:2px;font-size:.53em
 }
 body.acf-mode .acf-pilot-engine{
  flex:0 0 auto;white-space:nowrap;gap:3px;padding:3px 5px;font-size:.52em
 }
 body.acf-mode .acf-pilot-engine:before{width:5px;height:5px}
}

/* Customer-only instant interpretation of EXISTING aircraft gauges.
   No second panel, no change of needles, ranges, data or owner view. */
body.acf-mode .acf-root.acf-public .acf-pilot-gauge{
 grid-template-rows:auto 1fr auto
}
body.acf-mode .acf-root.acf-public .acf-pilot-glance{
 display:grid;place-items:center;width:100%;min-height:24px;
 margin:0;color:#c5e9f3;font:800 .68rem/1.2 system-ui,sans-serif;
 text-align:center;overflow-wrap:anywhere;letter-spacing:.005em
}
body.acf-mode .acf-root.acf-public .acf-pilot-glance[data-has-reading="false"]{
 color:#9aabb5
}
body.acf-mode .acf-root.acf-public .acf-pilot-subtitle{
 font-size:.72rem;line-height:1.4;letter-spacing:0;color:#bce0eb;
 max-width:65ch;overflow-wrap:anywhere
}
@media(max-width:650px){
 body.acf-mode .acf-root.acf-public .acf-pilot-glance{
  min-height:23px;font-size:.59rem;line-height:1.15
 }
 body.acf-mode .acf-root.acf-public .acf-pilot-subtitle{
  font-size:.66rem;line-height:1.3;max-width:100%
 }
}
