/* Centered, scrollable controls leave the working canvas unobstructed. */
body dialog.workspace-layer,body.editor-body dialog{box-sizing:border-box;width:80vw!important;height:80dvh!important;max-width:80vw!important;max-height:80dvh!important;margin:auto!important;padding:20px!important;border:1px solid #dfe2ea;border-radius:18px;overflow:auto;background:#fff;color:#172338;box-shadow:0 24px 100px #10214140}
body dialog::backdrop{background:#14243e70;backdrop-filter:blur(3px)}
.workspace-layer[open]{display:flex;flex-direction:column;gap:16px}.workspace-layer>.dialog-heading{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:12px}.workspace-layer>.dialog-heading h2{font-size:20px;margin:0}.workspace-layer-body{flex:1;min-height:0;overflow:auto;padding:4px}.workspace-layer>footer{display:flex;align-items:center;justify-content:flex-end;gap:16px;border-top:1px solid #e2e8f0;padding-top:12px}
:is(.workspace-layer,.studio-focus-heading,.studio-split-heading) :is(.icon-btn,[data-close],[data-studio-close]),.editor-close{display:grid!important;place-items:center!important;padding:0!important;width:40px!important;height:40px!important;min-width:40px;line-height:1!important;font-size:28px;border-radius:9px;cursor:pointer}
body.editor-body.section-workspace.layer-workspace .editor-layout{grid-template-columns:75px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}
body.editor-body.section-workspace.layer-workspace .editor-sidebar{grid-row:1!important;width:75px!important;padding:4px!important;overflow:auto;display:flex!important;position:static!important;inset:auto!important;box-shadow:none!important}
body.editor-body.section-workspace.layer-workspace .canvas-area{grid-column:2;grid-row:1!important;width:100%;min-width:0}
body.editor-body.section-workspace.layer-workspace .editor-sidebar>:not(.workspace-rail-title):not(.workspace-navigation):not(.workspace-home-brand){display:none!important}
.workspace-rail-title{font-size:12px;text-align:center;margin:8px 0 14px;color:#253d71}
body.editor-body.section-workspace.layer-workspace .workspace-nav-group h2{font-size:10px;padding:6px 3px;line-height:1.5;margin:3px 0}
body.editor-body.section-workspace.layer-workspace .workspace-nav-group button{margin:4px 0;width:100%;font-size:11px;min-height:42px;padding:6px 3px;text-align:center;line-height:1.45}
body.editor-body.section-workspace.layer-workspace .canvas-scroll{padding:4px!important}body.editor-body.section-workspace.layer-workspace .canvas-toolbar{min-height:34px;padding:3px 10px}.layer-workspace .editor-notice{font-size:11px;padding:4px 10px;margin:0}
body.editor-body.section-workspace.layer-workspace #design-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}body.editor-body.section-workspace.layer-workspace #design-tools[hidden]{display:none!important}
body.editor-body.section-workspace.layer-workspace #design-tools>:is(.editor-more-tools,.easy-insert,#block-list){grid-column:1/-1}
body.editor-body.section-workspace.layer-workspace dialog :is(.property-panel,.editor-ribbon){position:static!important;transform:none!important;width:100%!important;max-height:none!important;height:auto!important;overflow:visible!important;display:block!important;margin:0!important;padding:12px!important;border:0!important;box-sizing:border-box}
body.editor-body.section-workspace.layer-workspace dialog #properties{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}.layer-workspace dialog #properties>.prop-actions{grid-column:1/-1}
body.editor-body.section-workspace.layer-workspace .ribbon-controls{display:flex!important;flex-wrap:wrap;gap:12px;position:static!important;max-height:none!important}.layer-workspace .ribbon-heading{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.layer-workspace dialog :is(input,select,textarea,button){max-width:100%;box-sizing:border-box}.layer-workspace dialog :is(input,select,textarea){font-size:16px}.layer-workspace dialog button{min-height:40px}
.layer-workspace .editor-header{display:flex;align-items:center;flex-wrap:nowrap!important;gap:8px;min-height:52px;padding:6px 10px}.layer-workspace .editor-header>.back-link,.layer-workspace .editor-header>.language-switch,.layer-workspace .editor-header>.editor-service-actions{display:none!important}
.layer-workspace .editor-header #site-name{margin-left:70px;width:120px;min-width:75px!important}.layer-workspace .editor-actions{flex:1;min-width:0;display:flex;flex-wrap:nowrap!important;overflow-x:auto;gap:6px}.layer-workspace .editor-actions>*{flex-shrink:0;white-space:nowrap}.layer-workspace .editor-header-devices{display:flex;gap:3px;margin-left:auto}.editor-header-devices button{font-size:12px;padding:6px;border:1px solid #d5dce8;border-radius:5px;background:white;white-space:nowrap}.editor-header-devices button.active{background:#16786e;color:#fff}.editor-close{border:1px solid #d5dce8;background:white;flex:0 0 40px}
.studio-actions-in-header .editor-header{display:none!important}.studio-actions-in-header .canvas-toolbar .editor-header-devices{display:none!important}
.studio-focus-heading>.studio-header-actions,.studio-split-heading>.studio-header-actions{display:flex!important;}
.studio-header-actions{display:flex;align-items:center;gap:6px;min-width:0;flex:1;overflow-x:auto;scrollbar-width:thin}.studio-header-actions>*{flex-shrink:0}.studio-header-actions .studio-save-actions{display:flex!important;gap:6px;padding:0!important;border:0;background:transparent;align-items:center;flex-shrink:0}.studio-header-actions .studio-save-actions #studio-save-status{max-width:150px;color:inherit;font-size:11px}.studio-manual-actions{display:flex;gap:6px}.studio-page #ai-app .studio-header-actions button{white-space:nowrap;font-size:12px;min-height:34px;padding:6px 9px;color:#21463b;background:#fff;border:1px solid #ffffff70;border-radius:7px}.studio-header-actions button:disabled{opacity:.5}
.studio-page #ai-app #studio-manual-panel.studio-focus-panel>.studio-focus-heading{flex-wrap:nowrap;gap:8px}.studio-focus-heading>.studio-device-controls,.studio-split-heading>.studio-device-controls{display:flex!important;gap:3px;order:2!important;margin-left:auto}.studio-device-controls button{white-space:nowrap;padding:5px 7px;min-height:34px;font-size:12px;background:#ffffff18;border:1px solid #ffffff60;border-radius:5px;color:inherit}.studio-device-controls button.active{background:#fff;color:#335f58}
#studio-manual-panel .studio-focus-heading .studio-document-meta{margin-left:70px;border:0;padding:0;flex-shrink:0}#studio-manual-panel .studio-focus-heading #studio-image-library{display:none}#studio-manual-panel .studio-focus-heading>div:first-child{display:none}
.studio-split-heading>div:first-child{margin-right:8px;flex-shrink:0}.studio-split-heading>div:first-child small{display:none}
@media(min-width:901px){.studio-page #ai-app.fullscreen-editing .ai-studio-grid.studio-ai-split{grid-template-columns:minmax(216px,1.2fr) minmax(0,5.8fr)}.studio-page #ai-app .studio-ai-split .ai-preview-toolbar{display:none!important}}
.studio-start-templates{padding:18px;background:#f0eaff;border:1px solid #dbd0f5;border-radius:12px;display:flex;flex-wrap:nowrap;align-items:stretch}.studio-start-templates button{display:flex;align-items:center;justify-content:center;min-height:48px}.studio-start-options{align-items:center}.studio-start-options>div:first-child{min-width:0}
.url-hero-label{display:block;font-size:clamp(22px,3vw,36px);color:#4c29ab;margin:24px 0 8px;font-weight:900}.ai-hero .url-hero-description{font-size:clamp(15px,2vw,21px);margin:8px 0 22px}.notice-board-row,.notice-board-columns{display:grid!important;grid-template-columns:65px minmax(0,1fr) 45px;gap:16px;padding:20px 16px;border-bottom:1px solid #e2e5ec;align-items:center}.notice-board-columns{background:#f3f5f9;font-size:13px}.notice-board-body{white-space:pre-wrap;line-height:1.9}
@media(max-width:900px){
 body dialog.workspace-layer,body.editor-body dialog{width:95vw!important;height:95dvh!important;max-width:95vw!important;max-height:95dvh!important;padding:12px!important;border-radius:12px}
 body.editor-body.section-workspace.layer-workspace .editor-layout{grid-template-columns:62px minmax(0,1fr)!important}body.editor-body.section-workspace.layer-workspace .editor-sidebar{width:62px!important}.workspace-rail-title{font-size:10px}body.editor-body.section-workspace.layer-workspace #design-tools,body.editor-body.section-workspace.layer-workspace dialog #properties{grid-template-columns:minmax(0,1fr)}
 .layer-workspace .editor-header{flex-wrap:wrap!important;gap:4px}.layer-workspace .editor-header #site-name{margin-left:0;width:90px}.layer-workspace .editor-actions{order:5;flex-basis:100%}.layer-workspace #save-state{font-size:10px;max-width:90px}.editor-header-devices button{padding:4px;font-size:10px}
 .studio-page #ai-app #studio-manual-panel.studio-focus-panel>.studio-focus-heading,.studio-ai-split>.studio-split-heading{flex-wrap:wrap!important;gap:4px!important}#studio-manual-panel .studio-focus-heading .studio-document-meta{margin-left:0;order:0;max-width:40%;flex:0 1 auto}.studio-header-actions{order:5;flex-basis:100%;padding:3px 0}.studio-focus-heading>.studio-device-controls,.studio-split-heading>.studio-device-controls{order:2!important;margin-left:auto;gap:2px}.studio-device-controls button{font-size:10px;padding:4px;min-height:30px}.studio-split-heading strong{font-size:13px}.studio-header-actions .studio-save-actions button{font-size:11px}.studio-start-templates{padding:12px;gap:8px}.notice-board-row,.notice-board-columns{grid-template-columns:35px minmax(0,1fr) 24px;padding:14px 6px;gap:8px}
}

@media(max-width:480px){
 #studio-manual-panel .studio-focus-heading .studio-document-meta{flex:1 1 100%;max-width:none;gap:6px}
 #studio-manual-panel .studio-focus-heading .studio-document-meta span{max-width:none;flex:1}
 .studio-page #ai-app .studio-split-heading>div:first-child{flex:1 1 100%}
}
