/* Shared navigation remains operable in both workspaces. */
body:not(.presentation)>header #pfHome{display:inline-flex!important;align-items:center;justify-content:center;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;min-height:36px!important;max-width:100%;cursor:pointer;line-height:1}
#pfHome img{display:block;max-width:100%;object-fit:contain;pointer-events:none}
#pfHome:focus-visible{outline:2px solid #39bfc4!important;outline-offset:3px}
#pfPBRDialog #pfAddToSet{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0}
#pfPBRDialog #pfAddToSet button{min-width:0;white-space:normal;min-height:38px;font-size:11px;margin:0}
#pfPBRDialog #pfSceneCards{margin:12px 0}
body.pf-pbr-active:not(.presentation)>header #pfLibraryActions{display:flex!important;gap:6px;align-items:center}
body.pf-pbr-active #pfLibraryActions #pfTextOpen{display:none!important}
#pfVariantPicker{box-sizing:border-box;width:min(520px,calc(100vw - 28px));max-height:90dvh;overflow:auto;padding:24px;border:1px solid #59777b;border-radius:14px;background:#1c3037;color:#edf4f4;box-shadow:0 20px 80px #0008;font:14px/1.5 system-ui}
#pfVariantPicker::backdrop{background:#08161bb8;backdrop-filter:blur(3px)}
#pfVariantPicker h2{font-size:23px;margin:0 0 12px}#pfVariantPicker p{color:#bfd0d2}
#pfVariantPicker select{display:block;box-sizing:border-box;width:100%;padding:10px;margin:6px 0 16px;background:#10262d;color:#eef6f5;border:1px solid #67848a;border-radius:7px;font:inherit}
#pfVariantPicker .pf-v-actions{display:flex;flex-wrap:wrap;gap:8px}
#pfVariantPicker button{padding:10px 13px;border:1px solid #759c9d;border-radius:7px;background:#2b5157;color:white;font:inherit;cursor:pointer}
#pfVariantPicker button:disabled{opacity:.5;cursor:wait}#pfVariantPicker [hidden]{display:none!important}
#pfVariantPicker :focus-visible{outline:2px solid #8ae8d9;outline-offset:3px}
/* A short status gives the controls an immediate, visible response. */
#pfOpeningPanel .pf-choice-row{margin-bottom:5px}
#pfOpeningViewer .pf-opening-track{max-width:660px;margin:auto}
#pfOpeningViewer .pf-viewer-head{min-height:24px}
#pfOpeningViewer [data-opening],#pfOpeningPanel [data-opening]{touch-action:manipulation}
@media(max-width:920px){
 body.pf-pbr-active:not(.presentation)>header{height:auto!important;min-height:94px!important;flex-wrap:wrap!important;gap:4px 8px!important}
 body.pf-pbr-active #pfModeSwitch{order:0!important}
 body.pf-pbr-active:not(.presentation)>header #mobileBrand{width:112px!important;min-width:112px!important;overflow:visible!important}
 body.pf-pbr-active:not(.presentation)>header #mobileBrand img{width:108px!important;max-width:108px!important;height:32px!important}
 body.pf-pbr-active #pfHome{justify-content:flex-start!important;flex-shrink:0}
 #pfPBRDialog.pf-mobile-studio{top:var(--pf-mode-header,94px)!important;inset-block-start:var(--pf-mode-header,94px)!important;height:calc(100dvh - var(--pf-mode-header,94px))!important}
 body.pf-pbr-active:not(.presentation)>header #pfLibraryActions{order:11;flex:1 0 100%;width:100%;min-width:0}
 body.pf-pbr-active:not(.presentation)>header #pfLibraryActions>button:not([hidden]){flex:1;min-width:0;white-space:normal;min-height:36px;font-size:11px;padding:6px}
 body.pf-pbr-active:not(.presentation)>header #pfLibraryAccess{display:flex!important;align-items:center;justify-content:center}
 body.pf-pbr-active:not(.presentation)>header #pfSaveProduct{display:none!important}
}
