:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#dcecf0;background:#08131b;--cyan:#65e4ed;--gold:#ffd588;--line:#294753}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,select,input{font:inherit;color:inherit;border:1px solid var(--line);background:#102330;border-radius:5px;padding:11px 14px}button{cursor:pointer;min-height:44px;touch-action:manipulation}button:hover,button.active{border-color:var(--cyan);background:#183d49;color:#9df8ff}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:2px}small,.eyebrow{font-size:10px;letter-spacing:2px;color:#8aa6b4}#world{position:fixed;inset:0;width:100%;height:100%;touch-action:none;image-rendering:pixelated}header{position:fixed;top:0;left:0;right:0;display:flex;align-items:center;gap:14px;padding:12px 20px;background:linear-gradient(#07141ef5,#07141ec9);border-bottom:1px solid var(--line);z-index:2}.brand{font-weight:850;font-size:22px;letter-spacing:4px;color:var(--cyan)}.brand small{display:block;font-size:8px;letter-spacing:1.4px;margin-top:4px}#district{margin-left:auto;font-size:11px;color:#a4bcca;letter-spacing:1px}#pause{color:var(--gold)}#mission{position:fixed;top:89px;left:20px;width:268px;background:#091822df;border:1px solid #294753;padding:18px;border-radius:6px;pointer-events:none}h1{font-size:21px;line-height:1.2;margin:9px 0 16px}#tasks{font-size:12px;line-height:1.8}.task{display:flex;justify-content:space-between;gap:10px}.task.done{color:var(--cyan)}#message{font-size:11px;color:#96aebc;line-height:1.5;margin-bottom:0}#toast{position:fixed;left:50%;top:90px;transform:translateX(-50%);background:#193c4af2;border:1px solid #65e4ed;border-radius:5px;padding:11px 18px;max-width:450px;font-size:13px;pointer-events:none;opacity:0;z-index:5}#camera{position:fixed;right:20px;top:92px;display:flex;gap:5px}#mapWrap{position:fixed;right:20px;bottom:215px;display:grid;background:#07151de8;border:1px solid var(--line);padding:5px;border-radius:5px}#minimap{width:160px;height:160px;image-rendering:pixelated;touch-action:none}#favorite{font-size:11px;min-height:35px;padding:6px}footer{position:fixed;left:0;right:0;bottom:0;padding:12px 20px 7px;background:linear-gradient(#081923ed,#061119);border-top:1px solid var(--line);display:grid;grid-template-columns:minmax(400px,1fr) minmax(480px,1.3fr);gap:12px}#squad{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.agent{padding:9px;text-align:left;position:relative;min-width:0}.agent strong{display:block;font-size:12px;letter-spacing:1px}.agent .portrait{float:left;width:34px;height:34px;image-rendering:pixelated;margin:0 8px 7px 0}.agent small{font-size:8px;letter-spacing:.4px;display:block}.bar{height:4px;background:#24414b;margin:5px 0}.bar i{height:100%;display:block;background:var(--cyan)}.bar.stamina i{background:#ffd588}.bar.energy i{background:#b894fb}.agent em{font-style:normal;font-size:10px;color:#9bb4c1}.dead{filter:grayscale(1)}#actions,#systems{display:flex;gap:6px;align-items:center;flex-wrap:wrap}#actions button{font-size:12px;flex:1;padding:10px 8px;white-space:nowrap}#systems{margin-top:8px;font-size:11px}#systems button{min-height:35px;padding:7px 10px}#systems label{display:flex;gap:5px;align-items:center}select{padding:6px;max-width:110px;min-height:35px}#telemetry{font-size:10px;color:#aabec8;flex-basis:100%;min-height:12px}#hint{grid-column:1/-1;font-size:10px;color:#698998;margin:0;text-align:center;letter-spacing:.5px}dialog{color:#e1edf0;background:#0b1b26;border:1px solid #436475;border-radius:10px;width:min(960px,94vw);max-height:90dvh;padding:28px;box-shadow:0 25px 100px #000a}dialog::backdrop{background:#020b12b8;backdrop-filter:blur(4px)}dialog h2{font-size:29px;margin:10px 0}dialog p{font-size:14px;line-height:1.6;color:#a9c1cc}.flex{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.primary{background:#245361;border-color:var(--cyan);color:#cbffff}.gold{color:var(--gold)}.roster{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.slot{padding:14px;background:#102734;border:1px solid #294753;border-radius:6px}.slot h3{margin:0 0 9px}.slot button,.slot select{display:block;width:100%;margin:7px 0;font-size:11px;padding:8px;min-height:36px}.slot p{font-size:11px}.stats{display:flex;gap:25px;margin:20px 0}.stats b{font-size:22px;display:block;color:var(--gold)}.stats small{letter-spacing:1px}.favoriteRow{padding:12px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px}.favoriteRow span{flex:1;font-size:13px}.notice{border-left:2px solid var(--gold);padding-left:12px}#panelContent>button{margin:4px}#panelContent .close{float:right}.legend{display:grid;grid-template-columns:1fr 1fr;gap:15px} @media(max-width:1000px){header{padding:8px 12px}.brand{font-size:17px}#district{font-size:9px}#mission{left:12px;top:74px;width:220px;padding:12px}#mission h1{font-size:16px}footer{grid-template-columns:1fr;padding:8px 12px;gap:6px}#squad{max-width:630px}.agent{padding:6px}.agent .portrait{width:28px;height:28px}#orders{display:flex;gap:10px;flex-wrap:wrap}#actions{flex:1}#systems{margin:0}#telemetry{display:none}#mapWrap{bottom:240px;right:12px}#minimap{width:125px;height:125px}#camera{right:12px;top:76px}#camera button{padding:6px 11px}#hint{display:none}}@media(max-width:650px){header .brand small,#district{display:none}.brand{font-size:15px;letter-spacing:2px}header{gap:7px}header button{font-size:11px;padding:8px;margin-left:auto}#mission{width:190px;top:66px;padding:9px}#mission h1{font-size:14px;margin:5px 0}#tasks{font-size:10px}#message{display:none}#camera{top:67px;flex-direction:column;gap:3px}#camera button{min-height:36px;font-size:12px}#mapWrap{bottom:257px;right:9px}#minimap{width:100px;height:100px}.agent strong{font-size:10px}.agent .portrait{display:none}.agent small{font-size:7px}.agent em{font-size:9px}#squad{gap:4px}#actions{min-width:100%;gap:3px}#actions button{font-size:10px;padding:8px 4px}#systems{gap:4px}#systems button{font-size:10px;padding:7px}#systems label{font-size:10px}.roster{grid-template-columns:1fr 1fr}.stats{gap:15px}.stats b{font-size:18px}dialog{padding:17px}dialog h2{font-size:22px}.legend{grid-template-columns:1fr}}@media(max-height:520px) and (min-width:650px){#mission{top:62px;width:185px;padding:8px}#mission h1{font-size:14px;margin:4px 0}#tasks{font-size:10px}#message{display:none}#camera{top:65px}#mapWrap{bottom:140px}#minimap{width:90px;height:90px}footer{grid-template-columns:320px 1fr;padding:5px 10px}#orders{gap:4px}#squad{gap:3px}.agent .portrait{display:none}.agent strong{font-size:10px}.agent em{font-size:8px}#actions button{min-height:36px;font-size:10px}#systems button{min-height:32px}#systems{gap:3px}header{padding:5px 12px}}
/* Revised field HUD: small top rail, portrait cards and primary orders along bottom. */
header{height:51px;padding:5px 10px;gap:14px;background:#06131ee8;border-bottom:1px solid #386574}#topObjective{font:600 14px ui-monospace,monospace;letter-spacing:1px;color:#c0e5ee}#district{color:#ffd588}header #pause{font:700 15px ui-monospace,monospace;letter-spacing:1px;color:#58dfed;border-color:#437887;background:#112a36}header #menu{font-size:11px;min-height:34px}#mission{top:67px;left:14px;width:245px;padding:12px;background:#061722d9;border-color:#294f61}#mission h1{font:600 18px ui-monospace,monospace;margin:8px 0 10px}#message{font-size:11px}#camera{top:64px;right:13px}footer{height:166px;grid-template-columns:minmax(390px,1.1fr) minmax(440px,1.25fr) 142px;gap:10px;padding:10px 12px 5px;background:#06131df5;border-top:2px solid #315a6a;box-shadow:0 -5px 25px #06131d55}#squad{align-items:stretch;gap:3px}.agent{border:0;border-right:1px solid #315161;border-radius:0;background:#071926;padding:7px 5px}.agent.active{background:#0c2935;box-shadow:inset 0 2px #51cfe3}.agent .portrait{width:47px;height:66px;margin:0 5px 4px 0;background:linear-gradient(#284051,#0e1d2b);object-fit:cover;border:1px solid #446673}.agent strong{font:700 11px ui-monospace,monospace;letter-spacing:.5px;margin-bottom:7px;color:#9edfeb}.agent small{font-size:8px;letter-spacing:0}.agent em{font:10px ui-monospace,monospace;display:block;clear:both;padding-top:3px}.bar{height:5px;margin:6px 0}#actions{gap:7px;flex-wrap:nowrap}#actions button{background:linear-gradient(#102938,#071822);border:1px solid #4b8295;min-height:70px;font:600 11px ui-monospace,monospace;letter-spacing:1px;padding:7px}#actions button b{font:32px ui-monospace,monospace;display:block;margin-bottom:4px;color:#7cd9eb}#actions button.active{border:2px solid #5cf0f8;box-shadow:0 0 10px #0dd0ee35,inset 0 0 13px #0ad5e519}#actions #exit,#actions #stop{font-size:10px;letter-spacing:0;min-height:70px;flex:.7}#systems{margin-top:6px;gap:5px}#systems button,#systems select{min-height:32px;padding:6px 8px}#telemetry{font:9px ui-monospace,monospace}#mapWrap{position:static;grid-column:3;grid-row:1/3;border:1px solid #315f70;padding:3px;border-radius:0;align-self:start;display:grid;grid-template-columns:1fr}#minimap{width:128px;height:104px}#favorite{font:10px ui-monospace,monospace;min-height:30px;padding:4px;color:#ffdb91}#hint{font-size:8px;grid-column:1/3}#toast{top:65px}body{font-family:Inter,ui-sans-serif,system-ui,sans-serif}
@media(max-width:1100px){footer{grid-template-columns:minmax(300px,1fr) minmax(390px,1.3fr) 110px;height:166px}.agent .portrait{width:32px;height:50px}.agent strong{font-size:10px}#minimap{width:100px;height:102px}#orders{display:block}#actions{min-width:0}#systems{gap:3px}#telemetry{display:none}#actions button{font-size:9px;padding:5px;min-height:65px}#actions #exit,#actions #stop{font-size:9px;min-height:65px}}
@media(max-width:800px){header{gap:6px}header #pause{font-size:11px;padding:6px}#topObjective{font-size:10px;max-width:210px}#district{display:none}#mission{width:185px;top:61px;padding:8px}#mission h1{font-size:13px;margin:4px 0}#message{display:none}#tasks{font-size:10px}#camera{top:61px}footer{height:auto;min-height:190px;grid-template-columns:1fr 110px;padding:6px;gap:5px}#squad{grid-column:1;grid-row:1;max-width:none}.agent .portrait{display:none}.agent strong{font-size:10px;margin-bottom:3px}.agent{padding:5px}.bar{margin:4px 0}.agent em{font-size:8px}#mapWrap{grid-column:2;grid-row:1}#minimap{height:76px;width:100px}#favorite{min-height:27px}#orders{grid-column:1/3;grid-row:2}#actions button{min-height:44px}#actions button b{display:inline;font-size:18px;margin-right:4px}#actions #exit,#actions #stop{min-height:44px}#systems{margin-top:4px;flex-wrap:nowrap}#systems button{font-size:9px}#systems label{font-size:9px}#systems select{font-size:10px}#hint{display:none}}
@media(max-width:450px){#topObjective{font-size:9px;max-width:145px}#mission{width:174px}#actions{gap:3px}#actions button{font-size:8px;letter-spacing:0;padding:4px}#actions button b{font-size:16px}#actions #exit,#actions #stop{font-size:8px}#systems button{font-size:9px;padding:5px}#toast{max-width:260px;font-size:11px}.agent strong{font-size:8px}.agent small{font-size:7px}.agent em{font-size:7px}}
@media(max-height:500px) and (min-width:650px){footer{height:129px;min-height:0;grid-template-columns:300px 1fr 96px;grid-template-rows:1fr;padding:4px 8px}#squad{grid-column:1;grid-row:1}.agent .portrait{display:block;width:25px;height:45px}#orders{grid-column:2;grid-row:1}#mapWrap{grid-column:3;grid-row:1}#minimap{width:85px;height:78px}#actions button{font-size:8px}#systems{flex-wrap:wrap}#mission{top:57px;width:180px}#camera{top:57px}#topObjective{max-width:none}}
#actions #stop{font:600 11px ui-monospace,monospace;letter-spacing:1px;flex:1}#actions #persuade{font-size:10px;white-space:normal}#systems{flex-wrap:wrap}#systems [data-mode]{font-size:10px}#systems #exit{font-size:10px}@media(max-width:800px){#actions #stop{font-size:9px;min-height:44px}#actions #persuade{font-size:9px}#systems{flex-wrap:wrap}#systems button{min-height:32px}footer{min-height:211px}#mapWrap{max-height:104px}#systems [data-mode],#systems #exit{font-size:9px}}
#tasks{pointer-events:auto}#tasks button{background:none;border:0;color:inherit;text-align:left;padding:0;min-height:28px;font:inherit;cursor:pointer}#tasks button:hover{color:#76e6f1}#tasks .task{align-items:center}#tasks .task>span{white-space:nowrap}

#missionClock{font:12px monospace;white-space:nowrap;color:#75eee9}#pauseNotice{position:fixed;z-index:5;top:72px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:14px;padding:12px 16px;border:1px solid #55e5ef;background:#091b28f5;box-shadow:0 6px 24px #0009;color:#a5f8ff}#pauseNotice[hidden]{display:none}#pauseNotice strong{letter-spacing:2px;font-size:12px}#pauseNotice span{font-size:12px}#pauseNotice button{white-space:nowrap;border-color:#55e5ef;background:#164452} @media(max-width:650px){#missionClock{position:fixed;top:56px;right:12px;background:#091b28;padding:4px;font-size:10px}#pauseNotice{top:auto;bottom:245px;max-width:calc(100vw - 28px);width:330px;flex-wrap:wrap;justify-content:center;gap:6px;padding:10px}#pauseNotice span{width:100%;text-align:center}#pauseNotice button{min-height:44px}}

.skeleton{width:110px;height:150px;display:block;margin:auto;background:#06121b;border:1px solid #355563}#systems{max-height:125px;overflow-y:auto} @media(max-width:650px){#systems{max-height:100px}}
@media(min-width:801px){footer{height:226px}#systems{max-height:118px}#orders{min-height:0}#squad{max-height:200px}#hint{display:none}}
@media(max-width:800px){#systems{max-height:112px;overflow:auto;align-content:flex-start}#systems button,#systems select{min-height:40px}#pauseNotice{bottom:290px}footer{max-height:300px}#systems label{flex-shrink:0}}
#toast{top:145px} .slot select{max-width:none} 

.skeleton{width:144px;height:240px;max-width:100%;image-rendering:pixelated;border:1px solid #355563;background:#07131e}@media(max-width:650px){.skeleton{width:96px;height:160px}}

/* Detailed diagnostic cutaways retain their natural tall proportions. */
.skeleton{width:150px;height:400px;max-width:100%;object-fit:contain;border:0;background:#0e1520;image-rendering:pixelated}.roster .slot{background:linear-gradient(#102430,#08141e);border-color:#36576a}.roster .slot h3{font:600 12px monospace;letter-spacing:1px;color:#91e4ef}@media(max-width:650px){.skeleton{width:120px;height:320px}.roster{gap:8px}.slot{padding:9px}}

.install-status{color:#91fff1;border:1px solid #35786f;background:#10372f;padding:8px;font:10px monospace;letter-spacing:1px;margin:8px 0}.installation-flash{animation:install-pulse 1s ease-in-out 3}@keyframes install-pulse{50%{filter:brightness(1.9) saturate(1.4)}}@media(prefers-reduced-motion:reduce){.installation-flash{animation:none}}

.operation-map{position:relative;height:430px;margin:22px 0;border:1px solid #3c7183;overflow:hidden;background:#081822}.operation-map>svg{width:100%;height:100%;position:absolute}.biome-pin{position:absolute;transform:translate(-10%,-20%);width:170px;text-align:left;background:#07151eec;border:1px solid var(--pin);box-shadow:0 0 18px #0008;padding:9px}.biome-pin i{float:left;color:var(--pin);font-size:30px;font-style:normal;margin-right:7px}.biome-pin strong{font:12px monospace;color:var(--pin);display:block}.biome-pin small{font:9px monospace;letter-spacing:0;display:block;margin:5px 0}.biome-pin span{font:9px monospace;color:#9eb8c4}.biome-pin:hover{box-shadow:0 0 18px #69edee44}.reserve-section{padding:16px;background:#101f2a;border:1px solid #35576b;margin-bottom:20px}.reserve-card{padding:10px;border:1px solid #36566a}.reserve-card select{display:block;max-width:200px}.loadout-stats{color:#84dce7!important}.reserve-section h3{font:12px monospace;letter-spacing:2px}@media(max-width:650px){.operation-map{height:470px}.biome-pin{width:100px;padding:7px;transform:translate(-22%,-10%)}.biome-pin strong{font-size:10px}.biome-pin i{font-size:19px}.biome-pin small,.biome-pin span{font-size:8px}.operation-map{margin-left:-8px;margin-right:-8px}}

.operation-map{--pin-width:170px}.biome-pin{width:var(--pin-width);transform:none}@media(max-width:650px){.operation-map{--pin-width:96px}.biome-pin{transform:none}}

@media(max-width:650px){.operations-panel{padding:12px;max-height:94dvh}.operations-panel h2{font-size:20px;margin:8px 0}.operations-panel p{font-size:11px;line-height:1.4;margin:8px 0}.operations-panel .flex{gap:5px}.operations-panel .flex button{font-size:11px;padding:8px}.operations-panel .operation-map{height:320px;margin:12px 0}.operations-panel .biome-pin{left:calc(var(--column)*33.333%)!important;width:calc(33.333% - 4px);padding:5px}.operations-panel .biome-pin strong{font-size:9px}}

/* Keep street actions visible outside the scrolling systems tray. */
#interactions{display:flex;gap:5px;margin-top:5px}#interactions button{flex:1;min-height:40px;padding:5px;font-size:11px;border-color:#5caaaf}#interactions button.active{background:#174a51;border-color:#68edf3}#interactions button[hidden]{display:none}#systems{max-height:72px}#orders{min-width:0}@media(min-width:801px){footer{height:246px}}@media(max-width:800px){#interactions button{min-height:40px;font-size:10px}#systems{max-height:80px}footer{max-height:320px}}

[hidden]{display:none!important}.title-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border-bottom:1px solid #477785;padding:10px 0;margin-bottom:24px}.title-actions b{margin-right:auto}.title-actions button{min-height:42px;font-size:15px}dialog{font-size:17px;line-height:1.55}dialog p,dialog .notice{font-size:16px;line-height:1.6}dialog h2{font-size:30px}dialog .slot button,dialog select{font-size:15px;min-height:42px}.biome-pin strong{font-size:18px!important}.biome-pin small,.biome-pin span{font-size:13px!important}.loadout-stats{font-size:16px!important}.loadout-stats svg{width:48px;height:36px;vertical-align:middle}.augment-list>div{display:flex;align-items:center;gap:5px;margin:5px 0}.augment-list b{flex:1;font-size:14px}.prep-inventory{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.prep-inventory button{font-size:11px!important;padding:4px}.prep-inventory svg{display:block;width:38px;height:38px;margin:auto}.prep-inventory small{display:block}.headquarters #world,.headquarters footer,.headquarters #mission,.headquarters #camera{visibility:hidden}.headquarters{background:repeating-linear-gradient(90deg,transparent 0 79px,#24495444 80px),linear-gradient(145deg,#06111e,#173645 65%,#10212b)}.headquarters dialog::backdrop{background:linear-gradient(165deg,#07101fe8,#102d3ef5)}.headquarters dialog{background:#0b1d2bf5;border:1px solid #578692;box-shadow:0 0 80px #43b9ce20}#squadWrap{min-width:0;display:flex;gap:4px}#squadWrap #all{width:30px;min-width:30px;font-size:22px;padding:0}#squad{flex:1;min-width:0}.agent{cursor:pointer;min-width:0}.inventory{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;margin-top:5px}.inventory-slot{padding:0!important;min-height:25px!important;min-width:0;background:#112c3c;position:relative}.inventory-slot svg{display:block;width:24px;height:24px;margin:auto}.inventory-slot.equipped{outline:1px solid #72edee}.inventory-slot meter{position:absolute;bottom:0;left:0;width:100%;height:4px}.agent .portrait{height:48px;width:35px}header{height:auto;min-height:51px;flex-wrap:wrap}header [data-title]{font-size:11px;min-height:30px;padding:4px}#airSupport{border-color:#f2cd67}#systems{max-height:110px}footer{height:270px}#actions button{min-height:48px!important}#actions button b{font-size:22px}.agent em{font-size:9px}#interactions:has(#exit[hidden]){display:none}@media(max-width:800px){#squadWrap{grid-column:1;grid-row:1}footer{height:auto;max-height:350px;min-height:270px}.inventory-slot svg{width:20px;height:20px}.agent .portrait{display:none}header #topObjective{display:none}dialog{padding:12px}dialog .roster{grid-template-columns:repeat(2,minmax(0,1fr))}.title-actions b{width:100%;font-size:14px}.biome-pin strong{font-size:15px!important}.biome-pin small{font-size:11px!important}}@media(max-width:480px){dialog .roster{grid-template-columns:1fr}.inventory{gap:1px}.agent strong{font-size:8px}#squadWrap #all{min-width:23px;width:23px}.operation-map{min-height:430px}.biome-pin{--pin-width:135px!important}}

.title-actions{position:sticky;top:-18px;z-index:20;background:#0b1d2b}#pauseNotice{top:82px!important;bottom:auto!important;left:50%!important;transform:translateX(-50%);width:min(470px,90vw);height:auto!important;min-height:0;display:flex;flex-wrap:wrap;gap:8px;padding:12px!important;align-items:center}#pauseNotice span{flex:1;min-width:180px}#pauseNotice strong{font-size:14px}#pauseNotice button{min-height:38px}.prep-actions{position:sticky;bottom:-18px;background:#0b1d2bf5;padding:12px;z-index:5;border-top:1px solid #4c7280}

#toggleMap{display:none}@media(max-width:500px){#squadWrap{grid-column:1/3;min-width:0}#squad{display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding:2px}.agent{flex:0 0 126px;scroll-snap-align:start}.agent strong{font-size:11px}.agent small,.agent em{font-size:10px}.inventory-slot{min-height:38px!important}.inventory-slot svg{width:30px;height:30px}#mapWrap{display:none}#toggleMap{display:block}.map-open #mapWrap{display:grid;position:fixed;right:8px;top:150px;bottom:auto;z-index:8;background:#0a1a27;width:145px;max-height:none}.map-open #minimap{width:135px;height:135px}#systems{max-height:82px}footer{min-height:305px}#camera{top:105px}#mission{top:102px}header [data-title],header #menu{min-height:32px}header{gap:4px}#pauseNotice{top:135px!important}#toast{top:150px!important}}

#systems label,#systems button,#systems select{font-size:15px;min-height:44px}#systems input[type=range]{width:140px;min-height:44px}#systems label{display:inline-flex;align-items:center;gap:8px} .prep-inventory button{font-size:15px}

body.headquarters{background:#07121d url('assets/switchboard-v5.png') center/cover fixed}body.headquarters #panel{background:#07131ee8;backdrop-filter:blur(3px)}.operations-panel h2{font-size:32px}.biome-pin strong{font-size:19px}.biome-pin[disabled]{opacity:.8;border-color:#7ce5aa;background:#133a34}.slot h3{font-size:22px}

.faction-flag{width:85px;height:85px;vertical-align:middle}#flagPreview{float:right}.operation-map .faction-flag{position:static;width:38px;height:38px;inset:auto}.headquarters #panelContent{padding-top:26px}

.command-room-art{height:140px;background:linear-gradient(0deg,#07131e66,transparent),url('assets/switchboard-v5.png') center 55%/cover;border:1px solid #416d7c;border-radius:7px;margin:14px 0 22px}@media(max-width:650px){.command-room-art{height:100px}.prep-actions{position:sticky;bottom:0;background:#0b1d2b;padding:12px;z-index:2}}
.agent.dead.revivable{opacity:1;border:2px solid #82f2bb;cursor:pointer}.agent.revivable small{color:#82f2bb;font-weight:800}
/* Phone controls: primary orders stay exposed; secondary systems get full touch targets. */
#toggleSystems{display:none}
@media(max-width:650px){
 header{height:54px;min-height:54px;flex-wrap:nowrap;gap:5px;padding:4px 6px}header [data-title]:not([data-title=help]){display:none}header #pause,header #menu,header [data-title=help]{min-height:44px;font-size:13px;padding:6px 10px}#missionClock{margin-left:auto;font-size:11px}
 #mission{top:62px;width:185px;max-height:125px;overflow:auto}#mission h1{font-size:14px}#tasks{font-size:12px}#camera{top:62px;right:6px;gap:4px}#camera button{min-width:44px;min-height:44px;font-size:16px}#toggleMap{display:block}
 footer{display:flex;flex-direction:column;gap:5px;padding:6px 6px max(6px,env(safe-area-inset-bottom));height:auto;min-height:0;max-height:none}#squadWrap{width:100%;min-height:142px}#squadWrap #all{min-width:44px;width:44px}#squad{display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding:2px;max-height:170px}.agent{flex:0 0 145px;padding:5px;scroll-snap-align:start}.agent strong{font-size:12px}.agent small,.agent em{font-size:10px}.agent .portrait{display:none}.inventory{gap:3px}.inventory-slot{min-height:44px!important;min-width:44px}.inventory-slot svg{width:32px;height:32px}
 #orders{width:100%}#actions{gap:6px}#actions button,#actions #persuade,#actions #stop{min-height:50px!important;font-size:13px;letter-spacing:0}#actions button b{display:inline;font-size:22px;margin-right:4px}#interactions button{min-height:44px;font-size:14px}#toggleSystems{display:block;width:100%;min-height:44px;font-size:14px;margin-top:5px}#systems{display:none;margin:0;max-height:none}.systems-open #systems{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:absolute;bottom:100%;left:6px;right:6px;padding:12px;background:#0a1e2bf5;border:1px solid #65bdcd;max-height:38dvh;overflow:auto;box-shadow:0 -12px 35px #0008}#systems button,#systems select{min-height:48px;font-size:15px;width:100%}#systems label{display:flex;flex-direction:column;align-items:stretch;font-size:14px;gap:4px}#systems input[type=range]{width:100%;min-height:48px}#telemetry{grid-column:1/-1;font-size:12px}#mapWrap{display:none}.map-open #mapWrap{display:grid;position:fixed;right:56px;top:65px;width:145px;z-index:8;background:#091b28}.map-open #minimap{width:135px;height:135px}#pauseNotice{top:180px!important;bottom:auto}#toast{top:195px!important}dialog button,dialog select{min-height:48px!important}
}
@media(max-width:650px){#squad{overflow-y:hidden;max-height:none}.agent{min-height:166px}#pauseNotice{top:195px!important;padding:8px;pointer-events:none}#pauseNotice span,#pauseNotice button{display:none}.systems-open #pauseNotice{display:none}#camera button{width:48px}#mission{max-height:110px}#systems label select{width:100%}}
@media(max-width:650px){#mission{overflow-x:hidden}#tasks button{white-space:normal;text-align:left;max-width:100%;min-height:36px;padding:5px;font-size:12px}#camera #extract{font-size:0;padding:5px}#camera #extract::after{content:'↙';font-size:23px}#pauseNotice{width:auto;left:62px;right:60px;top:185px!important}#pauseNotice strong{font-size:12px}}

/* Punch-list touch targets: retain native select accessibility. */
#systems button,#systems select{min-height:52px;font-size:16px}#systems select{max-width:180px}#systems input[type=range]{min-height:52px;min-width:150px}.prep-grid{font-size:16px}

#rotatePhone{display:none} @media(max-width:650px) and (orientation:portrait){#rotatePhone{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:24px;background:#07151ef7;color:#8bf3ed;font-size:20px}#rotatePhone p{font-size:16px;line-height:1.6}dialog{z-index:101}}
@media(orientation:landscape) and (max-height:600px){
 header{height:48px;padding:3px 12px;gap:8px}.brand,#district{display:none}header button{min-height:44px;font-size:13px;padding:6px 10px}#mission{top:52px;left:8px;width:250px;max-height:92px;overflow:auto;padding:6px}#mission h1{font-size:15px;margin:2px}#missionLabel,#message{display:none}#tasks{font-size:12px}#camera{top:52px;right:8px}#camera button{padding:7px;min-width:44px}footer{padding:5px 8px;gap:7px;grid-template-columns:minmax(0,1fr) 230px}#squadWrap{min-width:0}#squad{display:flex;overflow-x:auto;gap:5px}.agent{flex:0 0 142px;min-height:112px;padding:5px}.agent .portrait{display:none}.agent strong{font-size:11px}.agent .inventory{gap:3px}.bar{margin:2px 0;height:3px}#hint,#mapWrap{display:none}#actions{flex-wrap:nowrap}#actions button{font-size:11px;min-height:44px;padding:5px}#actions button b{font-size:16px;display:inline}#toggleSystems{display:block;width:100%;min-height:44px;margin-top:4px}#systems{display:none}.systems-open #systems{display:grid;grid-template-columns:repeat(3,minmax(140px,1fr));position:fixed;right:8px;bottom:135px;left:8px;max-height:calc(100dvh - 185px);overflow:auto;background:#081c2bf5;padding:12px;gap:8px;border:1px solid #65e4ed}#systems label{display:flex;flex-direction:column;align-items:stretch}#systems select{max-width:none;width:100%}#telemetry{grid-column:1/-1}.map-open #mapWrap{display:block;position:fixed;right:8px;top:100px;bottom:auto}#pauseNotice{top:55px;bottom:auto;left:270px;right:240px;padding:8px}#pauseNotice span,#pauseNotice button{display:none}dialog{max-height:96dvh;margin:2dvh auto;padding:16px}#toast{top:55px}
}
@media(orientation:landscape) and (max-height:600px){
 footer{display:grid;height:158px;min-height:158px;max-height:158px;grid-template-rows:1fr;overflow:hidden}#squadWrap{height:146px;min-height:0;width:auto;overflow:hidden}#squad{height:146px;max-height:146px;overflow-y:hidden}.agent{height:138px;min-height:138px;flex-basis:150px}.agent strong{margin-bottom:2px}.inventory-slot{min-height:40px!important;min-width:40px!important}.inventory-slot svg{width:28px;height:28px}#orders{grid-column:2;grid-row:1;min-width:0;width:230px}#actions button,#actions #persuade,#actions #stop{min-height:46px!important;white-space:normal;letter-spacing:0;font-size:11px;flex:1}#topObjective,header [data-title=cities],header [data-title=load],header [data-title=new]{display:none}#pauseNotice{left:50%;right:auto;top:53px;max-width:220px;transform:translateX(-50%)}.systems-open #systems{bottom:160px;max-height:calc(100dvh - 210px)}
}
/* Audit: inventory prices and touch controls must remain readable in landscape. */
.prep-inventory button{font-size:14px!important;line-height:1.35;min-height:64px;padding:7px!important}.prep-inventory small{font-size:12px}
@media(orientation:landscape) and (max-height:600px){.inventory-slot{min-height:44px!important;min-width:44px!important}.agent{flex-basis:156px}.biome-pin strong{font-size:18px!important}.biome-pin small,.biome-pin span{font-size:13px!important}}
@media(orientation:landscape) and (max-height:600px){footer{height:180px;min-height:180px;max-height:180px}#squadWrap,#squad{height:168px;max-height:168px}.agent{height:158px;min-height:158px}#squadWrap #all{width:44px;min-width:44px}.systems-open #systems{bottom:182px;max-height:calc(100dvh - 230px)}}
@media(orientation:landscape) and (max-height:600px){.systems-open #systems{box-sizing:border-box;max-height:calc(100dvh - 238px)}.systems-open #pauseNotice{display:none}#systems input[type=range]{width:100%;min-width:0}}
@media(orientation:landscape) and (max-height:600px){.systems-open #systems{left:8px;right:246px;top:56px;bottom:8px;max-height:none;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;z-index:12}}
/* Selected-operative equipment bay: identical management for active and reserve teams. */
.prep-workbench{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;align-items:start}.crew-list h3{font-size:18px}.crew-choice{border:1px solid #345866;margin:8px 0;padding:6px;border-radius:6px}.crew-choice.selected{border-color:#74eee0;background:#17434c}.crew-choice>button{width:100%;text-align:left;font-size:16px;min-height:52px}.crew-choice canvas{width:48px;height:48px;float:left;margin-right:8px;image-rendering:pixelated}.crew-choice small{display:block;font-size:12px}.prep-selected{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px}.selected-operative{border:1px solid #416977;padding:16px;border-radius:8px;min-width:0}.selected-operative h3{margin-top:0}.operative-diagnostic{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px}.operative-diagnostic>svg,.operative-diagnostic>canvas,.operative-diagnostic>.skeleton{max-width:120px;width:100%;height:auto}.operative-diagnostic .prep-inventory{grid-template-columns:repeat(3,minmax(0,1fr))}.prep-detail .prep-inventory button{min-height:72px;font-size:14px!important}.prep-inventory .selected{outline:3px solid #f4ce83}.prep-inventory button img{max-width:40px}.equipment-shop{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}.equipment-shop button{min-height:110px;padding:10px;font-size:15px}.equipment-shop svg{display:block;width:50px;height:40px;margin:auto}.equipment-shop small,.batch-augments small{display:block;font-size:13px}.batch-augments{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.batch-augments section{border:1px solid #365b6c;padding:12px}.batch-augments button{display:block;width:100%;font-size:14px;min-height:48px;margin-top:8px}.gear-actions{margin:12px 0}.prep-detail button{min-height:48px}.prep-workbench+ .prep-actions{position:sticky;bottom:0}
@media(max-width:950px){.prep-workbench{grid-template-columns:185px minmax(0,1fr);gap:14px}.prep-selected{grid-template-columns:1fr}.operative-diagnostic{grid-template-columns:100px minmax(0,1fr)}.crew-choice>button{font-size:14px}.crew-choice canvas{width:36px;height:36px}}@media(max-width:580px){.prep-workbench{grid-template-columns:1fr}.crew-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.operative-diagnostic{grid-template-columns:90px minmax(0,1fr)}}
#agentSystems{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:10px}.operative-sliders{padding:10px;border:1px solid #3e6e80;background:#0e2939}.operative-sliders strong{display:block;color:#83eee5;font-size:15px}.operative-sliders label{display:flex!important;flex-direction:column;align-items:stretch!important;font-size:14px}.operative-sliders input{width:100%!important;min-width:0!important;min-height:48px}.operative-sliders output{font-size:11px;color:#b4c7d8}#supportStatus{grid-column:1/-1;font-size:13px;line-height:1.4;margin:4px}.agent.moving{border-color:#72e7a4;background:#134335}.agent.under-attack{animation:underfire .35s steps(2,end) infinite}@keyframes underfire{50%{background:#6b202b;border-color:#ff616d}}#cameraLock[aria-pressed=true]{background:#1b5961}
.identity-tiles{display:grid;grid-template-columns:repeat(6,minmax(90px,1fr));gap:12px;margin:20px 0}.identity-tiles button{min-height:80px;font-size:17px}.identity-tiles i{display:block;background:var(--team);height:25px;margin:4px}.identity-tiles [aria-pressed=true]{border:2px solid #85fff1;background:#21444d}.flag-tiles button{font-size:22px}#diagnosticReport{width:100%;min-height:260px;font:14px monospace;background:#071923;color:#d8f5ed}#supportStatus{font-size:13px;line-height:1.5;margin:0}.operative-sliders output{display:block;font-size:12px;color:#9ee9dc}button:disabled{cursor:not-allowed}@media(max-width:900px){.identity-tiles{grid-template-columns:repeat(3,1fr);gap:8px}.identity-tiles button{min-height:60px}.prep-actions{position:sticky;bottom:-20px;background:#0a1c29;padding:10px;z-index:6}.operative-sliders{min-width:180px}}
#panel.prep-panel{width:min(1180px,96vw);max-width:96vw}.prep-panel .command-room-art{height:64px;min-height:64px;margin:12px 0}.prep-panel .title-actions{padding:8px 0}.prep-panel h2{margin:12px 0}.prep-panel>div>p{margin:8px 0}.operative-diagnostic>div>p svg{width:44px;height:32px;vertical-align:middle}.operative-diagnostic>div{min-width:0}.prep-actions{position:sticky;bottom:-24px;background:#0a1c29;padding:12px;z-index:6;border-top:1px solid #466570}.crew-list{align-self:start}.prep-inventory button svg{width:40px;height:32px}.operative-diagnostic .skeleton{max-width:150px;height:280px}@media(max-width:900px){.prep-panel .command-room-art{display:none}.prep-panel .title-actions b{display:none}.prep-panel .title-actions{margin:0}.prep-panel .operative-diagnostic{grid-template-columns:90px 1fr}.prep-panel .operative-diagnostic .skeleton{width:90px;height:240px}.prep-panel .prep-inventory{grid-template-columns:repeat(3,minmax(50px,1fr))}.prep-panel .title-actions button{padding:8px;min-height:44px}.prep-panel .prep-workbench{gap:12px}.prep-panel h2{font-size:22px}}
.prep-panel small{color:#c5dce7;letter-spacing:0!important}.prep-detail .prep-inventory small{font-size:14px}#systems{display:none}#toggleSystems{display:block;min-height:48px;width:100%;margin-top:8px;font-size:15px}.systems-open #systems{display:grid;grid-template-columns:repeat(3,minmax(140px,1fr));position:fixed;left:30%;right:165px;bottom:280px;max-height:calc(100dvh - 350px);width:auto;overflow:auto;background:#081c2bf7;padding:14px;gap:10px;border:1px solid #75d8df;box-shadow:0 0 40px #0008;z-index:9}#agentSystems{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}.operative-sliders{min-width:0}#systems [hidden]{display:none!important}#telemetry{grid-column:1/-1}#systems>button{min-height:52px;font-size:15px}@media(orientation:landscape) and (max-height:600px){.systems-open #systems{left:8px;right:246px;top:56px;bottom:8px;max-height:none;grid-template-columns:1fr 1fr;padding:10px}.operative-sliders{padding:8px}#agentSystems{grid-template-columns:1fr 1fr}#toggleSystems{margin-top:4px;min-height:44px;font-size:13px}.prep-panel .title-actions{position:static}}

/* Keep the equipment bay focused on operatives, with the command-room art in the header. */
#panel.prep-panel{padding:20px}.prep-panel .command-room-art,.prep-panel .eyebrow{display:none}.prep-panel .title-actions{background:linear-gradient(90deg,#07131ef5,#07131ec9),url('assets/switchboard-v5.png') center/cover;padding:8px;margin:0 0 12px}.prep-panel .crew-list{position:sticky;top:0;max-height:calc(100dvh - 120px);overflow-y:auto;padding-right:4px}.prep-panel h2{font-size:28px;margin:10px 0}.prep-inventory small{white-space:normal;overflow-wrap:anywhere}@media(max-width:580px){.prep-panel .crew-list{position:static;max-height:300px}}@media(orientation:landscape) and (max-height:600px){#panel.prep-panel{padding:12px}.prep-panel h2{font-size:22px}.prep-panel .crew-list{max-height:calc(100dvh - 100px)}}
