/* The cockpit's style sheet.
   Everything down to the line "the live page" is the approved page's own style sheet (قمرة SRU, version 12), as it was
   published and as it stands in demo/index.html. It is not edited here: a change of the look is a change of the design. */
/* Layout: one 1920x1080 cockpit stage, scaled to fit. Video fills the stage. Round icon controls float over it, DJI Pilot 2 style: flight rail left, camera rail right, mission top-left, map bottom-left, attitude bottom-centre, speaker bottom-right. One banner slot under the compass for anything critical. */
:root{
  --ink:#ffffff; --ink2:rgba(255,255,255,.7); --ink3:rgba(255,255,255,.64);
  --glass:rgba(8,9,11,.46); --glass2:rgba(8,9,11,.78); --edge:rgba(255,255,255,.2); --line:rgba(255,255,255,.12);
  --blue:#1f8fff; --blue2:#5fb0ff; --green:#19d27a; --yellow:#ffbe0b; --red:#ff3b30; --route:#3fa7ff; --ping:#2fe0ff; --grey:#a7b0ba;
  --ui:'IBM Plex Sans Arabic','Segoe UI',Tahoma,sans-serif; --num:'Inter','Segoe UI',Arial,sans-serif;
  color-scheme:dark;
}
html,body{height:100%;margin:0;background:#000;overflow:hidden}
[hidden]{display:none!important}
body{font-family:var(--ui);color:var(--ink);-webkit-font-smoothing:antialiased}
#fit{position:fixed;inset:0;background:#000;overflow:hidden}
#stage{position:absolute;left:50%;top:50%;width:1920px;height:1080px;transform-origin:50% 50%;overflow:hidden;background:#0b0d10;font-size:calc(14px*var(--t));line-height:1.35;direction:rtl;outline:none}
.n{font-family:var(--num);font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate;letter-spacing:-.01em}
.ab{position:absolute}
.row{display:flex;align-items:center;gap:8px}
.col{display:flex;flex-direction:column;gap:8px}
.ic{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ic.s{width:15px;height:15px}.ic.m{width:22px;height:22px}.ic.l{width:26px;height:26px}.ic.xl{width:30px;height:30px}
.lbl{font-size:calc(12.5px*var(--t));color:var(--ink2)}
.cap{font-size:calc(12px*var(--t));color:var(--ink3)}
.osd{text-shadow:0 0 2px rgba(0,0,0,.9),0 1px 3px rgba(0,0,0,.6)}
.osvg{filter:drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 1px 2px rgba(0,0,0,.5));overflow:visible}
button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
button:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--blue2);outline-offset:3px}
.k{font-family:var(--num);font-size:calc(10.5px*var(--t));line-height:calc(15px*var(--t));min-width:16px;padding:0 4px;border-radius:4px;border:1px solid rgba(255,255,255,.3);color:var(--ink2);text-align:center;direction:ltr;display:inline-block}
.pill{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:14px;background:rgba(255,255,255,.08);font-size:calc(13px*var(--t));white-space:nowrap}
.dot{width:8px;height:8px;border-radius:50%;flex:none;display:inline-block}
.cs{font-size:calc(11.5px*var(--t));padding:1px 8px;border-radius:9px;white-space:nowrap;background:rgba(255,255,255,.08);color:var(--ink3)}
.cs.on{background:rgba(31,143,255,.25);color:#cfe7ff}.cs.ok{background:rgba(25,210,122,.22);color:#b6f5d4}.cs.no{background:rgba(255,59,48,.28);color:#ffc2bd}
/* round icon buttons */
.rb{position:relative;width:52px;height:52px;border-radius:50%;border:1px solid var(--edge);background:var(--glass);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);display:inline-flex;align-items:center;justify-content:center;color:#fff;padding:0;transition:background .12s,border-color .12s,transform .08s;flex:none}
.rb:hover{background:rgba(8,9,11,.66);border-color:rgba(255,255,255,.4)}
.rb:active{transform:scale(.95)}
.rb.sm{width:42px;height:42px}
/* two of the camera's small buttons side by side in the rail: the detectors' (DJI's, ours: src/aerial.mjs) and the thermal lens's (its colours, its panel).
   One more button under the others ran the rail past the screen's foot, and on the thermal lens with every accessory it already ran 41 px past it (18 Nov).
   A pair's row is as wide as one small button, the two centred on it and past its sides: a wider row widened the column and moved every button under the shutter */
.duo{width:42px;gap:4px;justify-content:center}
.duo .rb.sm{width:38px;height:38px}
.duo:not(:has(> :not([hidden]))){display:none}
.rb.on{background:var(--blue);border-color:var(--blue2)}
.rb.warn{border-color:rgba(255,190,11,.75);color:#ffd34d}
.rb.go{background:rgba(25,210,122,.22);border-color:var(--green);color:#b6f5d4}
.rb.lock{border-color:rgba(255,255,255,.12);color:rgba(255,255,255,.42)}
.rb.lock.warn{color:rgba(255,211,77,.5);border-color:rgba(255,190,11,.35)}
.rb .badge{position:absolute;top:-3px;left:-3px;width:18px;height:18px;border-radius:50%;background:#16181c;border:1px solid var(--edge);display:flex;align-items:center;justify-content:center}
.rb .badge .ic{width:11px;height:11px;stroke-width:2.2}
.rb .key{position:absolute;bottom:-4px;left:-4px;font-family:var(--num);font-size:calc(10px*var(--t));line-height:calc(14px*var(--t));padding:0 4px;border-radius:4px;background:#16181c;border:1px solid var(--edge);color:var(--ink2)}
.rb .ring{position:absolute;inset:-5px;width:calc(100% + 10px);height:calc(100% + 10px);transform:rotate(-90deg);pointer-events:none}
.rb .ring circle{fill:none;stroke:var(--yellow);stroke-width:3;stroke-linecap:round}
.rb[data-tip]::after{content:attr(data-tip);position:absolute;top:50%;transform:translateY(-50%);white-space:nowrap;font-size:calc(13px*var(--t));line-height:1.3;padding:6px 10px;border-radius:7px;background:rgba(8,9,11,.92);border:1px solid var(--line);color:#fff;opacity:0;pointer-events:none;transition:opacity .12s;z-index:9}
.rl .rb[data-tip]::after{left:calc(100% + 12px)}
.rr .rb[data-tip]::after{right:calc(100% + 12px)}
.rbot .rb[data-tip]::after{top:auto;bottom:calc(100% + 12px);transform:none;right:0}
.rb[data-tip]:hover::after,.rb[data-tip]:focus-visible::after{opacity:1}
.rb.open::after{display:none}
.txt{font-family:var(--num);font-weight:700;font-size:calc(14px*var(--t));letter-spacing:.02em}
.sep{width:28px;height:1px;background:var(--line);margin:0 auto;flex:none}
/* top bar */
#top{left:0;right:0;top:0;height:56px;background:linear-gradient(rgba(0,0,0,.8),rgba(0,0,0,.55));display:flex;align-items:center;justify-content:space-between;padding:0 16px;gap:14px;z-index:5}
#battline{left:0;right:0;top:56px;height:4px;background:rgba(255,255,255,.12);z-index:5}
#battline i{position:absolute;top:0;bottom:0;right:0;display:block;background:var(--green)}
#battline u{position:absolute;top:-4px;height:12px;width:2px;display:block;transition:right .4s}
#battline u b{position:absolute;top:12px;left:50%;transform:translateX(-50%);font-family:var(--num);font-size:calc(10px*var(--t));font-weight:800;line-height:calc(13px*var(--t));padding:0 3px;border-radius:3px;color:#111}
.est{opacity:.55}
.live{transition:opacity .2s}
#stage.stale .live{opacity:.35}
/* who holds the flight and the camera: the camera's pill blue while it is this cockpit's, as approved; both dim while this computer has no channel to the server */
#camAuth.mine{background:rgba(31,143,255,.2)}
#flAuth.mine{background:rgba(25,210,122,.22)}
#flAuth.asking{background:rgba(255,190,11,.2)}
#reqBtn.nudge{box-shadow:0 0 0 6px rgba(255,190,11,.35)}
#flAuth.stale,#camAuth.stale{opacity:.35}
/* video */
#view{inset:0;overflow:hidden;cursor:crosshair}
#img{position:absolute;left:50%;top:50%;width:1920px;height:1080px;margin:-540px 0 0 -960px;transform-origin:50% 50%;will-change:transform}
#img img{position:absolute;inset:0;width:100%;height:100%;display:block;transition:filter .2s}
.vig{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0) 24%),radial-gradient(120% 90% at 50% 46%,transparent 58%,rgba(0,0,0,.45) 100%)}
/* the hand on the gimbal (docs/plans/2026-11-16-gimbal-speed-slice.md): the press's ring, as DJI Pilot 2's, and the hand's dot at its way from it */
#gring{position:absolute;width:56px;height:56px;margin:-28px 0 0 -28px;border:2px solid rgba(255,255,255,.85);border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.45);pointer-events:none;z-index:2}
#gring i{position:absolute;left:50%;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 2px rgba(255,255,255,.9);transform:translate(var(--dx,0px),var(--dy,0px))}
#focBox{position:absolute;width:72px;height:72px;margin:-36px 0 0 -36px;border:2px solid #4ade80;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.55);pointer-events:none;z-index:2}
#zbox{position:absolute;border:2px solid #fff;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.6),inset 0 0 0 1px rgba(0,0,0,.35);background:rgba(255,255,255,.07);pointer-events:none;z-index:2}
#zbox b{position:absolute;bottom:calc(100% + 6px);left:-2px;font-size:calc(13px*var(--t));line-height:calc(20px*var(--t));padding:0 7px;border-radius:5px;background:rgba(0,0,0,.75);white-space:nowrap}
.box{position:absolute;color:var(--yellow)}
.box::before,.box::after{content:"";position:absolute;inset:0;border:2px solid currentColor;filter:drop-shadow(0 0 1px #000)}
.box::before{clip-path:polygon(0 0,32% 0,32% 2px,2px 2px,2px 32%,0 32%,0 68%,2px 68%,2px calc(100% - 2px),32% calc(100% - 2px),32% 100%,0 100%)}
.box::after{clip-path:polygon(68% 0,100% 0,100% 32%,calc(100% - 2px) 32%,calc(100% - 2px) 2px,68% 2px,68% calc(100% - 2px),calc(100% - 2px) calc(100% - 2px),calc(100% - 2px) 68%,100% 68%,100% 100%,68% 100%)}
.box b{position:absolute;bottom:calc(100% + 4px);right:-2px;font-size:calc(12px*var(--t));font-weight:500;line-height:calc(18px*var(--t));padding:0 6px;border-radius:4px;background:rgba(0,0,0,.72);color:#fff;white-space:nowrap}
.wm{position:absolute;transform:translate(-50%,-100%);display:flex;flex-direction:column;align-items:center;gap:3px;pointer-events:none}
.wm span{font-size:calc(12px*var(--t));line-height:calc(18px*var(--t));padding:0 7px;border-radius:9px;background:rgba(0,0,0,.66);white-space:nowrap}
.edge{position:absolute;display:flex;align-items:center;gap:6px;font-size:calc(12px*var(--t));padding:3px 8px;border-radius:12px;background:rgba(0,0,0,.6);pointer-events:none;white-space:nowrap}
#flash{inset:0;background:#fff;opacity:0;pointer-events:none;transition:opacity .25s}
#frozen{left:50%;top:50%;transform:translate(-50%,-50%);z-index:3}
/* map */
.map{position:absolute;overflow:hidden;background:#0d1114}
.map .ly{position:absolute;left:0;top:0;width:1280px;height:960px;transform-origin:0 0}
.map .ly img,.map .ly svg{position:absolute;inset:0;width:1280px;height:960px}
.map .ly img{filter:saturate(.85) brightness(.92)}
#mini{left:16px;bottom:16px;width:440px;height:262px;border-radius:12px;border:1px solid var(--edge);box-shadow:0 8px 24px rgba(0,0,0,.45);cursor:pointer;z-index:3}
/* rails */
#railL{left:18px;top:146px;display:flex;flex-direction:column;gap:13px;align-items:center;z-index:4}
#railR{right:18px;top:92px;display:flex;flex-direction:column;gap:10px;align-items:center;z-index:4}
#mis{left:18px;top:84px;z-index:4;display:flex;align-items:center;gap:10px;height:48px;padding:0 6px 0 14px;border-radius:24px;background:var(--glass);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid var(--edge)}
.zoomrail{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:6px 0;border-radius:26px;background:var(--glass);border:1px solid var(--edge);width:46px;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.zoomrail button{width:40px;height:34px;border:0;background:transparent;border-radius:17px;display:flex;align-items:center;justify-content:center;color:#fff}
.zoomrail button:hover{background:rgba(255,255,255,.1)}
#ztrack{position:relative;width:6px;height:124px;border-radius:3px;background:rgba(255,255,255,.18);cursor:pointer}
#zfill{position:absolute;left:0;right:0;bottom:0;border-radius:3px;background:var(--blue)}
#zfill.dig{background:linear-gradient(to top,var(--blue) 0,var(--blue) var(--opt,100%),var(--yellow) var(--opt,100%))}
#zknob{position:absolute;left:50%;width:18px;height:18px;margin-left:-9px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.6)}
.ztick{position:absolute;right:16px;transform:translateY(50%);font-family:var(--num);font-size:calc(10.5px*var(--t));color:var(--ink2);white-space:nowrap;text-shadow:0 0 3px #000;pointer-events:none}
.ztick::after{content:"";position:absolute;right:-12px;top:50%;width:8px;height:1px;background:rgba(255,255,255,.55)}
#zq{font-size:calc(10.5px*var(--t));line-height:calc(13px*var(--t));padding:0 5px;border-radius:6px}
.lens{display:flex;flex-direction:column;gap:6px;padding:5px;border-radius:26px;background:var(--glass);border:1px solid var(--edge);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.lens button{width:40px;height:40px;border-radius:50%;border:0;background:transparent;color:var(--ink2)}
.lens button.on{background:var(--blue);color:#fff}
.lens button:hover:not(.on){background:rgba(255,255,255,.1)}
#shutter{width:72px;height:72px;border-radius:50%;border:4px solid #fff;background:rgba(8,9,11,.35);display:flex;align-items:center;justify-content:center;padding:0;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
#shutter i{display:block;width:50px;height:50px;border-radius:50%;background:#fff;transition:all .15s}
#shutter.vid i{background:var(--red);width:28px;height:28px}
#shutter.vid.rec i{border-radius:7px;width:24px;height:24px}
.modes{display:flex;gap:2px;padding:3px;border-radius:18px;background:var(--glass);border:1px solid var(--edge)}
.modes button{width:34px;height:30px;border:0;border-radius:15px;background:transparent;color:var(--ink2);display:flex;align-items:center;justify-content:center}
.modes button.on{background:rgba(255,255,255,.18);color:#fff}
/* popovers */
.pop{position:absolute;padding:14px;border-radius:12px;background:var(--glass2);border:1px solid var(--edge);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);z-index:8;display:flex;flex-direction:column;gap:10px}
.pop h3{margin:0;font-size:calc(15px*var(--t));font-weight:600}
.sr{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px;font-size:calc(13.5px*var(--t))}
.sr .v{display:flex;align-items:center;gap:6px}
.step{width:30px;height:30px;border-radius:50%;border:1px solid var(--edge);background:rgba(255,255,255,.06);display:inline-flex;align-items:center;justify-content:center;padding:0}
.step:disabled{opacity:.35;cursor:not-allowed}
.chips{display:flex;gap:4px}
.chips button{height:30px;padding:0 10px;border-radius:15px;border:1px solid var(--edge);background:transparent;font-size:calc(12.5px*var(--t));color:var(--ink2)}
.chips button.on{background:var(--blue);border-color:var(--blue2);color:#fff}
.chips button:disabled{opacity:.4;cursor:not-allowed}
.scn{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 10px;border-radius:8px;border:1px solid var(--line);background:rgba(255,255,255,.05);font-size:calc(13.5px*var(--t));text-align:right}
.scn:hover{background:rgba(255,255,255,.11)}
/* banner */
#banner{left:50%;top:calc(136px*var(--k,1));transform:translateX(-50%);z-index:7;display:flex;align-items:center;gap:12px;padding:10px 12px 10px 16px;border-radius:12px;border:1px solid;max-width:980px;box-shadow:0 8px 28px rgba(0,0,0,.45);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
#hmsChip{max-width:calc(300px*var(--t));border:0;cursor:pointer;background:rgba(255,190,11,.22);color:#ffd98a}
#hmsChip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#hmsChip.red{background:rgba(255,59,48,.3);color:#ffc9c5}
#banner.red{background:rgba(110,14,10,.88);border-color:#ff6b62}
#banner.amber{background:rgba(92,62,0,.9);border-color:var(--yellow)}
#banner.blue{background:rgba(8,46,92,.9);border-color:var(--blue2)}
#banner .bt{display:flex;flex-direction:column;gap:2px;min-width:0}
#banner b{font-size:calc(15px*var(--t))}
#banner span.d{display:none}
#banner .bb{height:38px;padding:0 14px;border-radius:19px;border:1px solid rgba(255,255,255,.4);background:rgba(255,255,255,.1);font-size:calc(13.5px*var(--t));font-weight:500;white-space:nowrap}
#banner .bb.pri{background:#fff;color:#111;border-color:#fff}
#cd{width:44px;height:44px;flex:none}
/* bottom */
#pfd{left:50%;bottom:10px;transform:translateX(-50%);display:flex;align-items:center;gap:20px;z-index:3}
.ro{display:flex;flex-direction:column;align-items:center;gap:0;min-width:92px}
.ro b{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:calc(26px*var(--t));font-weight:600;direction:ltr;letter-spacing:-.02em}
.ro span{font-size:calc(13px*var(--t));color:rgba(255,255,255,.9)}
#spk{right:18px;bottom:22px;display:flex;align-items:center;gap:12px;z-index:4}
#ptt{width:64px;height:64px;border-color:rgba(47,224,255,.8);color:#9ef3ff}
#ptt.on{background:rgba(47,224,255,.28);color:#fff;box-shadow:0 0 0 6px rgba(47,224,255,.18)}
#spkPop{right:18px;bottom:100px;width:320px}
#spkPop button.tts{min-height:40px;border-radius:8px;border:1px solid var(--line);background:rgba(255,255,255,.06);font-size:calc(14px*var(--t));text-align:right;padding:0 12px;display:flex;align-items:center;justify-content:space-between}
#spkPop button.tts:hover{background:rgba(255,255,255,.12)}
input[type=range]{accent-color:var(--blue)}
.wave{display:flex;gap:3px;align-items:center;height:24px}
.wave i{width:3px;border-radius:2px;background:var(--ping);display:block;height:3px;transition:height .08s}
.caps{display:grid;grid-template-columns:repeat(3,44px);grid-auto-rows:40px;gap:5px;direction:ltr;z-index:3}
.cap-k{border-radius:7px;border:1px solid rgba(255,255,255,.28);background:rgba(8,9,11,.38);display:flex;align-items:center;justify-content:center;font-family:var(--num);font-weight:600;font-size:calc(15px*var(--t));color:rgba(255,255,255,.9);transition:background .06s,border-color .06s}
.cap-k.on{background:var(--blue);border-color:var(--blue2);color:#fff}
.caps-l{font-size:calc(11.5px*var(--t));color:var(--ink2);text-align:center}
#toasts{left:50%;top:calc(126px*var(--k,1));transform:translateX(-50%);display:flex;flex-direction:column;gap:6px;align-items:center;z-index:4;pointer-events:none}
#stage.hasBanner #toasts{top:calc(206px*var(--k,1))}
.toast{display:flex;align-items:center;gap:8px;padding:7px 12px;border-radius:8px;background:rgba(10,11,13,.82);border:1px solid var(--line);font-size:calc(13.5px*var(--t));line-height:1.5;white-space:nowrap;animation:tin .18s ease-out}
@keyframes tin{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.toast{animation:none}#flash,.rb{transition:none}}
#guide{inset:0;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;z-index:20}
#guide .box2{width:780px;padding:24px;gap:14px;display:flex;flex-direction:column;background:rgba(17,18,21,.96);border:1px solid var(--line);border-radius:14px}
.gk{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 28px}
.gk div{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:calc(14px*var(--t));padding:6px 0;border-bottom:1px solid var(--line)}
#focusHint{left:50%;top:262px;transform:translateX(-50%);z-index:6}
/* inspection mode */
#ins{inset:0;z-index:30;pointer-events:none}
#ins .bdg{position:absolute;width:22px;height:22px;border-radius:50%;border:2px solid #0b0d10;font-family:var(--num);font-size:calc(11px*var(--t));font-weight:700;color:#111;display:flex;align-items:center;justify-content:center;pointer-events:auto;cursor:pointer;transform:translate(-50%,-50%);box-shadow:0 0 0 3px rgba(0,0,0,.35)}
#ins .bdg:hover,#ins .bdg.sel{transform:translate(-50%,-50%) scale(1.25)}
#insLeg{left:50%;top:66px;transform:translateX(-50%);z-index:31;display:flex;align-items:center;gap:14px;padding:8px 10px 8px 16px;border-radius:22px;background:rgba(8,9,11,.92);border:1px solid var(--edge);white-space:nowrap}
#insCard{z-index:32;width:420px;padding:14px 16px;border-radius:12px;background:rgba(10,11,14,.96);border:1px solid var(--edge);display:flex;flex-direction:column;gap:8px;box-shadow:0 10px 30px rgba(0,0,0,.5)}
#insCard .src{font-family:var(--num);font-size:calc(12.5px*var(--t));direction:ltr;text-align:left;color:#cfe7ff;background:rgba(31,143,255,.12);border-radius:6px;padding:6px 8px;line-height:1.5;unicode-bidi:plaintext}
#stage.inspect #view{filter:brightness(.55) saturate(.7)}

/* version 6 */
#holdBtn{width:60px;height:60px;background:#d9261c;border:2px solid #fff;box-shadow:0 0 0 4px rgba(255,59,48,.28)}
#holdBtn:hover{background:#ff3b30;border-color:#fff}
/* the hold waits for the command channel: locked as the rest of the rail, never the red button that would stop the aircraft */
#holdBtn:disabled,#holdBtn:disabled:hover{background:var(--glass);border:1px solid rgba(255,255,255,.12);box-shadow:none;color:rgba(255,255,255,.42)}
#pfd > .col{padding:8px 14px;border-radius:14px;background:rgba(8,9,11,.5)}
#cmdLine{padding:5px 12px;border-radius:16px;background:rgba(8,9,11,.74);border:1px solid var(--line);transition:opacity .25s}
#cmdLine.idle{opacity:0;pointer-events:none}
#proto{left:16px;bottom:288px;z-index:4;gap:8px;height:46px;padding:0 6px 0 14px;border-radius:23px;border:1px dashed rgba(255,255,255,.5);background:rgba(8,9,11,.66)}
#tLat{border:0;cursor:pointer;height:30px}
#logBtn{position:relative;width:34px;height:34px;border-radius:50%;border:1px solid var(--edge);background:rgba(255,255,255,.08);display:inline-flex;align-items:center;justify-content:center;padding:0}
#logN{position:absolute;top:-5px;left:-5px;min-width:17px;height:17px;padding:0 3px;box-sizing:border-box;border-radius:9px;background:var(--blue);font-family:var(--num);font-size:calc(10.5px*var(--t));font-weight:700;line-height:calc(17px*var(--t));text-align:center}
#latPop{left:50%;top:68px;transform:translateX(-50%);width:400px}
#logPop{left:16px;top:68px;width:460px}
#logList{display:flex;flex-direction:column;overflow:auto;max-height:460px}
.lg{display:flex;align-items:flex-start;gap:8px;padding:7px 2px;border-bottom:1px solid var(--line);font-size:calc(13px*var(--t));line-height:1.5}
.lg .tm{font-family:var(--num);font-variant-numeric:tabular-nums;color:var(--ink2);font-size:calc(12px*var(--t));flex:none;padding-top:2px;direction:ltr}
.kv{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:calc(13.5px*var(--t));min-height:30px}
#lookRing{width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.6),inset 0 0 0 1px rgba(0,0,0,.6);pointer-events:none;z-index:6}
/* version 7 arrangement pass */
#pfd{gap:16px}
#pfd > .col{padding:8px 12px}
.ro{min-width:84px}
.ro > span{font-size:calc(12px*var(--t));line-height:calc(16px*var(--t));color:var(--ink2)}
.ro .rv{display:flex;align-items:baseline;gap:4px}
.ro .rv b{font-size:calc(22px*var(--t));line-height:calc(26px*var(--t))}
.ro .rv b.sm{font-size:calc(18px*var(--t));line-height:calc(22px*var(--t))}
.ro .rv i{font-style:normal;font-size:calc(12px*var(--t));color:var(--ink2)}
.box b{display:flex;align-items:center;justify-content:center;width:22px;height:20px;padding:0}
.box b .ic{width:14px;height:14px}
.gone{visibility:hidden !important}
.cs{display:none}
.cs.on,.cs.no,#cs3.ok{display:inline-block}
/* version 9 */
#hudBtn{width:34px;height:34px;border-radius:50%;border:1px solid var(--edge);background:rgba(255,255,255,.08);display:inline-flex;align-items:center;justify-content:center;padding:0}
#hudPop{right:96px;top:64px;width:330px}
.hm,.acr2,.mi{border:0;background:none;color:inherit;font:inherit;cursor:pointer}
.hm{display:flex;align-items:center;gap:12px;width:100%;padding:8px 10px;border-radius:10px;border:1px solid var(--line);background:rgba(255,255,255,.04);text-align:start}
.hm:hover{background:rgba(255,255,255,.1)}
.hm.on{border-color:var(--blue2);background:rgba(31,143,255,.18)}
.hm svg{width:72px;height:40px;flex:none}
.hm b{display:block;font-size:calc(14px*var(--t))}
.hm span{font-size:calc(12px*var(--t));color:var(--ink2)}
#scnPop{width:600px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
#scnPop h3{grid-column:1 / -1}
#acPop{left:16px;bottom:344px;width:600px}
#acList{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px}
.acr2{display:flex;align-items:center;gap:8px;min-height:34px;padding:0 8px;border-radius:8px;text-align:start;font-size:calc(13.5px*var(--t))}
.acr2:hover{background:rgba(255,255,255,.1)}
.acr2.on{background:rgba(31,143,255,.2)}
.acr2 i{width:8px;height:8px;border-radius:50%;flex:none}
.acr2 span{margin-inline-start:auto;font-size:calc(12px*var(--t));color:var(--ink3);white-space:nowrap}
#mapMenu{width:236px;padding:8px;gap:2px;z-index:12}
#mapMenu .mh{display:flex;justify-content:space-between;gap:8px;font-size:calc(12.5px*var(--t));color:var(--ink2);padding:2px 8px 6px;border-bottom:1px solid var(--line);margin-bottom:4px}
.mi{display:flex;align-items:center;gap:10px;width:100%;height:38px;padding:0 10px;border-radius:8px;font-size:calc(14px*var(--t));text-align:start}
.mi:hover{background:rgba(255,255,255,.1)}
.mi>span{display:flex;flex-direction:column;gap:1px}
.mi.off{height:auto;min-height:38px;padding-block:4px;opacity:.6;cursor:not-allowed}
.mi.off:hover{background:none}
.mi .mw{font-size:calc(11.5px*var(--t));color:#ffd34d;line-height:1.25}
#miniScale i,#bigScale i{display:inline-block;box-sizing:border-box;height:7px;border:1.6px solid #fff;border-top:0;vertical-align:-1px}
#bigScale{left:476px;bottom:226px;z-index:4;background:rgba(0,0,0,.6)}
#proto .rb[data-tip]::after{right:auto;left:0}
#mapRec{position:absolute;left:476px;bottom:264px;z-index:4;width:38px;height:38px}
#hud2{inset:0;pointer-events:none;z-index:3}
.hp{position:absolute}
.hsub{display:flex;align-items:center;justify-content:center;gap:5px;height:24px;border-radius:8px;background:rgba(8,9,11,.5);font-size:calc(13px*var(--t));white-space:nowrap}
.hpill{display:flex;align-items:center;gap:18px;height:40px;padding:0 18px;border-radius:20px;background:rgba(8,9,11,.55);white-space:nowrap}
.hpill span{display:inline-flex;align-items:center;gap:6px;font-size:calc(13px*var(--t));color:var(--ink2)}
.hpill b{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:calc(18px*var(--t));font-weight:600;color:#fff;direction:ltr}
#stage[data-hud="tape"] #pfd > .col,#stage[data-hud="game"] #pfd > .col,#stage[data-hud="calm"] #pfd > .col{display:none}
#stage[data-hud="tape"] #ball{width:168px;height:168px}
#stage[data-hud="game"] #ball{width:150px;height:150px}
#stage[data-hud="calm"] #pfd{display:none;bottom:64px}
#stage[data-hud="calm"].needBall #pfd{display:flex}
#stage[data-hud="calm"] #ball{width:150px;height:150px}
#stage[data-hud="game"] #mini{width:262px;border-radius:50%}
#stage[data-hud="game"] #miniLbl{right:auto !important;left:50%;top:auto !important;bottom:16px;transform:translateX(-50%)}
#stage[data-hud="game"] #miniName{display:none}
/* version 10 */
#map3d{inset:0;background:#0b0f14;cursor:grab}
#map3d:active{cursor:grabbing}
#v3Bar{left:476px;bottom:226px;z-index:4;display:flex;gap:2px;padding:3px;border-radius:22px;background:var(--glass);border:1px solid var(--edge);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
#v3Bar button{width:40px;height:36px;border-radius:18px;border:0;background:none;color:#fff;display:inline-flex;align-items:center;justify-content:center;padding:0}
#v3Bar button:hover{background:rgba(255,255,255,.12)}
#v3Bar button.on{background:var(--blue)}
.tb{position:relative;width:34px;height:34px;border-radius:50%;border:1px solid var(--edge);background:rgba(255,255,255,.08);display:inline-flex;align-items:center;justify-content:center;padding:0}
.tb:hover{background:rgba(255,255,255,.16)}
.tb.on{background:var(--blue);border-color:var(--blue2)}
.tb.rec{background:rgba(255,59,48,.3);border-color:var(--red)}
.tbn{position:absolute;top:-5px;left:-5px;min-width:17px;height:17px;padding:0 3px;box-sizing:border-box;border-radius:9px;background:var(--green);color:#04210f;font-family:var(--num);font-size:calc(10.5px*var(--t));font-weight:700;line-height:calc(17px*var(--t));text-align:center}
#tLink,#tGnss{cursor:pointer;padding:4px 6px;margin:-4px -6px;border-radius:8px}
#tLink:hover,#tGnss:hover{background:rgba(255,255,255,.1)}
#sharePop{right:150px;top:68px;width:300px}
/* under its button, at the bar's left end beside the log's panel. The approved page has right:110px here, which opens
   the menu at the other end of the bar from the button that opens it. */
#capPop{left:16px;top:68px;width:270px;gap:4px}
/* the aircraft's card (docs/plans/2026-11-16-media-slice.md): opened from the captures' menu, in its place */
#mediaPop{left:16px;top:68px;width:380px}
/* the aircraft's speaker (docs/plans/2026-11-16-speaker-slice.md): its panel beside the camera's rail */
#spkPop{right:108px;top:520px;width:360px}
/* the thermal panel (src/thermal.mjs): beside the rail, as the speaker's; the hottest and coldest over the picture */
#irPop{right:108px;top:360px;width:380px}
#focPop{right:108px;top:300px;width:300px}
#focPop .pb.on{background:var(--blue);border-color:var(--blue);color:#fff}
#focPop input[type=range]{flex:1}
#focBtnT{font-size:calc(11px*var(--t));font-weight:700;letter-spacing:.02em}
#irPop .row.wrap{flex-wrap:wrap;gap:6px}
#irPop .pb.on{background:var(--blue);border-color:var(--blue);color:#fff}
#irPop input[type=number]{width:72px;min-height:36px;padding:0 8px;border-radius:8px;border:1px solid var(--edge);background:rgba(255,255,255,.06);color:inherit;font:inherit}
#irOsd{left:110px;top:76px;height:30px;font-size:calc(13px*var(--t));background:rgba(0,0,0,.6);z-index:2}
#spkPop input[type=text]{min-height:44px;padding:0 12px;border-radius:10px;border:1px solid var(--edge);background:rgba(255,255,255,.06);color:inherit;font:inherit}
#spkPop input[type=range]{flex:1;accent-color:var(--blue)}
.mdl{display:flex;flex-direction:column;gap:6px;max-height:420px;overflow-y:auto}
.mrl{max-height:200px}
.mf{display:flex;align-items:center;gap:10px;padding:6px;border-radius:10px;background:rgba(255,255,255,.05)}
.mf img,.mf>.ic{width:64px;height:48px;flex:none;border-radius:6px;object-fit:cover;background:rgba(255,255,255,.06)}
.mf>.ic{padding:12px 20px;box-sizing:border-box}
.mfw{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mfw .n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:calc(12.5px*var(--t))}
.mf .pb{flex:none;height:32px;padding:0 12px}
#dockPop{left:300px;top:68px;width:300px}
#linkPop,#posPop{left:50%;top:68px;transform:translateX(-50%);width:360px}
#planPop{left:16px;bottom:344px;width:380px}
.pb{flex:1;height:38px;padding:0 14px;border-radius:19px;border:1px solid var(--edge);background:rgba(255,255,255,.08);font-size:calc(13.5px*var(--t));display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
.pb:hover{background:rgba(255,255,255,.16)}
.pb.pri{background:var(--blue);border-color:var(--blue2)}
.pb.stop{color:#ffc2bd;border-color:rgba(255,59,48,.55)}
.pb:disabled{opacity:.4;cursor:not-allowed}
#plQ{height:40px;border-radius:10px;border:1px solid var(--edge);background:rgba(255,255,255,.06);color:#fff;font:inherit;padding:0 12px;outline:none}
#plQ:focus{border-color:var(--blue2)}
#plQ::placeholder{color:var(--ink3)}
#plQ:placeholder-shown{direction:inherit}
#plRes{display:flex;flex-direction:column;gap:2px}
#plSum{font-size:calc(13px*var(--t));color:var(--ink2);min-height:19px}
#echo{left:50%;bottom:calc(252px*var(--k,1));transform:translateX(-50%);gap:6px;z-index:3;pointer-events:none;direction:ltr}
.ek{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 8px;border-radius:6px;background:var(--blue);border:1px solid var(--blue2);font-size:calc(12.5px*var(--t));font-weight:600;white-space:nowrap}
.ek.no{background:rgba(255,190,11,.22);border-color:rgba(255,190,11,.75);color:#ffe08a}
.ek .ic{width:12px;height:12px}
.pad{width:56px;height:56px;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:rgba(8,9,11,.4);z-index:3;pointer-events:none}
.pad::before,.pad::after{content:"";position:absolute;background:rgba(255,255,255,.22)}
.pad::before{left:50%;top:6px;bottom:6px;width:1px}
.pad::after{top:50%;left:6px;right:6px;height:1px}
.pad i{position:absolute;left:21px;top:21px;width:12px;height:12px;border-radius:50%;background:rgba(255,255,255,.5);transition:transform .06s;z-index:1}
.pad i.on{background:var(--blue2);box-shadow:0 0 0 3px rgba(31,143,255,.35)}
.homeg.est circle{fill:rgba(0,0,0,.55);stroke:#ffbe0b;stroke-width:2;stroke-dasharray:4 3}
.homeg.est text{fill:#ffd34d}
#stage.v3cam #wmarks,#stage.v3cam #osd{visibility:visible;z-index:1}
#v3dBtn[data-tip]::after,#planBtn[data-tip]::after{right:auto;left:0}
#stage.dock .scn[data-s="override"],#stage.dock .scn[data-s="sport"],#stage.dock .scn[data-s="nogps"]{display:none}
@media (prefers-reduced-motion:reduce){.pad i{transition:none}}
/* version 11: lit active controls, short transitions, the stream panel, gimbal presets */
.rb.on,.tb.on,#v3Bar button.on,.lens button.on,.chips button.on{box-shadow:0 0 0 1px rgba(95,176,255,.35),0 0 16px rgba(31,143,255,.55)}
.rb.on .ic,.tb.on .ic,#v3Bar button.on .ic,.lens button.on .ic{filter:drop-shadow(0 0 4px rgba(255,255,255,.7))}
.rb.go{box-shadow:0 0 0 1px rgba(25,210,122,.3),0 0 16px rgba(25,210,122,.4)}
.rb.go .ic{filter:drop-shadow(0 0 4px rgba(120,255,190,.7))}
.rb,.tb,.lens button,.chips button,#v3Bar button{transition:background .14s,border-color .14s,box-shadow .18s,color .14s,transform .08s}
@keyframes popIn{from{opacity:0;translate:0 -6px}to{opacity:1;translate:0 0}}
.pop:not([hidden]){animation:popIn .14s ease-out}
@keyframes capIn{from{opacity:0;scale:.86}to{opacity:1;scale:1}}
.ek{animation:capIn .09s ease-out}
@keyframes livePulse{0%,100%{box-shadow:0 0 0 0 rgba(25,210,122,.55)}60%{box-shadow:0 0 0 6px rgba(25,210,122,0)}}
#vsDot.ok{animation:livePulse 2.2s ease-out infinite}
@media (prefers-reduced-motion:reduce){.pop:not([hidden]),.ek,#vsDot.ok{animation:none}.rb,.tb,.lens button,.chips button,#v3Bar button{transition:none}}
#latPop{width:440px}
#latPop .grp{font-size:calc(12px*var(--t));color:var(--ink3);margin-top:2px}
#sqWhy{display:flex;align-items:flex-start;gap:8px;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.06);font-size:calc(13.5px*var(--t));line-height:1.45}
#sqWhy .dot{margin-top:6px}
#sqPill{font-size:calc(12.5px*var(--t));color:var(--ink2)}
#gimSeg{gap:2px;padding:4px}
#gimSeg button{color:#fff;width:40px;height:36px}
#gimSeg .ic{width:24px;height:24px}
/* version 12: no plates behind the flight readouts; each number carries its known symbol (ALT, VS, SPD, the yellow H of home) */
#pfd > .col{padding:0 4px;background:none;border-radius:0}
#pfd .ro{text-shadow:0 0 2px #000,0 0 5px rgba(0,0,0,.92),0 1px 2px #000;min-width:96px}
#pfd .ro .rv b{font-size:calc(26px*var(--t));line-height:calc(28px*var(--t))}
#pfd .ro .rv b.sm{font-size:calc(20px*var(--t));line-height:calc(24px*var(--t))}
#pfd .ro .rl{display:inline-flex;align-items:center;gap:4px;font:600 calc(12.5px*var(--t))/calc(16px*var(--t)) var(--num);letter-spacing:.04em;color:#fff}
#pfd .ro .rl .ic{width:15px;height:15px;filter:drop-shadow(0 0 2px #000) drop-shadow(0 0 2px #000)}
#pfd .ro .rl .hb{width:16px;height:16px;border-radius:50%;background:var(--yellow);color:#111;font:800 calc(11px*var(--t))/calc(16px*var(--t)) var(--num);text-align:center;text-shadow:none;font-style:normal;box-shadow:0 0 0 1px #000}
.hsub{background:none;text-shadow:0 0 2px #000,0 0 5px rgba(0,0,0,.92),0 1px 2px #000;font-size:calc(14px*var(--t))}
.hsub .ic{filter:drop-shadow(0 0 2px #000) drop-shadow(0 0 2px #000)}
.hpill{background:none;text-shadow:0 0 2px #000,0 0 5px rgba(0,0,0,.92),0 1px 2px #000}
.hpill span{color:#fff}
.hpill .ic{filter:drop-shadow(0 0 2px #000) drop-shadow(0 0 2px #000)}
/* intelligence model: the picture is the subject; aircraft, sensor and target as three data blocks in the corners of the view */
/* its tint is put on the photo itself by imgFilter() (script): on the moving container it cost a third of the frames */
.isr{position:absolute;font:600 calc(15px*var(--t))/calc(22px*var(--t)) var(--num);font-variant-numeric:tabular-nums;direction:ltr;text-align:left;color:#eaf6ff;text-shadow:0 0 2px #000,0 0 5px rgba(0,0,0,.92),0 1px 2px #000;white-space:pre;letter-spacing:.03em;pointer-events:none}
.isr i{font-style:normal;color:#8fd0ff;display:inline-block;min-width:44px;margin-inline-end:4px}
.isr b{font-weight:700;color:#fff}
.isr .t{color:#ffd34d}
/* night display: a green tint on this screen only, for a dark room; it does not change the aircraft's camera */
/* the photo's own tint comes from imgFilter() (script) */
#stage[data-hud="nvg"] #pfd,#stage[data-hud="nvg"] #osd,#stage[data-hud="nvg"] #wmarks{filter:sepia(1) hue-rotate(62deg) saturate(2)}
/* a model's tint on the picture itself, and on the last picture kept while the stream is away: never on its moving
   container, as the approved page measured (it halved the frames there); the aircraft's camera is never touched */
#stage[data-hud="isr"] #frame,#stage[data-hud="isr"] #kept{filter:saturate(.5) contrast(1.14) brightness(.98)}
#stage[data-hud="nvg"] #frame,#stage[data-hud="nvg"] #kept{filter:grayscale(1) brightness(.72) contrast(1.12) sepia(1) hue-rotate(62deg) saturate(1.7)}
/* the round map's own words inside its circle: the imagery's credit, as its terms ask, the tiles that do not come, no place */
#stage[data-hud="game"] #miniCredit{left:50% !important;bottom:46px !important;transform:translateX(-50%);max-width:200px !important;text-align:center}
#stage[data-hud="game"] #miniNoTiles{left:50% !important;top:22px !important;transform:translateX(-50%)}
#stage[data-hud="game"] #miniNoPos{bottom:auto !important;top:52px !important}

/* ---- the live page (index.html). Only what the approved sheet has no rule for. ---- */
#img video,#img canvas{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:contain;background:#000}
/* DJI's on-board detection (docs/plans/2026-11-16-detection-slice.md): its boxes over the picture, in #img's 1920 x 1080 units */
#aiBoxes,#aerialBoxes{position:absolute;inset:0;pointer-events:none;transform-origin:50% 50%}
.aib{position:absolute;border:2px solid currentColor;border-radius:3px;color:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.55)}
.aib b{position:absolute;bottom:calc(100% + 3px);inset-inline-start:-2px;font-size:calc(13px*var(--t));line-height:calc(19px*var(--t));padding:0 6px;border-radius:4px;background:rgba(0,0,0,.72);white-space:nowrap}
.aib.person{color:var(--yellow)}.aib.car{color:var(--blue2)}.aib.boat{color:var(--green)}
/* our own detector's (src/aerial.mjs): its kinds in the controller's colours, the box a little heavier than DJI's */
.aib.air{border-width:3px}.aib.drone{color:var(--red)}.aib.bird{color:var(--green)}.aib.airplane{color:var(--blue2)}.aib.helicopter{color:var(--yellow)}
.aib.in b{bottom:auto;top:3px;inset-inline-start:3px}
/* DJI's Smart Track (docs/plans/2026-11-16-track-slice.md): a box picked while the flight is this cockpit's, the one DJI follows lit */
.aib.pick{pointer-events:auto;cursor:crosshair}.aib.pick:hover{border-width:3px}
.aib.trk{border-width:3px;border-style:dashed}
.aib i{position:absolute;top:calc(100% + 3px);inset-inline-start:-2px;font-style:normal;font-size:calc(12px*var(--t));line-height:calc(18px*var(--t));padding:0 6px;border-radius:4px;background:rgba(0,0,0,.72);white-space:nowrap}
#view.watch{cursor:default}
#toDemo{left:16px;bottom:288px;z-index:4;gap:8px;height:40px;padding:0 14px;border-radius:20px;border:1px dashed rgba(255,255,255,.5);background:rgba(8,9,11,.66);color:var(--ink2);font-size:calc(13px*var(--t));text-decoration:none}
#toDemo:hover{color:#fff;border-color:#fff}
/* the maps' ground, small and large: a provider's tiles, toned as the approved page's map picture */
.map .tiles img{position:absolute;max-width:none;filter:saturate(.85) brightness(.92);pointer-events:none;user-select:none}
/* the map's tools stand 28 px from the stage's left edge: their tips open towards the stage, as the approved #proto row's do */
#mapTools .rb[data-tip]::after{right:auto;left:0}
/* the picture and the map change places (the approved swap): the stage's own picture in the small map's window, scaled
   from 1920 to 440, so that its state, its kept last picture and its stills go with it */
#stage.swapped #view{inset:auto;left:16px;bottom:16px;width:440px;height:262px;border-radius:12px;border:1px solid var(--edge);box-shadow:0 8px 24px rgba(0,0,0,.45);z-index:3;cursor:pointer}
#stage.swapped #img{transform:scale(.2291667)}
/* the marks on the picture are the stage's own: none in the small window (the approved page hides the picture there) */
#stage.swapped #wmarks{display:none}
/* the operator who is logged in, and the way out: the log button's own shape */
#langBtn,#outBtn,#toHealth{width:34px;height:34px;border-radius:50%;border:1px solid var(--edge);background:rgba(255,255,255,.08);display:inline-flex;align-items:center;justify-content:center;padding:0;color:var(--ink);box-sizing:border-box}
#langBtn:hover,#outBtn:hover,#toHealth:hover{background:rgba(255,255,255,.16)}
/* the stream panel's quality and reason line, as approved (docs/plans/2026-11-14-stream-quality-slice.md) */
#sqWhy{display:flex;align-items:flex-start;gap:8px;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.06);font-size:calc(13.5px*var(--t));line-height:1.45}
#sqWhy .dot{margin-top:6px}
#sqPill{font-size:calc(12.5px*var(--t));color:var(--ink2)}

/* Arabic and English (docs/plans/2026-11-14-language-slice.md): the language button; in English the text reads left to
   right while the flight display keeps its order (speed left, altitude right) and the arrows turn with the reading */
#langBtn{font-family:var(--num);font-size:calc(12.5px*var(--t));font-weight:700;letter-spacing:.02em}
#langBtn b{font-weight:700}
#langBtn.corner{position:fixed;top:16px;inset-inline-end:16px;z-index:5}
html[lang=en] #stage{direction:ltr}
html[lang=en] #pfd{direction:rtl}
html[lang=en] #pfd .ro{direction:ltr}
html[lang=en] a.link svg:has(use[href="#arrow-left"]){transform:scaleX(-1)}
html[lang=en] .sr .v>.step:first-child{order:1}
html[lang=en] .sr .v>.step:last-child{order:-1}
/* On a laptop's screen (docs/plans/2026-11-15-laptop-slice.md): the page sets the stage's --k (src/stage.mjs) and the class
   lap; the texts read it through --t and come back to their approved size; the instruments are scaled as wholes and keep
   their own type, each group about the stage's edge it stands on, and what stands on them moves with them; the top bar
   leaves out three words whose icons and titles stay. */
:root{--t:1}
#stage{--t:var(--k,1)}
#pfd,#compass,#osd,#hud2{--t:1}
#stage.lap #pfd,#stage.lap #compass,#stage.lap #osd{scale:var(--k,1)}
#stage.lap #pfd{transform-origin:0 calc(100% + 10px)}
#stage.lap[data-hud="calm"] #pfd{transform-origin:0 calc(100% + 64px)}
#stage.lap #compass{transform-origin:50% -66px}
#stage.lap[data-hud="tape"] #hud2{scale:var(--k,1)}
#stage.lap[data-hud="game"] #hud2,#stage.lap[data-hud="calm"] #hud2{scale:var(--k,1);transform-origin:50% 100%}
#stage.lap[data-hud="isr"] #hud2>*{scale:var(--k,1)}
#stage.lap #isrA,#stage.lap #isrT{transform-origin:0 0}
#stage.lap #isrS{transform-origin:100% 0}
#stage.lap #acModel,#stage.lap #flAuth .lbl,#stage.lap #camAuth .lbl{display:none}
/* the drive's right caps and pad stand right of the instruments, which grow from their left edge: they move with them */
#stage.lap #padR,#stage.lap #capsR{translate:calc(468px*(var(--k,1) - 1)) 0}

/* ---- the fleet (fleet.html, docs/plans/2026-11-15-fleet-slice.md): the approved «SRU شاشة الأسطول» in the cockpit's
   own glass, pills and round buttons. The map full; the list at the right, the group's commands at the left, the one
   alert at the top middle, the streams small at the bottom left; the cockpit's SRU leads here. ---- */
#toFleet{color:inherit;text-decoration:none;border-radius:8px}
#toFleet:hover b{color:var(--blue2)}
.ftabs{gap:2px;height:34px;padding:3px;border-radius:17px;background:rgba(255,255,255,.06);border:1px solid var(--line);box-sizing:border-box}
.ftabs a{display:inline-flex;align-items:center;height:26px;padding:0 14px;border-radius:13px;color:var(--ink2);text-decoration:none;font-size:calc(13.5px*var(--t));font-weight:500;white-space:nowrap}
.ftabs a:hover{color:#fff;background:rgba(255,255,255,.08)}
.ftabs a.on{background:var(--blue);color:#fff}
#stage.fleet #fmap{cursor:default}
#fsvg,#fpills{pointer-events:none}
#fsvg svg{position:absolute;left:0;top:0;overflow:visible}
#fsvg .fa path{filter:drop-shadow(0 1px 2px rgba(0,0,0,.85))}
.fpill{position:absolute;display:flex;align-items:center;gap:6px;padding:2px 9px;border-radius:12px;background:rgba(8,9,11,.78);border:1px solid var(--edge);font-size:calc(12.5px*var(--t));line-height:calc(18px*var(--t));white-space:nowrap}
.fpill b{font-weight:600}
.fpill .fsub{color:var(--ink2)}
.fpill.warn{border-color:var(--yellow)}
.fpill.bad{border-color:#ff6b62;background:rgba(110,14,10,.88)}
#fcredit{right:472px;bottom:6px;z-index:3;font-size:calc(11px*var(--t));color:var(--ink3);text-shadow:0 0 3px #000;white-space:nowrap;pointer-events:none;direction:ltr;unicode-bidi:isolate}
/* the alert of the moment: the cockpit's banner, amber or red, with the way into its aircraft's cockpit */
#falert{left:50%;top:72px;transform:translateX(-50%);z-index:7;display:flex;align-items:center;gap:12px;padding:10px 12px 10px 16px;border-radius:12px;border:1px solid var(--yellow);background:rgba(92,62,0,.9);max-width:860px;box-shadow:0 8px 28px rgba(0,0,0,.45);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
#falert.red{background:rgba(110,14,10,.88);border-color:#ff6b62}
#falert>svg{color:#ffd34d}
#falert.red>svg{color:#fff}
#falertT{font-size:calc(15px*var(--t));white-space:nowrap}
#falertT b{font-weight:700}
#falert .bb{display:inline-flex;align-items:center;height:38px;padding:0 14px;border-radius:19px;border:1px solid #fff;background:#fff;color:#111;font-size:calc(13.5px*var(--t));font-weight:500;white-space:nowrap;text-decoration:none}
/* the group's commands at the left, as the cockpit's flight rail: shut, with the reason in their tips */
#frail{left:18px;top:146px;display:flex;flex-direction:column;gap:13px;align-items:center;z-index:4}
#fSel{font-size:calc(12px*var(--t));color:var(--ink2);white-space:nowrap;text-shadow:0 0 3px #000}
/* the list at the right: a card for each controller the gate knows */
#flist{right:16px;top:72px;width:440px;max-height:992px;overflow-y:auto;display:flex;flex-direction:column;gap:8px;z-index:4;scrollbar-width:thin}
.fc{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:12px;border-radius:12px;background:var(--glass2);border:1px solid var(--edge);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.fc input{width:18px;height:18px;margin:0;accent-color:var(--blue);cursor:pointer}
.fcl{display:flex;flex-direction:column;gap:3px;min-width:0;cursor:pointer}
.fhead{display:flex;align-items:center;gap:7px;min-width:0}
.fhead b{font-size:calc(15px*var(--t));font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fmodel{font-size:calc(12px*var(--t));color:var(--ink2);white-space:nowrap}
.fstate{font-size:calc(13px*var(--t))}
.fctrl,.fstream{font-size:calc(12px*var(--t));color:var(--ink2)}
.fcr{display:flex;flex-direction:column;align-items:center;gap:2px}
.ftime{font-family:var(--num);font-variant-numeric:tabular-nums;direction:ltr;font-size:calc(22px*var(--t));line-height:1.15;font-weight:600}
.fbatt{font-size:calc(12px*var(--t));color:var(--ink2);white-space:nowrap}
.fc.stale .fcl,.fc.stale .fcr{opacity:.55}
.fgo{text-decoration:none}
html[lang=en] .fgo svg{transform:scaleX(-1)}
.fnone{margin:0;padding:14px 16px;border-radius:12px;background:var(--glass2);border:1px solid var(--edge);font-size:calc(14px*var(--t));color:var(--ink2)}
/* the streams small at the bottom left, each its aircraft's picture and the way into its cockpit */
#fstreams{left:16px;bottom:16px;display:flex;gap:10px;z-index:4}
.fst{position:relative;display:block;width:256px;height:144px;border-radius:10px;overflow:hidden;border:1px solid var(--edge);background:#000;box-shadow:0 6px 18px rgba(0,0,0,.45);color:#fff;text-decoration:none}
.fst:hover{border-color:var(--blue2)}
.fst video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.fst .pill{position:absolute;height:auto;padding:2px 8px;font-size:calc(12px*var(--t));line-height:calc(18px*var(--t));background:rgba(0,0,0,.62)}
.fstn{top:6px;right:6px}
.fstm{bottom:6px;left:6px;color:var(--ink2)}

/* ---- the stream wall (wall.html, docs/plans/2026-11-15-wall-slice.md): the windows in a grid of 1, 4 or 9 under the
   fleet's bar, each its picture whole (contained), its name and model at the top, its state's pill at the top's end,
   its mission's place, operator and place at the bottom, and the way into its cockpit at the bottom's end ---- */
#wLay button{min-width:34px;font-family:var(--num);font-weight:600}
#wgrid{left:16px;right:16px;top:72px;bottom:16px;display:grid;grid-template-columns:repeat(var(--cols,2),minmax(0,1fr));grid-template-rows:repeat(var(--rows,2),minmax(0,1fr));gap:10px}
#wgrid .fnone{grid-column:1/-1;align-self:start}
.ww{position:relative;min-width:0;min-height:0;border-radius:12px;overflow:hidden;background:#000;border:1px solid var(--edge)}
.ww video,.ww .wkept{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;background:#000}
.ww .wpic{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:pointer}
.ww .wtop{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:8px;padding:12px 14px;padding-inline-end:190px;background:linear-gradient(rgba(0,0,0,.66),rgba(0,0,0,0));pointer-events:none;min-width:0}
.ww .wname{font-size:calc(15px*var(--t));font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ww .wmodel{font-size:calc(12px*var(--t));color:var(--ink2);white-space:nowrap}
.ww .wst{position:absolute;top:10px;inset-inline-end:12px;background:rgba(0,0,0,.6);pointer-events:none}
.ww .wbot{position:absolute;left:0;right:0;bottom:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;padding:12px 14px;padding-inline-end:70px;background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.72));font-size:calc(12.5px*var(--t));color:var(--ink2);pointer-events:none}
.ww .wmission{color:#fff;font-weight:500}
.ww .wgo{position:absolute;bottom:10px;inset-inline-end:10px;text-decoration:none}
html[lang=en] .ww .wgo svg{transform:scaleX(-1)}
.ww.frozen{border-color:#ff6b62}
.ww.faint .wtop,.ww.faint .wbot{opacity:.6}
/* the plate reader (docs/plans/2026-11-17-plates-slice.md): the drawing over the picture, its box, and its panel */
#plateLayer{inset:0;z-index:6;cursor:crosshair;touch-action:none;background:rgba(0,0,0,.12)}
#plateHint{position:absolute;left:50%;top:18px;transform:translateX(-50%);height:32px;font-size:calc(14px*var(--t));background:rgba(0,0,0,.72);pointer-events:none}
#plateBox{position:absolute;border:2px solid #ffd60a;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.6);background:rgba(255,214,10,.08);pointer-events:none}
#platePop{right:108px;top:300px;width:360px}
#plateImg{max-width:100%;max-height:120px;border-radius:6px;background:#000;align-self:flex-start}
#plateRead{font-size:calc(34px*var(--t));letter-spacing:.06em;min-height:calc(40px*var(--t))}
#plateList{display:flex;flex-direction:column;gap:4px}
#plateList .row{gap:12px}
#aiCount,#aerialCount{display:flex;gap:6px;pointer-events:none}
#aiCount .aic,#aerialCount .aic{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;background:rgba(0,0,0,.6);border:1px solid rgba(255,255,255,.18);color:#fff;font-weight:700;font-size:calc(15px*var(--t))}
#aiCount .aic.person{color:var(--yellow)}#aiCount .aic.car{color:var(--blue2)}#aiCount .aic.boat{color:var(--green)}
#aerialCount .aic.drone{color:var(--red)}#aerialCount .aic.bird{color:var(--green)}#aerialCount .aic.airplane{color:var(--blue2)}#aerialCount .aic.helicopter{color:var(--yellow)}
#plateList .unsure{color:var(--yellow);font-style:normal;font-weight:700}
/* the pre-flight check (src/preflight.mjs): each row in its tone, its value coloured, a stripe at its start */
.pfr{display:flex;flex-direction:column;gap:2px;padding:6px 10px;border-radius:8px;background:rgba(255,255,255,.05);border-inline-start:3px solid transparent}
.pfr .sr{min-height:24px}.pfr .sr b{font-size:calc(14px*var(--t))}
.pfr.ok{border-inline-start-color:var(--green)}.pfr.ok .sr b{color:var(--green)}
.pfr.warn{border-inline-start-color:var(--yellow)}.pfr.warn .sr b{color:var(--yellow)}
.pfr.bad{border-inline-start-color:var(--red)}.pfr.bad .sr b{color:var(--red)}
.pfr.none .sr b{color:var(--ink3)}
.pb .kb{font-family:var(--num);font-size:calc(11px*var(--t));opacity:.75;border:1px solid var(--edge);border-radius:4px;padding:0 4px}
/* RTK beside the satellites (TEL-05): dim while DJI does not position by it, lit once it does */
.rtk{font-family:var(--num);font-size:calc(10.5px*var(--t));line-height:1.3;padding:0 4px;border-radius:4px;border:1px solid var(--edge);color:var(--ink3)}
.rtk.on{color:#fff;border-color:rgba(255,255,255,.55)}
