/* Rocket workspace, HUD skin: same language as the Satellite workspace (sat-hud.css).
   One globe fills the screen; panels are thin, ~86% opaque, with corner brackets. Desktop (>=900 px) only. */
body[data-workspace=rockets]{--hud-bg:rgba(4,12,26,.86);--hud-line:rgba(80,175,235,.34);--hud-br:#37d6ff;--hud-left:min(440px,32vw)}
body[data-workspace=rockets] #stage{background-color:#02060f;background-image:var(--stars,none);background-size:800px 800px}
@media(min-width:900px){
body[data-workspace=rockets] #workspace-head,body[data-workspace=rockets] #wsList,body[data-workspace=rockets] #wsDetail,body[data-workspace=rockets] #wsTools .seg,body[data-workspace=rockets] .ws-time,body[data-workspace=rockets] .ws-note{background:var(--hud-bg);border:1px solid var(--hud-line);border-radius:var(--r-md);box-shadow:none}
body[data-workspace=rockets] :is(#workspace-head,#wsList,#wsDetail:not(.min),.ws-time){position:absolute}
/* the map area covers the whole screen; its controls move clear of the left column */
body.workspace-mode[data-workspace=rockets] #wsMapWrap{left:0}
body[data-workspace=rockets] #wsTools{left:calc(var(--hud-left) + 28px)}
body[data-workspace=rockets] .ws-note{left:calc(var(--hud-left) + 28px);background:transparent;border:0;color:#8fb4d8}
body[data-workspace=rockets] .ws-time{left:calc(var(--hud-left) + 28px)}
}
.rk-pop{position:fixed;left:0;top:0;z-index:30}.rk-pop[hidden]{display:none}.pp-ic button:disabled{opacity:.3;cursor:default}

/* Shared workspace framing. Motion follows selection, not data refresh. */
.workspace-pane-switch{display:none}
#wsList .mc{width:100%;text-align:left;color:var(--ink);padding:10px 12px;border-radius:8px}
#wsList .mc.on{background:#102d4c;border-color:#6dd5fa}
.rocket-row-time,.rocket-row-meta{display:flex;align-items:center;justify-content:space-between;gap:6px}
.rocket-row-time{color:#a1dfff;font-size:12px}
.rocket-next,.rocket-row-meta,.rocket-row-notams{font-size:11px}
.rocket-next{border:1px solid #416580;padding:1px 7px;border-radius:var(--r-sm);color:#c7edff}
.rocket-row-payload,.rocket-row-notams{display:block;color:#a9bfd6;overflow-wrap:anywhere}
.rocket-row-payload{margin:2px 0 5px;font-size:12px}
.rocket-row-notams{margin-top:5px}
.rocket-launch-times{color:#b6cce3;padding:8px 0;border-block:1px solid var(--line)}
#wsDetail .dthumb{width:40px;height:40px;flex:none;align-self:start}
#wsDetail .dn{overflow-wrap:anywhere}
#wsDetail .dh-t{display:none}
#wsDetail .zc{border-left-width:1px}
#wsDetail .zone-actions summary{color:#bdd5e9;cursor:pointer}
#wsDetail .zone-actions small{display:block;color:#a9bfd6;margin-top:4px}
.rocket-weak h3{font-size:12px;color:#bed1e5;margin:10px 0 6px}
#wsDetail .dfoot{position:sticky;bottom:-12px;background:var(--hud-bg);padding:8px 0;z-index:1}
#re-candidate-list section{margin:0 0 12px}
#re-candidate-list h2{font-size:13px;margin:0 0 5px}
#re-candidate-list p{color:var(--muted);font-size:12px}
.re-candidate{display:grid;gap:3px;text-align:left;width:100%;padding:8px 9px;color:var(--ink);background:#0a1a30;border:1px solid var(--line);border-radius:var(--r-sm);margin:3px 0}
.re-candidate small{color:#aac3da;font-size:11px}
.re-candidate.on{border-color:#69cffa;background:#102d4c}
.re-report-panel{min-width:0;min-height:0;overflow:auto;pointer-events:auto}
#pg-reentry .re-report-panel .re-trust:not(:empty){display:flex;flex-direction:column;gap:6px;padding:10px}
#re-model-clock{font-variant-numeric:tabular-nums;color:#acd7f4}
@media(prefers-reduced-motion:no-preference){
  :is(#wsList .mc,.re-candidate,.workspace-pane-switch button,.zone-actions button){transition:background-color 160ms,border-color 160ms,color 160ms}
  #wsDetail .zc.sel{animation:zone-lock 420ms cubic-bezier(.16,1,.3,1)}
  @keyframes zone-lock{from{background:#184360}to{background:var(--panel2)}}
}
@media(min-width:900px){
  body[data-workspace=rockets]{--hud-left:clamp(260px,21vw,310px);--hud-right:clamp(280px,25vw,350px)}
  body.workspace-mode[data-workspace=rockets] #pg-work #wsList{width:var(--hud-left);bottom:10px}
  body.workspace-mode[data-workspace=rockets] #pg-work #wsDetail{width:var(--hud-right);top:14px;z-index:510;background:var(--hud-bg)}
  body.workspace-mode[data-workspace=rockets] #pg-work #wsDetail.min{display:none}
  body.workspace-mode[data-workspace=rockets] #pg-work .ws-time{right:calc(var(--hud-right) + 28px);bottom:48px}
  body.workspace-mode[data-workspace=rockets] #pg-work .ws-note{max-width:calc(100% - var(--hud-left) - var(--hud-right) - 56px)}
}
@media(max-width:899px){
  .workspace-pane-switch{display:flex;gap:6px;pointer-events:auto;margin:0 10px 8px}
  .workspace-pane-switch button{flex:1;min-height:38px;color:var(--ink);background:#0a1a30;border:1px solid var(--line);border-radius:var(--r-sm)}
  .workspace-pane-switch button[aria-pressed=true]{border-color:#69cffa;background:#102d4c}
  body.workspace-mode #pg-work .workspace-pane-switch{margin-top:calc(var(--wk-head-height,110px) + 10px)}
  body.workspace-mode #pg-work #wsList,body.workspace-mode #pg-work #wsDetail{position:relative;inset:auto;width:auto;height:auto;max-height:none;margin:0 10px 12px}
  #pg-work[data-pane=list] #wsDetail,#pg-work[data-pane=detail] #wsList{display:none}
  body.workspace-mode #pg-work #wsMapWrap{top:calc(70px + var(--launch-notice-height,0px))}
  body.workspace-mode #pg-work #wsTools{max-height:calc(100% - 48px)}
  body.workspace-mode #pg-work .ws-note{max-width:calc(100% - 16px);left:8px;bottom:5px;padding:4px 7px;font-size:10px}
  body.workspace-mode #pg-work .ws-time{left:8px;right:8px;bottom:32px;max-height:74px}
  body.workspace-mode #pg-reentry.re-simple{overflow:auto;pointer-events:auto}
  body.workspace-mode #pg-reentry.re-simple .re-compact{display:flex;flex:none;flex-direction:column;min-height:0;height:auto}
  body.workspace-mode #pg-reentry.re-simple .re-compact-stage{order:-1;min-height:260px;height:36dvh}
  body.workspace-mode #pg-reentry.re-simple .re-compact-panel{max-height:none;width:100%}
  #pg-reentry[data-pane=list] .re-report-panel,#pg-reentry[data-pane=detail] .re-compact-panel{display:none}
}
@media(min-width:900px){
  body.space[data-workspace=rockets][data-layout=satellite] #workspace-head{width:var(--hud-left)}
}

@media(min-width:900px){
  body[data-workspace=satellites] #pg-reentry .re-report-panel{position:absolute;inset:0 0 0 auto;width:var(--hud-right);z-index:2}
  body[data-workspace=satellites] #pg-reentry .re-report-panel .re-trust{position:static;width:auto}
  body[data-workspace=satellites] #pg-reentry .re-scene-wrap[data-mode="3D"] .re-scene-bottom{display:block}
  #pg-reentry.re-simple .re-scene-bottom .re-replay{display:flex}
  #pg-reentry .re-ctl-bottom{bottom:76px}
}
@media(max-width:899px){
  body[data-workspace=rockets][data-layout=satellite] main#pages{top:calc(70px + 40vh + var(--wk-head-height,110px))}
  body.workspace-mode #pg-work .workspace-pane-switch{margin-top:8px}
  body.workspace-mode #pg-work #wsDetail .dfoot{bottom:0}
  body.workspace-mode #pg-work .ws-time{max-height:86px;overflow:auto}
  #pg-work .ws-time .tl-h{flex-wrap:wrap}
  #pg-work .ws-time .tl-h .small{display:none}
  body.workspace-mode .workspace-feed{left:8px;right:8px;bottom:8px;gap:6px;padding:6px 8px}
  body.workspace-mode .workspace-feed>b,body.workspace-mode .workspace-feed>.dot{display:none}
  body.workspace-mode .workspace-feed .src-chips{flex:1;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
  body.workspace-mode .workspace-feed .src-chip{flex:none}
  body.workspace-mode:has(#pg-reentry:not([hidden])) main#pages{top:calc(70px + 40vh + 54px)}
  body.space:has(#pg-reentry:not([hidden])) #workspace-head{display:none}
  body.space:has(#pg-reentry:not([hidden])) .sat-modes{position:absolute!important;top:calc(70px + 40vh + 4px);left:8px;right:8px;margin:0}
  body.workspace-mode #pg-reentry.re-simple{padding:0 8px 8px}
  body.workspace-mode #pg-reentry .re-pane-switch{margin:0}
  body.workspace-mode #pg-reentry.re-simple .re-compact-stage{position:fixed;inset:calc(70px + var(--launch-notice-height,0px)) 0 auto;height:40vh;min-height:0;border:0;margin:0}
  #pg-reentry .re-ctl-bottom{width:max-content;max-width:calc(100% - 16px);bottom:30px}
  #pg-reentry .re-ctl-bottom button{padding:5px 8px;white-space:nowrap}
  #pg-reentry .re-scene-bottom{bottom:2px}
  #pg-reentry .re-scene-readout{max-width:140px;overflow-wrap:anywhere}
}
@media(max-width:899px){
  body[data-workspace=rockets][data-layout=satellite] #workspace-head .wk-ctx{display:none}
  #pg-work .workspace-pane-switch,#pg-reentry .re-pane-switch{position:sticky;top:0;z-index:600;background:#071526;padding:4px 0}
  #pg-work .ws-time .tl-k{display:none}
  #pg-work .ws-time .tl-axis span:nth-child(even){display:none}
  #pg-work .ws-time .tl-h{gap:4px}
  #pg-work .ws-time .tl-h button{white-space:nowrap}
  #pg-work .ws-time .tl-body{min-height:34px}
}
@media(max-width:899px){
  body.workspace-mode main#pages>#pg-work{height:auto;min-height:100%;overflow:visible}
}
@media(max-width:899px){
  body.workspace-mode #pg-work #wsTools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;width:min(255px,calc(100% - 88px))}
  #wsTools>:is(.seg,.ws-render-error,.box[open]){grid-column:1/-1}
  #wsTools .seg button{font-size:11px;padding:5px 7px}
  #wsTools>.box{margin:0}
  #wsTools>.box>summary{padding:6px 7px;font-size:11px}
}
