/* Platform-specific shells. Desktop keeps its docked workbench; touch editors keep the artwork in view. */
.studio-touch-bar,.studio-dock-close{display:none}
.studio-native-settings{display:none}
body[data-native=true] .studio-native-settings{display:inline-flex}
body[data-native=true] #lp-global-navigation,body[data-native=true] .native-edition,body[data-native=true] #flagship-desktop,body[data-native=true] .video-header>span,body[data-native=true] .creative-title>span{display:none!important}
body[data-native=true] .video-header,body[data-native=true] .creative-topbar{gap:12px}
body[data-native=true] .studio-native-settings{margin-left:auto;background:#292c35;border:1px solid #424651;border-radius:6px;color:#eee;padding:6px 12px;align-items:center;cursor:pointer}
.studio-settings-dialog{color:#e9e9ee;background:#1c1e24;border:1px solid #4b4b58;border-radius:14px;padding:20px;width:min(440px,calc(100vw - 32px));max-height:85dvh;overflow:auto}
.studio-settings-dialog::backdrop{background:#0009}
.studio-settings-dialog button{padding:10px 14px;border:1px solid #494b56;border-radius:6px;background:#30323a;color:#fff;margin:4px}
.studio-settings-dialog p{font-size:13px;line-height:1.5}
.studio-settings-dialog dt{font-weight:700;margin-top:10px}
.studio-settings-dialog dd{margin:4px 0;color:#b8bdc9;overflow-wrap:anywhere}
@media(min-width:901px){body.video-studio[data-native=true] .video-logo{pointer-events:none}}
@media(min-width:951px){body.creative-app{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}body.creative-app .creative-topbar{flex:none}body.creative-app .creative-main{flex:1 1 0;height:auto;min-height:0;overflow:hidden}body.creative-app[data-native=true] .creative-brand{pointer-events:none}}
/* Mobile uses one active bottom dock, not a document containing stacked desktop panels. */
body.studio-touch{zoom:1!important;height:100dvh!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;overscroll-behavior:none;padding:0!important;--studio-touch-dock:42%}
body.studio-touch :is(.video-header,.creative-topbar){height:calc(48px + env(safe-area-inset-top))!important;min-height:0!important;flex:none;padding:env(safe-area-inset-top) 10px 0!important;gap:8px;overflow:hidden}
body.studio-touch :is(.video-header,.creative-topbar) :is(h1){font-size:14px;white-space:nowrap}
body.studio-touch :is(.video-logo,.creative-brand){font-size:13px;white-space:nowrap}
body.studio-touch :is(.video-header>span,.creative-title>span,.native-edition){display:none!important}
body.studio-touch[data-native] :is(#lp-global-navigation,#flagship-desktop){display:none!important}
body.studio-touch :is(.video-main,.creative-main){display:flex;flex-direction:column;flex:1 1 0;height:auto!important;min-height:0!important;position:relative;padding:0!important;overflow:hidden}
body.studio-touch :is(.flagship-workspace-heading,.image-workspace-heading){display:none}
body.studio-touch .studio-touch-bar{display:flex;align-items:center;gap:6px;min-width:0;flex:none;background:#1b1d22;padding:5px 8px;border-bottom:1px solid #30323a}
.studio-touch-bar strong{font-size:12px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-touch-bar button,.studio-dock-close{min-height:44px;padding:6px 10px;border:1px solid #434550;background:#292c34;color:#eee;border-radius:8px;font:600 12px system-ui;white-space:nowrap}
.studio-touch-bar .studio-touch-export{background:#b4a0ff;color:#171327;border-color:#b4a0ff}
body.studio-touch :is(.video-toolbar,.creative-toolbar){display:none!important}
body.studio-touch[data-touch-dock=tools] :is(.video-toolbar,.creative-toolbar){display:flex!important;position:absolute;inset:auto 0 calc(57px + env(safe-area-inset-bottom)) 0;z-index:60;max-height:60%;overflow:auto;flex-wrap:wrap;align-content:flex-start;align-items:center;padding:12px;gap:8px;background:#202128;border-top:1px solid #4d4e5c;border-radius:14px 14px 0 0;box-shadow:0 -12px 35px #0007}
body.studio-touch :is(.video-toolbar,.creative-toolbar) :is(button,label,select){min-height:44px;font-size:13px;white-space:normal}
body.studio-touch .creative-tool-group{display:flex;flex-wrap:wrap;gap:8px;min-width:0;max-width:100%}
body.studio-touch .video-toolbar-push{display:none}
body.studio-touch :is(.video-work-layout,.creative-layout){display:flex!important;flex-direction:column!important;flex:1 1 0;min-height:0!important;height:auto!important;max-height:none!important;overflow:hidden!important;position:relative;isolation:isolate;gap:0}
body.studio-touch :is(.video-center,.creative-work){order:0!important;display:flex;flex-direction:column;flex:1 1 0!important;width:100%;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden!important}
body.studio-touch :is(.video-assets,.video-inspector,.creative-left,.creative-properties){display:none!important;order:1!important;flex:0 0 var(--studio-touch-dock)!important;width:100%!important;max-height:none!important;min-height:0!important;height:auto!important;overflow:auto!important;overscroll-behavior:contain;border:0;border-top:1px solid #494b56;border-radius:12px 12px 0 0;padding-bottom:8px;background:#202128}
body.studio-touch[data-touch-dock=media] .video-assets,body.studio-touch[data-touch-dock=inspector] .video-inspector,body.studio-touch[data-touch-dock=layers] .creative-left,body.studio-touch[data-touch-dock=inspector] .creative-properties{display:block!important}
body.studio-touch .studio-dock-close{display:block;position:sticky;top:0;z-index:8;width:100%;border-radius:10px 10px 0 0;text-align:center;background:#292c34}
body.studio-touch :is(.flagship-workspaces,.image-workspaces){position:relative!important;inset:auto!important;flex:none;display:flex;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;gap:4px;z-index:70;padding:4px 6px max(5px,env(safe-area-inset-bottom));scrollbar-width:none;background:#191b20}
body.studio-touch :is(.flagship-workspaces,.image-workspaces) button{flex:1 0 64px;min-width:64px;min-height:48px;font-size:11px}
body.studio-touch .video-panel-splitter{display:none!important}
body.studio-touch .video-player-bar{flex:none;min-height:0!important;padding:3px 8px;gap:5px;overflow-x:auto;flex-wrap:nowrap}
body.studio-touch .video-player-bar>strong{display:none}
body.studio-touch .video-canvas-controls{flex:none;min-width:0;flex-wrap:nowrap}
body.studio-touch .video-canvas-controls :is(button,input,select){font-size:12px}
body.studio-touch .video-view-controls{flex:none;min-height:36px;padding:2px 6px;gap:5px}
body.studio-touch .video-view-controls button{min-height:32px}
body.studio-touch .video-center .video-monitor{flex:1 1 0!important;min-height:0!important;padding:4px;contain:size layout;overflow:auto}
body.studio-touch .video-drop-message{position:absolute;top:8px;left:8px;max-width:calc(100% - 16px);padding:8px;pointer-events:none}
body.studio-touch .video-drop-message strong{font-size:13px}
body.studio-touch .video-drop-message:not([hidden]){font-size:11px}
body.studio-touch .video-monitor-tools{display:none}
body.studio-touch .video-transport{flex:none;padding:3px 6px;gap:4px}
body.studio-touch .video-transport button{min-height:36px;padding:5px 7px}
body.studio-touch .video-transport output{min-width:44px;font-size:11px}
body.studio-touch .video-timeline-header{flex:none;display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:4px 6px}
body.studio-touch .video-timeline-header>div:first-child{display:none}
body.studio-touch .video-timeline-actions{display:flex;flex:none;flex-wrap:nowrap;margin:0;gap:5px}
body.studio-touch .video-timeline-actions button{min-height:36px;white-space:nowrap}
body.studio-touch .video-center .video-timeline{flex:0 0 clamp(92px,19dvh,220px)!important;min-height:0!important;max-height:none!important;overflow:auto!important}
body.studio-touch[data-touch-dock=media] .video-timeline,body.studio-touch[data-touch-dock=inspector] .video-timeline{display:none}
body.studio-touch[data-touch-dock=media] .video-timeline-header,body.studio-touch[data-touch-dock=inspector] .video-timeline-header{display:none}
body.studio-touch :is(.video-status,.creative-status){flex:none;min-height:0;max-height:24px;overflow:hidden;padding:3px 8px;font-size:10px}
body.studio-touch :is(.video-property-body,.creative-panel-scroll){padding:4px 12px 16px;min-height:0}
body.studio-touch :is(.video-property-body,.creative-panel-scroll) :is(button,select,input:not([type=checkbox]):not([type=range]),textarea){min-height:40px;font-size:16px}
body.studio-touch :is(.video-inspector,.creative-properties) :is(button[role=tab],[data-video-tab],[data-creative-tab]){min-height:44px}
body.studio-touch .video-library{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:6px}
body.studio-touch .video-library li{width:auto;min-width:0}
body.studio-touch .creative-left .creative-layers{display:grid!important}
body.studio-touch .creative-left .creative-layer-actions{display:flex!important;flex-wrap:wrap}
body.studio-touch .creative-canvas-top{flex:none;display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;padding:4px 6px}
body.studio-touch .creative-size-toolbar{flex:none;display:flex;flex-wrap:nowrap;min-width:0}
body.studio-touch .creative-canvas-top :is(button,input,select){min-height:34px;font-size:12px}
body.studio-touch .creative-drop{flex:1 1 0!important;min-height:0!important;padding:8px;contain:size layout}
body.studio-touch .creative-templates{grid-template-columns:repeat(2,minmax(0,1fr))}
body.studio-touch .creative-artboard{max-width:none;max-height:none}
body.studio-touch[data-touch-dock=tools] :is(.studio-touch-bar,.video-work-layout,.creative-layout){/* no reparenting; original project state remains intact */}
@media(orientation:landscape) and (max-height:520px){body.studio-touch{--studio-touch-dock:45%}body.studio-touch :is(.video-work-layout,.creative-layout){flex-direction:row!important}body.studio-touch :is(.video-assets,.video-inspector,.creative-left,.creative-properties){flex:0 0 40%!important;border-top:0;border-left:1px solid #494b56}body.studio-touch .video-center .video-timeline{flex-basis:74px!important}body.studio-touch :is(.video-header,.creative-topbar){height:36px!important;padding-top:0!important}body.studio-touch .studio-touch-bar button{min-height:34px}}

.studio-touch-export-controls{display:none}body.studio-touch .studio-touch-export-controls{display:grid;gap:8px;padding:8px 0}body.studio-touch .studio-touch-export-controls select{width:100%}body.studio-touch .studio-touch-export-action{background:#b4a0ff;color:#171327}body.studio-touch .studio-touch-bar strong{min-width:0}body.studio-touch .studio-touch-bar button{flex:none}body.studio-touch .studio-touch-bar{overflow-x:auto;scrollbar-width:none}body.studio-touch .studio-touch-bar strong{flex:1 1 auto;min-width:40px}body.studio-touch :is(.video-main,.creative-main):is(:fullscreen,.studio-faux-fullscreen){height:100dvh!important;width:100vw!important;position:fixed!important;inset:0!important}body.studio-touch .video-monitor:is(:fullscreen,.studio-faux-fullscreen){height:100dvh!important;width:100vw!important;position:fixed!important;inset:0!important}

.studio-touch-adjust{display:none!important}body.studio-touch .studio-touch-adjust{display:flex!important;align-items:center;justify-content:center}
body.studio-touch :is(.video-toolbar,.creative-toolbar)>.studio-dock-close{flex:1 0 100%;width:100%}
body.studio-touch .video-timeline-zoom{min-width:110px}
body.studio-touch .video-timeline-track{min-height:42px}
body.studio-touch .video-track-clips{min-height:40px}
body.studio-touch .video-trim-handle{touch-action:none;min-width:14px}
body.studio-touch .video-track-clips button{touch-action:pan-x}
body.studio-touch .video-track-clips button[data-type=overlay],body.studio-touch .video-track-clips button[data-type=audio],body.studio-touch .video-track-clips button[data-type=title]{touch-action:none}
body.studio-touch .video-center .video-monitor{background:#08090b}
body.studio-touch .creative-artboard{touch-action:none}
.studio-settings-dialog fieldset{border:1px solid #444651;border-radius:8px;padding:8px}

body.studio-touch[data-touch-dock=inspector] .studio-touch-adjust{scroll-margin-inline:8px}body.studio-touch .studio-dock-close:focus-visible{outline:2px solid #c9b8ff;outline-offset:-2px}

/* Website navigation is independent of the installed application shell. */
body.studio-touch:not([data-native]) #lp-global-navigation{display:flex!important;flex:0 0 auto;margin-left:auto}
body.studio-touch:not([data-native]) #lp-global-navigation .lp-more-menu{display:block}
body.studio-touch:not([data-native]) #lp-global-navigation .lp-labs-trigger{font-size:0;padding:6px 8px;gap:3px}
body.studio-touch:not([data-native]) #lp-global-navigation .lp-labs-trigger::before{content:"Apps";font-size:11px}
body.studio-touch:not([data-native]) #lp-global-navigation .lp-more-button{font-size:11px;padding:6px 8px}
body.studio-touch:not([data-native]) #flagship-desktop{display:inline-flex!important;white-space:nowrap;padding:5px 7px;font-size:10px;flex:0 0 auto;margin-left:auto}
body.studio-touch:not([data-native]) :is(.video-header,.creative-topbar){gap:5px;padding-inline:6px!important}
body.studio-touch:not([data-native]) :is(.video-header,.creative-topbar) h1{font-size:12px}
body.studio-touch:not([data-native]) :is(.video-logo,.creative-brand){display:none}
body[data-native] .browser-only,body:not([data-native=true]) .native-only{display:none!important}
body[data-native=mobile] .browser-only{display:block!important}
.studio-import-note{font-size:11px!important;color:#d8c5a2!important;line-height:1.35;white-space:normal;max-width:260px}
.studio-settings-dialog{width:min(590px,calc(100vw - 24px))}
.studio-settings-dialog fieldset{border:1px solid #474953;border-radius:8px;margin:12px 0;padding:10px;min-width:0}
.studio-settings-dialog label{display:grid;gap:5px;font-size:13px;margin:6px 0}
.studio-settings-dialog select{background:#292c34;color:#eee;border:1px solid #50535e;border-radius:5px;padding:8px}

.studio-quick-import-hint{display:block;color:#d8c5a2;font-size:9px;font-weight:500;line-height:1.1;margin-top:2px}
body.studio-touch .studio-touch-bar button:has(.studio-quick-import-hint){padding-block:3px}
.studio-toolbar-warning{font-size:10px;color:#d8c5a2;max-width:165px;line-height:1.2;white-space:normal}
body.studio-touch .studio-touch-bar strong{min-width:0;flex:0 0 auto;max-width:70px}

.studio-native-review{width:min(980px,calc(100vw - 32px));max-height:90vh;background:#1b1d23;color:#eee;border:1px solid #50535c;border-radius:10px;padding:16px}.studio-native-review::backdrop{background:#000b}.studio-native-review video{display:block;width:100%;max-height:65vh;background:#000}.studio-native-review button{margin-top:12px;padding:8px 14px;background:#30323a;color:#eee;border:1px solid #50535c;border-radius:6px}.studio-native-review p{font-size:13px;line-height:1.4}

.studio-recovery-live{color:#b7bdca;font-size:10px;line-height:1.2;max-width:145px;white-space:normal;overflow:hidden;text-overflow:ellipsis}body.studio-touch .studio-recovery-live{display:none}

/* Image desktop workbench. Touch retains the original dock/navigation and full-size controls. */
body.creative-app.studio-workbench{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden;--cs-bg:#222;--cs-panel:#303030;--cs-outline:#444;--cs-muted:#bdbdbd}
body.creative-app.studio-workbench[data-native=true] .creative-topbar{display:none!important}
body.creative-app.studio-workbench .creative-main{height:auto!important;min-height:0!important;flex:1 1 0;overflow:hidden;padding:0!important}
body.creative-app.studio-workbench .image-workspaces,body.creative-app.studio-workbench .image-workspace-heading{display:none!important}
body.creative-app.studio-workbench .creative-layout{display:grid!important;grid-template-columns:48px minmax(0,1fr) minmax(260px,310px);grid-template-rows:minmax(0,58fr) minmax(0,42fr);gap:0;flex:1 1 0;height:auto!important;min-height:0!important;overflow:hidden;background:#262626}
body.creative-app.studio-workbench .creative-toolbar{grid-column:1;grid-row:1/3;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:5px 3px;gap:4px;min-width:0;min-height:0;overflow:auto!important;background:#303030;border-right:1px solid #4a4a4a;scrollbar-width:thin}
body.creative-app.studio-workbench .creative-toolbar .creative-tool-group{display:flex;flex-direction:column;flex:0 0 auto;gap:3px;align-items:stretch;border:0;padding:0}
body.creative-app.studio-workbench .creative-toolbar button{display:grid;place-items:center;width:100%;min-height:34px;padding:3px;border:1px solid transparent;border-radius:3px;background:transparent;color:#d6d6d6;font-size:19px;line-height:1}
body.creative-app.studio-workbench .creative-toolbar button:hover{background:#474747;border-color:#666}
body.creative-app.studio-workbench .creative-toolbar button[aria-pressed=true]{background:#50505a;color:#fff;border-color:#aaa0dc}
body.creative-app.studio-workbench .studio-tool-name{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.studio-tool-icon,.studio-tool-name{display:inline}.studio-tool-name{margin-left:4px}
.studio-image-menubar,.studio-rail-label{display:none}
body.creative-app.studio-workbench .studio-image-menubar{display:flex;align-items:center;gap:2px;padding:2px 8px;background:#303030;border-bottom:1px solid #444;flex:none;z-index:30}
body.creative-app.studio-workbench[data-native=true] .studio-image-menubar{display:none!important}
body.creative-app.studio-workbench .studio-rail-label{display:block;font-size:9px;text-align:center;color:#bbb;order:-1;margin:2px 0 4px}
.studio-image-menu{position:relative;color:#eee;font-size:12px}.studio-image-menu summary{cursor:pointer;padding:5px 10px;list-style:none;border-radius:3px}.studio-image-menu summary::-webkit-details-marker{display:none}.studio-image-menu[open] summary,.studio-image-menu summary:hover{background:#484848}
.studio-image-menu-items{position:absolute;top:100%;left:0;width:230px;padding:5px;background:#333;border:1px solid #555;box-shadow:0 8px 20px #0008;z-index:40;display:grid;gap:2px}
.studio-image-menu-items .creative-tool-group{display:grid;gap:2px;border:0;padding:0;min-width:0}
.studio-image-menu-items :is(button,label){display:block;width:100%;background:transparent;border:0;color:#eee;text-align:left;padding:7px 9px;border-radius:3px;font-size:12px;cursor:pointer}
.studio-image-menu-items :is(button,label):hover{background:#505050}.studio-image-menu-items button:disabled{opacity:.4;cursor:default}
.studio-image-menu-items .studio-import-note{padding:5px 9px;max-width:none}
body.creative-app.studio-workbench .creative-work{grid-column:2;grid-row:1/3;min-width:0;min-height:0;height:auto!important;background:#222}
body.creative-app.studio-workbench .creative-drop{background:#222;padding:16px;min-height:0;contain:size layout}
body.creative-app.studio-workbench .creative-artboard{position:relative;border:0;box-shadow:0 1px 8px #0009}
body.creative-app.studio-workbench .creative-properties{grid-column:3;grid-row:1;overflow:auto;min-height:0;border-left:1px solid #4a4a4a;background:#303030}
body.creative-app.studio-workbench .creative-left{grid-column:3;grid-row:2;order:0!important;overflow:auto;min-height:0;border:0;border-left:1px solid #4a4a4a;border-top:3px solid #242424;background:#303030}
body.creative-app.studio-workbench :is(.creative-canvas-top,.creative-status,.creative-tabs){background:#303030;border-color:#454545}
body.creative-app.studio-workbench .creative-canvas-top{padding:4px 8px;gap:5px;flex:none}
body.creative-app.studio-workbench .creative-size-toolbar{gap:4px}
body.creative-app.studio-workbench .creative-size-toolbar input[type=number]{width:65px;padding:3px 5px}
body.creative-app.studio-workbench .creative-size-toolbar :is(button,select),body.creative-app.studio-workbench .creative-zoom button{min-height:25px;padding:3px 6px}
body.creative-app.studio-workbench .creative-size-toolbar .sr-only{position:absolute!important}
body.creative-app.studio-workbench .creative-size-readout{display:block}
body.creative-app.studio-workbench .creative-status{padding:4px 8px;min-height:25px;gap:8px}
body.creative-app.studio-workbench .creative-status span:last-child{display:none}
body.creative-app.studio-workbench .creative-tabs{padding:4px;gap:2px}
body.creative-app.studio-workbench .creative-tabs button{padding:6px 3px;border-radius:2px}
body.creative-app.studio-workbench .creative-panel-heading{padding:8px 10px 5px}
body.creative-app.studio-workbench .creative-panel-scroll{padding:0 10px 12px}
body.creative-app.studio-workbench .creative-panel-scroll label{margin:5px 0;font-size:11px;gap:3px}
body.creative-app.studio-workbench .creative-panel-scroll :is(input[type=number],select,textarea){padding:4px 6px;border-radius:3px;background:#252525;border-color:#515151}
body.creative-app.studio-workbench .creative-style-fieldset{margin:8px 0;padding:6px 8px;border-radius:3px;border-color:#484848}
body.creative-app.studio-workbench .creative-style-fieldset legend{color:#ccc;font-weight:600}
body.creative-app.studio-workbench .creative-layer{border-radius:2px;min-height:30px;padding:3px 5px;background:#383838;border-color:#4b4b4b}
body.creative-app.studio-workbench .creative-layer.is-active{background:#50505a;border-color:#a99aff}
body.creative-app.studio-workbench .layer-bulk{padding:0 8px;display:flex;flex-wrap:wrap;gap:4px}
body.creative-app.studio-workbench .layer-bulk label{flex:1 0 100%}
body.creative-app.studio-workbench .layer-bulk button{min-height:24px;padding:3px 6px}
body.creative-app.studio-workbench .creative-layer-actions{padding:0 8px 5px}
body.creative-app.studio-workbench .creative-layers{display:grid!important;margin:0 0 8px;gap:2px}
body.creative-app.studio-workbench .creative-asset-help{display:none}
body.creative-app.studio-workbench .studio-image-templates{margin:5px 8px 8px;border-top:1px solid #4b4b4b;padding-top:5px}
.studio-image-templates summary{cursor:pointer;color:#ddd;font-size:12px}
body.creative-app.studio-workbench .studio-image-templates .creative-panel-heading{display:none}
body.creative-app.studio-workbench .creative-templates{display:grid;grid-template-columns:1fr 1fr;padding:6px 0;gap:3px}
body.creative-app.studio-workbench .creative-templates button{min-height:29px;padding:5px 6px;font-size:10px}
body.creative-app.studio-workbench .creative-export-group{position:static;display:flex;flex-wrap:wrap;margin:8px 0;padding:0;box-shadow:none;background:none;border:0}
body.creative-app.studio-workbench .creative-export-group select{flex:1;min-width:85px}
body.creative-app.studio-workbench .creative-topbar{height:38px;padding:0 10px;background:#303030}
@media(max-width:760px){body.creative-app.studio-workbench .creative-layout{grid-template-columns:42px minmax(0,1fr) minmax(190px,235px)}}

.creative-app .creative-artboard{position:relative}
.creative-marquee-surface{position:absolute;inset:0;z-index:5;pointer-events:none;touch-action:none}
.creative-marquee-surface[hidden],.creative-marquee-box[hidden]{display:none!important}
.creative-marquee-surface.is-active{pointer-events:auto;cursor:crosshair}
.creative-marquee-box{position:absolute;pointer-events:none;border:1px dashed #fff;outline:1px dashed #111;background:#a4b7ff20;box-sizing:border-box}

body.creative-app.studio-workbench .studio-dock-close{display:none!important}

/* Workbench dimension labels must be visually hidden, never laid over the controls. */
.creative-app .creative-size-toolbar .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
body.creative-app.studio-workbench .creative-layout{position:relative;--studio-dock-width:310px;--studio-rail-width:48px;--studio-inspector-fr:58%;grid-template-columns:var(--studio-rail-width) minmax(0,1fr) minmax(0,var(--studio-dock-width));grid-template-rows:minmax(0,var(--studio-inspector-fr)) minmax(0,1fr)}
body.creative-app.studio-workbench .creative-size-toolbar{position:relative;flex:1 1 460px;min-width:0;flex-wrap:wrap;gap:5px}
body.creative-app.studio-workbench .creative-size-toolbar :is(strong,span,button,input,select){flex-shrink:0}
body.creative-app.studio-workbench .creative-size-toolbar .creative-auto-size{flex:0 1 auto;display:flex;align-items:center;gap:4px;white-space:normal}
body.creative-app.studio-workbench .creative-size-toolbar input[type=number]{box-sizing:border-box;width:65px}
body.creative-app.studio-workbench .creative-size-readout{flex:0 0 auto;white-space:nowrap}
body.creative-app.studio-workbench .creative-zoom{flex:0 0 auto}
body.creative-app.studio-workbench .creative-properties,body.creative-app.studio-workbench .creative-left{min-width:0}
.studio-dock-splitter{display:none}
body.creative-app.studio-workbench .studio-dock-splitter{display:block;position:absolute;z-index:15;background:transparent;touch-action:none;outline:none}
body.creative-app.studio-workbench .studio-dock-splitter:hover,body.creative-app.studio-workbench .studio-dock-splitter:focus-visible,body.creative-app.studio-workbench .studio-dock-splitter.is-dragging{background:#a99aff80}
.studio-dock-splitter[data-split=rail]{left:calc(var(--studio-rail-width) - 3px);top:0;bottom:0;width:6px;cursor:col-resize}
.studio-dock-splitter[data-split=dock]{right:calc(var(--studio-dock-width) - 3px);top:0;bottom:0;width:6px;cursor:col-resize}
.studio-dock-splitter[data-split=rows]{right:0;width:var(--studio-dock-width);top:calc(var(--studio-inspector-fr) - 3px);height:6px;cursor:row-resize}

.creative-lasso-outline{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:hidden}

body.creative-app.studio-workbench #creative-foreground{width:100%;height:28px;min-width:0;padding:2px;background:#303030;border:1px solid #555;cursor:pointer}

.creative-wand-preview{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.creative-wand-preview[hidden]{display:none!important}

/* ListPull Image workbench: matching native tool cards, persistent selection outline, touch-first palette. */
.creative-app .creative-selection-boundary{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:7;overflow:hidden}
.creative-app .creative-selection-boundary path{fill:none;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:butt}
.creative-app .creative-selection-dark{stroke:#171719;stroke-width:2}
.creative-app .creative-selection-light{stroke:#fff;stroke-width:1;stroke-dasharray:5 4;animation:lp-selection-march .8s linear infinite}
@keyframes lp-selection-march{to{stroke-dashoffset:-9}}
@media(prefers-reduced-motion:reduce){.creative-app .creative-selection-light{animation:none}}
.creative-app .creative-marquee-box{background:transparent}
body.creative-app.studio-workbench .creative-toolbar{background:#24252d;border-color:#3f414b;padding:6px;gap:6px}
body.creative-app.studio-workbench .creative-toolbar .studio-image-tool-grid{gap:5px}
body.creative-app.studio-workbench .creative-toolbar .studio-image-tool-grid button,
body.creative-app.studio-touch .studio-image-tool-grid button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:52px;padding:5px 3px;background:#353740;border:1px solid #42444f;border-radius:5px;color:#e2e2e9}
body.creative-app.studio-workbench .creative-toolbar .studio-image-tool-grid button[aria-pressed=true],
body.creative-app.studio-touch .studio-image-tool-grid button[aria-pressed=true]{background:#58498f;border-color:#b7a6ff;color:#fff;box-shadow:inset 0 0 0 1px #b7a6ff55}
body.creative-app.studio-workbench .studio-image-tool-grid button:hover{background:#454652}
body.creative-app .studio-image-tool-grid .studio-tool-icon{width:23px;height:23px;display:block;flex:none}
body.creative-app.studio-workbench .studio-image-tool-grid .studio-tool-name,
body.creative-app.studio-touch .studio-image-tool-grid .studio-tool-name{position:static;width:auto;height:auto;overflow:visible;clip-path:none;display:block;text-align:center;margin:0;font:500 11px/1.15 system-ui;white-space:normal}
body.creative-app.studio-workbench .studio-rail-label{font-size:10px;letter-spacing:.08em;color:#c5c5cf;padding:5px 0 8px;border-bottom:1px solid #41434c}
body.creative-app .creative-selection-options{flex:0 0 auto;overflow-x:auto;scrollbar-width:thin}
body.creative-app .creative-layer-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.creative-app .creative-layer{min-width:0;max-width:100%}
body.creative-app.studio-touch{--studio-touch-dock:46%}
body.creative-app.studio-touch .creative-main{background:#22232a}
body.creative-app.studio-touch .studio-touch-bar{padding:6px 8px;gap:6px;scroll-snap-type:x proximity}
body.creative-app.studio-touch .studio-touch-bar strong{display:none}
body.creative-app.studio-touch .studio-touch-bar button{scroll-snap-align:start;min-height:44px}
body.creative-app.studio-touch .studio-quick-import-hint{display:none}
body.creative-app.studio-touch[data-touch-dock=tools] .creative-toolbar{display:block!important;max-height:min(66dvh,600px);padding:10px 12px 16px;bottom:calc(58px + env(safe-area-inset-bottom));border-radius:16px 16px 0 0}
body.creative-app.studio-touch .creative-toolbar .studio-image-tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));width:100%;gap:7px;padding:10px 0;border-top:1px solid #454752;border-bottom:1px solid #454752;margin:8px 0}
body.creative-app.studio-touch .studio-image-tool-grid button{min-height:64px;padding:8px 4px}
body.creative-app.studio-touch .studio-image-tool-grid .studio-tool-name{font-size:12px}
body.creative-app.studio-touch #creative-foreground{width:100%;min-height:48px;box-sizing:border-box;grid-column:1/-1}
body.creative-app.studio-touch .creative-toolbar .creative-tool-group:not(.studio-image-tool-grid){gap:7px;padding:8px 0}
body.creative-app.studio-touch .creative-toolbar .creative-tool-group:not(.studio-image-tool-grid) :is(button,label,select){flex:1 1 auto}
body.creative-app.studio-touch .creative-canvas-top{padding:5px 8px;max-height:108px;overflow:auto;align-items:center;gap:5px}
body.creative-app.studio-touch .creative-size-toolbar{display:flex;flex-wrap:wrap;min-width:0;gap:5px}
body.creative-app.studio-touch .creative-size-toolbar input[type=number]{width:68px;min-height:36px;font-size:16px}
body.creative-app.studio-touch .creative-size-toolbar :is(button,select),body.creative-app.studio-touch .creative-zoom button{min-height:36px}
body.creative-app.studio-touch .creative-selection-options{display:flex;flex-wrap:nowrap;gap:5px;padding:5px 8px;max-width:100%;overflow-x:auto}
body.creative-app.studio-touch .creative-selection-options[hidden]{display:none!important}
body.creative-app.studio-touch .creative-selection-options :is(button,select){min-height:44px;white-space:nowrap;flex:none}
body.creative-app.studio-touch .creative-properties .creative-tabs{position:sticky;top:44px;z-index:7;display:flex;overflow-x:auto;padding:4px 8px;background:#25262d}
body.creative-app.studio-touch .creative-tabs button{min-height:44px;flex:1 0 auto}
body.creative-app.studio-touch .creative-panel-scroll{padding:8px 14px 20px}
body.creative-app.studio-touch .creative-style-fieldset{padding:10px;margin:10px 0;border-radius:8px;border-color:#464854}
body.creative-app.studio-touch .creative-panel-scroll label{font-size:13px;gap:5px}
body.creative-app.studio-touch .creative-panel-scroll :is(input[type=number],input[type=text],select,textarea){font-size:16px;min-height:40px;max-width:100%}
body.creative-app.studio-touch .creative-panel-scroll input[type=range]{min-height:34px;touch-action:pan-y}
body.creative-app.studio-touch .creative-layer{min-height:48px;gap:6px;padding:6px 8px}
body.creative-app.studio-touch .creative-layer button{min-width:36px;min-height:36px}
body.creative-app.studio-touch .creative-layer-actions,.creative-app.studio-touch .layer-bulk{display:flex;flex-wrap:wrap;gap:6px;padding:6px 10px}
body.creative-app.studio-touch .creative-layer-actions button,.creative-app.studio-touch .layer-bulk button{min-height:44px}
@media(orientation:landscape) and (max-height:600px){
 body.creative-app.studio-touch .creative-canvas-top{max-height:76px}
 body.creative-app.studio-touch[data-touch-dock=tools] .creative-toolbar{max-height:72dvh}
 body.creative-app.studio-touch .creative-selection-options :is(button,select){min-height:36px}
}

/* Keep path commands discoverable on narrow touch workspaces without covering the artboard. */
body.creative-app.studio-workbench .creative-path-options{flex-wrap:wrap;align-content:start;gap:5px}
body.creative-app.studio-workbench .creative-path-options button[aria-pressed=true]{background:#58498f;border-color:#b7a6ff;color:white}
body.creative-app.studio-touch .creative-path-options:not([hidden]){display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,minmax(44px,auto));grid-auto-columns:max-content;align-items:stretch;overflow-x:auto;scrollbar-width:auto;padding:6px 8px}
body.creative-app.studio-touch .creative-path-options button{min-width:94px;white-space:normal;line-height:1.15;padding:6px 10px}
body.creative-app.studio-touch .creative-path-options button[aria-pressed=true]{background:#58498f;border-color:#b7a6ff;color:#fff}
body.creative-app .creative-path-options button[hidden]{display:none!important}

/* Viewport: center only when artwork fits. Auto margins resolve to zero on
   overflow, so the scroll origin includes all four corners of the artboard. */
body.creative-app .creative-drop{justify-content:flex-start;align-items:flex-start;overscroll-behavior:contain;overflow:auto;scrollbar-width:thin;scrollbar-color:#666777 transparent;overflow-anchor:none}
body.creative-app .creative-artboard{flex:0 0 auto;margin:auto;max-width:none;max-height:none}
body.creative-app .creative-drop.is-view-pan,body.creative-app .creative-drop.is-view-pan *{cursor:grab!important;touch-action:none}
body.creative-app .creative-drop.is-view-drag,body.creative-app .creative-drop.is-view-drag *{cursor:grabbing!important;user-select:none}
body.creative-app .studio-view-pan[aria-pressed=true]{background:#58498f;border-color:#b7a6ff;color:white}
.studio-image-document-sheet,.studio-touch-palette-heading,.studio-image-nav-button,.studio-view-hint{display:none}
body.creative-app.studio-workbench .studio-view-hint{display:inline;color:#aaa;font-size:10px;white-space:nowrap}
body.creative-app.studio-touch{--studio-touch-dock:48%;--mobile-surface:#141417;--mobile-card:#202024;--mobile-border:#343438;--mobile-accent:#b9a8fa;background:#101012;color:#eeedf1}
body.creative-app.studio-touch .creative-main{background:#101012}
body.creative-app.studio-touch .creative-topbar{background:#101012;border-bottom:1px solid #29292d;min-height:0!important}
body.creative-app.studio-touch .studio-touch-bar{display:none!important}
body.creative-app.studio-touch .creative-canvas-top{display:flex;justify-content:space-between;align-items:center;flex-wrap:nowrap;max-height:none;min-height:44px;gap:5px;padding:3px 10px;background:#151517;border-bottom:1px solid #2c2c30;overflow:hidden}
body.creative-app.studio-touch .creative-canvas-top .creative-size-readout{display:block;min-width:0;flex:1;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.creative-app.studio-touch .creative-zoom{display:flex;gap:4px;flex:none}
body.creative-app.studio-touch .creative-zoom button{min-height:36px;min-width:34px;border-radius:20px;background:#232326;border-color:#36363c;padding:4px 9px}
body.creative-app.studio-touch .creative-zoom output{min-width:36px;font-size:11px}
body.creative-app.studio-touch .creative-drop{background:#171719!important;padding:10px}
body.creative-app.studio-touch .creative-artboard{box-shadow:0 7px 24px #0008;border:0}
body.creative-app.studio-touch .creative-status{background:#141416;border-color:#28282d;padding:4px 12px;font-size:10px;min-height:22px;max-height:30px}
body.creative-app.studio-touch .image-workspaces{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;overflow:visible;margin:4px 8px max(5px,env(safe-area-inset-bottom));padding:4px;border:1px solid #353539;border-radius:24px;background:#1b1b1eee;box-shadow:0 5px 18px #0006;flex:none}
body.creative-app.studio-touch .image-workspaces button{display:grid!important;place-content:center;justify-items:center;gap:3px;min-width:0;min-height:49px;max-width:100%;padding:3px 1px;border-radius:19px;border:1px solid transparent;background:transparent;color:#bcbcc3;font:500 10px/1.15 system-ui;white-space:normal;text-align:center}
body.creative-app.studio-touch .image-workspaces button span{font-size:18px;line-height:1}
body.creative-app.studio-touch .image-workspaces button:is([aria-pressed=true],.is-current){background:#353044;border-color:#51476a;color:#e9e0ff}
body.creative-app.studio-touch .studio-image-nav-button{display:grid!important}
body.creative-app.studio-touch .studio-image-document-sheet{display:none;position:absolute;left:8px;right:8px;bottom:calc(72px + env(safe-area-inset-bottom));z-index:65;max-height:min(72dvh,calc(100% - 110px));overflow:hidden;flex-direction:column;background:#18181b;border:1px solid #3b3b40;border-radius:24px;box-shadow:0 -8px 36px #0009}
body.creative-app.studio-touch[data-touch-dock=document] .studio-image-document-sheet{display:flex}
body.creative-app.studio-touch .studio-sheet-heading{display:flex;justify-content:space-between;align-items:center;flex:none;padding:14px 16px 10px;border-bottom:1px solid #303035;background:#18181b}
body.creative-app.studio-touch .studio-sheet-heading strong{font-size:19px;font-weight:600;letter-spacing:-.02em}
body.creative-app.studio-touch .studio-sheet-dismiss{min-height:38px;border-radius:22px;padding:7px 15px;border:1px solid #39393f;background:#26262a;color:#eee}
body.creative-app.studio-touch .studio-sheet-body{overflow:auto;min-height:0;overscroll-behavior:contain;padding:10px 12px 16px;display:grid;gap:10px}
body.creative-app.studio-touch .studio-sheet-section{padding:12px;border:1px solid #333338;border-radius:18px;background:#202024;min-width:0}
body.creative-app.studio-touch .studio-sheet-section h3{font:600 13px/1.3 system-ui;color:#e5e3eb;margin:0 0 10px}
body.creative-app.studio-touch .studio-sheet-section :is(.creative-tool-group,.creative-size-toolbar,.studio-sheet-actions){display:flex;flex-wrap:wrap;gap:7px;align-items:center;padding:0;margin:0;border:0;min-width:0;max-width:100%}
body.creative-app.studio-touch .studio-sheet-section :is(button,label:not(.sr-only),select,input:not([type=checkbox]):not([type=file])){min-height:44px;padding:7px 10px;border-radius:12px;border:1px solid #414147;background:#29292e;color:#eee;font:500 13px/1.2 system-ui;box-sizing:border-box}
body.creative-app.studio-touch .studio-sheet-section :is(button,label:not(.sr-only),select){flex:1 1 auto;text-align:center}
body.creative-app.studio-touch .studio-sheet-section input[type=number]{width:75px;font-size:16px}
body.creative-app.studio-touch .studio-sheet-section .creative-auto-size{width:100%;display:flex;align-items:center;gap:8px}
body.creative-app.studio-touch .studio-sheet-section .studio-import-note{flex-basis:100%;color:#b4b3bb;font-size:11px;line-height:1.4}
body.creative-app.studio-touch .studio-sheet-section .creative-tool-primary{background:#b9a8fa;color:#18131f;border-color:#b9a8fa}
body.creative-app.studio-touch .studio-sheet-actions button span{display:none}
body.creative-app.studio-touch .studio-sheet-actions{margin-bottom:8px}
body.creative-app.studio-touch[data-touch-dock=tools] .creative-toolbar{left:8px;right:8px;bottom:calc(72px + env(safe-area-inset-bottom));max-height:min(66dvh,calc(100% - 110px));padding:0 12px 15px;border-radius:24px;border:1px solid #3a3a40;background:#18181b;box-shadow:0 -8px 36px #0009}
body.creative-app.studio-touch .studio-touch-palette-heading{display:block;margin:12px 4px 4px;font-size:14px;font-weight:600;color:#dedce4}
body.creative-app.studio-touch .studio-dock-close{border:0;border-bottom:1px solid #333338;border-radius:0;background:#18181b;font-size:14px;font-weight:600;min-height:43px;z-index:9}
body.creative-app.studio-touch .creative-toolbar .studio-image-tool-grid{grid-template-columns:repeat(auto-fit,minmax(62px,1fr));gap:6px;border:0;padding:4px 0;margin:0}
body.creative-app.studio-touch .studio-image-tool-grid button{min-height:64px;border-radius:13px;background:#25252a;border:1px solid #36363c}
body.creative-app.studio-touch .studio-image-tool-grid .studio-tool-name{font-size:11px}
body.creative-app.studio-touch :is(.creative-left,.creative-properties){background:#18181b;border-radius:22px 22px 0 0;border:1px solid #36363c;margin:0 6px;box-sizing:border-box;width:calc(100% - 12px)!important}
body.creative-app.studio-touch .creative-properties .creative-tabs{background:#1d1d21;top:43px;border:0;padding:5px 8px;gap:4px}
body.creative-app.studio-touch .creative-tabs button{border-radius:14px;border:1px solid transparent;font-size:12px}
body.creative-app.studio-touch .creative-tabs button[aria-selected=true]{background:#353044;border-color:#51476a;color:#f0e8ff}
body.creative-app.studio-touch .creative-style-fieldset{background:#202024;border:1px solid #35353b;border-radius:16px;padding:12px}
body.creative-app.studio-touch .creative-panel-scroll :is(button,select,input:not([type=range]):not([type=checkbox]):not([type=file]),textarea){border-radius:11px}
body.creative-app.studio-touch .creative-layer{background:#232327;border-radius:12px;border:1px solid #36363c}
body.creative-app.studio-touch .creative-layer.is-active{background:#353044;border-color:#75659e}
body.creative-app.studio-touch .creative-templates{gap:6px;padding:8px}
body.creative-app.studio-touch .creative-templates button{border-radius:12px;font-size:12px}
body.creative-app.studio-touch .creative-selection-options{background:#18181b;border-color:#303035}
body.creative-app.studio-touch .creative-selection-options button{border-radius:12px}
body.creative-app.studio-touch .creative-path-options:not([hidden]){grid-template-rows:minmax(44px,auto);grid-auto-columns:max-content;scrollbar-width:thin}
@media(max-width:360px){body.creative-app.studio-touch .creative-canvas-top{padding-inline:5px}body.creative-app.studio-touch .creative-zoom{gap:2px}body.creative-app.studio-touch .creative-zoom button{padding-inline:6px}body.creative-app.studio-touch .image-workspaces{margin-inline:4px}body.creative-app.studio-touch .image-workspaces button{font-size:9px}}
@media(orientation:landscape) and (max-height:520px){body.creative-app.studio-touch .image-workspaces button{min-height:38px;display:flex!important;align-items:center;gap:4px}body.creative-app.studio-touch .image-workspaces{border-radius:18px}body.creative-app.studio-touch :is(.studio-image-document-sheet,.creative-toolbar){bottom:calc(60px + env(safe-area-inset-bottom))}body.creative-app.studio-touch :is(.creative-left,.creative-properties){width:auto!important;flex:0 0 42%!important;margin:0;border-radius:14px 0 0 14px}}
