/* Application chrome only. Website and demo palettes remain authored by their models. */
.editor-mode dialog.studio-editor.organized-editor{--inspector-width:248px;--tool-width:58px;--studio-bg:#090a0e;--studio-panel:#15171e;--studio-border:#30343f;--studio-ink:#f1f3fa;--studio-muted:#a7adbd;--studio-accent:#8b8dff;background:var(--studio-bg)!important;color:var(--studio-ink)!important;border:0;border-radius:0;max-width:none;width:100vw;max-height:none;height:100dvh;margin:0;padding:0;overflow:hidden;inset:0;font-family:Arial,sans-serif}
.editor-mode .studio-editor .paint-shell{display:grid!important;grid-template-columns:auto auto minmax(0,1fr) auto;grid-template-rows:auto;gap:3px 8px;align-items:center;background:#111319!important;border:0!important;border-bottom:1px solid var(--studio-border)!important;padding:4px 8px!important;min-height:38px!important;height:auto!important;box-sizing:border-box;color:var(--studio-ink)}
.studio-editor .paint-shell .paint-home{grid-column:1;grid-row:1;min-width:80px;width:92px}.studio-editor .paint-home img{width:88px}.studio-editor .paint-home span{display:none}
.studio-editor .paint-shell>.back-demo-gallery{grid-column:2;grid-row:1}.studio-editor .paint-shell>.paint-ribbon{grid-column:3;grid-row:1;min-width:0;width:auto}.studio-editor .paint-shell>.paint-final-actions{grid-column:4;grid-row:1}.studio-editor .paint-shell>.paint-page-tools{display:none!important}
.studio-editor .paint-commandbar{justify-content:center;gap:6px;flex-wrap:wrap}.studio-editor .paint-shell .preview-view-controls{display:none!important}.studio-editor .paint-shell .paint-exit{display:none}
.editor-mode .studio-editor :is(.paint-shell,.paint-toolrail,.editor-controls,.studio-context-rail,.studio-contextbar,.studio-footer) :is(button,a.button,select,input,textarea,summary){box-shadow:none!important;text-shadow:none!important;animation:none!important}
.editor-mode .studio-editor :is(.paint-shell,.paint-toolrail,.editor-controls,.studio-context-rail,.studio-contextbar) :is(button,a.button,select){border:1px solid var(--studio-border);border-radius:7px;background:#20232d;color:var(--studio-ink);font:12px/1.35 Arial;min-height:34px;padding:7px 9px;letter-spacing:0}
.editor-mode .studio-editor :is(.paint-shell,.paint-toolrail,.editor-controls,.studio-context-rail,.studio-contextbar) button:hover:not(:disabled){background:#303446;border-color:#737aa3}
.editor-mode .studio-editor :is(.paint-shell,.paint-toolrail,.editor-controls,.studio-context-rail,.studio-contextbar) :focus-visible{outline:2px solid #a9b6ff;outline-offset:2px}
.editor-mode .studio-editor :is(.paint-shell,.paint-toolrail,.editor-controls,.studio-context-rail,.studio-contextbar) button:disabled{opacity:.38;cursor:not-allowed}
.editor-mode .studio-editor .paint-shell #review-project{background:#9697ff;color:#10101b;border-color:#9697ff;font-weight:700}.editor-mode .studio-editor .paint-shell #reset-demo{background:#231e1b;color:#f2c995;border-color:#61503c}.editor-mode .studio-editor .paint-shell .close-dialog{background:#20232d;color:#edf0ff}
.studio-editor .paint-shell .demo-page-controls label,.studio-editor .paint-shell .preview-view-controls label{font-size:0}.studio-editor .paint-shell #demo-page-select{max-width:220px;width:190px}.studio-editor .paint-shell #preview-scale{height:34px;min-width:45px;background:#0b0c10;border:1px solid #30343f;border-radius:6px;font:12px/32px Arial;color:#d7dcff}.studio-editor .paint-shell .preview-zoom button{width:30px;height:34px}.studio-editor .paint-shell #editor-device{width:82px}.studio-editor .paint-shell #demo-page-status{color:#c6ccdc;font-size:12px}
.studio-editor .studio-view-actions{display:flex;gap:4px;border-left:1px solid #343847;padding-left:6px}.studio-editor .studio-view-actions button svg{display:none}.studio-editor .studio-view-actions button{white-space:nowrap}
.editor-mode .studio-editor .editor-grid{position:absolute!important;inset:var(--editor-toolbar-height,88px) 0 25px!important;display:flex!important;gap:8px!important;padding:6px 72px 6px 68px!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;background:#090a0e!important;box-sizing:border-box;overflow:visible}
.editor-mode .studio-editor .preview-workspace{display:flex!important;flex:1 1 0!important;min-width:0!important;min-height:0!important;width:auto!important;margin:0!important;padding:0!important;background:transparent!important}
.editor-mode .studio-editor #live-preview{display:block!important;position:relative!important;flex:1 1 0!important;min-width:0!important;min-height:0!important;width:auto!important;max-width:none!important;height:100%!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;background:#0d0f15!important;border:1px solid #282c38!important;border-radius:10px!important;padding:0!important;scroll-behavior:auto!important}
.studio-editor #live-preview .demo-page-frame{margin:0 auto!important;flex:none!important}.studio-editor #live-preview .demo-paper{transform-origin:top left!important}
.editor-mode .studio-editor .paint-toolrail{position:fixed!important;top:calc(var(--editor-toolbar-height,88px) + 6px)!important;left:5px!important;bottom:31px!important;width:58px!important;overflow-y:auto!important;overflow-x:hidden;background:#111319!important;border:1px solid #282c38!important;border-radius:10px;padding:3px!important;gap:1px;box-sizing:border-box;scrollbar-width:thin;display:grid!important;grid-template-rows:repeat(12,minmax(28px,1fr))}
.editor-mode .studio-editor .paint-toolrail :is(.paint-group,button){width:100%!important;margin:0!important;box-sizing:border-box}.editor-mode .studio-editor .paint-toolrail button{display:flex!important;align-items:center;justify-content:center;flex-direction:column;gap:1px;border:0!important;background:transparent!important;border-radius:8px!important;min-height:0!important;height:100%!important;padding:2px!important;color:#bfc5d5;font-size:10px!important}
.studio-editor .paint-toolrail svg{width:17px!important;height:17px!important;flex-shrink:0;fill:none!important;stroke:currentColor!important;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:none!important}.studio-editor .paint-toolrail span{display:block!important;font:10px/1.2 Arial!important;max-width:50px;white-space:normal}.studio-editor .paint-toolrail small{display:none}
.studio-editor .paint-toolrail button:nth-child(3n+1),.studio-editor .paint-toolrail .paint-group:nth-child(3n+1){color:#a5a0ff}.studio-editor .paint-toolrail .paint-group:nth-child(3n+2){color:#79bfff}.studio-editor .paint-toolrail .paint-group:nth-child(3n){color:#7ad8bb}.editor-mode .studio-editor .paint-toolrail button:hover,.editor-mode .studio-editor .paint-toolrail button[aria-expanded=true]{background:#252a3b!important;color:#d7dcff}
.editor-mode .studio-editor .editor-controls.organized-inspector{position:relative!important;inset:auto!important;transform:none!important;flex:0 0 var(--inspector-width)!important;width:var(--inspector-width)!important;min-width:0!important;max-height:100%!important;height:100%!important;padding:16px 12px!important;margin:0!important;box-sizing:border-box;background:#15171e!important;color:#e7eaf4!important;border:1px solid #2d313e!important;border-radius:10px!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin;scrollbar-color:#4a5062 #15171e}
.studio-editor .editor-controls::before{font:700 14px/1.5 Arial!important;color:#f0f2ff!important;padding:0 25px 12px 0!important;height:auto!important}.studio-editor .editor-controls .inspector-close{position:absolute;top:8px;right:8px;width:28px;height:28px;min-height:28px;padding:0}
.editor-mode .studio-editor .editor-controls label{font:12px/1.5 Arial!important;color:#c5cbda;display:block;margin:10px 0!important;min-width:0}.editor-mode .studio-editor .editor-controls :is(input:not([type=checkbox]):not([type=range]):not([type=color]),textarea,select){background:#0c0e14!important;border:1px solid #3b4254!important;color:#eff1fa!important;border-radius:6px!important;padding:8px!important;min-height:36px;box-sizing:border-box;width:100%;font:13px/1.4 Arial!important}.studio-editor .editor-controls input[type=range]{accent-color:#9c9eff;width:100%}.studio-editor .editor-controls input[type=checkbox]{accent-color:#9697ff;width:16px;height:16px}.studio-editor .editor-controls p,.studio-editor .editor-controls .small-copy{font:12px/1.6 Arial!important;color:#afb7c9!important;margin:8px 0}.studio-editor .editor-controls summary{color:#e0e5f4!important;font-size:12px!important;padding:10px 4px!important;border-color:#303644!important}.studio-editor .editor-controls h3,.studio-editor .editor-controls legend{color:#bec8ff;font:700 12px/1.5 Arial;margin:12px 0 6px}
.studio-editor .editor-controls .selection-actions{gap:5px;padding-bottom:10px!important;border-bottom:1px solid #30343f!important}.studio-editor .selection-count{color:#b9c3e4!important}.studio-editor .editor-controls .paint-quick-image{display:grid;grid-template-columns:1fr 1fr;gap:8px}.studio-editor .editor-controls .paint-quick-image label{width:100%!important}.studio-editor .paint-properties{margin-bottom:12px!important}.studio-editor .selection-format{border-color:#343a49;border-radius:7px}.studio-editor .element-navigator{border-bottom:1px solid #30343f;padding-bottom:8px}.studio-editor .editor-controls .element-layer-menu{background:transparent!important;border-color:#30343f!important}.studio-editor .editor-controls .text-preset-grid button{background:#222633;color:#e8ebf6;border-color:#373f54}
.studio-editor .studio-context-rail{position:fixed;top:calc(var(--editor-toolbar-height,88px) + 6px);right:5px;bottom:31px;width:60px;display:flex;flex-direction:column;gap:6px;background:#111319;border:1px solid #282c38;border-radius:10px;padding:5px;box-sizing:border-box;overflow:auto}
.editor-mode .studio-editor .studio-context-rail button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:55px;padding:5px 1px;border:0;background:transparent;color:#aabaff;font-size:8px;gap:5px}.studio-editor .studio-context-rail svg{width:21px;height:21px}.studio-editor .studio-context-rail span{font-size:8px;letter-spacing:-.2px}
.studio-editor :is(.studio-contextbar,.studio-selected-media,.studio-action-grid,.studio-layer-actions,.studio-align){display:flex;flex-wrap:wrap;gap:6px}.studio-editor :is(.studio-selected-media,.studio-action-grid,.studio-align) button{flex:1 1 44%}.studio-editor .studio-selected-media svg,.studio-editor .studio-align svg{width:17px;height:17px;margin-right:5px;vertical-align:middle}.studio-editor [hidden]{display:none!important}
.studio-editor .studio-contextbar{position:fixed;z-index:80;max-width:calc(100vw - 400px);padding:5px;background:#202430f5;border:1px solid #505b7a;border-radius:12px;box-shadow:0 8px 24px #0006;justify-content:center}.editor-mode .studio-editor .studio-contextbar button{display:flex;align-items:center;gap:6px;background:transparent;border:0;padding:7px;font-size:11px}.studio-editor .studio-contextbar svg{width:16px;height:16px}
.studio-editor :is(.studio-context-rail,.studio-contextbar,.studio-selected-media,.studio-layer-actions,.studio-layer-list,.studio-align,.studio-view-actions) svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.studio-editor .studio-footer{position:fixed;bottom:0;left:0;right:0;height:25px;background:#111319;border-top:1px solid #2a2e3b;display:flex;align-items:center;justify-content:space-between;padding:0 14px;color:#9ba5bd;font:10px Arial}.studio-editor .studio-footer i{color:#9e9fff;font-style:normal;margin:0 8px}
.studio-editor .studio-upload{padding:12px;background:#212439;border:1px dashed #5e65a0;border-radius:9px;margin:12px 0}.editor-mode .studio-editor #upload-photo{width:100%;background:#9697ff;color:#111322;border:0;font-weight:700}.studio-editor .studio-upload p{font-size:11px!important}.studio-editor .image-library-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.studio-editor .library-item{min-width:0}.studio-editor .library-photo{display:flex!important;flex-direction:column;gap:7px;width:100%;min-width:0;padding:5px!important;text-align:left!important;overflow:hidden}.studio-editor .library-photo img{width:100%;height:82px;object-fit:cover;border-radius:5px;background:repeating-conic-gradient(#343842 0% 25%,#272b33 0% 50%) 50%/12px 12px}.studio-editor .library-photo span{font:11px/1.4 Arial;max-height:46px;overflow:hidden}.studio-editor .studio-remove-upload{font-size:9px!important;padding:4px!important;width:100%}.studio-editor .studio-check{display:flex!important;gap:8px;align-items:center}.studio-editor .studio-layer-actions button{font-size:11px;flex:1 1 40%}.studio-editor .studio-layer-actions svg{display:none}.studio-editor .studio-layer-list{display:grid;gap:5px;margin-top:12px}.studio-editor .studio-layer-list button{display:flex;align-items:center;gap:8px;text-align:left;min-width:0}.studio-editor .studio-layer-list svg{width:18px;height:18px;flex:none}.studio-editor .studio-layer-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-mode .studio-editor .studio-layer-list button[aria-pressed=true]{background:#343b5c;border-color:#8d9cef;color:#fff}
/* Background is underneath the authored content, independent of movable image layers. */
.editor-mode .studio-editor #live-preview{width:100%!important;align-self:stretch!important}
.editor-mode .studio-editor .preview-workspace{align-items:stretch!important;justify-content:flex-start!important}
.editor-mode .studio-editor .paint-ribbon,.editor-mode .studio-editor .paint-commandbar{background:transparent!important;border:0!important;box-shadow:none!important}
.editor-mode .studio-editor .studio-context-rail{z-index:90}
.editor-mode .studio-editor .studio-context-rail button{width:48px!important;min-height:42px!important;padding:5px 1px!important;border:0!important;background:transparent!important}
.editor-mode .studio-editor .studio-context-rail button span{display:block!important;font:9px/1.2 Arial!important;white-space:nowrap}
.editor-mode .studio-editor .paint-properties .element-toggles{height:auto!important;min-height:26px;display:flex;flex-wrap:wrap;align-items:center;width:100%;gap:6px!important}
.editor-mode .studio-editor .paint-properties .element-toggles label{display:flex!important;align-items:center;gap:5px;margin:3px 0!important;flex:1 1 45%;font-size:11px!important}
.editor-mode .studio-editor .paint-quick-text{height:auto!important;min-height:0!important;padding-bottom:8px}
.editor-mode .studio-editor .editor-controls button{background:#20232d!important;color:#e5e9f5!important;border-color:#383f50!important}
.editor-mode .studio-editor #element-align-buttons button[aria-pressed=true]{background:#45466e!important}
.editor-mode .studio-editor .paint-toolrail button[data-paint-tool=element],.editor-mode .studio-editor .paint-toolrail button[data-paint-tool=layout]{color:#aba4ff!important}
.editor-mode .studio-editor .paint-toolrail button[data-paint-tool=text],.editor-mode .studio-editor .paint-toolrail button[data-paint-tool=image]{color:#77c2ff!important}
.editor-mode .studio-editor .paint-toolrail button[data-paint-tool=color],.editor-mode .studio-editor .paint-toolrail button[data-paint-tool=function]{color:#6ce3bb!important}
.editor-mode .studio-editor .paint-toolrail button[data-paint-tool=shapes]{color:#ffc58c!important}
.demo-canvas.studio-page-background[data-background-panels=false] [data-editor-frame=panel]{opacity:0!important}
@media(max-width:1250px){.editor-mode .studio-editor .paint-shell{grid-template-columns:auto 1fr auto!important;grid-template-rows:auto auto!important}.studio-editor .paint-shell .paint-home{grid-column:1;grid-row:1}.studio-editor .paint-shell>.back-demo-gallery{grid-column:2;grid-row:1;justify-self:start}.studio-editor .paint-shell>.paint-final-actions{grid-column:3;grid-row:1}.studio-editor .paint-shell>.paint-ribbon{grid-column:1/3;grid-row:2}.studio-editor .paint-shell>.paint-page-tools{grid-column:3;grid-row:2}.studio-editor .paint-shell #reset-demo{display:none}.studio-editor .paint-commandbar{justify-content:flex-start}.editor-mode .studio-editor .paint-shell :is(button,select){font-size:11px;min-height:32px;padding:5px}.studio-editor .paint-shell #demo-page-select{width:140px}.studio-editor .studio-view-actions button{font-size:10px!important}}
@media(max-width:1000px){.editor-mode dialog.studio-editor.organized-editor{--inspector-width:235px}.studio-editor .paint-shell>.paint-ribbon{grid-column:1/-1;grid-row:2}.studio-editor .paint-shell>.paint-page-tools{grid-column:1/-1;grid-row:3}.studio-editor .paint-shell #reset-demo{display:block}.studio-editor .paint-commandbar{justify-content:center}.studio-editor .studio-contextbar{max-width:calc(100vw - 365px)}.studio-editor .studio-contextbar button span{font-size:10px}}
@media(max-height:600px){.studio-editor .studio-footer span:last-child{display:none}}
.editor-mode .studio-editor .paint-shell #reset-demo{display:block}
.editor-mode .studio-editor .paint-toolrail span{white-space:nowrap;font-size:9px!important}
.editor-mode .studio-editor .editor-controls .color-picker{background:#171a23!important;border-color:#343b4e!important;border-radius:8px}

/* Remove the original photo veil when the photo is deleted or moved into a background/frame. */
.demo-canvas .design-photo:has(img[data-element-key][aria-hidden="true"])::after{display:none!important}

.editor-mode .studio-editor .paint-toolrail .paint-group{display:contents!important}
.editor-mode .studio-editor .paint-shell :is(button,a.button,select):not(.paint-toolrail button){min-height:26px!important;height:26px!important;padding:3px 6px!important;font-size:11px!important;white-space:nowrap}
.editor-mode .studio-editor .paint-shell #preview-scale{height:26px!important;line-height:24px!important;min-width:38px}
.editor-mode .studio-editor .paint-shell .preview-zoom button{height:26px!important;width:26px!important}
.editor-mode .studio-editor .paint-shell .paint-commandbar{gap:4px}
.editor-mode .studio-editor .paint-shell .paint-home{width:82px;min-width:72px}
.editor-mode .studio-editor .paint-home img{width:78px}

/* Background paint controls: content opacity is independent. */
.background-opacity-controls{min-width:0;margin:12px 0;padding:12px;border:1px solid #35394a;border-radius:12px;background:#111319;color:#e8eaf2}
.background-opacity-controls legend{padding:0 6px;font-size:12px;font-weight:650;color:#c3bcff}
.background-opacity-controls label{display:grid;grid-template-columns:1fr auto;gap:8px;font-size:12px}
.background-opacity-controls input[type=range]{grid-column:1/-1;width:100%;margin:4px 0 8px;accent-color:#9c91ff}
.background-opacity-controls small{display:block;font-size:11px;line-height:1.45;color:#b7bdce;margin-bottom:10px}
.background-opacity-controls button{width:100%;min-height:32px;border-radius:8px}
