/* Material 3 inspired editor surfaces. Artwork colors are independent of this UI. */
.editor-page{--ink:#222923;--muted:#627067;--line:#dce4de;--paper:#f7f9f7;--editor-surface:#fff;--editor-container:#edf2ed;--editor-primary:#166746;--editor-on-primary:#fff;--editor-primary-container:#d8eedf;--editor-workspace:#e9edea;background:var(--paper);color:var(--ink);font-family:'DM Sans',Arial,sans-serif}
[data-theme="dark"] .editor-page,.editor-page[data-theme="dark"]{--ink:#e3e9e3;--muted:#b6c2b9;--line:#414b44;--paper:#181d1b;--editor-surface:#222825;--editor-container:#2c3430;--editor-primary:#a2dab6;--editor-on-primary:#113822;--editor-primary-container:#304c3c;--editor-workspace:#1f2523}
.editor-page>.header{border:0;background:var(--paper);box-shadow:none}.editor-page>.header nav{display:none}.editor-page>.header .header-actions>a{display:none}.editor-page>.header .brand{font-size:23px;letter-spacing:-.8px}.editor-page>.header .brand-icon{width:32px;height:32px;border-radius:10px;background:var(--editor-primary);color:var(--editor-on-primary);font-size:19px}.editor-page>.header .theme-toggle{border:0;background:var(--editor-container);width:40px;height:40px}
.editor-page .studio-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;border:0;border-radius:0;background:transparent;box-shadow:none;gap:8px;padding:0 0 10px}.editor-toolbar-start{display:flex;align-items:center;gap:14px;min-width:0}.editor-document-title{font-size:17px;font-weight:600;letter-spacing:-.2px;white-space:nowrap}.editor-page .history-actions{border:0;margin:0;padding:0;gap:2px}.editor-page .history-actions .button{border:0;border-radius:50%;width:40px;height:40px;color:var(--ink);background:transparent}.editor-page .button{border-radius:22px;letter-spacing:0;gap:8px;box-shadow:none;font-weight:600;transition:background .16s,color .16s}.editor-page .button:hover{transform:none;background:var(--editor-primary-container)}.editor-page .toolbar-actions{display:flex;align-items:center;gap:8px;width:auto}.editor-page .toolbar-actions #save{border:0;font-size:13px;min-height:44px;padding:10px 14px;color:var(--editor-primary)}.editor-page .studio-toolbar #download{background:var(--editor-primary);color:var(--editor-on-primary);border:0;box-shadow:0 2px 5px #0001;border-radius:24px;min-height:46px;min-width:160px;font-size:13px;padding:12px 22px;font-weight:700}.editor-page .studio-toolbar #download:hover{filter:brightness(1.08);background:var(--editor-primary)}.editor-page .studio-toolbar #download:focus-visible{outline:3px solid var(--editor-primary);outline-offset:3px}.editor-size-menu,.editor-more-menu{position:relative}.editor-size-menu>summary,.editor-more-menu>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 12px;border-radius:20px;font-size:12px;list-style:none;cursor:pointer}.editor-more-menu>summary{width:40px;padding:8px}.editor-size-menu>summary::-webkit-details-marker,.editor-more-menu>summary::-webkit-details-marker{display:none}.editor-size-menu>summary:hover,.editor-more-menu>summary:hover{background:var(--editor-container)}.editor-menu-content{position:absolute;top:calc(100% + 8px);right:0;z-index:60;background:var(--editor-surface);border:1px solid var(--line);box-shadow:0 8px 28px #0002;border-radius:16px;padding:18px;min-width:245px;max-width:calc(100vw - 32px)}.editor-size-menu .editor-menu-content{left:0;right:auto;display:block;max-width:290px}.editor-menu-content label{font-size:12px;display:block;margin-bottom:8px}.editor-menu-content select{width:100%;border:1px solid var(--line);border-radius:8px;padding:10px;background:var(--editor-surface);color:var(--ink);font-size:13px}.editor-menu-content #custom-size{display:flex;gap:7px;margin-top:12px;align-items:center}.editor-menu-content #custom-size input{width:85px;min-width:0;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--editor-surface);color:var(--ink)}.editor-menu-content #reset-design{margin-top:15px;min-height:42px;width:100%;background:transparent;border:1px solid var(--line);font-size:12px}.editor-menu-content .fine{font-size:11px;line-height:1.7;color:var(--muted)}.editor-page .unsaved-design-notice{width:auto;flex:1;flex-basis:70%;background:transparent;border:0;border-radius:8px;padding:3px 0;font-size:10px;color:var(--muted)}.editor-page .unsaved-design-notice.is-dirty{background:var(--editor-primary-container);padding:6px 10px;color:var(--ink)}.editor-page .toolbar-note{width:auto;text-align:right;font-size:10px;color:var(--muted)}
.editor-page .material-editor .panel{background:var(--editor-surface);border:0;border-radius:20px;box-shadow:0 1px 4px #00000008}.editor-page .studio .canva-controls{grid-template-columns:72px minmax(0,1fr);border:0;border-radius:20px}.editor-page .studio .studio-tool-rail{border:0;background:var(--editor-container);padding:16px 6px;gap:12px}.editor-page .studio .studio-tool-rail button{border:0;min-height:68px;border-radius:16px;color:var(--muted);font-size:10px;padding:9px 3px;gap:6px;background:transparent;font-weight:500}.editor-page .studio .studio-tool-rail button>span{font-size:9px}.editor-page .studio .studio-tool-rail button>.ui-icon{font-size:18px;width:48px;height:30px;border-radius:16px;display:grid;place-items:center}.editor-page .studio .studio-tool-rail button.active{color:var(--editor-primary);background:transparent;font-weight:700}.editor-page .studio .studio-tool-rail button.active>.ui-icon{background:var(--editor-primary-container)}.editor-page .studio .studio-tool-rail button:hover{background:var(--editor-primary-container)}.editor-page .studio .studio-tool-rail button.active::before{display:none}.editor-page .studio .canva-controls>.studio-tab-panel{padding:22px 20px;scrollbar-width:thin}.editor-page .studio .control-title{padding:0;margin:0 0 12px;border:0}.editor-page .studio .control-title h3{font-size:18px;letter-spacing:-.2px;margin:0;font-weight:600}.editor-page .studio .control-title>span{display:none}.editor-page .selection-guidance{font-size:12px;color:var(--muted);line-height:1.6;margin:0 0 18px}.editor-page .studio .panel label{font-size:12px;font-weight:500;letter-spacing:0;margin-top:17px;margin-bottom:7px;line-height:1.4;color:var(--ink)}.editor-page .optional-label{color:var(--muted);font-size:10px;font-weight:400;margin-left:3px}.editor-page .studio .panel input:not([type="range"]):not([type="checkbox"]):not([type="color"]),.editor-page .studio .panel textarea,.editor-page .studio .panel select{background:var(--editor-surface);border:1px solid var(--line);color:var(--ink);border-radius:10px;font-size:13px;padding:11px 12px;line-height:1.5;width:100%;margin:0;outline-color:var(--editor-primary)}.editor-page .studio .panel textarea{min-height:105px;resize:vertical;max-height:220px}.editor-page .studio .panel input[type="color"]{background:var(--editor-surface);border:1px solid var(--line);border-radius:10px;padding:5px;width:100%;height:42px;cursor:pointer}.editor-page .studio .panel input[type="range"]{accent-color:var(--editor-primary);width:100%;margin:10px 0}.editor-page .studio .panel output{color:var(--muted);font-size:11px;font-weight:400}.editor-page .studio .control-divider{height:1px;background:var(--line);border:0;margin:22px 0 8px}.text-essentials-row{display:grid;grid-template-columns:minmax(0,1fr) 70px;gap:18px;align-items:start}.editor-page .align-buttons{display:flex;gap:7px}.editor-page .align-buttons button{border:0;background:var(--editor-container);border-radius:10px;min-height:40px;flex:1;color:var(--muted)}.editor-page .align-buttons button.active{color:var(--editor-primary);background:var(--editor-primary-container)}.editor-page .inspector-group{border:0;border-radius:12px;background:var(--editor-container);margin-top:18px;margin-bottom:8px}.editor-page .inspector-group>summary{font-size:12px;font-weight:500;min-height:44px;padding:13px 12px;border:0;color:var(--ink)}.editor-page .inspector-group[open]>summary{border:0}.editor-page .inspector-group-body{padding:0 12px 15px}.editor-page .inspector-group>summary::after{color:var(--muted);font-size:16px}.editor-page .studio .fine{font-size:11px;color:var(--muted);line-height:1.65}.editor-page .add-text-section{margin-top:20px}.editor-page #add-text-box{background:var(--editor-primary-container);color:var(--editor-primary);border:0;min-height:42px;font-size:12px}.editor-page #duplicate-main-text,.editor-page #duplicate-text-box{min-height:42px;border:0;background:var(--editor-surface);font-size:11px;width:100%}.editor-page .studio .ai-studio{min-height:42px;background:transparent;color:var(--editor-primary);font-size:11px;width:100%;border:0;margin-top:8px}.editor-page .background-types{gap:8px;grid-template-columns:repeat(3,minmax(0,1fr));margin:16px 0 8px}.editor-page .background-type{border:0;border-radius:14px;background:var(--editor-container);font-size:10px;min-height:62px;color:var(--muted);gap:7px}.editor-page .background-type.active,.editor-page .background-type[aria-pressed="true"]{background:var(--editor-primary-container);color:var(--editor-primary);box-shadow:inset 0 0 0 1px var(--editor-primary)}.editor-page .studio-upload-zone{border:1px dashed var(--line);border-radius:14px;background:var(--editor-container);padding:24px 12px;text-align:center}.editor-page .studio-upload-zone strong{font-size:13px}.editor-page .studio-upload-zone span,.editor-page .studio-upload-zone small{color:var(--muted);font-size:10px;line-height:1.6}.editor-page .image-filter-presets button{border:0;background:var(--editor-surface);color:var(--muted);border-radius:14px;font-size:10px;min-height:34px}.editor-page .image-filter-presets button.active{background:var(--editor-primary-container);color:var(--editor-primary)}.editor-page .element-palette{gap:8px}.editor-page .element-palette button{border:0;background:var(--editor-surface);color:var(--muted);font-size:9px;min-height:70px;border-radius:12px}.editor-page .quotation-presets button{border:0;background:var(--editor-surface);color:var(--muted);border-radius:12px}.editor-page .selected-element-heading{background:var(--editor-container);color:var(--ink);border-radius:12px}.editor-page .editor-layer-row{background:var(--editor-container);border:0;border-radius:12px;padding:8px}.editor-page .editor-layer-row.active{background:var(--editor-primary-container);box-shadow:inset 0 0 0 1px var(--editor-primary)}.editor-page .layer-select strong{font-size:11px}.editor-page .layer-select>span{background:var(--editor-surface);color:var(--muted)}.editor-page .layer-order-actions button{color:var(--muted);min-width:25px;min-height:22px}.editor-page .layer-tools .button{background:var(--editor-surface);font-size:10px;border:0;min-height:40px}.editor-page .background-locked{color:var(--muted);background:transparent}
.editor-page .studio .editor-stage{background:var(--editor-workspace);border:0;border-radius:20px;box-shadow:none;display:flex;flex-direction:column}.editor-page .stage-header{background:transparent;border:0;padding:18px 20px;font-size:13px;letter-spacing:0;color:var(--muted)}.editor-page .stage-header>span{font-weight:500;font-size:13px}.editor-page .canvas-size-badge{background:transparent;color:var(--muted);border:0;padding:0;font-size:10px;font-weight:400}.editor-page .canvas-context-bar{padding:2px 20px 10px;background:transparent;border:0;font-size:11px;color:var(--muted);gap:12px;white-space:normal}.editor-page .canvas-zoom-controls{gap:4px}.editor-page .canvas-zoom-controls button{border:0;background:var(--editor-surface);color:var(--ink);border-radius:20px;min-width:34px;height:34px;font-size:15px}.editor-page .canvas-zoom-controls button:last-child{font-size:11px;padding:0 12px}.editor-page .canvas-zoom-controls output{font-size:11px;color:var(--muted)}.editor-page .canvas-workspace{background:none;padding:26px;min-height:0}.editor-page .studio #editor-preview{border-radius:5px;box-shadow:0 5px 24px #18291d18;outline:0}.editor-page .studio #editor-preview:focus-visible{outline:2px solid var(--editor-primary);outline-offset:5px}.editor-page .stage-footer{background:transparent;border:0;justify-content:center;font-size:10px;padding:12px;color:var(--muted)}.editor-page .canvas-move-handle.is-selected{border-color:var(--editor-primary);background:transparent}.editor-page .canvas-move-handle>span{background:var(--editor-primary);color:var(--editor-on-primary);border-radius:6px;font-size:9px}.editor-page .element-resize-overlay{outline-color:var(--editor-primary)}.editor-page .element-resize-corner{border-color:var(--editor-primary);border-radius:50%;background:var(--editor-surface);width:12px;height:12px}.editor-page .element-resize-corner::after{content:'';position:absolute;inset:-10px}.editor-page .corner-nw{left:-6px;top:-6px}.editor-page .corner-ne{right:-6px;top:-6px}.editor-page .corner-sw{left:-6px;bottom:-6px}.editor-page .corner-se{right:-6px;bottom:-6px}
.editor-page .studio .template-library-panel{padding:22px 18px;border:0;border-radius:20px;background:var(--editor-surface)}.editor-page .template-library-heading h3{font-size:18px;letter-spacing:-.2px;font-weight:600;margin:0}.editor-page .favorite-filter{background:var(--editor-container);color:var(--muted);border:0;border-radius:20px;font-size:11px!important;min-height:38px;padding:8px!important;width:100%;margin:10px 0 8px}.editor-page .favorite-filter[aria-pressed="true"]{background:var(--editor-primary-container);color:var(--editor-primary)}.editor-page .editor-template-grid{gap:18px 12px;margin-top:14px}.editor-page .editor-template-card{border:0;background:transparent;color:var(--ink);text-align:left;padding:0;transition:none;box-shadow:none}.editor-page .editor-template-card:hover{transform:none}.editor-page .editor-template-preview{border:0;border-radius:12px;box-shadow:0 1px 4px #0001;overflow:hidden}.editor-page .editor-template-card.active .editor-template-preview{outline:2px solid var(--editor-primary);outline-offset:2px}.editor-page .editor-template-card strong{font-size:10px;line-height:1.4;font-weight:500;margin-top:9px;color:var(--ink);white-space:normal}.editor-page .editor-template-card>span{font-size:9px;color:var(--muted);margin-top:2px}.editor-page .template-favorite{box-shadow:0 1px 4px #0002;border:0;background:#ffffffed;color:#6a756d;min-width:28px;min-height:28px}.editor-page .template-favorite.active{background:#d8eedf;color:#166746}.editor-page .template-library-link{font-size:11px;border:0;color:var(--editor-primary);padding-top:15px}.editor-page .mobile-sheet-header,.editor-page .mobile-template-close{display:none}.editor-page button:focus-visible,.editor-page summary:focus-visible{outline:2px solid var(--editor-primary);outline-offset:3px}.editor-page input:focus-visible,.editor-page select:focus-visible,.editor-page textarea:focus-visible{outline:2px solid var(--editor-primary);outline-offset:1px}
@media(min-width:1000px){.editor-page>.header{height:58px;min-height:58px;padding:0 24px}.editor-page .studio-toolbar{width:calc(100% - 48px);margin:6px 24px 0}.editor-page .editor.studio{grid-template-columns:350px minmax(0,1fr) 260px;padding:0 24px;gap:16px;margin:10px 0 18px}.editor-page .studio .canva-controls{grid-template-columns:72px minmax(0,1fr)}.editor-page .studio .canva-controls>.studio-tab-panel{padding:22px 18px}.editor-page .editor-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1000px) and (max-width:1250px){.editor-page .editor.studio{grid-template-columns:310px minmax(0,1fr) 210px;gap:12px;padding:0 16px}.editor-page .studio .canva-controls{grid-template-columns:64px minmax(0,1fr)}.editor-page .studio .canva-controls>.studio-tab-panel{padding:18px 14px}.editor-page .canvas-context-bar{flex-wrap:wrap;padding:2px 15px 8px}.editor-page .editor-document-title{font-size:15px}.editor-page .studio .template-library-panel{padding:20px 14px}}
@media(max-width:999px){.editor-page{height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}.editor-page>footer{display:none}.editor-page>.header{height:50px;min-height:50px;padding:0 16px;flex:none}.editor-page>.header .brand{font-size:20px}.editor-page>#app{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.editor-page .studio-toolbar{position:relative;top:auto;z-index:40;background:var(--paper);width:auto;margin:2px 14px 0;padding-bottom:8px;gap:6px;box-shadow:none;flex:none}.editor-page .editor-toolbar-start{gap:5px}.editor-page .editor-document-title{display:none}.editor-page .toolbar-actions{display:flex;gap:3px}.editor-page .toolbar-actions #save{font-size:11px;min-height:40px;padding:7px 9px}.editor-page .studio-toolbar #download{min-width:120px;min-height:42px;font-size:12px;padding:10px 14px}.editor-page .toolbar-actions .history-actions{display:flex}.editor-page .history-actions .button{width:34px;height:38px}.editor-page .editor-size-menu>summary{font-size:11px;padding:8px}.editor-page .editor-more-menu>summary{width:30px;min-height:38px}.editor-page .editor-menu-content{min-width:220px}.editor-page .editor-size-menu .editor-menu-content{left:0}.editor-page .unsaved-design-notice{font-size:9px;flex-basis:100%;padding:2px 0}.editor-page .toolbar-note{display:none}.editor-page .editor.studio{display:block;flex:1;min-height:0;position:relative;width:100%;padding:0 10px 84px;margin:0;overflow:hidden;max-height:none}.editor-page .studio .editor-stage{position:static;min-height:0;height:100%;width:100%;border-radius:18px;overflow:hidden;margin:0;grid-column:auto;grid-row:auto}.editor-page .stage-header{padding:13px 16px}.editor-page .canvas-context-bar{padding:0 16px 6px;flex-wrap:wrap;gap:6px;font-size:10px}.editor-page .canvas-workspace{padding:18px;overflow:auto;flex:1;min-height:0}.editor-page .stage-footer{padding:8px;font-size:9px}.editor-page .studio .canva-controls{position:fixed;bottom:0;left:0;right:0;top:auto;z-index:50;height:76px;max-height:none;min-height:0;display:grid;grid-template-columns:1fr;grid-template-rows:0 minmax(0,1fr) 76px;background:var(--editor-surface);border-radius:24px 24px 0 0;box-shadow:0 -3px 18px #00000012;padding:0;overflow:hidden}.editor-page .studio .studio-tool-rail{grid-column:1;grid-row:3;display:flex;flex-direction:row;align-items:center;justify-content:space-around;border:0;background:var(--editor-surface);padding:8px 8px max(8px,env(safe-area-inset-bottom));gap:4px;overflow:visible}.editor-page .studio .studio-tool-rail button{flex:1;min-height:56px;padding:5px 1px;gap:4px;font-size:10px;background:transparent}.editor-page .studio .studio-tool-rail button>span{font-size:9px}.editor-page .studio .studio-tool-rail button>.ui-icon{font-size:17px;width:44px;height:28px}.editor-page .studio .canva-controls>.studio-tab-panel{display:none;grid-column:1;grid-row:2;overflow:auto;max-height:none;height:100%;min-height:0;padding:4px 20px 20px}.editor-page.mobile-tools-open .studio .canva-controls{height:min(48dvh,420px);grid-template-rows:44px minmax(0,1fr) 76px}.editor-page.mobile-tools-open .studio .canva-controls>.studio-tab-panel:not([hidden]){display:block}.editor-page.mobile-tools-open .mobile-sheet-header{display:flex;grid-row:1;grid-column:1;align-items:center;justify-content:space-between;padding:12px 20px 5px;position:relative}.sheet-drag-handle{position:absolute;top:6px;left:calc(50% - 16px);width:32px;height:4px;border-radius:4px;background:var(--line)}.mobile-sheet-header>strong{font-size:13px;font-weight:500}.mobile-sheet-header button,.mobile-template-close{min-height:32px;font-size:12px;color:var(--editor-primary);padding:4px 10px}.editor-page.mobile-tools-open .studio-tab-panel>.control-title{display:none}.editor-page.mobile-tools-open .editor.studio{padding-bottom:calc(min(48dvh,420px) + 8px)}.editor-page.mobile-tools-open .stage-footer{display:none}.editor-page.mobile-tools-open .canvas-context-bar>span{display:none}.editor-page.mobile-tools-open .stage-header{padding:9px 14px}.editor-page.mobile-tools-open .canvas-context-bar{justify-content:flex-end}.editor-page.mobile-tools-open .canvas-workspace{padding:10px}.editor-page .studio .template-library-panel{display:none}.editor-page.mobile-templates-open .studio .template-library-panel{display:flex;flex-direction:column;position:fixed;left:0;right:0;top:auto;bottom:76px;z-index:49;height:min(54dvh,450px);max-height:none;padding:20px;border-radius:24px 24px 0 0;background:var(--editor-surface);box-shadow:0 -4px 20px #0002;overflow:hidden}.editor-page.mobile-templates-open .mobile-template-close{display:block}.editor-page.mobile-templates-open .editor.studio{padding-bottom:calc(min(54dvh,450px) + 84px)}.editor-page.mobile-templates-open .stage-footer,.editor-page.mobile-templates-open .canvas-context-bar>span{display:none}.editor-page.mobile-templates-open .editor-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:auto;min-height:0;flex:1;align-content:start;gap:16px 12px}.editor-page.mobile-templates-open .favorite-filter{flex:none;max-width:190px;margin:8px 0}.editor-page.mobile-templates-open .template-library-link{display:none}.editor-page.mobile-templates-open .template-library-heading,.editor-page.mobile-templates-open .template-library-panel>.fine{flex:none}.editor-page .studio .panel input:not([type="range"]):not([type="color"]):not([type="checkbox"]),.editor-page .studio .panel select,.editor-page .studio .panel textarea{font-size:16px!important;min-height:44px}.editor-page .studio .panel label{font-size:12px}.editor-page .studio .panel textarea{min-height:95px}.editor-page .studio .panel .fine{font-size:12px}.editor-page .selection-guidance{font-size:12px;margin:8px 0 12px}.editor-page .studio .panel input[type="color"]{height:44px}.editor-page .align-buttons button{min-height:44px}.editor-page .inspector-group>summary{min-height:48px}.editor-page .canvas-zoom-controls button{height:34px;min-width:34px}.editor-page .editor-template-entry .template-favorite{width:32px;height:32px}.editor-page .element-palette button{min-height:72px;font-size:10px}.editor-page .element-resize-corner{width:14px;height:14px}.editor-page .corner-nw{left:-7px;top:-7px}.editor-page .corner-ne{right:-7px;top:-7px}.editor-page .corner-sw{left:-7px;bottom:-7px}.editor-page .corner-se{right:-7px;bottom:-7px}.editor-page .background-types{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:370px){.editor-page .studio-toolbar{margin-left:8px;margin-right:8px}.editor-page .toolbar-actions #save>.ui-icon{display:none}.editor-page .toolbar-actions #save{padding:7px}.editor-page .studio-toolbar #download{min-width:104px;padding:10px 11px;font-size:11px}.editor-page .history-actions .button{width:30px}.editor-page .editor-size-menu>summary{padding:8px 4px}.editor-page .editor-size-menu>summary>.ui-icon{display:none}.editor-page .toolbar-actions{gap:1px}}
@media(prefers-reduced-motion:reduce){.editor-page *{transition:none!important;scroll-behavior:auto!important}}

@media(max-width:999px){.editor-page .studio-toolbar #download{min-height:44px}.editor-page .studio .canva-controls{transition:height .18s ease}.editor-page .editor.studio{transition:padding-bottom .18s ease}.editor-page .canvas-zoom-controls button{min-height:40px;min-width:40px}.editor-page .layer-order-actions{flex-direction:row;gap:2px}.editor-page .layer-order-actions button{min-width:34px;min-height:40px}.editor-page .history-actions .button{min-height:40px}.editor-page .toolbar-actions #save{min-height:40px}}

@media(max-width:999px){.editor-page .toolbar-actions #save{font-size:0;width:36px;padding:8px;gap:0}.editor-page .toolbar-actions #save>.ui-icon{font-size:14px;display:inline-block}.editor-page .studio-toolbar{column-gap:2px}.editor-page .toolbar-actions{gap:2px}.editor-page .toolbar-note{display:none}}

/* Templates share the left inspector; the right column is reserved for ads. */
.editor-page .template-controls-panel .editor-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;flex:none;gap:18px 12px}.editor-page .template-controls-panel .template-library-link{display:flex;margin-top:20px}.editor-page .editor-ad-panel{grid-column:3;grid-row:1;height:100%;min-height:0;min-width:0;overflow:auto;border-radius:20px;background:transparent}.editor-page #editor-ad-slot{width:100%;min-height:0}
@media(max-width:999px){.editor-page .editor-ad-panel{display:none}.editor-page .template-controls-panel .editor-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


.editor-page .svg-element-thumbnail{display:block;width:36px;height:36px;object-fit:contain;pointer-events:none}.editor-page .element-palette button{overflow-wrap:anywhere}

.editor-page .image-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.editor-page .image-library-grid button{padding:0;border:0;background:var(--editor-container);color:var(--ink);border-radius:12px;overflow:hidden;text-align:left}.editor-page .image-library-grid img{width:100%;height:90px;object-fit:cover;display:block}.editor-page .image-library-grid span{display:block;padding:9px;font-size:11px}.editor-page #image-frame-properties h3{font-size:15px}.editor-page #frame-remove{margin-top:16px;width:100%}
@media(max-width:999px){.editor-page .studio .studio-tool-rail{gap:0;padding-left:3px;padding-right:3px}.editor-page .studio .studio-tool-rail button>.ui-icon{width:38px}.editor-page .studio .studio-tool-rail button>span{font-size:8px}}

.editor-page .canvas-group-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;padding:8px 16px;font-size:12px}.editor-page .canvas-group-controls[hidden]{display:none}.editor-page .canvas-group-controls button{border:1px solid var(--editor-primary);border-radius:8px;padding:7px 12px;background:var(--editor-surface);color:var(--ink)}.editor-page .canvas-group-controls button:disabled{opacity:.4}.editor-page .canvas-group-controls span{color:var(--muted)}

.editor-page .canvas-move-handle>span{display:none}.editor-page #canvas-selection-label,.editor-page #canvas-beginner-hint{display:none}.editor-page #editor-preview.is-positioning-photo,.editor-page #editor-preview.is-positioning-photo .canvas-move-handle{cursor:grab}.editor-page #editor-preview.is-positioning-photo.is-dragging,.editor-page #editor-preview.is-positioning-photo.is-dragging .canvas-move-handle{cursor:grabbing}

.editor-page .fade-frame-thumbnail{background-color:var(--editor-surface);background-image:linear-gradient(45deg,#7a8b7a18 25%,transparent 25%),linear-gradient(-45deg,#7a8b7a18 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#7a8b7a18 75%),linear-gradient(-45deg,transparent 75%,#7a8b7a18 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0}

.template-switch-dialog{width:min(520px,calc(100vw - 32px));padding:26px;border:1px solid var(--line);border-radius:18px;background:var(--paper);color:var(--ink)}.template-switch-dialog::backdrop{background:#0006}.template-switch-dialog h2{margin:0 0 14px;font-size:20px}.template-switch-dialog p{line-height:1.6}.template-switch-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin-top:22px}.template-switch-dialog #template-switch-error{color:#b33939}

.editor-page .editor-ad-placeholder{display:flex;align-items:center;justify-content:center;min-height:280px;margin:8px;padding:24px;border:1px dashed var(--line);border-radius:16px;background:var(--editor-container);color:var(--muted);font-size:12px;letter-spacing:.4px}

.editor-page .canvas-element-menu{width:230px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;background:var(--editor-surface);color:var(--ink)}.editor-page .canvas-element-menu button{color:var(--ink);padding:8px 10px;font-size:12px}.editor-page .canvas-element-menu button:hover,.editor-page .canvas-element-menu button:focus-visible{background:var(--editor-primary-container);outline-color:var(--editor-primary)}.editor-page .canvas-element-menu button:disabled{opacity:.4;cursor:default}.editor-page .canvas-menu-heading{margin-top:6px;border-top:1px solid var(--line);padding:10px 10px 5px;font-size:10px;color:var(--muted)}
.editor-section-tabs{display:flex;gap:4px;padding:4px;margin:0 0 20px;background:var(--surface-soft,#f0f2ee);border:1px solid var(--border,#dfe4dc);border-radius:10px}.editor-section-tabs button{flex:1;padding:10px 12px;border:0;border-radius:7px;background:transparent;color:inherit;font:inherit;font-size:13px;cursor:pointer}.editor-section-tabs button[aria-selected=true]{background:var(--surface,#fff);color:var(--accent,#235c42);box-shadow:0 1px 4px #0001;font-weight:600}.editor-section-tabs button:focus-visible{outline:2px solid #39765a;outline-offset:1px}.local-image-item{position:relative}.local-image-item>button[data-remove-local-image]{position:absolute;top:5px;right:5px;width:26px;height:26px;border-radius:50%;border:1px solid #ddd;background:#fff;color:#333;cursor:pointer}.local-image-item>[data-library-background]{width:100%}.local-image-library{margin:20px 0}.local-image-library h4{margin:12px 0}.local-image-status{font-size:12px;line-height:1.6}
