/* Signal / Design. UI surfaces only; artwork, canvases and material swatches retain their colours. */
body[data-pf-creative=true]{
 --signal-bg:#101725;--signal-panel:#182439;--signal-card:#1d2b42;--signal-input:#101b2c;
 --signal-line:#425875;--signal-text:#ecf2fa;--signal-muted:#afc1d6;--signal-cyan:#62e9df;--signal-violet:#b7a2ff;
}
body[data-pf-creative=true]:not(.pf-pbr-active):not(.presentation){
 --pf-ui-bg:var(--signal-bg);--pf-ui-panel:var(--signal-panel);--pf-ui-card:var(--signal-card);--pf-ui-input:var(--signal-input);--pf-ui-line:var(--signal-line);--pf-ui-ink:var(--signal-text);--pf-ui-muted:var(--signal-muted);--pf-ui-accent:var(--signal-cyan);--pf-ui-selected:#234452;--pf-ui-accent-ink:#052d32;--pf-ui-violet:var(--signal-violet);
 --app-panel:var(--signal-panel);--app-card:var(--signal-card);--app-input:var(--signal-input);--app-border:var(--signal-line);--app-text:var(--signal-text);--app-muted:var(--signal-muted);--app-hover:#233c50;
}
body[data-pf-creative=true]:not(.presentation)>header{background:linear-gradient(110deg,#111b2c,#1d2d46 55%,#111b2c)!important;border-bottom:1px solid #56718f!important;box-shadow:inset 0 1px #b5dfff12!important;font-family:"Segoe UI",system-ui,sans-serif!important}
body[data-pf-creative=true]:not(.presentation)>header #mobileBrand #packformaLogo{display:none!important}
body[data-pf-creative=true]:not(.presentation)>header #mobileBrand,body[data-pf-creative=true]:not(.presentation)>header #pfHome{background:transparent!important;border:0!important;box-shadow:none!important;padding:2px!important;width:auto!important;height:auto!important}
body[data-pf-creative=true]:not(.presentation) #pfSignalStudioBrand{display:inline-flex!important;align-items:center;gap:8px;color:#edf6ff;font:650 23px/1 "Segoe UI",system-ui,sans-serif!important;letter-spacing:-.7px;white-space:nowrap}
body[data-pf-creative=true]:not(.presentation) #pfSignalStudioBrand>span{font:inherit!important}
body[data-pf-creative=true]:not(.presentation) #pfModeSwitch{border:1px solid #506581!important;background:#101b2d!important;border-radius:7px!important}
body[data-pf-creative=true]:not(.presentation) #pfModeSwitch button{font-family:"Segoe UI",system-ui,sans-serif!important}
body[data-pf-creative=true]:not(.pf-pbr-active) :is(#controls,#appToolbar,#pfPhoneNav,#pfPhoneQuick,#pfPhoneHeading,#pfDesignBottom,#pfDesignViewTools,#pfDesignProducts,#pfDirectDock,#pfAppearanceModes,#pfDeskModelPopup){font-family:"Segoe UI",system-ui,sans-serif!important;color:var(--signal-text)!important;scrollbar-width:thin;scrollbar-color:#4b6382 #111b2c}
body[data-pf-creative=true]:not(.pf-pbr-active) :is(#controls,#appToolbar,#pfPhoneNav,#pfPhoneQuick,#pfPhoneHeading,#pfDeskModelPopup) :is(h1,h2,h3,h4,p,strong,small,span,label,legend,summary,button,input,select,textarea){font-family:"Segoe UI",system-ui,sans-serif!important}
body[data-pf-creative=true]:not(.pf-pbr-active) :is(#pfDeskLeft,#pfDeskRight,#pfPhoneHeading,#pfDeskDock){background:linear-gradient(155deg,#1e2d45,#131d2f 52%,#17243a)!important;border-color:#435c7b!important}
body[data-pf-creative=true]:not(.pf-pbr-active) #appToolbar{background:linear-gradient(105deg,#142338,#21354e 54%,#182338)!important;border-bottom:1px solid #5d7b9d!important;box-shadow:inset 0 1px #62e9df55!important}
body[data-pf-creative=true]:not(.pf-pbr-active) #controls .pf-desk-heading{background:linear-gradient(100deg,#243751,#17253b)!important;border-bottom:1px solid #506d8d!important;box-shadow:inset 0 1px #b3ddff15!important}
body[data-pf-creative=true]:not(.pf-pbr-active) #controls .pf-desk-heading strong{letter-spacing:.04em!important;font-weight:650!important}
body[data-pf-creative=true]:not(.pf-pbr-active) #controls .pf-desk-scroll{background:linear-gradient(160deg,#16243a,#101a2c)!important}
body[data-pf-creative=true]:not(.pf-pbr-active) #controls .pf-dock-block{background:linear-gradient(130deg,#1b2a40,#152035)!important;border:1px solid #435b79!important;border-radius:9px!important;box-shadow:0 5px 16px #060e1b30,inset 0 1px #adcfff0c!important}
body[data-pf-creative=true]:not(.pf-pbr-active) #controls .pf-dock-block[data-active=true]{border-color:#62e9df!important;box-shadow:inset 2px 0 #62e9df,0 0 16px #62e9df0c!important}
body[data-pf-creative=true]:not(.pf-pbr-active) #controls .pf-dock-head{background:linear-gradient(100deg,#283b56,#1a2940)!important;border-bottom:1px solid #49627f!important;border-radius:8px 8px 0 0!important}
body[data-pf-creative=true]:not(.pf-pbr-active) #controls :is(.pf-panel-jumps,.pf-desk-tabs,#pfDeskGeometry){background:#101c2e!important;border-color:#415a79!important;gap:5px!important}
body[data-pf-creative=true]:not(.pf-pbr-active) :is(#controls,#appToolbar,#pfPhoneNav,#pfPhoneQuick,#pfPhoneHeading,#pfDesignBottom,#pfDesignProducts,#pfDesignViewTools,#pfDirectDock,#pfAppearanceModes,#zoomtools,#pfPhoneProductMenu,#pfDeskModelPopup) button{
 background:linear-gradient(155deg,#283b53,#1a293e)!important;border:1px solid #506681!important;color:var(--signal-text)!important;border-radius:6px!important;box-shadow:inset 0 1px #c2e6ff0c!important;line-height:1.35;transition:border-color .15s,box-shadow .15s;
}
body[data-pf-creative=true]:not(.pf-pbr-active) :is(#controls,#appToolbar,#pfPhoneQuick,#pfPhoneNav,#pfDesignProducts,#pfPhoneProductMenu) button:hover:not(:disabled){border-color:#83b9d0!important;box-shadow:inset 0 0 14px #62e9df0b,0 0 10px #62e9df10!important}
body[data-pf-creative=true]:not(.pf-pbr-active) :is(#controls,#appToolbar,#pfPhoneQuick,#pfPhoneNav,#pfDesignProducts,#pfPhoneProductMenu,#pfDeskModelPopup) :is(button[aria-selected=true],button[aria-pressed=true],button.active,button.selected){background:linear-gradient(135deg,#315866,#173849)!important;border-color:#62e9df!important;color:#94fff5!important;box-shadow:inset 0 0 16px #62e9df0d,0 0 10px #62e9df12!important}
body[data-pf-creative=true]:not(.pf-pbr-active) :is(#controls,#appToolbar,#pfPhoneProductMenu,#pfDeskModelPopup) :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea){background:var(--signal-input)!important;border:1px solid #506581!important;color:var(--signal-text)!important;border-radius:6px!important;box-shadow:inset 0 1px 5px #0002!important;color-scheme:dark;min-width:0}
body[data-pf-creative=true]:not(.pf-pbr-active) :is(#controls,#appToolbar) :is(input[type=checkbox],input[type=radio],input[type=range]){accent-color:#62e9df}
body[data-pf-creative=true]:not(.pf-pbr-active) :is(#controls,#appToolbar) :is(input,textarea)::placeholder{color:#9aacc3;opacity:1}
body[data-pf-creative=true]:not(.pf-pbr-active) :is(#controls,#appToolbar) :is(fieldset,details,.pf-control-section){border-color:#415976!important}
body[data-pf-creative=true]:not(.pf-pbr-active) :is(#pfDirectDock,#pfAppearanceModes,#pfCapacity,#pfPhoneProductMenu,#pfDeskModelPopup){background:linear-gradient(130deg,#1c2d43f5,#122035f5)!important;border:1px solid #6486a3!important;border-top-color:#62e9df!important;box-shadow:0 8px 24px #060f222b!important;border-radius:8px!important}
body[data-pf-creative=true]:not(.pf-pbr-active) :is(#pfDesignNavigation,#pfDesignProducts,#pfPhoneQuick){background:linear-gradient(100deg,#152339,#22334b)!important;border-color:#536e8b!important}
body[data-pf-creative=true]:not(.pf-pbr-active) #pfPhoneNav{background:linear-gradient(#20324b,#101c30)!important;border-top:1px solid #6485a2!important}
body[data-pf-creative=true]:not(.pf-pbr-active) #pfPhoneNav button{background:transparent!important;border-color:transparent!important;box-shadow:none!important;color:#b5c9df!important}
body[data-pf-creative=true]:not(.pf-pbr-active) #pfPhoneNav :is(button[aria-selected=true],button[aria-pressed=true]){background:linear-gradient(#315566,#1c3d4c)!important;color:#93fff3!important;border-color:#62e9df!important}
body[data-pf-creative=true]:not(.pf-pbr-active) #controls button:disabled{opacity:.42!important;box-shadow:none!important}
/* Shared menu layer: every modal inherits the palette, including less frequent CAD/export tools. */
body[data-pf-creative=true] :is(dialog:where(:not(#pfCreativeStart):not(#pfProjectGallery):not(#pfAssemblyClip):not(#pfPBRDialog)),#appFileMenu,#pfObjectMenu,.pf-layout-pop){
 --app-panel:#182439;--app-card:#1d2b42;--app-input:#101b2c;--app-border:#425875;--app-text:#ecf2fa;--app-muted:#afc1d6;--app-hover:#233c50;--app-accent:#62e9df;
 background:radial-gradient(ellipse at top,#263a56,transparent 65%),#121d30!important;color:#ecf2fa!important;border:1px solid #6a8aa7!important;border-top-color:#62e9df!important;border-radius:10px!important;box-shadow:0 24px 90px #0008!important;font-family:"Segoe UI",system-ui,sans-serif!important;scrollbar-width:thin;scrollbar-color:#4b6382 #111b2c;
}
body[data-pf-creative=true] dialog:where(:not(#pfCreativeStart):not(#pfProjectGallery):not(#pfAssemblyClip):not(#pfPBRDialog))::backdrop{background:#070f21a6;backdrop-filter:blur(4px)}
body[data-pf-creative=true] :is(dialog:where(:not(#pfCreativeStart):not(#pfProjectGallery):not(#pfAssemblyClip):not(#pfPBRDialog)),#appFileMenu,#pfObjectMenu,.pf-layout-pop) :is(h1,h2,h3,h4,p,small,span,strong,label,legend,summary,button,input,select,textarea){font-family:"Segoe UI",system-ui,sans-serif!important}
body[data-pf-creative=true] dialog:where(:not(#pfCreativeStart):not(#pfProjectGallery):not(#pfAssemblyClip):not(#pfPBRDialog)) :is(header,footer){background:linear-gradient(110deg,#253a55,#17263d)!important;color:#ecf2fa!important;border-color:#58728f!important}
body[data-pf-creative=true] :is(dialog:where(:not(#pfCreativeStart):not(#pfProjectGallery):not(#pfAssemblyClip):not(#pfPBRDialog)),#appFileMenu,#pfObjectMenu,.pf-layout-pop) :is(button,.pf-catalog-card){background:linear-gradient(155deg,#283b53,#1a293e)!important;border:1px solid #506681!important;color:#ecf2fa!important;border-radius:6px!important;box-shadow:inset 0 1px #c2e6ff0c!important}
body[data-pf-creative=true] :is(dialog:where(:not(#pfCreativeStart):not(#pfProjectGallery):not(#pfAssemblyClip):not(#pfPBRDialog)),#appFileMenu,#pfObjectMenu,.pf-layout-pop) button:hover:not(:disabled){border-color:#83b9d0!important}
body[data-pf-creative=true] dialog:where(:not(#pfCreativeStart):not(#pfProjectGallery):not(#pfAssemblyClip):not(#pfPBRDialog)) :is(button[aria-selected=true],button[aria-pressed=true],button.selected){background:linear-gradient(135deg,#315866,#173849)!important;border-color:#62e9df!important;color:#94fff5!important}
body[data-pf-creative=true] dialog:where(:not(#pfCreativeStart):not(#pfProjectGallery):not(#pfAssemblyClip):not(#pfPBRDialog)) :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea){background:#101b2c!important;border:1px solid #506581!important;color:#ecf2fa!important;border-radius:6px!important;color-scheme:dark;min-width:0}
body[data-pf-creative=true] dialog:where(:not(#pfCreativeStart):not(#pfProjectGallery):not(#pfAssemblyClip):not(#pfPBRDialog)) :is(label,legend,summary,h2,h3,h4,strong){color:#ecf2fa!important}
body[data-pf-creative=true] dialog:where(:not(#pfCreativeStart):not(#pfProjectGallery):not(#pfAssemblyClip):not(#pfPBRDialog)) :is(p,small){color:#afc1d6!important}
body[data-pf-creative=true] dialog:where(:not(#pfCreativeStart):not(#pfProjectGallery):not(#pfAssemblyClip):not(#pfPBRDialog)) :is(fieldset,details){border-color:#425875!important}
body[data-pf-creative=true] dialog:where(:not(#pfCreativeStart):not(#pfProjectGallery):not(#pfAssemblyClip):not(#pfPBRDialog)) :is(input[type=checkbox],input[type=radio],input[type=range]){accent-color:#62e9df}
body[data-pf-creative=true] dialog:where(:not(#pfCreativeStart):not(#pfProjectGallery):not(#pfAssemblyClip):not(#pfPBRDialog)) a{color:#7aeee4!important}
body[data-pf-creative=true] :is(button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid #80fff0!important;outline-offset:3px!important}
/* Named legacy surfaces: not the artwork or the model preview. */
body[data-pf-creative=true] :is(#pfBoxEditor .be-top,#pfBoxEditor .be-panel,#pfBoxEditor .be-tools,#pfLEFields,#pfLabelEditor .pf-le-tabs,#pfSectionsDialog aside,#pfImportDialog aside,#pfMultiPhotoDialog aside){background:linear-gradient(150deg,#1e2d45,#131d2f)!important;color:#ecf2fa!important;border-color:#435c7b!important}
body[data-pf-creative=true] :is(#pfCreativeTools .pf-tools-list button,.pf-catalog-card,#pfSectionsInfo,#pfImportInfo){background:linear-gradient(130deg,#22334b,#18253a)!important;border-color:#4c6482!important;color:#ecf2fa!important}
body[data-pf-creative=true] :is(#pfCatalogApply,#pfLEApply,#pfSectionsApply,#pfImportApply){background:linear-gradient(#73f4e7,#32cdd2)!important;border-color:#95fff3!important;color:#082b36!important;font-weight:650!important}
body[data-pf-creative=true] #pfBoxEditor :is(.be-inspector,.be-inspector-tabs,.be-art-tools,.be-snap-toggle){background:linear-gradient(150deg,#1e2d45,#131d2f)!important;color:#ecf2fa!important;border-color:#435c7b!important}
body[data-pf-creative=true] #pfBoxEditor #beFields :is(input,select){background:#101b2c!important;border-color:#506581!important;color:#ecf2fa!important}
body[data-pf-creative=true] #pfMultiPhotoDialog .pf-multi-photo-views section{background:linear-gradient(130deg,#22334b,#18253a)!important;border-color:#4c6482!important}
body[data-pf-creative=true] #pfSectionsDialog .pf-sections-tabs{background:#182439!important;border-bottom:1px solid #425875;padding-bottom:5px}
body[data-pf-creative=true] #pfBoxEditor :is(.be-caption,.be-legend,.be-art-summary,.be-art-tools){background:#182439!important;color:#afc1d6!important;border-color:#425875!important}
body[data-pf-creative=true] #pfBoxEditor .be-plan summary{background:#182439!important;color:#ecf2fa!important;border-color:#425875!important}
body[data-pf-creative=true] #pfBoxEditor .be-plan label{color:#304d57!important}
body[data-pf-creative=true] #pfBoxEditor .be-plan :is(.be-art-tools,.be-snap-toggle) label{color:#ecf2fa!important}
body[data-pf-creative=true]:not(.pf-pbr-active) #boxTypeGroup{background:linear-gradient(105deg,#142338,#21354e)!important;color:#ecf2fa!important;border-color:#435c7b!important;font-family:"Segoe UI",system-ui,sans-serif!important}
body[data-pf-creative=true]:not(.pf-pbr-active) #boxTypeGroup :is(button,select){background:#1d2b42!important;color:#ecf2fa!important;border:1px solid #506681!important;border-radius:6px!important;font-family:inherit!important}
body[data-pf-creative=true] :is(#pfSectionsDialog,#pfImportDialog,#pfLabelEditor) .primary{background:linear-gradient(#73f4e7,#32cdd2)!important;border-color:#95fff3!important;color:#082b36!important}
body[data-pf-creative=true] :is(dialog,#pfBoxEditor) :is(.be-error,[data-error=true],[role=alert]){color:#ffb4b0!important}
body[data-pf-creative=true] :is(dialog,#pfBoxEditor) .be-warning{color:#f5d59d!important}
body[data-pf-creative=true] :is(dialog,#pfBoxEditor) .be-ok{color:#93e3bf!important}
body[data-pf-creative=true] dialog button:disabled{opacity:.42!important;box-shadow:none!important}
/* Account and help used a separate light palette; keep their cards readable too. */
body[data-pf-creative=true] #pfCloudDialog :is(h2,h3,p,label,span,strong,summary){color:#ecf2fa!important}
body[data-pf-creative=true] #pfCloudDialog :is(p,small,.pf-cloud-note){color:#afc1d6!important}
body[data-pf-creative=true] #pfCloudDialog :is(#pfCloudGuest,.pf-drive-feature,.pf-cloud-card,.pf-cloud-group,.pf-cloud-save,.pf-storage-badge){background:linear-gradient(130deg,#22334b,#18253a)!important;border-color:#4c6482!important;color:#ecf2fa!important}
body[data-pf-creative=true] #pfCloudDialog #pfCloudStatus{background:#152137!important;color:#b9e6e2!important}
body[data-pf-creative=true] #pfCloudDialog .pf-google-login,body[data-pf-creative=true] #pfCloudDialog .pf-google-login :is(span,strong){background:#fff!important;color:#1f1f1f!important}
body[data-pf-creative=true] #pfHelpGuide{--ph-ink:#ecf2fa;--ph-muted:#afc1d6;--ph-line:#425875;--ph-accent:#62e9df;color-scheme:dark}
body[data-pf-creative=true] #pfHelpGuide :is(.ph-top,.ph-nav,.ph-hero,.ph-cards section,.ph-tip){background:linear-gradient(135deg,#22334b,#18253a)!important;border-color:#425875!important}
body[data-pf-creative=true] #pfHelpGuide .ph-content{background:#121d30!important}
body[data-pf-creative=true] #pfHelpGuide :is(.ph-live-actions,.ph-mobile-index){background:#182439!important;color:#ecf2fa!important;border-color:#425875!important}
body[data-pf-creative=true] #pfHelpGuide :is(.ph-search input,.ph-mobile-index select){background:#101b2c!important;color:#ecf2fa!important;border-color:#506581!important}
body[data-pf-creative=true] #pfHelpGuide .ph-steps li::before{background:#254250!important;color:#62e9df!important}
body[data-pf-creative=true] #pfHelpGuide :is(.ph-nav [aria-current=page],.ph-nav [aria-current=page] svg){background:#254250!important;color:#8df9ed!important}
body[data-pf-creative=true] #pfHelpGuide .ph-figure button>span{background:#182439ed!important;color:#ecf2fa!important}
@media(min-width:921px){
 body[data-pf-creative=true]:not(.pf-pbr-active) #controls .pf-panel-jumps button{min-height:34px!important;font-size:11px!important;display:inline-flex;align-items:center;justify-content:center;gap:6px}
}
@media(max-width:920px){
 /* The mobile product menu already owns catalogue selection. Keep only the
    structure selector and its editor here, rather than an empty Format column. */
 body[data-pf-phone-ui=true] #boxNavigationRow{padding:6px 8px!important;box-sizing:border-box;background:linear-gradient(105deg,#142338,#21354e)!important;border-bottom:1px solid #435c7b;gap:0!important}
 body[data-pf-phone-ui=true] #boxNavigationRow .jar-switch{display:none!important}
 body[data-pf-phone-ui=true] #boxNavigationRow #boxTypeGroup{display:grid!important;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:center;gap:6px;padding:0!important;max-width:none!important;width:100%;flex:1!important;background:none!important}
 body[data-pf-phone-ui=true] #boxNavigationRow #boxTypeGroup>.polish-caption{display:none!important}
 body[data-pf-phone-ui=true] #boxNavigationRow #boxTypeGroup :is(select,button){min-height:44px!important;height:44px!important;width:100%!important;margin:0!important;font-size:12px!important;line-height:1.25;box-sizing:border-box}
 body[data-pf-creative=true]:not(.presentation)>header #pfSignalStudioBrand{font-size:18px!important;gap:5px}
 body[data-pf-creative=true]:not(.presentation)>header #pfSignalStudioBrand svg{width:22px;height:25px}
 body[data-pf-creative=true]:not(.presentation)>header #pfModeSwitch{position:static!important;transform:none!important;min-width:0!important;max-width:190px!important;flex:1!important;gap:2px!important}
 body[data-pf-creative=true]:not(.presentation)>header #pfModeSwitch button{min-width:0!important;padding:8px 6px!important;font-size:11px!important;letter-spacing:.02em!important;flex:1!important}
 body[data-pf-creative=true]:not(.pf-pbr-active) #controls :is(button,select,input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color])){min-height:44px}
 body[data-pf-creative=true] dialog:where(:not(#pfCreativeStart):not(#pfProjectGallery):not(#pfAssemblyClip):not(#pfPBRDialog)){max-width:calc(100vw - 16px)!important;box-sizing:border-box}
 body[data-pf-creative=true] dialog:where(:not(#pfCreativeStart):not(#pfProjectGallery):not(#pfAssemblyClip):not(#pfPBRDialog)) :is(button,select,input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color])){min-height:44px}
}
@media(max-width:400px){
 body[data-pf-creative=true]:not(.presentation)>header #pfSignalStudioBrand{font-size:16px!important;gap:4px}
 body[data-pf-creative=true]:not(.presentation)>header #pfModeSwitch{max-width:174px!important}
}
@media(prefers-reduced-motion:reduce){body[data-pf-creative=true] :is(#controls,dialog) *{transition:none!important}}
