/* Satellite workspace, HUD skin. One globe fills the screen; each mode only adds slim panels at the edges.
   Rules: panel backing stays ~84% opaque so text reads over bright Earth; at most two side panels; overflow goes into
   collapsible drawers; decoration is limited to thin lines and corner brackets. */
body[data-workspace=satellites]{--hud-bg:rgba(4,12,26,.86);--hud-bg2:rgba(8,22,44,.9);--hud-line:rgba(80,175,235,.34);--hud-br:#37d6ff;--hud-left:min(340px,26vw);--hud-right:min(268px,20vw)}

/* header: just a small back chip */
body[data-workspace=satellites] #workspace-head{width:auto;padding:5px 10px;border-radius:var(--r-md);background:var(--hud-bg);border-color:var(--hud-line);top:78px}
body[data-workspace=satellites] #workspace-head .wk-heading span{display:none}
body[data-workspace=satellites] #workspace-head .wk-heading h1{font-size:14px}
body[data-workspace=satellites] #workspace-head .wk-heading>button{width:26px;height:26px}

/* tab bar */
body[data-workspace=satellites] .sat-modes{top:80px;border-radius:var(--r-md);background:var(--hud-bg);border-color:var(--hud-line);padding:3px}
body[data-workspace=satellites] .sat-modes button{border-radius:var(--r-sm);min-height:32px;padding:0 14px;font-size:13px}

/* shared panel look */
body[data-workspace=satellites] :is(.st-card,.st-search,.st-time,.st-stat,.st-seg,.st-btn,.st-row,.st-chip,#re-hero-stage .re-ctl-bottom,.re-scene-bottom,.re-scene-readout,.cj-legend,.cj-seg){background:var(--hud-bg);border-color:var(--hud-line)}
body[data-workspace=satellites] :is(.st-card,.re-compact-panel,.re-trust,.cj-right,.cj-tablecard,.re-data-drawer){border-radius:var(--r-md);border:1px solid var(--hud-line);background:var(--hud-bg);box-shadow:none;position:relative}

/* ---- Tracking: panels already float; only trim the widths and the top row ---- */
body[data-workspace=satellites] .st{--st-w:calc(var(--hud-left) + 38px)}
body[data-workspace=satellites] .st-left{width:var(--hud-left)}
body[data-workspace=satellites] .st-right{width:var(--hud-right)}
body[data-workspace=satellites] .st-tools{top:128px;left:calc(var(--hud-left) + 30px);right:calc(var(--hud-right) + 30px)}
body[data-workspace=satellites] .st-prov{left:calc(var(--hud-left) + 30px);right:calc(var(--hud-right) + 30px);bottom:62px}
body[data-workspace=satellites] .st-time{left:calc(var(--hud-left) + 30px);right:calc(var(--hud-right) + 30px);border-radius:var(--r-md)}

/* ---- Re-entry: slim left panel + right panel; search moves into the left column ---- */
@media(min-width:900px){
body[data-workspace=satellites] #pg-reentry.re-simple{display:block;padding:0;position:relative;top:0;overflow:hidden}
body[data-workspace=satellites] #pg-reentry .re-monitor-head{position:absolute;z-index:4;left:14px;top:58px;width:var(--hud-left);padding:0;display:flex;gap:6px;align-items:center}
body[data-workspace=satellites] #pg-reentry .re-monitor-head>div:first-child{display:none}
body[data-workspace=satellites] #pg-reentry .re-monitor-head .re-search-wrap{flex:1 1 auto;max-width:none;margin:0}
body[data-workspace=satellites] #pg-reentry .re-monitor-head .orb-actions{flex:none}
body[data-workspace=satellites] #pg-reentry .re-compact{position:absolute;inset:108px 14px 64px 14px;display:block;width:auto;height:auto;max-width:none;margin:0}
body[data-workspace=satellites] #pg-reentry .re-compact-panel{position:absolute;left:0;top:0;bottom:0;width:var(--hud-left);overflow-y:auto}
body[data-workspace=satellites] #pg-reentry .re-trust{position:absolute;right:0;top:-16px;bottom:0;width:var(--hud-right);overflow-y:auto}
body[data-workspace=satellites] #pg-reentry .re-compact-stage{position:absolute;inset:0 calc(var(--hud-right) + 16px) 0 calc(var(--hud-left) + 16px);background:transparent;border:0;pointer-events:none}
body[data-workspace=satellites] #pg-reentry .re-data-drawer{position:absolute;z-index:4;left:calc(var(--hud-left) + 30px);right:calc(var(--hud-right) + 30px);bottom:8px;max-height:60dvh;overflow:auto}
body[data-workspace=satellites] #pg-reentry .re-scene-wrap[data-mode="3D"] .re-scene-bottom{display:none}
}

/* ---- Conjunction: title and filters become a slim bar over the left column; table becomes a bottom drawer ---- */
@media(min-width:900px){
body[data-workspace=satellites] #pg-conjunction{position:relative;top:0;display:block;padding:0;overflow:hidden}
body[data-workspace=satellites] #pg-conjunction .cj-head{position:absolute;z-index:4;left:14px;top:58px;width:var(--hud-left);display:block;padding:0}
body[data-workspace=satellites] #pg-conjunction .cj-title{display:none}
body[data-workspace=satellites] #pg-conjunction .cj-search{margin-bottom:6px}
body[data-workspace=satellites] #pg-conjunction .cj-search input{width:100%}
body[data-workspace=satellites] #pg-conjunction .cj-scope{display:flex;flex-wrap:wrap;gap:6px;background:var(--hud-bg);border:1px solid var(--hud-line);border-radius:var(--r-md);padding:6px;font-size:11px}
body[data-workspace=satellites] #pg-conjunction .cj-about{display:none}
body[data-workspace=satellites] #pg-conjunction .cj-scope .cj-seg{width:100%;display:flex}
body[data-workspace=satellites] #pg-conjunction .cj-scope .cj-seg button{flex:1;padding:5px 6px;font-size:11px}
body[data-workspace=satellites] #pg-conjunction .cj-scope .cj-seg button[disabled]{display:none}
body[data-workspace=satellites] #pg-conjunction .cj-scope label{flex:1 1 28%;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:10px}
body[data-workspace=satellites] #pg-conjunction .cj-scope select,body[data-workspace=satellites] #pg-conjunction .cj-scope input{width:100%;min-width:0}
body[data-workspace=satellites] #pg-conjunction .cj-scope .cj-chk{flex:1 1 100%;flex-direction:row;align-items:center;gap:6px}
body[data-workspace=satellites] #pg-conjunction .cj-main{position:absolute;inset:112px 14px 64px 14px;display:block;width:auto;height:auto;max-width:none;margin:0}
body[data-workspace=satellites] #pg-conjunction .cj-left{position:absolute;left:0;top:132px;bottom:0;width:var(--hud-left)}
body[data-workspace=satellites] #pg-conjunction .cj-right{position:absolute;right:0;top:-16px;bottom:0;width:var(--hud-right);padding:10px}
body[data-workspace=satellites] #pg-conjunction .cj-stage{position:absolute;inset:0 calc(var(--hud-right) + 16px) 0 calc(var(--hud-left) + 16px);border:0;background:transparent;border-radius:0}
body[data-workspace=satellites] #pg-conjunction .cj-tablecard{position:absolute;z-index:4;left:calc(var(--hud-left) + 30px);right:calc(var(--hud-right) + 30px);bottom:8px;max-height:38px;overflow:hidden;padding:8px 12px}
body[data-workspace=satellites] #pg-conjunction .cj-tablecard.open{max-height:56dvh;overflow:auto}
body[data-workspace=satellites] #pg-conjunction .cj-tablecard .cj-ch{cursor:pointer}
body[data-workspace=satellites] #pg-conjunction .cj-foot{display:none}
}

/* 2D is a full-screen background as well: drag to pan, wheel / buttons to zoom. Panels sit above it. */
@media(min-width:900px){
body[data-workspace=satellites] #pg-reentry .re-scene-wrap[data-mode="2D"]{background:transparent}
body[data-workspace=satellites] #pg-reentry .re-scene-wrap[data-mode="2D"] #re-map{position:fixed;inset:70px 0 78px 0;width:auto;height:auto;z-index:0;border-radius:0;pointer-events:auto;cursor:grab}
body[data-workspace=satellites] #pg-reentry .re-scene-wrap[data-mode="2D"] #re-map:active{cursor:grabbing}
body[data-workspace=satellites] #pg-reentry :is(.re-compact-panel,.re-trust){z-index:2}
body[data-workspace=satellites] #pg-conjunction[data-view="2D"] #cj-map{position:fixed;inset:70px 0 78px 0;width:auto;height:auto;z-index:0;border-radius:0;pointer-events:auto}
body[data-workspace=satellites] #pg-conjunction :is(.cj-left,.cj-right){z-index:2}
body[data-workspace=satellites] #pg-conjunction[data-view="2D"] .cj-stage{pointer-events:none}
body[data-workspace=satellites] #pg-conjunction[data-view="2D"] .cj-stage :is(button,.cj-seg,.cj-legend,.cj-ctlpill,.cj-zoomside){pointer-events:auto}
body[data-workspace=satellites] #pg-conjunction[data-view="2D"] .cj-stage :is(.cj-viewseg,.cj-legend,.cj-ctlpill,.cj-zoomside){z-index:3}
}

body[data-workspace=satellites] #stage{background-color:#02060f;background-image:var(--stars,none);background-size:800px 800px}
