/* Canvas-first studio chrome. Original controls and body-level dialogs stay intact. */
body.creator-studio{
 --studio-ink:#242a32;--studio-muted:#59636e;--studio-border:#d0d5db;
 --studio-surface:#f7f8fa;--studio-panel:#fff;--studio-dark:#25282e;
 --studio-dark-border:#454a53;--studio-accent:#176bb5;--studio-selected:#e7f1fb;
 --studio-pages-width:208px;--studio-inspector-width:280px;
 --border:var(--studio-border);--accent:var(--studio-accent);
 display:flex;flex-direction:column;height:100vh;height:100dvh;min-height:0;
 overflow:hidden;background:#d8dce1;color:var(--studio-ink);
}

/* The document bar remains compact; menus open above the workspace. */
body.creator-studio>.top{
 position:relative;z-index:50;flex:none;min-height:56px;
 padding:8px 14px;gap:12px;flex-wrap:nowrap;background:#202329;
 border-bottom:1px solid #101216;box-shadow:0 1px 0 #ffffff0c;
}
body.creator-studio .top .brand.brand-with-logo{gap:12px;flex-wrap:nowrap;flex:0 1 auto;min-width:0}
body.creator-studio .top .brand.brand-with-logo .brand-logo{width:145px;max-width:none;flex:none}
body.creator-studio .top .brand.brand-with-logo .brand-subtitle{font-size:12px;color:#b8c0cd;max-width:170px;line-height:1.3}
body.creator-studio .top-actions{flex-wrap:nowrap;justify-content:flex-end;gap:6px;min-width:0;font-size:13px}
body.creator-studio .top .status{font-size:12px;line-height:1.3;color:#c0c8d3;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 5px}
body.creator-studio .top :is(.btn,.studio-export-trigger,.studio-chat-toggle,.studio-pages-toggle){
 display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;
 border:1px solid var(--studio-dark-border);border-radius:5px;padding:6px 10px;
 background:#30353e;color:#f4f6f9;font:600 13px/1.3 system-ui,sans-serif;white-space:nowrap;
}
body.creator-studio .top :is(.btn,.studio-chat-toggle,.studio-pages-toggle):hover{background:#414955;border-color:#626f7f}
body.creator-studio .top .studio-export-trigger{background:#176bb5;border-color:#2b83ce;color:#fff}
body.creator-studio .top .studio-export-trigger:hover{background:#217ec8}
body.creator-studio .top :is(.studio-chat-toggle,.studio-pages-toggle)[aria-expanded=true]{background:#435164;border-color:#8796aa}
body.creator-studio .top :is(button,.studio-export-trigger):disabled{opacity:.45;cursor:not-allowed}
body.creator-studio .studio-document-title{flex:1 1 120px;min-width:0;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e0e6ef;font:500 13px/1.4 system-ui,sans-serif}
body.creator-studio .top .studio-pages-toggle,body.creator-studio .studio-pages-close{display:none}

body.creator-studio :is(.studio-menu,.studio-file-menu){position:relative;min-width:0}
body.creator-studio :is(.studio-menu,.studio-file-menu)>summary{
 display:flex;align-items:center;justify-content:center;gap:9px;min-height:34px;
 padding:6px 10px;border:1px solid transparent;border-radius:5px;
 color:#f3f5f8;font:500 13px/1.3 system-ui,sans-serif;white-space:nowrap;cursor:pointer;list-style:none;
}
body.creator-studio :is(.studio-menu,.studio-file-menu)>summary::-webkit-details-marker{display:none}
body.creator-studio :is(.studio-menu,.studio-file-menu)>summary::after{content:"";width:6px;height:6px;flex:none;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);opacity:.7}
body.creator-studio :is(.studio-menu,.studio-file-menu)>summary:hover,
body.creator-studio :is(.studio-menu,.studio-file-menu)[open]>summary{background:#454b56;border-color:#626a77}
body.creator-studio .studio-menu-content{
 position:absolute;z-index:65;top:calc(100% + 5px);left:0;display:flex;flex-direction:column;gap:4px;
 min-width:220px;width:max-content;max-width:min(360px,calc(100vw - 24px));
 max-height:min(520px,calc(100dvh - 120px));overflow:auto;overscroll-behavior:contain;
 padding:7px;border:1px solid #bfc6d0;border-radius:7px;background:#fff;color:var(--studio-ink);
 box-shadow:0 12px 32px #11182730,0 2px 5px #1118271a;font:13px/1.4 system-ui,sans-serif;
}
body.creator-studio .top-actions .studio-file-menu .studio-menu-content{left:auto;right:0}
body.creator-studio .studio-menu-content :is(button,.btn,a){
 display:flex;align-items:center;justify-content:flex-start;min-height:34px;width:100%;
 padding:7px 10px;border:1px solid transparent;border-radius:4px;background:transparent;
 color:#293442;text-align:left;text-decoration:none;font:500 13px/1.35 system-ui,sans-serif;white-space:normal;
}
body.creator-studio .studio-menu-content :is(button,.btn,a):hover{background:#eaf1f8;border-color:#d8e4f0;color:#124f87}
body.creator-studio .studio-menu-content :is(button,.btn):disabled{opacity:.45;cursor:not-allowed;background:transparent}
body.creator-studio .studio-menu-content :is(.workspace-tool-group,.creator-vector-tools){display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:0;border:0;min-width:0}
body.creator-studio .studio-menu-content label{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 9px;font-size:13px;white-space:normal}
body.creator-studio .studio-menu-content :is(select,input){min-height:32px;max-width:175px;border:1px solid #bcc6d2;border-radius:4px;background:#fff;color:#28313d;font:13px system-ui,sans-serif}
body.creator-studio .studio-menu-content hr{width:100%;margin:4px 0;border:0;border-top:1px solid #e1e5ea}
body.creator-studio :is(.studio-project-settings,.studio-assets,.studio-guidance,.studio-help)>.studio-menu-content{position:static;display:flex;min-width:0;width:auto;max-width:none;max-height:none;overflow:visible;margin:0;padding:4px 0 10px;border:0;border-radius:0;background:transparent;box-shadow:none}
body.creator-studio :is(.studio-project-settings,.studio-assets)>.studio-menu-content :is(input,select){max-width:100%}
body.creator-studio .studio-mode-help{position:relative;margin-left:auto;color:#536172;font-size:12px}
body.creator-studio .studio-mode-help>summary{padding:6px;min-height:32px;cursor:pointer;white-space:nowrap}
body.creator-studio .studio-mode-help>.studio-menu-content{left:auto;right:0;width:320px;padding:12px}
body.creator-studio .studio-mode-help .mode-description{margin:0;padding:0;border:0;background:transparent;font-size:12px;line-height:1.55}
body.creator-studio .studio-mode-help .subtle{display:block;font-size:12px}

/* Pages stay separate from the optional conversation drawer. */
body.creator-studio>.layout{
 position:relative;display:grid;grid-template-columns:var(--studio-pages-width) minmax(0,1fr);
 grid-template-rows:minmax(0,1fr);flex:1;min-height:0;height:auto;overflow:hidden;
}
body.creator-studio .layout>.left{
 grid-column:1;grid-row:1;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;
 padding:14px 10px;border-right:1px solid #bdc4ce;border-bottom:0;background:#f4f5f7;font-size:13px;
}
body.creator-studio .left .eyebrow{font-size:12px;font-weight:700;letter-spacing:.06em;color:#65707c;margin:8px 5px 12px}
body.creator-studio .left :is(.field label,.subtle,.note,.screen-btn span){font-size:12px}
body.creator-studio .left .project-box{padding:0;border:0;border-radius:0;background:transparent}
body.creator-studio .left>.field{margin:12px 0}
body.creator-studio .left :is(input,select,textarea){min-height:34px;border-radius:5px;font-size:13px}
body.creator-studio .left details{margin:12px 0;border-top:1px solid #d8dde3;padding-top:5px}
body.creator-studio .left details>summary{min-height:36px;padding:8px 5px;cursor:pointer;font-size:13px;font-weight:650;color:#37404b}
body.creator-studio .left details[open]>summary{margin-bottom:7px;color:#185f9d}
body.creator-studio .left .screens{display:flex;flex-direction:column;gap:4px;overflow:visible}
body.creator-studio .left .screen-btn{width:100%;min-height:43px;padding:8px 9px;border-radius:5px;gap:7px;white-space:normal;color:#374251;background:transparent}
body.creator-studio .left .screen-btn strong{font-size:13px;font-weight:600;line-height:1.4}
body.creator-studio .left .screen-btn:hover{background:#e8ecf1}
body.creator-studio .left .screen-btn.active{background:#e3edf8;border-color:#b8cfe7;box-shadow:inset 3px 0 #176bb5;color:#164f80}
body.creator-studio .left .add-screen{gap:5px;margin:10px 0 14px}
body.creator-studio .left .btn{min-height:34px;border-radius:5px;padding:6px 9px;font-size:13px;font-weight:550}
body.creator-studio .left .note{margin:0;padding:9px;background:#edf1f5;border:1px solid #d8e0e8;border-radius:5px;line-height:1.5}
body.creator-studio #drag{display:none}
body.creator-studio .layout>.middle{
 position:fixed;z-index:38;top:calc(var(--studio-header-height,56px) + 8px);right:10px;bottom:34px;
 width:min(430px,calc(100vw - 20px));min-height:0;max-height:none;display:flex;flex-direction:column;
 overflow:hidden;background:#fff;border:1px solid #bac3d0;border-radius:9px;
 box-shadow:0 16px 50px #0f172a40;font-size:13px;
}
body.creator-studio .middle .pane-head{position:relative;padding:15px 52px 13px 16px;background:#f5f7fa}
body.creator-studio .middle .pane-head h2{font-size:16px;font-weight:650}
body.creator-studio .studio-drawer-close{position:absolute;top:10px;right:10px;display:grid;place-items:center;min-height:34px;min-width:34px;border:1px solid #c4ccd6;border-radius:5px;background:#fff;color:#354253;font-size:18px;cursor:pointer}
body.creator-studio .middle .messages{min-height:0;max-height:none;padding:14px;background:#fafbfd}
body.creator-studio .middle .bubble{font-size:13px;line-height:1.55;border-radius:8px}
body.creator-studio .middle .bubble b{font-size:12px;letter-spacing:.03em}
body.creator-studio .middle .check-panel{min-height:0;max-height:none}
body.creator-studio .middle .composer{padding:12px;gap:8px;background:#fff}
body.creator-studio .middle .composer textarea{min-height:80px;max-height:150px;font-size:13px;border-radius:6px}
body.creator-studio .middle .composer-footer span{font-size:12px}
body.creator-studio .middle .btn{min-height:34px;border-radius:5px;font-size:13px;padding:7px 10px}

/* One flexible workspace: mode and representation remain on the same row. */
body.creator-studio .layout>.right{
 grid-column:2;grid-row:1;position:relative;min-width:0;min-height:0;overflow:hidden;
 display:flex;flex-direction:column;gap:7px;padding:9px;background:#e5e8ec;font-size:13px;
}
body.creator-studio .creator-top-controls{flex:none;gap:8px;min-height:38px;padding:0;background:transparent;border-radius:0}
body.creator-studio .creator-top-controls .mode-bar{flex:1 1 370px;gap:3px;min-width:0;background:#d7dde4;border:1px solid #c4ccd6;border-radius:6px;padding:3px}
body.creator-studio .creator-top-controls .mode-btn{min-height:32px;min-width:0;flex:1 1 auto;padding:6px 10px;border-radius:4px;font-size:13px;font-weight:550;color:#485465}
body.creator-studio .creator-top-controls .mode-btn.active{background:#fff;border-color:#b9c4d1;box-shadow:0 1px 2px #29384b12;color:#164f80}
body.creator-studio .creator-top-controls .creator-view-switch{margin-left:auto;gap:2px;border:1px solid #b9c4d1;border-radius:6px;background:#d7dde4;padding:3px}
body.creator-studio .creator-view-button{min-width:70px;min-height:32px;padding:6px 9px;border-radius:4px;font-size:13px;font-weight:600;color:#485465}
body.creator-studio .creator-view-button.active,body.creator-studio .creator-view-button[aria-pressed=true]{background:#fff;color:#164f80;box-shadow:0 1px 2px #29384b16}
body.creator-studio .preview-head{flex:none;min-height:34px;gap:6px;padding:0 2px}
body.creator-studio .preview-head h2{display:inline;font-size:13px;font-weight:650;color:#303b49;margin-right:8px}
body.creator-studio .preview-head .subtle{font-size:12px;color:#66717e}
body.creator-studio .preview-controls{gap:4px}
body.creator-studio .preview-controls :is(.btn,.device,.studio-inspector-toggle){min-height:32px;border:1px solid #c2cbd6;border-radius:5px;background:#f8f9fb;color:#415063;padding:5px 8px;font:500 12px/1.4 system-ui,sans-serif;white-space:nowrap}
body.creator-studio .preview-controls :is(.device.active,[aria-pressed=true],[aria-expanded=true]){background:#e4eef8;border-color:#a8c2dc;color:#19558c}
body.creator-studio .preview-area{position:relative;display:flex;align-items:stretch;justify-content:center;gap:9px;flex:1;min-width:0;min-height:0;padding:0;overflow:auto;border:1px solid #adb6c2;border-radius:7px;background:#b9bec5;isolation:isolate}
body.creator-studio .device-frame{flex:1;min-width:0;min-height:280px;margin:14px;background:#fff;border:1px solid #9ca7b5;border-radius:2px;box-shadow:0 4px 18px #26313d24}
body.creator-studio .device-frame.tablet{flex:0 1 768px;width:min(768px,100%)}
body.creator-studio .device-frame.mobile{flex:0 1 390px;width:min(390px,100%)}
body.creator-studio #preview{min-height:280px;height:100%;width:100%;display:block}
body.creator-studio .creator-code-pane{min-width:0;min-height:280px;max-width:100%;padding:12px;border:0;border-radius:0;background:#f5f7fa}
body.creator-studio .creator-code-source{min-height:180px;resize:none;border-radius:5px;font-size:13px;background:#232a34;border-color:#46515e}

body.creator-studio #visual-stage{
 display:grid;grid-template-columns:var(--studio-rail-width,50px) minmax(0,1fr) var(--studio-inspector-width);
 grid-template-rows:auto auto minmax(280px,1fr) auto auto;
 grid-auto-rows:auto;gap:0;flex:1;width:100%;height:100%;min-width:0;min-height:380px;
 position:relative;background:#b9bec5;
}
body.creator-studio #visual-stage :is(.creator-workspace-bar,.visual-workbench){display:contents}
body.creator-studio #visual-stage .visual-toolbar.studio-actionbar{
 grid-column:1/-1;grid-row:1;position:relative;z-index:20;display:flex;align-items:center;
 flex-wrap:wrap;gap:2px;min-width:0;min-height:42px;margin:0;padding:4px 7px;
 background:#343941;color:#f2f5f8;border:0;border-bottom:1px solid #21252b;border-radius:0;
}
body.creator-studio .studio-actionbar>.btn,body.creator-studio .studio-actionbar>.workspace-tool-group>button{
 min-height:32px;padding:5px 9px;border:1px solid #59616e;border-radius:4px;
 background:#414854;color:#f1f5fa;font-size:13px;font-weight:500;
}
body.creator-studio .studio-actionbar>.workspace-tool-group{border:0;padding:0;gap:4px}
body.creator-studio .studio-actionbar>.workspace-tool-group:last-child{margin-left:auto}
body.creator-studio .studio-actionbar>button:disabled{opacity:.4}
body.creator-studio .studio-history{display:flex;gap:4px;margin-left:auto}
body.creator-studio .studio-history button{min-width:34px;min-height:32px;padding:5px 8px;border:1px solid #59616e;border-radius:4px;background:#414854;color:#f1f5fa;font:500 13px/1.3 system-ui,sans-serif}
body.creator-studio .studio-history button:disabled{opacity:.4;cursor:not-allowed}
body.creator-studio .studio-actionbar .studio-menu-content{max-height:min(420px,calc(100dvh - 260px))}

body.creator-studio #visual-stage .studio-tool-rail{
 grid-column:1;grid-row:2/5;display:flex;flex-direction:column;align-items:center;
 gap:5px;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;
 margin:0;padding:9px 4px;background:#30353d;border:0;border-right:1px solid #22272e;
}
body.creator-studio .studio-tool-rail :is(button,.btn){
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;flex:none;width:40px;min-width:0;
 min-height:40px;height:auto;padding:6px 1px;border:1px solid transparent;border-radius:5px;
 background:transparent;color:#e4eaf2;font:500 13px/1.25 system-ui,sans-serif;
 white-space:normal;overflow-wrap:anywhere;cursor:pointer;
}
body.creator-studio .studio-tool-rail :is(button,.btn):hover{background:#454d59;border-color:#667181}
body.creator-studio .studio-tool-rail button[aria-pressed=true]{background:#195f9b;border-color:#6aaddc;box-shadow:inset 0 0 0 1px #ffffff12;color:#fff}
body.creator-studio .studio-tool-rail button:disabled{opacity:.4;cursor:not-allowed}
body.creator-studio .studio-tool-rail .workspace-tool-group{display:contents}
body.creator-studio .studio-tool-rail hr{width:28px;margin:3px 0;border:0;border-top:1px solid #515966}
body.creator-studio .studio-tool-icon{font-size:20px;line-height:1}
body.creator-studio .studio-tool-label{font-size:12px;line-height:1.2;letter-spacing:-.3px}

body.creator-studio #visual-stage>.rich-toolbar{
 grid-column:2;grid-row:2;position:relative;top:auto;z-index:10;min-width:0;margin:0;
 border:0;border-bottom:1px solid #b6bfcb;border-radius:0;background:#fafbfd;box-shadow:none;
}
body.creator-studio #visual-stage .rich-toolbar .rich-row{gap:3px;padding:4px 6px}
body.creator-studio #visual-stage .rich-toolbar :is(button,select,input){min-height:32px;font-size:13px}
body.creator-studio #visual-stage .rich-toolbar #rich-context{font-size:12px}
body.creator-studio #visual-drop-zone{
 grid-column:2;grid-row:3;align-self:stretch;display:block;position:relative;
 min-width:0;min-height:0;height:100%;margin:0;padding:0;overflow:hidden;
 border:0;border-radius:0;background:#b9bec5;box-shadow:inset 0 1px 3px #3946571a;
}
body.creator-studio #visual-drop-zone.dragover{box-shadow:inset 0 0 0 3px #176bb5;background:#c9dbea}
body.creator-studio #visual-drop-zone .creator-canvas-viewport{width:100%;height:100%;min-height:280px;max-height:none;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;background:#b9bec5}
body.creator-studio .creator-canvas-size{box-sizing:content-box;width:var(--creator-artboard-width,900px);height:var(--creator-artboard-height,600px);padding:20px;position:relative}
body.creator-studio .creator-canvas-size #visual-artboard{width:var(--creator-artboard-width,900px);height:var(--creator-artboard-height,600px);max-height:none;background:#fff;border:1px solid #9ea8b5;box-shadow:0 3px 13px #26313d2b;border-radius:0}
body.creator-studio #visual-stage .workspace-zoom.studio-canvas-statusbar{
 grid-column:2;grid-row:4;display:flex;align-items:center;gap:4px;flex-wrap:wrap;
 min-height:36px;min-width:0;margin:0;padding:4px 8px;border:0;border-top:1px solid #aeb8c4;
 background:#e9edf2;color:#455262;
}
body.creator-studio .studio-canvas-statusbar :is(button,select){min-height:32px;padding:4px 8px;border:1px solid transparent;border-radius:4px;background:transparent;color:#34485b;font:500 12px/1.3 system-ui,sans-serif;white-space:nowrap}
body.creator-studio .studio-canvas-statusbar button:hover{background:#fff;border-color:#c1cbd6}
body.creator-studio .studio-canvas-statusbar button[aria-pressed=true]{background:#d8e8f7;border-color:#a5c2df;color:#174e80;box-shadow:none}
body.creator-studio .studio-canvas-statusbar output{min-width:45px;font-size:12px;font-weight:650}
body.creator-studio #workspace-selection-status{font-size:12px;color:#536273;min-width:0;line-height:1.4}
body.creator-studio .studio-canvas-statusbar #workspace-selection-status{margin-left:auto;flex:1 1 140px;text-align:right}
body.creator-studio .creator-workspace-bar>#workspace-selection-status{grid-column:2;grid-row:4;justify-self:end;align-self:center;padding:4px 9px;pointer-events:none}

/* Inspector contents retain their original controls and disabled fieldsets. */
body.creator-studio #visual-stage .visual-sidebar.studio-inspector{
 grid-column:3;grid-row:2/5;align-self:stretch;min-width:0;min-height:0;max-height:none;
 display:flex;flex-direction:column;gap:0;overflow:auto;overscroll-behavior:contain;
 padding:0;background:#f8f9fb;border:0;border-left:1px solid #b7c1cd;border-radius:0;
}
body.creator-studio .studio-panel-tabs{position:sticky;top:0;z-index:12;display:flex;align-items:stretch;gap:0;flex:none;padding:0 6px;background:#eef1f5;border-bottom:1px solid #c7d0da}
body.creator-studio .studio-panel-tabs [role=tab]{flex:1;min-width:0;min-height:40px;padding:8px 6px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#5b6776;font:600 12px/1.3 system-ui,sans-serif;cursor:pointer}
body.creator-studio .studio-panel-tabs [role=tab][aria-selected=true]{border-bottom-color:#176bb5;background:#f8f9fb;color:#16568e}
body.creator-studio .studio-panel-tabs [role=tab]:hover{background:#e3eaf2}
body.creator-studio :is(.studio-properties-panel,.studio-layers-panel,.studio-document-panel){min-width:0;padding:12px;font-size:13px}
body.creator-studio .studio-properties-panel #layer-controls{margin:0;padding:0;border:0;max-width:none;gap:8px}
body.creator-studio .studio-properties-panel :is(label,.subtle,.effect-note),
body.creator-studio .studio-document-panel :is(label,.hint,.font-current){font-size:12px;line-height:1.5;color:#556273}
body.creator-studio .studio-properties-panel :is(input,select,textarea),
body.creator-studio .studio-document-panel :is(input,select,textarea){min-height:34px;min-width:0;width:100%;border:1px solid #bcc7d3;border-radius:4px;padding:6px 8px;background:#fff;color:#2b3745;font:13px/1.4 system-ui,sans-serif}
body.creator-studio .studio-properties-panel input[type=color],body.creator-studio .studio-document-panel input[type=color]{height:34px;padding:3px}
body.creator-studio .studio-properties-panel input[type=checkbox],body.creator-studio .studio-document-panel input[type=checkbox]{width:17px;min-height:17px;height:17px;flex:none;accent-color:#176bb5}
body.creator-studio :is(.studio-properties-panel,.studio-document-panel) :is(button,.btn){min-height:34px;padding:6px 9px;border-radius:4px;font-size:13px}
body.creator-studio .studio-properties-panel .creator-effects{margin:10px 0 0;padding:10px 0 0;border:0;border-top:1px solid #d1d8e1;border-radius:0;background:transparent;font-size:13px}
body.creator-studio .studio-properties-panel .creator-effects legend{padding:0 5px 0 0;font-size:13px;font-weight:650;color:#35475b}
body.creator-studio .studio-properties-panel .creator-effects summary{min-height:36px;font-size:13px;padding:8px 0}
body.creator-studio .studio-properties-panel .creator-effects .effect-note{font-size:12px}
body.creator-studio .studio-properties-panel .creator-effects .effect-pair{gap:8px;flex-wrap:wrap}
body.creator-studio .studio-properties-panel .creator-effects .effect-pair>label{flex:1 1 90px}
body.creator-studio .studio-properties-panel .layer-numeric{gap:8px}
body.creator-studio .studio-layers-panel #layer-list{display:flex;flex-direction:column;flex-wrap:nowrap;gap:5px}
body.creator-studio .studio-layers-panel .visual-layer{width:100%;min-height:36px;border-radius:4px;font-size:13px;padding:7px 8px;background:#fff;color:#425368}
body.creator-studio .studio-layers-panel .visual-layer.selected{border-color:#87acd0;background:#e4eff9;color:#144c7d}
body.creator-studio .studio-layers-panel .creator-layer-lock{min-height:36px;min-width:32px;border-color:#c4ced9;border-radius:4px;color:#52677b}
body.creator-studio .studio-document-panel .inspector{padding:0;border:0;border-radius:0;background:transparent}
body.creator-studio .studio-document-panel.inspector{border:0;border-radius:0;background:transparent}
body.creator-studio :is(.studio-document-panel,.studio-proposal-inspector) .fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.creator-studio :is(.studio-document-panel,.studio-proposal-inspector) .field{margin-bottom:3px}
body.creator-studio :is(.studio-document-panel,.studio-proposal-inspector) .field:has(#font){grid-column:1/-1}
body.creator-studio .studio-empty-selection{margin:14px 12px;padding:16px 12px;border:1px dashed #c4ceda;border-radius:6px;color:#607083;background:#f1f4f8;font-size:13px;line-height:1.6}
body.creator-studio .studio-empty-selection strong{display:block;margin-bottom:5px;color:#384c61;font-size:13px}
body.creator-studio .studio-proposal-inspector{flex:0 0 var(--studio-inspector-width);width:var(--studio-inspector-width);min-width:0;min-height:0;max-height:100%;overflow:auto;padding:12px;background:#f8f9fb;border-left:1px solid #b7c1cd;font-size:13px}
body.creator-studio .studio-proposal-inspector .inspector{padding:0;border:0;background:transparent;border-radius:0}
body.creator-studio .studio-proposal-inspector :is(input,select,button){min-height:34px;font-size:13px}
body.creator-studio .studio-proposal-inspector :is(.hint,label,.font-current){font-size:12px}
body.creator-studio .studio-inspector-close{display:block;align-self:flex-end;flex:none;min-height:32px;margin:5px 7px;padding:5px 9px;border:1px solid #c4ccd6;border-radius:4px;background:#fff;color:#4a5b70;font:500 12px/1.4 system-ui,sans-serif;cursor:pointer}
body.creator-studio .studio-proposal-inspector .studio-inspector-close{margin:0 0 10px auto}
body.creator-studio .studio-proposal-inspector h3{font-size:14px;margin:5px 0 16px}
body.creator-studio.studio-inspector-closed #visual-stage{grid-template-columns:var(--studio-rail-width,50px) minmax(0,1fr)}
body.creator-studio.studio-inspector-closed :is(.studio-inspector,.studio-proposal-inspector){display:none}

body.creator-studio #visual-stage>.studio-help{grid-column:1/-1;grid-row:5}
body.creator-studio :is(.studio-help,.studio-guidance){min-width:0;margin:0;padding:0 10px;background:#f3f5f8;border-top:1px solid #c7d0da;color:#586779;font-size:12px;line-height:1.5}
body.creator-studio :is(.studio-help,.studio-guidance)>summary{min-height:32px;padding:7px 1px;font-size:12px;font-weight:550;cursor:pointer}
body.creator-studio :is(.studio-help,.studio-guidance) :is(.visual-help,.mode-description){margin:0;padding:2px 0 11px;border:0;border-radius:0;background:transparent;color:#5a697b;font-size:12px;line-height:1.6}
body.creator-studio #recognition-box{grid-column:1/-1;grid-row:6;max-height:min(360px,40vh);min-height:0;overflow:auto;border:0;border-top:1px solid #bcc8d6;border-radius:0;padding:14px;background:#f7f9fc}

/* The font library is a nonmodal floating library; native dialogs keep their own rules. */
body.creator-studio #font-library{position:fixed;z-index:60;top:50%;left:50%;transform:translate(-50%,-50%);width:min(940px,calc(100vw - 32px));max-height:calc(100dvh - 80px);overflow:auto;margin:0;padding:20px;border:1px solid #aebccf;border-radius:9px;background:#fff;box-shadow:0 20px 70px #10182755;font-size:13px}
body.creator-studio #font-library :is(.font-library-head p,.font-library-note,.font-library-card-meta,.font-library-live-hint,.font-library-filters label,.font-library-card-actions button,.font-library-live-heading){font-size:12px}
body.creator-studio #font-library .font-library-results{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));max-height:34vh;gap:10px}
body.creator-studio #font-library .font-library-card-name{font-size:13px}
body.creator-studio #font-library .font-library-card-actions button{min-height:32px;padding:6px 10px}
body.creator-studio #font-library .font-library-live{margin-top:12px;border-radius:6px;background:#f5f7fa}
body.creator-studio>.creator-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;min-height:25px;max-height:32px;padding:4px 12px;background:#e8ecf1;border-top:1px solid #c2ccd7;color:#637183;font-size:12px;line-height:1.4;overflow:visible}
body.creator-studio>.creator-footer a{color:#365f87;font-size:12px}
body.creator-studio>.creator-footer details{position:relative;margin:0}
body.creator-studio>.creator-footer summary{cursor:pointer;font-size:12px}
body.creator-studio>.creator-footer details p{position:absolute;z-index:35;right:0;bottom:100%;width:min(420px,calc(100vw - 24px));max-height:240px;overflow:auto;padding:14px;border:1px solid #b9c6d5;border-radius:7px;background:#fff;box-shadow:0 8px 30px #1b273b30;color:#435469;font-size:13px;line-height:1.6}

/* Focus mode expands the working area without hiding the exit controls. */
body.creator-studio.focus>.layout{grid-template-columns:minmax(0,1fr)}
body.creator-studio.focus .layout>.left{display:none}
body.creator-studio.focus .layout>.right{grid-column:1;position:relative;inset:auto;z-index:auto;background:#e5e8ec}
body.creator-studio.focus .preview-area,body.creator-studio.focus .creator-code-pane{min-height:0}
body.creator-studio.focus #preview{min-height:280px}
body.creator-studio.focus .creator-code-source{min-height:180px}
body.creator-studio.focus .visual-workbench{min-height:0}

body.creator-studio :is(.top,.studio-actionbar,.studio-tool-rail,.studio-canvas-statusbar,.studio-inspector,.studio-proposal-inspector,.left) :focus-visible{outline:2px solid #69a9df;outline-offset:2px}
body.creator-studio :is(.studio-menu,.studio-file-menu)>summary:focus-visible{outline:2px solid #91c4ec;outline-offset:2px}

@media(max-width:1200px){
 body.creator-studio{--studio-pages-width:188px;--studio-inspector-width:260px}
 body.creator-studio .top .brand.brand-with-logo .brand-subtitle{display:none}
 body.creator-studio .top .status{max-width:160px}
 body.creator-studio .preview-head .subtle{display:none}
 body.creator-studio .layout>.right{padding:7px;gap:6px}
}
@media(max-width:1000px){
 body.creator-studio #visual-stage,body.creator-studio.studio-inspector-closed #visual-stage{grid-template-columns:var(--studio-rail-width,50px) minmax(0,1fr)}
 body.creator-studio #visual-stage .visual-sidebar.studio-inspector{position:absolute;grid-column:2;grid-row:2/5;z-index:30;top:0;right:0;bottom:0;width:min(300px,calc(100% - 8px));max-height:none;border-left:1px solid #aebdcc;box-shadow:-9px 0 24px #22334b29}
 body.creator-studio .studio-proposal-inspector{position:absolute;z-index:30;top:0;right:0;bottom:0;width:min(300px,calc(100% - 24px));max-height:none;box-shadow:-9px 0 24px #22334b29}
 body.creator-studio .creator-top-controls .mode-bar{flex-basis:320px}
 body.creator-studio .creator-top-controls .mode-btn{font-size:12px;padding:6px 7px}
 body.creator-studio .studio-canvas-statusbar #workspace-selection-status{flex-basis:100%;text-align:left;margin-left:0}
}
@media(max-width:760px){
 body.creator-studio{--studio-pages-width:0px}
 body.creator-studio>.top{min-height:100px;display:flex;flex-wrap:wrap;align-content:center;justify-content:space-between;gap:7px;padding:8px 10px}
 body.creator-studio .top .brand.brand-with-logo{flex:1 1 100%;min-height:27px}
 body.creator-studio .top .brand.brand-with-logo .brand-logo{width:138px}
 body.creator-studio .top .brand.brand-with-logo .brand-subtitle{display:block;max-width:none;font-size:12px}
 body.creator-studio .top-actions{width:100%;justify-content:flex-start;flex-wrap:wrap;gap:5px}
 body.creator-studio .studio-document-title{display:none}
 body.creator-studio .top .studio-pages-toggle{display:inline-flex}
 body.creator-studio .studio-pages-close{display:block;margin:0 0 10px auto;min-height:32px}
 body.creator-studio .top .status{margin-left:auto;margin-right:2px;max-width:145px}
 body.creator-studio .top :is(.btn,.studio-export-trigger,.studio-chat-toggle,.studio-pages-toggle){min-height:34px;padding:6px 8px;font-size:12px}
 body.creator-studio :is(.studio-file-menu,.studio-menu)>summary{font-size:12px;padding:6px 8px}
 body.creator-studio>.layout{grid-template-columns:minmax(0,1fr)}
 body.creator-studio .layout>.right{grid-column:1;min-height:0;padding:6px;gap:5px}
 body.creator-studio .layout>.left{display:none;position:fixed;z-index:36;top:calc(var(--studio-header-height,100px) + 6px);bottom:33px;left:6px;width:min(280px,calc(100vw - 24px));border:1px solid #b0bdcd;border-radius:7px;padding:12px;box-shadow:8px 12px 35px #1f2b4140}
 body.creator-studio.studio-pages-open .layout>.left{display:block}
 body.creator-studio .layout>.middle{top:calc(var(--studio-header-height,100px) + 6px);right:6px;bottom:33px;width:calc(100vw - 12px);max-width:430px}
 body.creator-studio .creator-top-controls{gap:4px}
 body.creator-studio .creator-top-controls .mode-bar{flex:1 1 290px}
 body.creator-studio .creator-view-button{min-width:58px;padding:6px;font-size:12px}
 body.creator-studio .preview-head{min-height:32px;padding:0;gap:4px}
 body.creator-studio .preview-head h2{font-size:12px}
 body.creator-studio .preview-controls :is(.device,.btn,.studio-inspector-toggle){min-height:32px;padding:5px 6px;font-size:12px}
 body.creator-studio .studio-actionbar .studio-menu-content{max-width:calc(100vw - 32px)}
 body.creator-studio #visual-stage{min-height:380px}
 body.creator-studio #visual-stage .rich-toolbar .rich-divider{display:none}
 body.creator-studio #visual-stage .rich-toolbar :is(button,select,input){min-height:34px;min-width:30px}
 body.creator-studio #visual-stage .rich-toolbar select{max-width:150px}
 body.creator-studio #visual-stage .rich-toolbar #rich-context{width:100%;margin-left:0}
 body.creator-studio #font-library{width:calc(100vw - 18px);max-height:calc(100dvh - 32px);padding:14px}
 body.creator-studio #font-library .font-library-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.creator-studio #font-library .font-library-results{grid-template-columns:repeat(auto-fit,minmax(185px,1fr))}
 body.creator-studio>.creator-footer{padding:4px 8px;font-size:12px;max-height:none;min-height:25px;flex-wrap:wrap;gap:3px 10px}
}
@media(max-width:480px){
 body.creator-studio .top .status{max-width:95px;font-size:12px}
 body.creator-studio .top .brand.brand-with-logo .brand-subtitle{font-size:12px;max-width:180px}
 body.creator-studio .creator-top-controls .mode-bar{flex-basis:100%;width:100%}
 body.creator-studio .creator-top-controls .creator-view-switch{margin-left:auto}
 body.creator-studio .creator-top-controls .mode-btn{padding:6px 5px;font-size:12px}
 body.creator-studio .studio-canvas-statusbar{gap:2px}
 body.creator-studio .studio-canvas-statusbar button{padding:4px 6px}
 body.creator-studio #font-library .font-library-filters{grid-template-columns:1fr}
 body.creator-studio #font-library .font-library-results{grid-template-columns:1fr}
 body.creator-studio .studio-menu-content{min-width:200px}
}
@media(prefers-reduced-motion:reduce){
 body.creator-studio :is(.studio-menu-content,.studio-inspector,.studio-tool-rail,.studio-canvas-statusbar){scroll-behavior:auto;transition:none;animation:none}
}
@media(pointer:coarse){
 body.creator-studio{--studio-rail-width:54px}
 body.creator-studio :is(.top,.left,.middle,.studio-actionbar,.studio-tool-rail,.studio-canvas-statusbar,.studio-inspector,.studio-proposal-inspector,.rich-toolbar,.preview-controls,.creator-top-controls,#font-library,.creator-code-pane) :is(button,summary,select,input:not([type=checkbox]):not([type=radio])){min-height:44px!important}
 body.creator-studio :is(.top,.left,.middle,.studio-actionbar,.studio-tool-rail,.studio-canvas-statusbar,.studio-inspector,.studio-proposal-inspector,.rich-toolbar,.preview-controls,.creator-top-controls,#font-library,.creator-code-pane) :is(button,summary){min-width:44px}
 body.creator-studio .studio-tool-rail :is(button,.btn){width:44px;min-width:44px;min-height:44px}
}

/* Workspace presets change the chrome, never the artboard or document colours. */
body.creator-studio{
 --studio-tool-columns:1;--studio-tool-cell:40px;--studio-rail-width:50px;
 --studio-profile-accent:#176bb5;--studio-profile-workspace:#e5e8ec;
 --studio-profile-rail:#30353d;--studio-profile-rail-ink:#e4eaf2;
 --studio-profile-action:#343941;--studio-profile-action-ink:#f3f5f8;
 --studio-profile-panel:#f8f9fb;--studio-profile-panel-ink:#425368;
}
body.creator-studio[data-studio-tool-columns="2"]{--studio-tool-columns:2;--studio-rail-width:94px}
body.creator-studio[data-studio-profile="illustrator"]{
 --studio-pages-width:176px;--studio-inspector-width:300px;
 --studio-profile-accent:#9bc9f5;--studio-profile-workspace:#363636;
 --studio-profile-rail:#292929;--studio-profile-rail-ink:#eeeeef;
 --studio-profile-action:#404040;--studio-profile-action-ink:#f1f1f2;
 --studio-profile-panel:#383838;--studio-profile-panel-ink:#e5e5e8;
}
body.creator-studio[data-studio-profile="canva"]{
 --studio-pages-width:220px;--studio-inspector-width:300px;
 --studio-tool-cell:62px;--studio-rail-width:72px;
 --studio-profile-accent:#6752b8;--studio-profile-workspace:#f2f0f6;
 --studio-profile-rail:#fff;--studio-profile-rail-ink:#554a67;
 --studio-profile-action:#fff;--studio-profile-action-ink:#4f4561;
 --studio-profile-panel:#fff;--studio-profile-panel-ink:#4d435d;
}
body.creator-studio[data-studio-profile="canva"][data-studio-tool-columns="2"]{--studio-rail-width:138px}
body.creator-studio[data-studio-profile="coreldraw"]{
 --studio-pages-width:176px;--studio-inspector-width:320px;
 --studio-profile-accent:#216d46;--studio-profile-workspace:#dce3e7;
 --studio-profile-rail:#edf1f3;--studio-profile-rail-ink:#324738;
 --studio-profile-action:#e9edef;--studio-profile-action-ink:#35464c;
 --studio-profile-panel:#f9fbfc;--studio-profile-panel-ink:#3e5059;
}
body.creator-studio[data-studio-profile] .layout>.right{background:var(--studio-profile-workspace)}
body.creator-studio[data-studio-profile] #visual-stage .studio-actionbar{background:var(--studio-profile-action);color:var(--studio-profile-action-ink)}
body.creator-studio[data-studio-profile] .studio-actionbar>.studio-menu>summary{color:var(--studio-profile-action-ink)}
body.creator-studio[data-studio-profile] #visual-stage .studio-tool-rail{
 display:grid;grid-template-columns:repeat(var(--studio-tool-columns),var(--studio-tool-cell));
 grid-auto-flow:row;grid-auto-rows:max-content;align-items:start;align-content:start;justify-content:center;
 background:var(--studio-profile-rail);color:var(--studio-profile-rail-ink);gap:5px;padding:9px 4px;
}
body.creator-studio[data-studio-profile] .studio-tool-rail :is(button,.btn){width:var(--studio-tool-cell);min-width:0;color:var(--studio-profile-rail-ink)}
body.creator-studio[data-studio-profile] .studio-tool-rail hr{grid-column:1/-1;justify-self:center}
body.creator-studio[data-studio-profile] #visual-stage .studio-inspector,
body.creator-studio[data-studio-profile] .studio-proposal-inspector{background:var(--studio-profile-panel);color:var(--studio-profile-panel-ink)}
body.creator-studio[data-studio-profile] .studio-panel-tabs [aria-selected=true]{border-bottom-color:var(--studio-profile-accent)}
body.creator-studio[data-studio-profile] .studio-overflow-tools .studio-menu-content button{gap:9px;flex-direction:row}
body.creator-studio[data-studio-profile] .studio-overflow-tools .studio-tool-label{font-size:13px;letter-spacing:normal}
body.creator-studio[data-studio-profile] .studio-overflow-tools .studio-tool-icon{min-width:22px;text-align:center;font-size:18px}

/* These controls remain reachable even when every optional toolbar is hidden. */
body.creator-studio .studio-profile-controls{display:flex;align-items:center;flex-wrap:wrap;gap:6px;flex:0 1 auto;min-width:0;padding:3px 0}
body.creator-studio .studio-profile-controls>label{display:flex;align-items:center;gap:6px;min-width:0;color:#526174;font:500 12px/1.4 system-ui,sans-serif}
body.creator-studio .studio-profile-controls :is(select,button){min-height:34px;min-width:0;padding:6px 9px;border:1px solid #bac5d3;border-radius:5px;background:#fff;color:#354860;font:500 12px/1.4 system-ui,sans-serif}
body.creator-studio #studio-profile{max-width:180px}
body.creator-studio #studio-customize-tools{white-space:nowrap}
body.creator-studio .studio-workspace-notice{flex:1 1 100%;color:#8a4224;font-size:12px;line-height:1.5}
body.creator-studio[data-studio-profile="illustrator"] .studio-workspace-notice{color:#ffd4a7}
body.creator-studio .studio-profile-controls button:hover{background:#e7eff9;border-color:#9eb7d2}
body.creator-studio .top .studio-pages-toggle{display:inline-flex}
body.creator-studio .studio-pages-close{display:block;min-height:32px;margin:0 0 10px auto}
body.creator-studio.studio-toolbar-hidden{--studio-rail-width:0px}
body.creator-studio.studio-toolbar-hidden #visual-stage .studio-tool-rail{display:none}
body.creator-studio.studio-menu-bar-hidden #visual-stage .studio-actionbar{display:none}
body.creator-studio.studio-status-bar-hidden #visual-stage .studio-canvas-statusbar{display:none}

/* Illustrator-style: compact charcoal chrome with clearly separated fields. */
body.creator-studio[data-studio-profile="illustrator"]>.top{background:#252525;border-color:#151515}
body.creator-studio[data-studio-profile="illustrator"] .layout>.right{padding:6px;gap:5px}
body.creator-studio[data-studio-profile="illustrator"] .layout>.left{background:#303030;color:#e5e5e8;border-color:#202020}
body.creator-studio[data-studio-profile="illustrator"] :is(.left,.studio-inspector,.studio-proposal-inspector) :is(label,.eyebrow,.subtle,.effect-note,.hint,.font-current,.visual-side-heading,summary){color:#d1d4da}
body.creator-studio[data-studio-profile="illustrator"] .left .screen-btn{color:#e0e1e4}
body.creator-studio[data-studio-profile="illustrator"] .left .screen-btn.active{background:#4b5665;border-color:#7b8ca3;color:#fff}
body.creator-studio[data-studio-profile="illustrator"] .left .note{background:#42464b;border-color:#5d636b;color:#e3e7ed}
body.creator-studio[data-studio-profile="illustrator"] .left .studio-guidance{background:transparent;color:#d1d4da;border-color:#5d636b}
body.creator-studio[data-studio-profile="illustrator"] .left .studio-menu-content :is(button,.btn,a){background:#474c53;border-color:#676f79;color:#f0f3f8}
body.creator-studio[data-studio-profile="illustrator"] .left .studio-menu-content :is(button,.btn,a):hover{background:#596575;border-color:#8c9cad;color:#fff}
body.creator-studio[data-studio-profile="illustrator"] .studio-panel-tabs{background:#2d2d2d;border-color:#505050}
body.creator-studio[data-studio-profile="illustrator"] .studio-panel-tabs [role=tab]{color:#d5d5d9}
body.creator-studio[data-studio-profile="illustrator"] .studio-panel-tabs [role=tab][aria-selected=true]{background:#444;color:#fff}
body.creator-studio[data-studio-profile="illustrator"] .studio-panel-tabs [role=tab]:hover{background:#454545}
body.creator-studio[data-studio-profile="illustrator"] .studio-properties-panel .creator-effects{border-color:#606060;color:#ddd}
body.creator-studio[data-studio-profile="illustrator"] .studio-properties-panel .creator-effects legend{color:#eee}
body.creator-studio[data-studio-profile="illustrator"] .studio-empty-selection{background:#414141;border-color:#656565;color:#dedee3}
body.creator-studio[data-studio-profile="illustrator"] :is(.preview-head h2,.studio-profile-controls>label,.studio-mode-help){color:#e6e8ed}
body.creator-studio[data-studio-profile="illustrator"] .studio-mode-help .studio-menu-content{color:#354860}
body.creator-studio[data-studio-profile="illustrator"] .creator-top-controls .mode-bar,
body.creator-studio[data-studio-profile="illustrator"] .creator-top-controls .creator-view-switch{background:#2d2d2d;border-color:#555}
body.creator-studio[data-studio-profile="illustrator"] :is(.mode-btn,.creator-view-button){color:#d8dbe2}
body.creator-studio[data-studio-profile="illustrator"] .creator-top-controls .mode-btn.active,
body.creator-studio[data-studio-profile="illustrator"] .creator-view-button[aria-pressed=true]{background:#565d67;color:#fff;border-color:#8291a3}
body.creator-studio[data-studio-profile="illustrator"] .preview-area,
body.creator-studio[data-studio-profile="illustrator"] #visual-drop-zone,
body.creator-studio[data-studio-profile="illustrator"] #visual-drop-zone .creator-canvas-viewport{background:#545454;border-color:#222}

/* Canva-style: wider labelled tools, soft panel spacing and an open canvas. */
body.creator-studio[data-studio-profile="canva"]>.top{background:#30264e;border-color:#21193b}
body.creator-studio[data-studio-profile="canva"] .layout>.left{background:#fff;border-color:#ddd7e6}
body.creator-studio[data-studio-profile="canva"] .layout>.right{padding:12px;gap:10px}
body.creator-studio[data-studio-profile="canva"] #visual-stage .studio-actionbar{padding:7px 10px;border-bottom-color:#ddd7e6}
body.creator-studio[data-studio-profile="canva"] .studio-actionbar>.studio-menu>summary:hover,
body.creator-studio[data-studio-profile="canva"] .studio-actionbar>.studio-menu[open]>summary{background:#f0ebf8;border-color:#d5c8e9}
body.creator-studio[data-studio-profile="canva"] #visual-stage .studio-tool-rail{border-color:#e2dce9;column-gap:5px;row-gap:8px;padding-top:12px}
body.creator-studio[data-studio-profile="canva"] .studio-tool-rail button{min-height:62px;border-radius:9px}
body.creator-studio[data-studio-profile="canva"] .studio-tool-rail button:hover{background:#f2edf9;border-color:#ddcee9}
body.creator-studio[data-studio-profile="canva"] .studio-tool-rail button[aria-pressed=true]{background:#ece3fb;border-color:#c9b5e5;color:#5a3897;box-shadow:none}
body.creator-studio[data-studio-profile="canva"] .studio-tool-label{letter-spacing:normal}
body.creator-studio[data-studio-profile="canva"] .preview-area{border-radius:10px;border-color:#ccc5d7}
body.creator-studio[data-studio-profile="canva"] #visual-drop-zone,
body.creator-studio[data-studio-profile="canva"] #visual-drop-zone .creator-canvas-viewport{background:#e4e0ea}
body.creator-studio[data-studio-profile="canva"] .studio-panel-tabs{background:#f6f3fa;border-color:#dfd7e9}
body.creator-studio[data-studio-profile="canva"] .studio-panel-tabs [role=tab][aria-selected=true]{background:#fff;color:#604494}
body.creator-studio[data-studio-profile="canva"] :is(.studio-properties-panel,.studio-layers-panel,.studio-document-panel){padding:16px}
body.creator-studio[data-studio-profile="canva"] .studio-empty-selection{background:#f7f4fb;border-color:#d8cbe8;color:#655675}
body.creator-studio[data-studio-profile="canva"] .studio-history button{background:#f5f2f9;border-color:#d9d1e3;color:#554466}

/* CorelDRAW-style: light steel controls and a wider property dock. */
body.creator-studio[data-studio-profile="coreldraw"]>.top{background:#24382e;border-color:#17261e}
body.creator-studio[data-studio-profile="coreldraw"] .layout>.right{padding:6px;gap:5px}
body.creator-studio[data-studio-profile="coreldraw"] .layout>.left{background:#eef2f4;border-color:#b8c4ca}
body.creator-studio[data-studio-profile="coreldraw"] #visual-stage .studio-actionbar{border-bottom-color:#aebbc3;border-top:1px solid #fff}
body.creator-studio[data-studio-profile="coreldraw"] .studio-actionbar>.studio-menu>summary:hover,
body.creator-studio[data-studio-profile="coreldraw"] .studio-actionbar>.studio-menu[open]>summary{background:#dce9e0;border-color:#a9c5b3}
body.creator-studio[data-studio-profile="coreldraw"] .studio-tool-rail button{border-radius:3px}
body.creator-studio[data-studio-profile="coreldraw"] .studio-tool-rail button:hover{background:#dce7e2;border-color:#afc4b7}
body.creator-studio[data-studio-profile="coreldraw"] .studio-tool-rail button[aria-pressed=true]{background:#d0e7d7;border-color:#83ac92;color:#225737;box-shadow:inset 0 0 0 1px #ffffff70}
body.creator-studio[data-studio-profile="coreldraw"] .studio-history button{background:#f8fafb;border-color:#b7c3ca;color:#385245}
body.creator-studio[data-studio-profile="coreldraw"] .studio-panel-tabs{background:#e7edef;border-color:#b8c5cb}
body.creator-studio[data-studio-profile="coreldraw"] .studio-panel-tabs [role=tab][aria-selected=true]{background:#f9fbfc;color:#276342}
body.creator-studio[data-studio-profile="coreldraw"] #visual-stage>.rich-toolbar{background:#edf3ef;border-color:#b6c9bc}
body.creator-studio[data-studio-profile="coreldraw"] #visual-stage .studio-canvas-statusbar{background:#e5ece8;border-color:#b7c8be}

/* The dedicated customization dialog is independent of the chosen colour theme. */
body.creator-studio .studio-customizer-dialog{width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 40px);margin:auto;padding:22px;border:1px solid #a9b7c8;border-radius:11px;background:#fff;color:#2f3d4e;box-shadow:0 24px 80px #10182755;overflow:auto;overscroll-behavior:contain;font:13px/1.5 system-ui,sans-serif}
body.creator-studio .studio-customizer-dialog::backdrop{background:#18233280}
body.creator-studio .studio-customizer-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}
body.creator-studio .studio-customizer-dialog h2{margin:0;font-size:20px;line-height:1.35;color:#26384e}
body.creator-studio .studio-customizer-dialog p{margin:8px 0 14px;color:#5a697c;font-size:13px;line-height:1.55}
body.creator-studio .studio-customizer-dialog :is(button,select){min-height:36px;padding:7px 10px;border:1px solid #b6c4d4;border-radius:5px;background:#fff;color:#344b64;font:500 13px/1.4 system-ui,sans-serif;cursor:pointer}
body.creator-studio .studio-customizer-dialog button:hover{background:#eaf2fa;border-color:#9bb7d4}
body.creator-studio .studio-customizer-dialog button:disabled{opacity:.4;cursor:not-allowed}
body.creator-studio .studio-customizer-dialog :focus-visible{outline:2px solid #176bb5;outline-offset:3px}
body.creator-studio .studio-customizer-close{flex:none;min-width:36px}
body.creator-studio .studio-customizer-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 16px;margin:14px 0;padding:14px;background:#f3f6fa;border:1px solid #dce4ed;border-radius:7px}
body.creator-studio .studio-customizer-options label{display:flex;align-items:center;gap:9px;min-width:0;min-height:36px;font-size:13px}
body.creator-studio .studio-customizer-options select{margin-left:auto;max-width:140px}
body.creator-studio .studio-customizer-dialog input[type=checkbox]{width:18px;height:18px;min-height:18px;margin:0;flex:none;accent-color:#176bb5}
body.creator-studio .studio-tool-settings{display:flex;flex-direction:column;gap:6px;list-style:none;margin:14px 0;padding:0}
body.creator-studio .studio-tool-setting{display:grid;grid-template-columns:minmax(0,1fr) minmax(30px,auto) auto;align-items:center;gap:10px;min-height:49px;padding:6px 9px;border:1px solid #d7e1eb;border-radius:6px;background:#fff;cursor:grab}
body.creator-studio .studio-tool-setting:active{cursor:grabbing}
body.creator-studio .studio-tool-setting>label{display:flex;align-items:center;gap:10px;min-width:0;min-height:36px;font-size:13px;font-weight:550;cursor:pointer}
body.creator-studio .studio-tool-setting:is(.studio-tool-dragging,[aria-grabbed=true]){background:#e8f1fa;border-color:#79a9d2;box-shadow:0 2px 8px #2e60991a}
body.creator-studio .studio-tool-shortcut{color:#62738a;text-align:right;font:12px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:nowrap}
body.creator-studio .studio-tool-move{display:flex;gap:5px}
body.creator-studio .studio-tool-move button{min-width:36px;padding:6px 8px}
body.creator-studio .studio-customizer-dialog footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid #dce4ed;background:#fff}
body.creator-studio .studio-customizer-dialog footer button:last-child{background:#176bb5;border-color:#176bb5;color:#fff}
body.creator-studio .studio-customizer-dialog footer button:last-child:hover{background:#115a9b}
body.creator-studio #studio-preference-status{min-height:1.5em;margin:8px 0;color:#405d7f;font-size:13px}

@media(min-width:761px){
 body.creator-studio.studio-pages-collapsed>.layout{grid-template-columns:minmax(0,1fr)}
 body.creator-studio.studio-pages-collapsed .layout>.left{display:none}
 body.creator-studio.studio-pages-collapsed .layout>.right{grid-column:1}
}
@media(max-width:1200px){
 body.creator-studio[data-studio-profile="creator"]{--studio-pages-width:188px;--studio-inspector-width:260px}
 body.creator-studio[data-studio-profile="illustrator"]{--studio-inspector-width:280px}
 body.creator-studio[data-studio-profile="canva"]{--studio-pages-width:200px;--studio-inspector-width:280px}
 body.creator-studio[data-studio-profile="coreldraw"]{--studio-inspector-width:300px}
 body.creator-studio .studio-profile-controls{flex-basis:100%;padding:0}
}
@media(max-width:760px){
 body.creator-studio[data-studio-profile] .layout>.right{padding:6px;gap:5px}
 body.creator-studio .studio-profile-controls{gap:5px}
 body.creator-studio .studio-profile-controls>label{flex:1 1 auto}
 body.creator-studio #studio-profile{max-width:190px;flex:1 1 auto}
 body.creator-studio .studio-customizer-dialog{padding:16px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}
 body.creator-studio .studio-customizer-dialog h2{font-size:18px}
 body.creator-studio .studio-customizer-options{padding:10px;gap:5px 12px}
}
@media(max-width:480px){
 body.creator-studio .studio-profile-controls{align-items:stretch}
 body.creator-studio .studio-profile-controls>label{flex-basis:100%;justify-content:space-between}
 body.creator-studio #studio-customize-tools{margin-left:auto}
 body.creator-studio .studio-customizer-options{grid-template-columns:minmax(0,1fr)}
 body.creator-studio .studio-tool-setting{gap:6px;padding:6px;grid-template-columns:minmax(0,1fr) auto}
 body.creator-studio .studio-tool-shortcut{grid-column:1;grid-row:2;text-align:left;padding-left:28px;white-space:normal}
 body.creator-studio .studio-tool-move{grid-column:2;grid-row:1/3}
 body.creator-studio .studio-customizer-dialog footer{justify-content:stretch}
 body.creator-studio .studio-customizer-dialog footer button{flex:1 1 auto}
}
@media(pointer:coarse){
 body.creator-studio[data-studio-profile]{--studio-tool-cell:44px;--studio-rail-width:54px}
 body.creator-studio[data-studio-profile][data-studio-tool-columns="2"]{--studio-rail-width:102px}
 body.creator-studio[data-studio-profile="canva"]{--studio-tool-cell:62px;--studio-rail-width:72px}
 body.creator-studio[data-studio-profile="canva"][data-studio-tool-columns="2"]{--studio-rail-width:138px}
 body.creator-studio .studio-profile-controls :is(select,button),
 body.creator-studio .studio-customizer-dialog :is(button,select),
 body.creator-studio .studio-customizer-dialog label{min-height:44px}
 body.creator-studio .studio-tool-move button,body.creator-studio .studio-customizer-close{min-width:44px}
}
body.creator-studio[data-studio-profile].studio-toolbar-hidden{--studio-rail-width:0px}

/* State takes precedence over every grid, flex, mobile, and focus declaration. */
body.creator-studio details:not([open])>.studio-menu-content{display:none}
body.creator-studio [hidden]{display:none!important}
