/* Keep the existing map mounted; out-rank the Studio map display rule only while open. */
html #pilot-app #pilot-workforce-workspace{display:none;min-width:0;min-height:0;}
html #pilot-header-actions #pilot-workforce-open,
html #pilot-header-actions #pilot-workforce-back{
 display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;
 min-height:38px;padding:7px 11px;border:1px solid var(--os-line,var(--line));border-radius:8px;
 background:var(--os-paper,var(--surface));color:var(--os-ink,var(--text));
 font:inherit;font-size:12px;font-weight:550;line-height:1.3;white-space:nowrap;cursor:pointer;
}
html #pilot-header-actions #pilot-workforce-back{display:none;}
html #pilot-header-actions #pilot-workforce-open[aria-expanded="true"]{
 color:var(--os-purple,var(--purple));border-color:currentColor;
 background:var(--os-purple-soft,var(--surface-2));
}
html #pilot-header-actions #pilot-workforce-open:hover,
html #pilot-header-actions #pilot-workforce-back:hover{border-color:var(--os-purple,var(--purple));}
html #pilot-header-actions #pilot-workforce-open:focus-visible,
html #pilot-header-actions #pilot-workforce-back:focus-visible{outline:2px solid var(--os-turquoise,var(--turquoise));outline-offset:3px;}
html.orion-workforce-active #pilot-app{display:flex;flex-direction:column;height:100dvh;min-height:0;}
html.orion-workforce-active #pilot-header{flex-shrink:0;}
html.orion-workforce-active #pilot-app #pilot-workspace{display:none!important;}
html.orion-workforce-active #pilot-header-actions #pilot-workforce-back{display:inline-flex;}
html.orion-workforce-active #pilot-app #pilot-workforce-workspace{
 display:flex;position:relative;flex:1 1 0%;min-width:0;min-height:0;overflow:hidden;
 background:var(--os-canvas,var(--surface));
}
#pilot-workforce-workspace .wf-pilot-frame{border:0;display:block;width:100%;height:100%;min-width:0;min-height:0;flex:1;background:transparent;}
#pilot-workforce-workspace .wf-pilot-status{position:absolute;inset-block-start:8px;inset-inline-start:12px;font:inherit;color:var(--os-muted,var(--muted));}
html.orion-workforce-active #pilot-location-button,
html.orion-workforce-active #pilot-target-button,
html.orion-workforce-active #pilot-mission-upload-label{display:none!important;}
@media(max-width:700px){
 html #pilot-header-actions #pilot-workforce-open,
 html #pilot-header-actions #pilot-workforce-back{min-height:44px;padding:7px 9px;font-size:12px;}
}
