.atelier-scope{--atelier-gold:#c9a86a;--atelier-gold-ink:#141210;--atelier-gold-soft:rgba(201,168,106,0.16);--atelier-panel:var(--surface-3);--atelier-panel-2:var(--surface-2);--atelier-canvas-bg:#131313;--atelier-danger:#e07856}[data-theme=light] .atelier-scope{--atelier-gold:#8a6d2b;--atelier-gold-soft:rgba(138,109,43,0.12);--atelier-canvas-bg:#e9e9e7;--atelier-danger:#b3261e}.atelier-scope .toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:#253a30;color:#fff;padding:11px 17px;border-radius:6px;opacity:0;pointer-events:none;transition:all .22s;z-index:1000;font-size:13px;box-shadow:0 4px 20px rgba(0,0,0,.2)}.atelier-scope .toast.show{opacity:1;transform:translate(-50%)}.atelier-scope .toast.error{background:#a84235}.atelier-scope .editor-shell{position:relative;height:calc(100dvh - 300px);min-height:620px;overflow:hidden;display:flex;flex-direction:column;background:var(--atelier-panel-2);border:1px solid var(--line);border-radius:10px}.atelier-scope .editor-topbar{height:58px;background:var(--atelier-panel);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 17px;gap:14px;z-index:5;flex-shrink:0}.atelier-scope .editor-brand{display:inline-flex;align-items:center;gap:9px;font-size:14px;font-weight:800;letter-spacing:.16em;color:var(--ink)}.atelier-scope .editor-brand .brand-mark{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#2f3932;color:#f5f2eb;font-size:17px;font-weight:700;padding-bottom:3px;letter-spacing:0}.atelier-scope .top-divider{height:25px;border-left:1px solid var(--line)}.atelier-scope .project-title-wrap{display:flex;flex-direction:column;min-width:170px}.atelier-scope .project-title-wrap input{border:0;background:transparent;font-size:13px;font-weight:600;outline:none;width:230px;color:var(--ink)}.atelier-scope .project-title-wrap span{font-size:9px;color:var(--muted);margin-top:4px}.atelier-scope .top-actions{margin-left:auto;display:flex;align-items:center;gap:7px}.atelier-scope .icon-button{width:30px;height:30px;border:0;background:transparent;color:var(--muted);border-radius:5px;font-size:18px;cursor:pointer}.atelier-scope .icon-button:hover{background:var(--atelier-panel-2);color:var(--ink)}.atelier-scope .icon-button.armed{background:var(--atelier-danger);color:#fff}.atelier-scope .zoom-label{width:42px;text-align:center;font-size:11px;color:var(--muted)}.atelier-scope .subtle-button,.atelier-scope .zoom-fit{border:0;background:transparent;border-radius:5px;color:var(--muted);font-size:11px;padding:8px;cursor:pointer}.atelier-scope .subtle-button:hover,.atelier-scope .zoom-fit:hover{background:var(--atelier-panel-2);color:var(--ink)}.atelier-scope .dimensions{font-size:10px;color:var(--muted);border-left:1px solid var(--line);padding-left:13px;margin:0 6px}.atelier-scope .button{border:0;border-radius:6px;padding:13px 18px;font-weight:600;display:inline-flex;gap:14px;align-items:center;justify-content:center;cursor:pointer}.atelier-scope .button-save{border:1px solid var(--line);background:transparent;color:var(--ink);padding:9px 14px;font-size:11px}.atelier-scope .button-save:hover{background:var(--atelier-panel-2)}.atelier-scope .editor-topbar .button-dark{font-size:11px;padding:10px 15px;background:var(--atelier-gold);color:var(--atelier-gold-ink)}.atelier-scope .editor-topbar .button-dark:hover{filter:brightness(1.08)}.atelier-scope .editor-topbar .button-dark:disabled{opacity:.55;cursor:wait}.atelier-scope .export-wrap{position:relative}.atelier-scope .export-menu{position:absolute;right:0;top:43px;background:var(--atelier-panel);min-width:206px;border:1px solid var(--line);border-radius:7px;box-shadow:0 12px 26px rgba(0,0,0,.35);padding:5px;z-index:10;opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .25s ease,transform .25s ease,visibility 0s linear .25s;pointer-events:none}.atelier-scope .export-menu.open{opacity:1;visibility:visible;transform:translateY(0);transition:opacity .25s ease,transform .25s ease,visibility 0s linear 0s;pointer-events:auto}.atelier-scope .export-menu button{display:block;border:0;background:transparent;color:var(--ink);width:100%;text-align:left;padding:10px;border-radius:5px;font-size:12px;cursor:pointer}.atelier-scope .export-menu button:hover{background:var(--atelier-panel-2)}.atelier-scope .export-menu small{display:block;color:var(--muted);margin-top:4px;font-size:10px}.atelier-scope .editor-layout{min-height:0;flex:1;display:grid;grid-template-columns:66px 258px minmax(270px,1fr) 286px;transition:grid-template-columns .25s ease}.atelier-scope .editor-layout.panel-closed{grid-template-columns:66px 0 minmax(270px,1fr) 286px}.atelier-scope .left-rail{background:var(--atelier-panel);border-right:1px solid var(--line);padding:8px 4px;gap:3px;z-index:3}.atelier-scope .left-rail,.atelier-scope .tool-tab{display:flex;flex-direction:column;align-items:center}.atelier-scope .tool-tab{border:0;background:transparent;width:58px;height:60px;border-radius:7px;justify-content:center;gap:4px;font-size:9px;color:var(--muted);cursor:pointer}.atelier-scope .tool-tab>span{font-size:21px;line-height:1;font-weight:600}.atelier-scope .tool-tab:hover{background:var(--atelier-panel-2);color:var(--ink)}.atelier-scope .tool-tab.active{background:var(--atelier-gold-soft);color:var(--atelier-gold)}.atelier-scope .rail-bottom{margin-top:auto}.atelier-scope .left-panel{background:var(--atelier-panel);border-right:1px solid var(--line);min-height:0;overflow-x:hidden;overflow-y:auto;padding:17px 15px;z-index:2;transition:opacity .25s ease,transform .25s ease,max-height .25s ease,padding .25s ease,visibility 0s linear 0s}.atelier-scope .left-panel.closed{opacity:0;visibility:hidden;border-right:0;transition:opacity .25s ease,transform .25s ease,max-height .25s ease,padding .25s ease,visibility 0s linear .25s}.atelier-scope .panel-heading,.atelier-scope .properties-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.atelier-scope .panel-heading h2,.atelier-scope .properties-heading h2{font-family:Fraunces,Georgia,serif;font-size:18px;margin:0;font-weight:600;color:var(--ink)}.atelier-scope .panel-heading .eyebrow,.atelier-scope .properties-heading .eyebrow{font-size:9px;margin:0 0 5px;letter-spacing:.15em;color:var(--muted);font-weight:700}.atelier-scope .panel-content{display:grid;grid-template-columns:1fr 1fr;gap:10px}@keyframes atelier-panel-fade{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.atelier-scope .panel-content.panel-swap{animation:atelier-panel-fade .25s ease}.atelier-scope .panel-search{grid-column:1/-1;width:100%;border:1px solid var(--line);border-radius:5px;padding:9px 10px;margin-bottom:4px;font-size:11px;outline:none;background:var(--atelier-panel-2);color:var(--ink)}.atelier-scope .panel-template{border:0;background:transparent;padding:0;text-align:left;color:var(--ink);cursor:pointer}.atelier-scope .panel-sample{height:108px;border-radius:5px;background:var(--sample-bg,#eee);display:grid;place-items:center;overflow:hidden}.atelier-scope .panel-sample span{width:54%;height:70%;background:var(--sample-main,#42584b);display:grid;place-content:center;text-align:center;color:var(--sample-text,#fff);font-size:10px;font-weight:700;white-space:pre-line;padding:8px}.atelier-scope .panel-template small{font-size:10px;display:block;margin:7px 2px 3px}.atelier-scope .action-card{grid-column:1/-1;border:1px solid var(--line);border-radius:6px;padding:13px;background:var(--atelier-panel)}.atelier-scope .action-card h3{margin:0 0 7px;font-size:12px;color:var(--ink)}.atelier-scope .action-card p{color:var(--muted);font-size:10px;line-height:1.6;margin:0}.atelier-scope .action-card button,.atelier-scope .panel-action{width:100%;border:1px solid var(--line);border-radius:5px;background:var(--atelier-panel);padding:10px;font-size:11px;text-align:center;color:var(--ink);margin:3px 0;cursor:pointer}.atelier-scope .action-card button:hover,.atelier-scope .panel-action:hover{background:var(--atelier-panel-2)}.atelier-scope .element-button{min-height:74px;border:1px solid var(--line);border-radius:5px;background:var(--atelier-panel);display:grid;place-content:center;text-align:center;gap:4px;color:var(--ink);font-size:10px;cursor:pointer}.atelier-scope .element-button span{font-size:23px}.atelier-scope .element-button:hover{border-color:var(--atelier-gold);background:var(--atelier-panel-2)}.atelier-scope .upload-drop{grid-column:1/-1;border:1px dashed var(--line);border-radius:7px;padding:25px 12px;text-align:center;color:var(--muted);line-height:1.6;font-size:11px;cursor:pointer}.atelier-scope .upload-drop strong{color:var(--ink);display:block}.atelier-scope .asset-thumb{width:100%;aspect-ratio:1;border:1px solid var(--line);border-radius:5px;object-fit:cover;cursor:pointer}.atelier-scope .background-colors{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.atelier-scope .background-colors button{aspect-ratio:1;border:1px solid var(--line);border-radius:50%;padding:0;cursor:pointer}.atelier-scope .workspace{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--atelier-canvas-bg)}.atelier-scope .workspace-toolbar{height:40px;padding:0 12px;display:flex;align-items:center;gap:5px;flex-shrink:0}.atelier-scope .workspace-hint{margin-left:auto;color:var(--muted);font-size:10px}.atelier-scope .canvas-viewport{flex:1;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;padding:38px}.atelier-scope .canvas-wrap{position:relative;flex:none;box-shadow:0 6px 25px rgba(0,0,0,.45);background:#fff}.atelier-scope .canvas-wrap .canvas-container{position:absolute!important;left:0;top:0}.atelier-scope .grid-overlay,.atelier-scope .safe-margin{display:none;position:absolute;inset:5%;pointer-events:none;z-index:2}.atelier-scope .safe-margin.visible{display:block;border:1px dashed var(--atelier-gold)}.atelier-scope .grid-overlay.visible{display:block;inset:0;background-image:linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 0),linear-gradient(180deg,rgba(255,255,255,.08) 1px,transparent 0);background-size:25px 25px}.atelier-scope .pages-bar{height:47px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:center;gap:10px;background:var(--atelier-panel);flex-shrink:0}.atelier-scope .page-list{display:flex;align-items:center;gap:7px}.atelier-scope .page-chip{border:1px solid var(--line);border-radius:4px;background:var(--atelier-panel);color:var(--muted);padding:5px 9px;font-size:10px;cursor:pointer}.atelier-scope .page-chip.active{border-color:var(--atelier-gold);color:var(--atelier-gold);background:var(--atelier-gold-soft)}.atelier-scope .page-rename-input{border:1px solid var(--atelier-gold);border-radius:4px;background:var(--atelier-panel);color:var(--ink);padding:5px 9px;font-size:10px;outline:none;width:130px}.atelier-scope .properties-panel{background:var(--atelier-panel);border-left:1px solid var(--line);overflow:auto;min-height:0;padding:17px 16px}.atelier-scope .selection-dot{width:7px;height:7px;border-radius:50%;background:var(--atelier-gold)}.atelier-scope .properties-content{display:flex;flex-direction:column;gap:13px}.atelier-scope .property-group{border-bottom:1px solid var(--line);padding-bottom:13px}.atelier-scope .property-title{font-size:10px;font-weight:700;color:var(--muted);margin-bottom:10px;display:flex;justify-content:space-between}.atelier-scope .field-row{display:flex;gap:8px;margin-bottom:8px}.atelier-scope .field{min-width:0;flex:1}.atelier-scope .field label{display:block;font-size:9px;color:var(--muted);margin-bottom:5px}.atelier-scope .field input,.atelier-scope .field select,.atelier-scope .field textarea{width:100%;height:31px;border:1px solid var(--line);border-radius:4px;padding:5px 7px;color:var(--ink);background:var(--atelier-panel-2);font-size:11px;outline:none}.atelier-scope .field input:focus,.atelier-scope .field select:focus{border-color:var(--atelier-gold)}.atelier-scope .field input[type=color]{padding:3px;height:31px}.atelier-scope .field input[type=range]{padding:0;accent-color:var(--atelier-gold)}.atelier-scope .field input[type=checkbox]{width:auto;height:auto}.atelier-scope .quick-actions{display:flex;gap:5px}.atelier-scope .quick-actions button{flex:1;background:var(--atelier-panel-2);border:0;border-radius:4px;padding:8px 3px;color:var(--ink);font-size:10px;cursor:pointer}.atelier-scope .quick-actions button:hover{background:var(--atelier-gold-soft)}.atelier-scope .properties-empty{font-size:11px;color:var(--muted);line-height:1.7;background:var(--atelier-panel-2);padding:12px;border-radius:5px}.atelier-scope .layers-section{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}.atelier-scope .layer-row{display:flex;align-items:center;gap:7px;margin:4px 0;border-radius:4px;background:var(--atelier-panel-2);padding:7px 6px;font-size:10px;color:var(--ink)}.atelier-scope .layer-row.selected{background:var(--atelier-gold-soft);color:var(--atelier-gold)}.atelier-scope .layer-row button{border:0;background:transparent;color:var(--muted);padding:0 2px;font-size:12px;cursor:pointer}.atelier-scope .layer-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.atelier-scope .layer-controls{display:flex}.atelier-scope .page-settings{display:flex;flex-direction:column;gap:10px}.atelier-scope .page-size-presets{display:grid;grid-template-columns:1fr 1fr;gap:6px}.atelier-scope .page-size-presets button{border:1px solid var(--line);border-radius:4px;background:var(--atelier-panel);padding:7px 3px;font-size:9px;color:var(--ink);cursor:pointer}.atelier-scope .page-size-presets button:hover{border-color:var(--atelier-gold)}.atelier-scope .design-list{grid-column:1/-1;display:flex;flex-direction:column;gap:8px}.atelier-scope .design-row{display:flex;align-items:center;gap:6px}.atelier-scope .design-open{flex:1;min-width:0;display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:7px;background:var(--atelier-panel);padding:6px;cursor:pointer;color:var(--ink);font:inherit;text-align:left}.atelier-scope .design-open:hover{border-color:var(--atelier-gold)}.atelier-scope .design-thumb{width:38px;height:38px;object-fit:cover;border-radius:4px;background:var(--atelier-panel-2);flex:none}.atelier-scope .design-meta{min-width:0;display:flex;flex-direction:column;gap:2px}.atelier-scope .design-meta strong{font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.atelier-scope .design-meta small{color:var(--muted);font-size:10px}.atelier-scope .design-action{flex:none;width:30px;height:30px;border:1px solid var(--line);border-radius:6px;background:var(--atelier-panel);color:var(--muted);font-size:13px;cursor:pointer}.atelier-scope .design-action:hover{color:var(--ink);border-color:var(--atelier-gold)}.atelier-scope .design-action.design-danger{color:var(--atelier-danger)}.atelier-scope .design-action.armed{width:auto;padding:0 8px;background:var(--atelier-danger);border-color:var(--atelier-danger);color:#fff;font-size:10px}.atelier-scope .atelier-error{font-size:13px;color:#ff9a8a;margin:0 0 12px}[data-theme=light] .atelier-scope .atelier-error{color:#b3261e}@media (max-width:1100px){.atelier-scope .editor-layout{grid-template-columns:60px 220px minmax(250px,1fr) 250px}.atelier-scope .editor-layout.panel-closed{grid-template-columns:60px 0 minmax(250px,1fr) 250px}.atelier-scope .editor-topbar{padding:0 9px;gap:8px}.atelier-scope .dimensions,.atelier-scope .zoom-fit{display:none}}@media (max-width:820px){.atelier-scope .editor-layout,.atelier-scope .editor-layout.panel-closed{grid-template-columns:58px minmax(220px,1fr) 245px}.atelier-scope .left-panel{position:absolute;left:58px;top:58px;bottom:0;width:235px;box-shadow:8px 0 25px rgba(0,0,0,.4)}.atelier-scope .left-panel.closed{transform:translateX(-16px)}.atelier-scope .workspace-hint{display:none}.atelier-scope .project-title-wrap input{width:150px}.atelier-scope .top-actions{gap:2px}}@media (max-width:600px){.atelier-scope .editor-shell{height:auto;min-height:0}.atelier-scope .editor-layout{display:flex;flex-direction:column}.atelier-scope .left-rail{flex-direction:row;width:100%;overflow-x:auto;padding:4px}.atelier-scope .rail-bottom{margin-top:0;margin-left:auto}.atelier-scope .tool-tab{width:52px;height:52px;flex:none}.atelier-scope .left-panel{position:static;width:100%;border-right:0;border-bottom:1px solid var(--line);max-height:300px}.atelier-scope .left-panel.closed{max-height:0;padding-top:0;padding-bottom:0;border-bottom:0}.atelier-scope .workspace{order:-1}.atelier-scope .canvas-viewport{padding:20px 10px;min-height:420px}.atelier-scope .properties-panel{border-left:0;border-top:1px solid var(--line)}.atelier-scope .workspace-toolbar{height:34px}.atelier-scope .pages-bar{height:40px}.atelier-scope .editor-topbar{height:52px;padding:0 7px;gap:5px}.atelier-scope .editor-brand{font-size:12px}.atelier-scope .top-divider{height:22px}.atelier-scope .project-title-wrap{min-width:0}.atelier-scope .project-title-wrap input{width:120px;font-size:11px}.atelier-scope .project-title-wrap span,.atelier-scope .top-actions>.icon-button:nth-child(2),.atelier-scope .top-actions>.top-divider,.atelier-scope .zoom-fit,.atelier-scope .zoom-label{display:none}.atelier-scope .button-save{padding:8px;font-size:9px}.atelier-scope .editor-topbar .button-dark{padding:8px 9px;font-size:10px}}.atelier-standalone-page{display:flex;height:100dvh;overflow:hidden}.atelier-standalone-main{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}@media (min-width:851px){.atelier-standalone-main{margin-left:64px}}.atelier-scope.atelier-standalone{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:var(--atelier-panel-2)}.atelier-scope.atelier-standalone .editor-shell{height:auto;flex:1;min-height:0;border:0;border-radius:0}