/* Repeated shell class intentionally outranks older identity-theme overrides. */
/* Office workspace chrome only. Artwork dimensions, objects and exports are unchanged. */
body dialog.ph-office-shell.ph-office-shell [hidden]{display:none!important}
body dialog.ph-office-shell.ph-office-shell .ph-sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body dialog.ph-office-shell.ph-office-shell .ph-selection-action{display:inline-flex;align-items:center;justify-content:center}
body dialog.ph-office-shell.ph-office-shell .ph-selection-action svg{width:20px;height:20px;pointer-events:none}
body dialog.ph-office-shell.ph-office-shell :is(.ph-office-dock,.ph-office-right)>header{display:flex;align-items:center;gap:6px;padding:6px 12px!important;min-height:48px;box-sizing:border-box}
body dialog.ph-office-shell.ph-office-shell :is(.ph-office-dock,.ph-office-right)>header strong{flex:1;min-width:0;font-size:13px}
body dialog.ph-office-shell.ph-office-shell :is(.ph-office-dock,.ph-office-right)>header button{min-width:40px;min-height:40px}
body dialog.ph-office-shell.ph-office-shell .ph-office-sheet-toggle{font-size:20px!important}
body dialog.ph-office-shell.ph-office-shell .ph-office-panel-content{padding:12px}
body dialog.ph-office-shell.ph-office-shell .ph-office-panel-content :is(input,select,textarea){box-sizing:border-box;max-width:100%}
body dialog.ph-office-shell.ph-office-shell .ph-colour-trigger{display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;min-height:40px;padding:5px;border:0;background:transparent}
body dialog.ph-office-shell.ph-office-shell .ph-colour-trigger>span{width:25px;height:25px;border-radius:50%;background:var(--paint);border:1px solid #0003;box-shadow:0 0 0 3px white,0 0 0 4px #dce5df;pointer-events:none}
body dialog.ph-office-shell.ph-office-shell .ph-colour-tray{display:flex;align-items:center;gap:10px;padding:10px;background:#fff;border:1px solid #dce5df;border-radius:16px;box-shadow:0 4px 20px #173b2b18;position:absolute;bottom:55px;left:90px;right:24px;z-index:35}
body dialog.ph-office-shell.ph-office-shell .ph-colour-tray .ph-palette-scroll{display:flex;align-items:center;gap:10px;overflow:auto;flex:1;min-width:0;padding:5px;scrollbar-width:none}
body dialog.ph-office-shell.ph-office-shell .ph-colour-tray button{flex:0 0 40px;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;border-radius:50%;border:1px solid #cbd6cf}
body dialog.ph-office-shell.ph-office-shell .ph-colour-tray button[data-colour]{background:var(--paint)!important}
body dialog.ph-office-shell.ph-office-shell .ph-colour-tray button[aria-pressed=true]{outline:3px solid #147b58;outline-offset:3px;box-shadow:inset 0 0 0 2px white}
body dialog.ph-office-shell.ph-office-shell .ph-colour-tray .ph-custom-colour{background:conic-gradient(red,#ff0,#0f0,#0ff,blue,#f0f,red);color:#172b23;font-size:25px;box-shadow:inset 0 0 0 7px #fffc}
body dialog.ph-office-shell.ph-office-shell .ph-edit-done{display:none}
@media(max-width:900px){
 body dialog.ph-office-shell.ph-office-shell{--ph-sheet-space:0px;--ph-rail-height:64px;position:fixed!important;inset:var(--ph-visual-top,0px) 0 auto!important;margin:0!important;padding:0!important;box-sizing:border-box!important;width:100dvw!important;max-width:100dvw!important;height:var(--ph-visual-height,100dvh)!important;max-height:var(--ph-visual-height,100dvh)!important;border:0!important;border-radius:0!important;overflow:hidden!important}
 body dialog.ph-office-shell.ph-office-shell>header{height:52px!important;min-height:52px!important;max-height:52px!important;padding:5px 8px!important;gap:5px!important;display:flex!important;flex-wrap:nowrap!important;box-sizing:border-box!important;overflow:hidden!important}
 body dialog.ph-office-shell.ph-office-shell>header>strong{display:none!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-project-name{flex:1 1 0!important;min-width:0!important;width:auto!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-project-name input{width:100%!important;min-width:0!important;max-width:100%!important;font-size:12px!important;text-overflow:ellipsis;height:36px!important;min-height:36px!important}
 body dialog.ph-office-shell.ph-office-shell>header>[data-close]{min-width:38px!important;width:38px!important;font-size:0!important;padding:4px!important;min-height:38px!important}
 body dialog.ph-office-shell.ph-office-shell>header>[data-close]::after{content:'×';font-size:24px}
 body dialog.ph-office-shell.ph-office-shell .ph-office-top-actions{display:flex!important;flex:0 0 auto!important;gap:3px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-top-actions button{width:36px!important;min-width:36px!important;min-height:38px!important;padding:4px!important;font-size:12px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-top-actions #office-save{width:46px!important;min-width:46px!important;white-space:normal!important;font-size:11px!important}
 body dialog.ph-office-shell.ph-office-shell>.ph-creative-body{display:flex!important;flex-direction:column!important;width:100%!important;height:calc(100% - 52px)!important;min-height:0!important;padding:0!important;overflow:hidden!important;box-sizing:border-box!important}
 body dialog.ph-office-shell.ph-office-shell .ph-design-properties{display:flex!important;flex-direction:column!important;flex:0 0 74px!important;height:74px!important;min-height:74px!important;max-height:74px!important;padding:0 6px!important;gap:0!important;background:#fff!important;overflow:visible!important;box-sizing:border-box!important}
 body dialog.ph-office-shell.ph-office-shell .ph-design-menubar{display:flex!important;align-items:center!important;height:30px!important;min-height:30px!important;max-height:30px!important;overflow:visible!important;gap:0!important}
 body dialog.ph-office-shell.ph-office-shell .ph-design-menubar>details summary{font-size:11px!important;min-width:0!important;padding:5px 7px!important;white-space:nowrap}
 body dialog.ph-office-shell.ph-office-shell .ph-design-sizebar{display:flex!important;align-items:center!important;flex:0 0 44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;padding:2px 0!important;gap:3px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-design-sizebar>.ph-prop-advanced{display:none!important}
 body dialog.ph-office-shell.ph-office-shell .ph-mobile-more-button{display:none!important}
 body dialog.ph-office-shell.ph-office-shell .ph-mobile-selection-hint{font-size:11px;color:#5c6d64;white-space:nowrap}
 body dialog.ph-office-shell.ph-office-shell[data-ph-selected-kind=none] .ph-design-sizebar>:not(.ph-mobile-selection-hint),
 body dialog.ph-office-shell.ph-office-shell[data-ph-selected-kind=image] .ph-design-sizebar>:not(.ph-mobile-selection-hint),
 body dialog.ph-office-shell.ph-office-shell[data-ph-selected-kind=group] .ph-design-sizebar>:not(.ph-mobile-selection-hint){display:none!important}
 body dialog.ph-office-shell.ph-office-shell:is([data-ph-selected-kind=text],[data-ph-selected-kind=shape]) .ph-mobile-selection-hint{display:none!important}
 body dialog.ph-office-shell.ph-office-shell[data-ph-selected-kind=text] .ph-design-sizebar>:not(.ph-prop-text){display:none!important}
 body dialog.ph-office-shell.ph-office-shell[data-ph-selected-kind=shape] .ph-design-sizebar>:not(.ph-prop-shape){display:none!important}
 body dialog.ph-office-shell.ph-office-shell .ph-design-sizebar button{flex-shrink:0;min-width:38px!important;min-height:38px!important;height:38px!important;padding:5px!important;border:0!important;background:transparent!important;border-radius:9px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-design-sizebar button[aria-pressed=true]{background:#dff3e8!important;color:#096440!important}
 body dialog.ph-office-shell.ph-office-shell .ph-prop-text-bold{font-size:20px!important;font-weight:800!important}
 body dialog.ph-office-shell.ph-office-shell .ph-prop-text-italic{font-size:20px!important;font-style:italic!important}
 body dialog.ph-office-shell.ph-office-shell .ph-prop-text-underline{font-size:20px!important;text-decoration:underline!important}
 body dialog.ph-office-shell.ph-office-shell .ph-prop-text-align svg{width:20px;height:20px}
 body dialog.ph-office-shell.ph-office-shell .ph-top-font-menu{flex:0 0 94px!important;min-width:0!important;max-width:94px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-top-font-menu>summary{font-size:12px!important;height:38px!important;min-height:38px!important;width:94px!important;max-width:94px!important;box-sizing:border-box!important;overflow:hidden!important;text-overflow:ellipsis;white-space:nowrap;padding:8px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-top-font-body{position:fixed!important;top:126px!important;left:8px!important;right:8px!important;width:auto!important;max-width:none!important;max-height:45vh!important;z-index:50!important}
 body dialog.ph-office-shell.ph-office-shell .ph-design-sizebar>.ph-prop-text[type=number]{width:45px!important;min-width:45px!important;max-width:45px!important;height:38px!important;min-height:38px!important;font-size:14px!important;text-align:center!important;padding:2px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-design-sizebar>.ph-prop-shape{flex-shrink:0}
 body dialog.ph-office-shell.ph-office-shell .ph-design-sizebar>label.ph-prop-shape{font-size:11px!important;display:flex;flex-direction:row;align-items:center;gap:4px;white-space:nowrap}
 body dialog.ph-office-shell.ph-office-shell .ph-design-sizebar>label.ph-prop-shape input[type=number]{width:45px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-layout.ph-office-shell-layout{position:relative!important;display:flex!important;flex-direction:column!important;flex:1 1 0!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0 0 var(--ph-rail-height)!important;gap:0!important;overflow:hidden!important;box-sizing:border-box!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-shell-layout>.ph-artboard-well{display:flex!important;flex-direction:column!important;flex:1 1 0!important;width:100%!important;height:auto!important;min-height:0!important;min-width:0!important;padding:0 0 var(--ph-sheet-space) 39px!important;box-sizing:border-box!important;overflow:hidden!important;gap:0!important}
 body dialog.ph-office-shell.ph-office-shell .ph-canvas-viewport{flex:1 1 0!important;min-height:0!important;min-width:0!important;padding:12px!important;overflow:auto!important;overscroll-behavior:contain;scroll-padding:16px}
 body dialog.ph-office-shell.ph-office-shell .ph-office-shell-layout>.ph-design-commands{position:absolute!important;left:0!important;right:auto!important;top:0!important;bottom:var(--ph-rail-height)!important;width:39px!important;min-width:39px!important;max-width:39px!important;height:auto!important;min-height:0!important;max-height:none!important;display:flex!important;flex-direction:column!important;padding:3px 2px!important;gap:3px!important;overflow:auto!important;background:#f7faf8!important;border:0!important;border-right:1px solid #dce5df!important;z-index:5!important}
 body dialog.ph-office-shell.ph-office-shell .ph-design-commands button{width:34px!important;min-width:34px!important;max-width:34px!important;height:38px!important;min-height:38px!important;padding:6px!important;border:0!important;background:transparent!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-rail{position:absolute!important;inset:auto 0 0!important;width:100%!important;height:var(--ph-rail-height)!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:3px!important;padding:3px 5px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;z-index:11!important;border:0!important;border-top:1px solid #dce5df!important;background:#fff!important;box-sizing:border-box!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-rail button{flex:0 0 61px!important;width:61px!important;min-width:61px!important;height:56px!important;min-height:56px!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:3px!important;font-size:10px!important;padding:6px 2px!important;border:0!important;border-radius:12px!important;background:transparent!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-rail button svg{width:22px!important;height:22px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-rail button[aria-pressed=true]{background:#def3e8!important;color:#087147!important;box-shadow:none!important}
 body dialog.ph-office-shell.ph-office-shell :is(.ph-office-dock,.ph-office-right):not([hidden]){position:absolute!important;inset:auto 0 var(--ph-rail-height)!important;left:0!important;right:0!important;width:100%!important;max-width:100%!important;min-width:0!important;height:min(240px,42%)!important;max-height:calc(100% - 80px)!important;border:1px solid #dce5df!important;border-radius:18px 18px 0 0!important;background:#fff!important;box-shadow:0 -6px 20px #173b2b14!important;z-index:12!important;overflow:auto!important;box-sizing:border-box!important;overscroll-behavior:contain}
 body dialog.ph-office-shell.ph-office-shell :is(.ph-office-dock,.ph-office-right)[data-sheet=expanded]:not([hidden]){height:72%!important}
 body dialog.ph-office-shell.ph-office-shell :is(.ph-office-dock,.ph-office-right)>header{position:sticky;top:0;background:#fff!important;z-index:2;cursor:ns-resize;touch-action:none}
 body dialog.ph-office-shell.ph-office-shell .ph-office-settings:not([hidden]),body dialog.ph-office-shell.ph-office-shell .ph-precision-panel{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;padding:12px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-settings label{min-width:0!important;width:auto!important;font-size:12px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-settings input{width:100%!important;box-sizing:border-box!important}
 body dialog.ph-office-shell.ph-office-shell #office-autosave-info{grid-column:1/-1;font-size:11px;line-height:1.5}
 body dialog.ph-office-shell.ph-office-shell .ph-office-panel-content :is(input,select,textarea){font-size:16px}
 body dialog.ph-office-shell.ph-office-shell .ph-office-panel-content textarea{min-height:70px;max-height:130px}
 body dialog.ph-office-shell.ph-office-shell .ph-office-context-controls:not([hidden]){position:absolute!important;top:5px!important;left:48px!important;right:8px!important;bottom:auto!important;width:auto!important;height:42px!important;max-width:none!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:2px!important;padding:3px!important;border:1px solid #dce5df!important;border-radius:14px!important;background:#fffffff2!important;box-shadow:0 3px 14px #173b2b16!important;overflow:auto!important;z-index:9!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-context-controls .ph-selection-action{flex:0 0 36px!important;width:36px!important;min-width:36px!important;height:34px!important;min-height:34px!important;padding:5px!important;border:0!important;background:transparent!important}
 body dialog.ph-office-shell.ph-office-shell .ph-selection-action[aria-label=Delete]{color:#b53844!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-footer{display:flex!important;flex-wrap:nowrap!important;flex:0 0 32px!important;min-height:32px!important;height:32px!important;max-height:32px!important;margin:0!important;padding:2px 6px!important;gap:4px!important;overflow:hidden!important;box-sizing:border-box!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-footer>button{min-height:27px!important;height:27px!important;padding:2px 6px!important;font-size:10px!important}
 body dialog.ph-office-shell.ph-office-shell #office-page-label{white-space:nowrap!important;font-size:10px!important}
 body dialog.ph-office-shell.ph-office-shell #office-status{font-size:10px!important;overflow:hidden!important;text-overflow:ellipsis;white-space:nowrap!important;min-width:0!important}
 body dialog.ph-office-shell.ph-office-shell .ph-zoom-bar{min-height:32px!important;height:32px!important;max-height:32px!important;padding:2px 4px!important;gap:4px!important;flex-wrap:nowrap!important;box-sizing:border-box!important}
 body dialog.ph-office-shell.ph-office-shell .ph-zoom-bar button{min-height:27px!important;height:27px!important;padding:2px 6px!important;font-size:11px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-zoom-bar label{font-size:0!important;gap:0!important}
 body dialog.ph-office-shell.ph-office-shell .ph-zoom-bar input[type=range]{width:60px!important}
 body dialog.ph-office-shell.ph-office-shell #office-measure{font-size:10px!important;padding:0 6px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-colour-tray{left:46px;right:8px;bottom:calc(var(--ph-rail-height) + 38px);padding:5px;gap:3px}
 body dialog.ph-office-shell.ph-office-shell .ph-colour-tray button{flex-basis:36px;width:36px;min-width:36px;height:36px;min-height:36px}
 body dialog.ph-office-shell.ph-office-shell.ph-inline-editing{--ph-rail-height:0px}
 body dialog.ph-office-shell.ph-office-shell.ph-inline-editing .ph-office-rail,body dialog.ph-office-shell.ph-office-shell.ph-inline-editing .ph-office-footer,body dialog.ph-office-shell.ph-office-shell.ph-inline-editing .ph-office-context-controls{display:none!important}
 body dialog.ph-office-shell.ph-office-shell.ph-inline-editing .ph-design-properties{height:30px!important;min-height:30px!important;max-height:30px!important;flex-basis:30px!important}
 body dialog.ph-office-shell.ph-office-shell.ph-inline-editing .ph-design-sizebar{position:absolute!important;bottom:0!important;left:0!important;right:0!important;background:#fff!important;z-index:40!important;height:48px!important;min-height:48px!important;max-height:48px!important;padding:4px!important;border-top:1px solid #dce5df;box-sizing:border-box!important}
 body dialog.ph-office-shell.ph-office-shell.ph-inline-editing .ph-office-shell-layout{padding-bottom:48px!important}
 body dialog.ph-office-shell.ph-office-shell.ph-inline-editing .ph-design-sizebar>.ph-edit-done{display:inline-flex!important;align-items:center;justify-content:center;position:sticky;right:0;background:#e0f4e9!important;margin-left:auto;font-size:22px!important;flex:0 0 38px}
 body dialog.ph-office-shell.ph-office-shell.ph-inline-editing .ph-top-font-body{top:auto!important;bottom:50px!important}
 body dialog.ph-office-shell.ph-office-shell.ph-inline-editing .ph-colour-tray{bottom:52px!important;z-index:45}
}
@media(prefers-reduced-motion:no-preference){body dialog.ph-office-shell.ph-office-shell .ph-office-rail button{transition:background-color .15s ease}}
/* Hidden native controls and parked panels must never participate in layout. */
body dialog.ph-office-shell.ph-office-shell [hidden],body dialog.ph-office-shell.ph-office-shell .ph-design-sizebar>[hidden]{display:none!important}
body dialog.ph-office-shell.ph-office-shell .ph-text-starters{display:flex;flex-direction:column;gap:10px}
body dialog.ph-office-shell.ph-office-shell .ph-text-starters button{width:100%;min-height:48px;text-align:left;padding:10px 16px;border:1px solid #dce5df;background:#fff;border-radius:12px}
@media(max-width:900px){body dialog.ph-office-shell.ph-office-shell:has(:is(.ph-office-dock,.ph-office-right):not([hidden])) .ph-office-context-controls{display:none!important}}
/* Compact palettes also cover Drawing and Brand panels, with HEX controls on demand. */
body.ph-identity dialog.ph-office-shell .ph-office-dock .ph-office-draw-panel .ph-colour-swatches,
body dialog.ph-office-shell.ph-office-shell .ph-colour-swatches{display:flex!important;flex-wrap:nowrap!important;gap:9px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:5px!important;width:100%!important;box-sizing:border-box!important;scrollbar-width:thin}
body.ph-identity dialog.ph-office-shell .ph-office-dock .ph-office-draw-panel .ph-colour-swatches button,
body dialog.ph-office-shell.ph-office-shell .ph-colour-swatches button{display:block!important;flex:0 0 34px!important;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;border-radius:50%!important;border:1px solid #cbd6cf!important}
body dialog.ph-office-shell.ph-office-shell .ph-colour-swatches button[aria-pressed=true]{outline:3px solid #147b58!important;outline-offset:2px!important;box-shadow:inset 0 0 0 2px white!important}
body dialog.ph-office-shell.ph-office-shell :is(.ph-drawing-colours,.ph-office-panel-content) input[type=color]{width:38px!important;height:38px!important;min-height:38px!important;padding:2px!important;border-radius:50%!important}
@media(max-width:900px){body dialog.ph-office-shell.ph-office-shell>header .ph-office-project-name{order:0!important}body dialog.ph-office-shell.ph-office-shell>header .ph-office-top-actions{order:1!important}body dialog.ph-office-shell.ph-office-shell>header>[data-close]{order:2!important}}
/* Space belongs to the artwork. Hide scrollbar chrome while preserving all scrolling. */
body.ph-identity,body.ph-identity :is(.tool-rail,.sidebar,.gjs-cv-canvas,.visual-categories,.ph-template-results),
body dialog.ph-office-shell.ph-office-shell :is(.ph-office-rail,.ph-office-dock,.ph-office-right,.ph-canvas-viewport,.ph-design-commands,.ph-design-sizebar,.ph-palette-scroll,.ph-colour-swatches,.ph-office-footer){scrollbar-width:none!important;-ms-overflow-style:none!important}
body.ph-identity::-webkit-scrollbar,body.ph-identity :is(.tool-rail,.sidebar,.gjs-cv-canvas,.visual-categories,.ph-template-results)::-webkit-scrollbar,
body dialog.ph-office-shell.ph-office-shell ::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
body dialog.ph-office-shell.ph-office-shell>header>.ph-office-project-name{font-size:0!important;gap:0!important}
body dialog.ph-office-shell.ph-office-shell>header>.ph-office-project-name input{font-size:13px!important}
body dialog.ph-office-shell.ph-office-shell>header .ph-office-top-actions button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;padding:6px!important}
body dialog.ph-office-shell.ph-office-shell>header>[data-close]{font-size:24px!important;line-height:1!important;width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;padding:5px!important}
body dialog.ph-office-shell.ph-office-shell>header>[data-close]::after{content:none!important}
body dialog.ph-office-shell.ph-office-shell #office-measure{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
@media(max-width:900px){
 body dialog.ph-office-shell.ph-office-shell{--ph-rail-height:60px}
 body dialog.ph-office-shell.ph-office-shell>header{height:48px!important;min-height:48px!important;max-height:48px!important;padding:4px 7px!important}
 body dialog.ph-office-shell.ph-office-shell>.ph-creative-body{height:calc(100% - 48px)!important}
 body dialog.ph-office-shell.ph-office-shell:is([data-ph-selected-kind=none],[data-ph-selected-kind=image],[data-ph-selected-kind=group]) .ph-design-properties{height:30px!important;min-height:30px!important;max-height:30px!important;flex-basis:30px!important}
 body dialog.ph-office-shell.ph-office-shell:is([data-ph-selected-kind=none],[data-ph-selected-kind=image],[data-ph-selected-kind=group]) .ph-design-sizebar{display:none!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-rail button{min-height:52px!important;height:52px!important}
 body dialog.ph-office-shell.ph-office-shell.ph-inline-editing{--ph-rail-height:0px}
 body dialog.ph-office-shell.ph-office-shell .ph-top-font-body{top:122px!important}
 body dialog.ph-office-shell.ph-office-shell :is(.ph-office-dock,.ph-office-right)[data-sheet=expanded]:not([hidden]){height:60%!important}
}
/* Match the website editor to the compact canvas editor, without changing Home. */
body.ph-identity[data-view=edit] .header.header{height:56px!important;min-height:56px!important;max-height:56px!important;flex:0 0 56px!important;display:flex!important;flex-wrap:nowrap!important;gap:8px!important;padding:5px 12px!important;overflow:visible!important;box-sizing:border-box!important}
body.ph-identity[data-view=edit] .header.header :is(.workspace-search,.studio-owner-entry,.ph-studio-resource-nav,.studio-account-links){display:none!important}
body.ph-identity[data-view=edit] .header.header .project{flex:0 1 220px!important;width:220px!important;min-width:80px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;margin:0!important}
body.ph-identity[data-view=edit] .header.header #project-name{width:100%!important;max-width:none!important;min-width:0!important;min-height:30px!important;height:30px!important;padding:4px 8px!important;font-size:13px!important;text-overflow:ellipsis!important}
body.ph-identity[data-view=edit] .header.header #save-status{font-size:9px!important;line-height:12px!important;max-height:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 8px!important}
body.ph-identity[data-view=edit] .header.header .actions{display:flex!important;flex:0 1 auto!important;width:auto!important;min-width:0!important;flex-wrap:nowrap!important;gap:4px!important;padding:0!important;margin:0!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important}
body.ph-identity[data-view=edit] .header.header .actions>button,
body.ph-identity[data-view=edit] .header.header :is(#editor-home,#editor-more){display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 38px!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;padding:7px!important;border-radius:9px!important;font-size:0!important;box-sizing:border-box!important;white-space:nowrap!important}
body.ph-identity[data-view=edit] .header.header button svg{display:block!important;width:21px!important;height:21px!important;margin:0!important;flex:none!important}
body.ph-identity[data-view=edit] .header.header .ph-header-action-label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
body.ph-identity[data-view=edit] .selection-bar[data-object-kind=none]{display:none!important}
body.ph-identity[data-view=edit] .canvas-bar{min-height:36px!important;max-height:40px!important;padding:4px 8px!important;gap:6px!important;flex-wrap:nowrap!important;box-sizing:border-box!important}
body.ph-identity[data-view=edit] .devices button{width:34px!important;min-width:34px!important;min-height:28px!important;height:28px!important;padding:5px!important;font-size:0!important}
body.ph-identity[data-view=edit] .devices button svg{width:18px!important;height:18px!important;margin:0!important}
body.ph-identity[data-view=edit] .panel-heading button span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body.ph-identity[data-view=edit] .panel-heading button{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:6px!important}
body.ph-identity[data-view=edit] .ph-sheet-toggle{font-size:0!important}
body.ph-identity[data-view=edit] .ph-sheet-toggle svg{display:none!important}
body.ph-identity[data-view=edit] .ph-sheet-toggle::after{content:'↕';font-size:20px}
@media(max-width:760px){
 body.ph-identity[data-view=edit] .header.header{height:48px!important;min-height:48px!important;max-height:48px!important;flex-basis:48px!important;padding:4px 6px!important;gap:4px!important}
 body.ph-identity[data-view=edit] .header.header .project{width:82px!important;flex:0 1 82px!important;min-width:62px!important}
 body.ph-identity[data-view=edit] .header.header #project-name{font-size:11px!important;padding:3px!important;min-height:28px!important;height:28px!important}
 body.ph-identity[data-view=edit] .header.header #save-status{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)}
 body.ph-identity[data-view=edit] .header.header .actions{flex:1 1 0!important;width:auto!important;min-width:0!important;gap:2px!important}
 body.ph-identity[data-view=edit] .header.header .actions>button,
 body.ph-identity[data-view=edit] .header.header :is(#editor-home,#editor-more){flex-basis:32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:36px!important;min-height:36px!important;padding:6px!important}
 body.ph-identity[data-view=edit] .header.header button svg{width:19px!important;height:19px!important}
 body.ph-identity[data-view=edit] .workspace{padding-bottom:62px!important}
 body.ph-identity[data-view=edit] .tool-rail{height:62px!important;padding:3px!important;gap:2px!important}
 body.ph-identity[data-view=edit] .tool-rail button{min-height:54px!important;height:54px!important;min-width:60px!important;padding:4px 3px!important;gap:3px!important}
 body.ph-identity[data-view=edit][data-tools=open] .sidebar{bottom:62px!important;height:40%!important;min-height:200px;max-height:calc(100% - 85px)!important}
 body.ph-identity[data-view=edit][data-sheet=expanded] .sidebar{height:65%!important}
}
body.ph-identity[data-view=edit] .canvas-bar .devices button svg{display:inline-block!important;width:18px!important;height:18px!important;flex:none!important;color:inherit!important;vertical-align:middle}
body.ph-identity[data-view=edit] .header.header .actions{justify-content:flex-start!important}
body dialog.ph-office-shell.ph-office-shell .ph-export-formats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body dialog.ph-office-shell.ph-office-shell .ph-export-formats>button{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-width:0!important;width:100%!important;min-height:46px!important;margin:0!important;padding:8px!important;font-size:12px!important;line-height:1.3!important;border-radius:10px!important;background:#f8fbf9!important;border:1px solid #dce5df!important;color:#173b2b!important}
body dialog.ph-office-shell.ph-office-shell .ph-export-disclosure{margin-top:10px;border:1px solid #dce5df;border-radius:11px;padding:0 10px}
body dialog.ph-office-shell.ph-office-shell .ph-export-disclosure>summary{padding:12px 4px;min-height:42px;font-size:13px;font-weight:650;cursor:pointer}
body.ph-identity[data-view=edit] .selection-bar{min-height:38px!important;max-height:42px!important;padding:3px 0!important;gap:4px!important}
body.ph-identity[data-view=edit] .selection-bar>button{width:36px!important;min-width:36px!important;min-height:34px!important;height:34px!important;padding:6px!important;font-size:0!important}
body.ph-identity[data-view=edit] .selection-bar>button svg{width:20px!important;height:20px!important;margin:0!important}
/* Mobile focus layout: one formatting row, with full tools available on demand. */
body dialog.ph-office-shell.ph-office-shell .ph-mobile-workspace-menu{display:none}
body dialog.ph-office-shell.ph-office-shell .ph-selection-more{position:relative}
body dialog.ph-office-shell.ph-office-shell .ph-selection-more>summary{list-style:none;cursor:pointer;padding:0 10px;font-size:25px;line-height:36px}
body dialog.ph-office-shell.ph-office-shell .ph-selection-more>summary::-webkit-details-marker{display:none}
body dialog.ph-office-shell.ph-office-shell .ph-selection-menu{position:absolute;right:0;top:43px;min-width:190px;padding:6px;display:grid;gap:3px;border:1px solid #dce5df;border-radius:14px;background:#fff;box-shadow:0 8px 24px #173b2b26;z-index:60}
body dialog.ph-office-shell.ph-office-shell .ph-selection-menu>.ph-selection-action{width:100%!important;min-height:42px!important;justify-content:flex-start!important;gap:10px;padding:8px!important;font-size:13px!important;white-space:nowrap}
body dialog.ph-office-shell.ph-office-shell .ph-selection-menu .ph-sr-only{position:static!important;width:auto;height:auto;overflow:visible;clip-path:none}
body dialog.ph-office-shell.ph-office-shell .ph-exit-overlay{position:absolute;inset:0;z-index:100;background:#052b1c66;display:grid;place-items:center;padding:20px}
body dialog.ph-office-shell.ph-office-shell .ph-exit-card{width:min(340px,100%);box-sizing:border-box;background:white;border-radius:20px;padding:24px;box-shadow:0 10px 50px #052b1c33;color:#173b2b}
body dialog.ph-office-shell.ph-office-shell .ph-exit-card h2{font-size:20px;margin:0 0 12px}
body dialog.ph-office-shell.ph-office-shell .ph-exit-card p{font-size:14px;line-height:1.6;margin:0 0 20px}
body dialog.ph-office-shell.ph-office-shell .ph-exit-card button{width:100%;min-height:46px;border-radius:10px;margin-top:8px;border:1px solid #cbd8d0;background:white;color:#173b2b}
body dialog.ph-office-shell.ph-office-shell .ph-exit-card button[data-continue]{background:#126c4e;color:white;border-color:#126c4e}
@media(max-width:900px){
 body dialog.ph-office-shell.ph-office-shell .ph-design-properties{display:contents!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-shell-layout>.ph-artboard-well{padding-left:0!important}
 body dialog.ph-office-shell.ph-office-shell .ph-canvas-viewport{padding:8px!important;display:flex!important}
 body dialog.ph-office-shell.ph-office-shell .ph-artboard{flex:0 0 auto;margin:auto!important}
 body dialog.ph-office-shell.ph-office-shell .ph-zoom-bar,body dialog.ph-office-shell.ph-office-shell .ph-office-footer{display:none!important}
 body dialog.ph-office-shell.ph-office-shell .ph-mobile-workspace-menu{display:block;order:2!important;flex:0 0 34px;color:#fff}
 body dialog.ph-office-shell.ph-office-shell .ph-mobile-workspace-menu>summary{list-style:none;display:grid;place-items:center;cursor:pointer;min-height:38px;font-size:27px;border-radius:8px}
 body dialog.ph-office-shell.ph-office-shell .ph-mobile-workspace-menu>summary::-webkit-details-marker{display:none}
 body dialog.ph-office-shell.ph-office-shell>header>[data-close]{order:3!important}
 body dialog.ph-office-shell.ph-office-shell .ph-workspace-menu-body{position:absolute;top:50px;right:6px;left:auto;width:min(290px,calc(100vw - 16px));max-height:calc(var(--ph-visual-height,100dvh) - 112px);overflow:auto;background:white;color:#173b2b;border:1px solid #dce5df;border-radius:16px;padding:8px;box-shadow:0 8px 28px #173b2b30;z-index:80}
 body dialog.ph-office-shell.ph-office-shell .ph-workspace-menu-body .ph-design-menubar{height:auto!important;min-height:0!important;max-height:none!important;display:flex!important;flex-direction:column!important;align-items:stretch!important}
 body dialog.ph-office-shell.ph-office-shell .ph-workspace-menu-body details{width:100%}
 body dialog.ph-office-shell.ph-office-shell .ph-workspace-menu-body summary{font-size:14px!important;padding:12px!important;min-height:42px!important;box-sizing:border-box}
 body dialog.ph-office-shell.ph-office-shell .ph-workspace-menu-body .ph-design-menu-list{position:static!important;display:grid;box-shadow:none!important;border:0!important;min-width:0!important;max-height:none!important;width:100%!important;padding:0 5px 8px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-workspace-menu-body button{min-height:42px!important;max-width:100%!important;white-space:normal!important;text-align:left;font-size:13px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-workspace-menu-body .ph-design-commands{position:static!important;inset:auto!important;display:grid!important;grid-template-columns:repeat(5,1fr);width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;border:0!important;padding:4px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-workspace-menu-body .ph-design-commands button{width:44px!important;height:44px!important;min-height:44px!important;min-width:0!important}
 body dialog.ph-office-shell.ph-office-shell .ph-design-sizebar{display:none!important}
 body dialog.ph-office-shell.ph-office-shell:is([data-ph-selected-kind=text],[data-ph-selected-kind=shape]) .ph-design-sizebar{display:flex!important;position:absolute!important;bottom:0!important;left:0!important;right:0!important;z-index:40!important;background:#fff!important;border-top:1px solid #dce5df;height:52px!important;min-height:52px!important;max-height:52px!important;padding:6px!important;gap:2px!important;overflow-x:auto!important}
 body dialog.ph-office-shell.ph-office-shell:is([data-ph-selected-kind=text],[data-ph-selected-kind=shape]) .ph-office-rail{display:none!important}
 body dialog.ph-office-shell.ph-office-shell:is([data-ph-selected-kind=text],[data-ph-selected-kind=shape]){--ph-rail-height:52px}
 body dialog.ph-office-shell.ph-office-shell .ph-office-context-controls:not([hidden]){left:var(--ph-context-x,8px)!important;top:var(--ph-context-y,8px)!important;right:auto!important;max-width:calc(100% - 16px)!important;width:max-content!important;overflow:visible!important;justify-content:flex-start!important;border-radius:24px!important;gap:1px!important;padding:3px 6px!important;z-index:45!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-context-controls>.ph-selection-action{width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;flex-basis:40px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-selection-menu{position:fixed;top:auto;bottom:62px;right:10px;max-height:55vh;overflow:auto}
 body dialog.ph-office-shell.ph-office-shell .ph-top-font-body{top:auto!important;bottom:58px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-design-sizebar>.ph-edit-done{display:inline-flex!important;align-items:center;justify-content:center;position:sticky;right:0;background:#e0f4e9!important;margin-left:auto;font-size:22px!important;flex:0 0 38px}
 body dialog.ph-office-shell.ph-office-shell[data-ph-selected-kind=shape] .ph-design-sizebar>.ph-edit-done{display:inline-flex!important}
 body dialog.ph-office-shell.ph-office-shell.ph-inline-editing .ph-office-shell-layout{padding-bottom:52px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-colour-tray{left:8px;right:8px;bottom:58px!important}
}
/* Authentication is a compact decision, not a full-screen editor panel. */
body.ph-identity dialog#studio-signin-dialog,body dialog#studio-signin-dialog{position:fixed!important;inset:0!important;margin:auto!important;width:min(430px,calc(100vw - 28px))!important;min-width:0!important;max-width:430px!important;height:fit-content!important;min-height:0!important;max-height:calc(100dvh - 40px)!important;padding:0!important;overflow:auto!important;border:1px solid #dce5df!important;border-radius:20px!important;box-shadow:0 20px 80px #052b1c33!important;background:white!important;color:#183b2c!important}
body dialog#studio-signin-dialog::backdrop{background:#052b1c66;backdrop-filter:blur(3px)}
body dialog#studio-signin-dialog .ph-dialog-header{display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px!important;background:#f3f8f5!important;border-bottom:1px solid #dce5df;min-height:0!important}
body dialog#studio-signin-dialog .ph-dialog-header strong{font-size:18px!important}
body dialog#studio-signin-dialog [data-close]{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;font-size:24px!important;padding:0!important;border:0!important;background:transparent!important}
body dialog#studio-signin-dialog .ph-dialog-body{padding:20px!important;display:block!important;height:auto!important;min-height:0!important}
body dialog#studio-signin-dialog p{font-size:14px!important;line-height:1.6!important;margin:0 0 18px!important}
body dialog#studio-signin-dialog [data-status]:empty{display:none}
body dialog#studio-signin-dialog .ph-signin-actions{display:grid!important;gap:10px!important}
body dialog#studio-signin-dialog .ph-signin-actions :is(a,button){display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;width:100%!important;min-height:46px!important;padding:11px 14px!important;border:1px solid #cad9d0!important;border-radius:11px!important;background:#fff!important;color:#174d38!important;text-decoration:none!important;font-size:14px!important;font-weight:600!important;line-height:1.4!important;margin:0!important}
body dialog#studio-signin-dialog .ph-signin-actions [data-login]{background:#126c4e!important;border-color:#126c4e!important;color:#fff!important}
@media(max-width:900px){
 body dialog.ph-office-shell.ph-office-shell .ph-office-rail button{color:#315d49!important;opacity:1!important}
 body dialog.ph-office-shell.ph-office-shell .ph-workspace-menu-body .ph-design-menubar>details>summary{font-size:14px!important;font-weight:600!important;color:#315d49!important;padding:12px!important}
}
body.ph-identity dialog#studio-signin-dialog .ph-dialog-body .ph-signin-actions a.primary[data-login]{background:#126c4e!important;border-color:#126c4e!important;color:#fff!important}
/* Icon-only menu disclosures must not inherit the site's accordion card or plus marker. */
body dialog.ph-office-shell.ph-office-shell :is(.ph-mobile-workspace-menu,.ph-selection-more){margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;min-height:0!important}
body dialog.ph-office-shell.ph-office-shell :is(.ph-mobile-workspace-menu,.ph-selection-more)>summary{display:grid!important;place-items:center!important;box-sizing:border-box!important;list-style:none!important;position:relative!important;flex:0 0 38px!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;margin:0!important;padding:0!important;border:0!important;border-radius:9px!important;background:transparent!important;box-shadow:none!important;line-height:1!important;overflow:hidden!important;color:inherit!important}
body dialog.ph-office-shell.ph-office-shell :is(.ph-mobile-workspace-menu,.ph-selection-more)>summary::before,
body dialog.ph-office-shell.ph-office-shell :is(.ph-mobile-workspace-menu,.ph-selection-more)>summary::after{display:none!important;content:none!important}
body dialog.ph-office-shell.ph-office-shell :is(.ph-mobile-workspace-menu,.ph-selection-more)>summary::marker{content:''!important}
body dialog.ph-office-shell.ph-office-shell :is(.ph-mobile-workspace-menu,.ph-selection-more)>summary>svg{display:block!important;width:22px!important;height:22px!important;fill:currentColor!important;stroke:none!important;flex:none!important;margin:0!important}
body dialog.ph-office-shell.ph-office-shell .ph-touch-move-action{display:none!important}
@media(max-width:900px){
 body dialog.ph-office-shell.ph-office-shell>header .ph-mobile-workspace-menu{height:38px!important;flex:0 0 38px!important;width:38px!important;min-width:38px!important;color:#fff!important;align-self:center!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-context-controls .ph-selection-more{flex:0 0 38px!important;width:38px!important;height:38px!important;color:#315d49!important;align-self:center!important}
 body dialog.ph-office-shell.ph-office-shell .ph-selection-menu>.ph-touch-move-action{display:flex!important}
 body dialog.ph-office-shell.ph-office-shell[data-ph-touch-move=true] .ph-office-context-controls{outline:2px solid #147b58!important}
}
body dialog.ph-office-shell.ph-office-shell .ph-selection-menu .ph-icon-label{display:inline!important;position:static!important;width:auto!important;height:auto!important;max-width:none!important;clip:auto!important;clip-path:none!important;overflow:visible!important;opacity:1!important;visibility:visible!important;font-size:13px!important;line-height:1.4!important}
body dialog.ph-office-shell.ph-office-shell .ph-primary-move-action{display:none!important}
body dialog.ph-office-shell.ph-office-shell .ph-primary-unlock-action{width:94px!important;min-width:94px!important;gap:7px!important;color:#126c4e!important}
body dialog.ph-office-shell.ph-office-shell :is(.ph-primary-move-action,.ph-primary-unlock-action) :is(.ph-sr-only,.ph-icon-label){display:inline!important;position:static!important;width:auto!important;height:auto!important;overflow:visible!important;clip:auto!important;clip-path:none!important;white-space:nowrap!important;font-size:12px!important;font-weight:650!important}
body dialog.ph-office-shell.ph-office-shell[data-ph-selected-locked=true] .ph-design-sizebar{display:none!important}
@media(max-width:900px){
 body dialog.ph-office-shell.ph-office-shell .ph-mobile-workspace-menu>summary{font-size:11px!important;font-weight:650!important;letter-spacing:0!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-context-controls>.ph-primary-move-action{display:inline-flex!important;flex:0 0 65px!important;width:65px!important;min-width:65px!important;gap:4px!important;color:#126c4e!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-context-controls>.ph-primary-unlock-action{flex:0 0 94px!important;width:94px!important;min-width:94px!important}
 body dialog.ph-office-shell.ph-office-shell[data-ph-selected-locked=true]{--ph-rail-height:60px}
 body dialog.ph-office-shell.ph-office-shell[data-ph-selected-locked=true] .ph-office-rail{display:flex!important}
}
/* Fabric's document-coordinate caret cannot be used inside a fixed modal after Home has scrolled.
   Keep the real keyboard input in the visible viewport before its first focus and after every IME update. */
body dialog.ph-office-shell.ph-office-shell textarea:is([data-fabric=textarea],.ph-office-typing-input){position:fixed!important;left:12px!important;top:min(64px,calc(var(--ph-visual-height,100dvh) - 8px))!important;width:2px!important;min-width:2px!important;max-width:2px!important;height:2px!important;min-height:2px!important;max-height:2px!important;padding:0!important;margin:0!important;border:0!important;opacity:0!important;pointer-events:none!important;resize:none!important;font-size:16px!important;line-height:1!important}
@media(max-width:900px){body dialog.ph-office-shell.ph-office-shell{--ph-visual-top:0px!important}}

/* Floating mobile selection actions: canvas-specific, never the lower property bar. */
body dialog.ph-office-shell.ph-office-shell .ph-mobile-text-context[hidden]{display:none!important}
@media(max-width:900px){
 body dialog.ph-office-shell.ph-office-shell .ph-mobile-text-context{
  position:absolute!important;z-index:110!important;
  display:flex!important;align-items:center!important;gap:0!important;
  width:max-content!important;box-sizing:border-box!important;
  max-width:calc(100vw - 16px)!important;
  padding:4px!important;overflow-x:auto!important;overscroll-behavior-x:contain;
  background:#fff!important;color:#202124!important;
  border:1px solid #e1e3e5!important;border-radius:15px!important;
  box-shadow:0 4px 16px #0002!important;
  -webkit-overflow-scrolling:touch;scrollbar-width:none
 }
 body dialog.ph-office-shell.ph-office-shell .ph-mobile-text-context button{
  flex:0 0 auto!important;white-space:nowrap!important;
  border:0!important;background:transparent!important;color:#202124!important;
  padding:10px 11px!important;margin:0!important;
  min-width:0!important;min-height:40px!important;
  font:500 13px system-ui,sans-serif!important;
  border-radius:8px!important;touch-action:manipulation
 }
 body dialog.ph-office-shell.ph-office-shell .ph-mobile-text-context button:active{background:#edf2f8!important}
}

/* Desktop selection toolbar follows the selected artwork; mobile layout unchanged. */
@media (min-width:901px){
 body dialog.ph-office-shell.ph-office-shell .ph-office-shell-layout{position:relative!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-context-controls:not([hidden]){
  position:absolute!important;
  left:var(--ph-desktop-context-x,8px)!important;
  top:var(--ph-desktop-context-y,8px)!important;
  right:auto!important;
  bottom:auto!important;
  width:max-content!important;
  max-width:calc(100% - 16px)!important;
  min-height:42px!important;
  padding:4px 7px!important;
  gap:4px!important;
  z-index:45!important;
  border:1px solid #dce5df!important;
  border-radius:22px!important;
  box-shadow:0 3px 14px #173b2b16!important;
  background:#fffffff2!important;
  overflow:visible!important;
 }
 body dialog.ph-office-shell.ph-office-shell .ph-office-context-controls>.ph-selection-action{
  width:38px!important;min-width:38px!important;min-height:36px!important;
  border:0!important;border-radius:10px!important
 }
}


/* Stable selection placement shared by both viewports. */
body dialog.ph-office-shell.ph-office-shell .ph-office-context-controls:not([hidden]){left:var(--ph-context-x,8px)!important;top:var(--ph-context-y,8px)!important;right:auto!important;bottom:auto!important;width:max-content!important;max-width:calc(100% - 16px)!important;flex-wrap:nowrap!important}
body dialog.ph-office-shell.ph-office-shell .ph-office-context-controls.ph-context-offscreen,
body dialog.ph-office-shell.ph-office-shell.ph-canvas-gesturing .ph-office-context-controls,
body dialog.ph-office-shell.ph-office-shell.ph-inline-editing .ph-office-context-controls{visibility:hidden!important;pointer-events:none!important}
body dialog.ph-office-shell.ph-office-shell .ph-command-label{position:absolute!important;width:1px!important;height:1px!important;clip-path:inset(50%);overflow:hidden!important}
@media(min-width:901px){
 body dialog.ph-office-shell.ph-office-shell .ph-office-shell-layout{position:relative!important;padding-right:100px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-shell-layout>.ph-design-commands{position:absolute!important;inset:0 0 0 auto!important;width:96px!important;min-width:96px!important;max-width:96px!important;height:auto!important;display:grid!important;grid-template-columns:repeat(2,36px)!important;align-content:start!important;gap:4px!important;padding:6px!important;overflow-y:auto!important;overflow-x:hidden!important;background:#142a25!important;color:#f4fff9!important;border:0!important;border-left:1px solid #345248!important;box-sizing:border-box!important;z-index:10!important;scrollbar-width:thin!important}
 body dialog.ph-office-shell.ph-office-shell .ph-design-commands button{width:34px!important;min-width:34px!important;height:38px!important;min-height:38px!important;padding:7px!important;background:#213c33!important;color:#f4fff9!important;border:1px solid #3c574d!important;border-radius:7px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-design-commands button:hover{background:#37634f!important}
 body dialog.ph-office-shell.ph-office-shell .ph-design-commands button svg{width:20px!important;height:20px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-artboard-well{grid-column:3!important}
}
@media(max-width:900px){
 body dialog.ph-office-shell.ph-office-shell .ph-office-context-controls .ph-selection-action{min-width:40px!important;width:40px!important;min-height:40px!important;height:40px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-context-controls>.ph-primary-move-action{display:none!important}
 body dialog.ph-office-shell.ph-office-shell .ph-workspace-menu-body .ph-design-commands{grid-template-columns:repeat(auto-fill,minmax(64px,1fr))!important;gap:5px!important;max-height:48dvh!important;overflow:auto!important}
 body dialog.ph-office-shell.ph-office-shell .ph-workspace-menu-body .ph-design-commands button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;width:100%!important;height:64px!important;min-height:64px!important;padding:5px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-workspace-menu-body .ph-command-label{position:static!important;width:auto!important;height:auto!important;clip-path:none!important;font-size:10px!important;line-height:1.2!important;white-space:normal!important}
 body dialog.ph-office-shell.ph-office-shell .ph-design-commands svg{width:20px!important;height:20px!important;flex:none!important}
 body dialog.ph-office-shell.ph-office-shell .ph-draw-tools button svg{width:20px!important;height:20px!important;flex:none!important}
 body dialog.ph-office-shell.ph-office-shell.ph-native-text-editing textarea.ph-office-typing-input{
  position:absolute!important;left:var(--ph-native-left,12px)!important;top:var(--ph-native-top,80px)!important;
  width:var(--ph-native-width,240px)!important;min-width:0!important;max-width:calc(100% - 24px)!important;
  height:var(--ph-native-height,100px)!important;min-height:64px!important;max-height:none!important;
  opacity:1!important;pointer-events:auto!important;z-index:100!important;resize:none!important;
  box-sizing:border-box!important;padding:9px!important;margin:0!important;border:2px solid #147b58!important;border-radius:8px!important;
  background:#fff!important;color:#142a25!important;box-shadow:0 4px 18px #102c2526!important;
  font-family:var(--ph-native-font,Arial),sans-serif!important;font-size:var(--ph-native-font-size,18px)!important;
  font-weight:var(--ph-native-weight,normal)!important;font-style:var(--ph-native-style,normal)!important;
  text-align:var(--ph-native-align,left)!important;line-height:1.4!important;white-space:pre-wrap!important;
  user-select:text!important;-webkit-user-select:text!important;touch-action:auto!important;-webkit-touch-callout:default!important;overflow:auto!important;
 }
 body dialog.ph-office-shell.ph-office-shell.ph-native-text-editing .ph-edit-done{display:inline-flex!important;position:sticky!important;right:0!important;flex-shrink:0!important;background:#dff3e8!important}
}
.ph-office-loading{position:fixed;inset:0;z-index:100001;background:#f0f7f1e8;display:flex;align-items:center;justify-content:center;color:#143b2c;font:600 16px system-ui;backdrop-filter:blur(2px)}
@media(min-width:901px){body dialog.ph-office-shell.ph-office-shell .ph-office-shell-layout>.ph-design-commands{max-height:none!important;align-items:start!important}}

/* Common mobile actions have visible names, alongside existing formatting. */
body dialog.ph-office-shell.ph-office-shell .ph-mobile-labelled-action{display:none!important}
@media(max-width:900px){
 body dialog.ph-office-shell.ph-office-shell[data-ph-selected-kind=text]:not(.ph-inline-editing) .ph-mobile-edit-action,
 body dialog.ph-office-shell.ph-office-shell[data-ph-selected-kind=image] .ph-design-sizebar>.ph-prop-image{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;min-width:48px!important;min-height:44px!important;padding:6px 10px!important;font-size:12px!important;white-space:nowrap!important;background:#e8f5ee!important;color:#164e37!important}
 body dialog.ph-office-shell.ph-office-shell[data-ph-selected-kind=image] .ph-mobile-selection-hint{display:none!important}
}

/* Mobile selection dock reserves its own space; native text owns its input. */
body dialog.ph-office-shell.ph-office-shell .ph-native-text-tools,
body dialog.ph-office-shell.ph-office-shell .ph-touch-multi{display:none!important}
@media(max-width:900px){
 body dialog.ph-office-shell.ph-office-shell .ph-touch-multi{display:flex!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-layout.ph-office-shell-layout{padding-bottom:calc(var(--ph-rail-height) + 54px)!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-context-controls:not([hidden]){position:absolute!important;left:8px!important;right:8px!important;top:auto!important;bottom:calc(var(--ph-rail-height) + 4px)!important;width:auto!important;max-width:none!important;height:46px!important;min-height:46px!important;box-sizing:border-box!important;overflow:visible!important;justify-content:center!important;z-index:45!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-context-controls.ph-context-offscreen{visibility:visible!important;pointer-events:auto!important}
 body dialog.ph-office-shell.ph-office-shell .ph-selection-menu{position:absolute!important;left:auto!important;right:0!important;top:auto!important;bottom:50px!important;max-height:45dvh!important;overflow:auto!important}
 body dialog.ph-office-shell.ph-office-shell.ph-native-text-editing .ph-native-text-tools:not([hidden]){position:absolute!important;left:8px!important;right:8px!important;top:54px!important;height:64px!important;display:flex!important;align-items:flex-start!important;gap:3px!important;flex-wrap:nowrap!important;padding:0 0 22px!important;box-sizing:border-box!important;z-index:110!important;background:#fff!important;border-radius:10px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-native-text-tools button{min-height:40px!important;height:40px!important;min-width:0!important;padding:5px 7px!important;font-size:12px!important;flex:1 1 auto!important;white-space:nowrap!important;touch-action:manipulation}
 body dialog.ph-office-shell.ph-office-shell .ph-native-text-tools .ph-native-text-done{background:#147b58!important;color:#fff!important}
 body dialog.ph-office-shell.ph-office-shell .ph-native-text-hint{position:absolute;left:4px;right:4px;bottom:2px;font:11px/18px Arial,sans-serif;color:#426052;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body dialog.ph-office-shell.ph-office-shell.ph-native-text-editing .ph-design-properties{height:0!important;min-height:0!important;max-height:0!important;flex-basis:0!important}
 body dialog.ph-office-shell.ph-office-shell.ph-native-text-editing .ph-design-sizebar{z-index:90!important}
 body dialog.ph-office-shell.ph-office-shell.ph-native-text-editing textarea.ph-office-typing-input{font-family:Arial,sans-serif!important;font-weight:normal!important;font-style:normal!important;caret-color:#147b58!important}
 body dialog.ph-office-shell.ph-office-shell.ph-native-text-editing .ph-office-shell-layout{padding-bottom:52px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-rail{padding-bottom:max(3px,env(safe-area-inset-bottom))!important}
 body dialog.ph-office-shell.ph-office-shell[data-ph-multi-select=true] .ph-touch-multi{background:#def3e8!important;outline:2px solid #147b58}
}
/* Compact, labelled drawing commands share the existing command handlers. */
body dialog.ph-office-shell.ph-office-shell .ph-draw-command-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(62px,1fr))!important;gap:5px!important;width:100%!important;padding:3px!important;box-sizing:border-box!important}
body dialog.ph-office-shell.ph-office-shell .ph-draw-command-grid>button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-width:0!important;width:100%!important;min-height:62px!important;height:auto!important;padding:5px 3px!important;border:1px solid #dce5df!important;background:#fff!important;border-radius:9px!important}
body dialog.ph-office-shell.ph-office-shell .ph-draw-command-grid svg{width:20px!important;height:20px!important;flex:none!important}
body dialog.ph-office-shell.ph-office-shell .ph-draw-command-grid .ph-command-label{position:static!important;width:auto!important;height:auto!important;clip-path:none!important;overflow:visible!important;white-space:normal!important;font-size:10px!important;line-height:1.2!important;text-align:center!important}
body dialog.ph-office-shell.ph-office-shell .ph-draw-original-command{display:none!important}
/* The tools grid spans the complete sheet rather than one parent grid cell. */
body dialog.ph-office-shell.ph-office-shell .ph-office-dock .ph-office-draw-panel{display:block!important;width:100%!important;min-width:0!important;box-sizing:border-box!important}
body dialog.ph-office-shell.ph-office-shell .ph-office-draw-panel>.ph-draw-command-grid{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;min-width:100%!important;max-width:none!important}
@media(max-width:900px){body dialog.ph-office-shell.ph-office-shell .ph-office-draw-panel>.ph-draw-command-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media(max-width:350px){body dialog.ph-office-shell.ph-office-shell .ph-office-draw-panel>.ph-draw-command-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}

/* Desktop drawing command rail: two columns, compact icons with visible tool names.
   Keep every existing <=900px mobile rule unchanged. */
@media (min-width:901px) {
 body dialog.ph-office-shell.ph-office-shell .ph-office-shell-layout{padding-right:178px!important}
 body dialog.ph-office-shell.ph-office-shell .ph-office-shell-layout>.ph-design-commands{
  width:176px!important;min-width:176px!important;max-width:176px!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:4px!important;padding:5px!important;align-content:start!important
 }
 body dialog.ph-office-shell.ph-office-shell .ph-design-commands>button{
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;gap:2px!important;
  width:100%!important;min-width:0!important;min-height:48px!important;
  height:auto!important;padding:4px 3px!important;box-sizing:border-box!important;
  white-space:normal!important;overflow-wrap:anywhere!important
 }
 body dialog.ph-office-shell.ph-office-shell .ph-design-commands>button svg{
  width:18px!important;height:18px!important;flex:0 0 auto!important
 }
 body dialog.ph-office-shell.ph-office-shell .ph-design-commands>button .ph-command-label{
  position:static!important;display:block!important;width:auto!important;height:auto!important;
  clip-path:none!important;overflow:visible!important;white-space:normal!important;
  max-width:100%!important;font-size:10px!important;line-height:1.15!important;
  font-weight:600!important;text-align:center!important;color:inherit!important;
  overflow-wrap:normal!important;word-break:normal!important;
  display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important
 }
}
@media(max-width:900px){
 body dialog.ph-office-shell.ph-office-shell .ph-design-commands .ph-desktop-extra-tool{display:none!important}
}

/* Desktop only: use space for the artwork, not an oversized, broken tool rail.
   The stronger layout selector is necessary because the earlier mobile-first
   rule sets padding with !important. Keep mobile and all commands untouched. */
@media (min-width:901px) {
 body dialog.ph-office-shell.ph-office-shell .ph-office-layout.ph-office-shell-layout{
  padding:0 194px 0 0!important;
  gap:0!important;
  box-sizing:border-box!important;
 }
 body dialog.ph-office-shell.ph-office-shell .ph-office-layout.ph-office-shell-layout>.ph-design-commands{
  position:absolute!important;left:auto!important;right:0!important;top:0!important;bottom:0!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  justify-items:stretch!important;align-items:start!important;align-content:start!important;
  gap:5px!important;padding:6px!important;
  width:190px!important;min-width:190px!important;max-width:190px!important;
  box-sizing:border-box!important;overflow-x:hidden!important;overflow-y:auto!important;
 }
 body dialog.ph-office-shell.ph-office-shell .ph-office-layout.ph-office-shell-layout>.ph-design-commands>button{
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;min-width:0!important;max-width:none!important;
  width:100%!important;height:auto!important;min-height:52px!important;
  padding:5px 3px!important;margin:0!important;gap:3px!important;overflow:visible!important;
  white-space:normal!important;word-break:normal!important;
 }
 body dialog.ph-office-shell.ph-office-shell .ph-office-layout.ph-office-shell-layout>.ph-design-commands>button svg{
  display:block!important;flex:none!important;width:18px!important;height:18px!important;
 }
 body dialog.ph-office-shell.ph-office-shell .ph-office-layout.ph-office-shell-layout>.ph-design-commands>button .ph-command-label{
  display:block!important;position:static!important;clip-path:none!important;
  width:100%!important;max-width:100%!important;height:auto!important;
  font-size:11px!important;line-height:1.2!important;font-weight:600!important;text-align:center!important;
  white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;
  overflow:visible!important;text-overflow:clip!important;
  -webkit-line-clamp:unset!important;-webkit-box-orient:initial!important;
 }
 body dialog.ph-office-shell.ph-office-shell .ph-office-layout.ph-office-shell-layout>.ph-artboard-well{
  width:100%!important;min-width:0!important;max-width:100%!important;
  padding-left:0!important;padding-right:0!important;
  box-sizing:border-box!important;
 }
}
