/* Extend the existing workspace palette. The artwork, rather than chrome, owns the canvas. */
.shell.editing-shell{grid-template-columns:minmax(0,1fr)}.editing-shell>.sidebar{display:none}
.editor-align{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.editor-align button{font:inherit;font-size:12px;padding:9px 4px;min-height:38px;border:1px solid var(--line);border-radius:4px;background:#fff}.editor-align button:hover{background:#eeebfa}.editor-align button:disabled{opacity:.45}.editor-snap-toggle{margin:0;font-size:12px}.editor-stage [data-snap-guides] path{fill:none;stroke:#c16d1e;stroke-width:1.5;stroke-dasharray:4 3;vector-effect:non-scaling-stroke}@media(max-width:700px){.editor-align button{min-height:44px}}
@media(max-width:700px){.editor-snap-toggle,.editor-properties .editor-check{min-height:44px}}
.design-heading,.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.design-heading h2,.design-section h3{margin:0 0 8px}.design-section{margin:32px 0}.design-list{border-top:1px solid var(--line)}.design-row{display:grid;grid-template-columns:1fr auto auto;width:100%;gap:24px;text-align:left;padding:20px 8px;border-bottom:1px solid var(--line)}.design-row:hover{background:#efedf8}.design-row span{color:var(--muted);font-size:13px}.design-categories{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.design-categories button,.editor-page-tabs button{padding:9px 13px;border:1px solid var(--line);border-radius:6px;background:#fff;color:#474356}.design-categories button[aria-pressed=true],.editor-page-tabs button[aria-pressed=true]{background:#6650d7;color:#fff;border-color:#6650d7}.design-template-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.design-template{text-align:left;min-width:0}.design-thumb{display:block;max-height:260px;width:100%;background:#e4e5eb;border:1px solid var(--line)}.design-template>span{display:block;padding:14px 0}.design-template strong,.design-template small{display:block}.design-template small{font-size:12px;color:var(--muted);margin-top:6px}
.editor-main{min-width:0}.editor-heading{align-items:flex-start;margin-bottom:16px}.editor-heading>div:first-child{flex:1;min-width:160px}.editor-heading #design-name{background:transparent;border:1px solid transparent;border-bottom-color:#d9d5e4;color:#282636;font-size:21px;font-weight:650;padding:8px 0;width:100%;max-width:420px}.editor-heading #design-name:focus{outline:2px solid #6650d7;outline-offset:2px}.editor-heading #design-save-status{display:block;color:var(--muted);font-size:12px;margin-top:8px;max-width:64ch}.editor-actions{display:flex;flex-wrap:wrap;gap:8px}.editor-actions .btn{font-size:12px;padding:10px 12px}.editor-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px;background:#fff;border:1px solid var(--line);border-radius:8px}.editor-toolbar button,.editor-mini-actions button,.design-history-panel button{padding:9px 10px;border:1px solid #d9d5e4;border-radius:5px;background:#fff;color:#373145;min-height:38px}.editor-toolbar button:hover,.editor-mini-actions button:hover,.design-history-panel button:hover{background:#eeebfa}.editor-toolbar label{font-size:12px}.editor-toolbar select{padding:8px;max-width:190px;border:1px solid var(--line);border-radius:5px;font:inherit;font-size:12px}.toolbar-divider{height:22px;width:1px;background:var(--line);margin:0 4px}.editor-note{font-size:12px;line-height:1.7;color:var(--muted);margin:12px 0}.editor-layout{display:grid;grid-template-columns:160px minmax(160px,1fr) 230px;border:1px solid var(--line);background:#fff;min-height:680px;border-radius:8px;overflow:hidden}.editor-layers,.editor-properties{padding:16px;min-width:0;overflow-y:auto;max-height:850px}.editor-layers{border-right:1px solid var(--line)}.editor-properties{border-left:1px solid var(--line)}.editor-layout h3{font-size:13px;margin:4px 0 16px}.editor-layer{display:flex;width:100%;text-align:left;align-items:start;flex-direction:column;gap:5px;padding:10px 8px;border-bottom:1px solid #eeecf4;overflow-wrap:anywhere;font-size:12px;min-height:40px}.editor-layer.selected{background:#efebfc;color:#4b3899}.editor-layer small{font-size:10px;color:var(--muted)}.editor-page-tabs{display:flex;flex-wrap:wrap;gap:5px}.editor-page-tabs button{font-size:11px;padding:7px}.editor-mini-actions{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}.editor-mini-actions button{font-size:11px;flex:1;padding:7px 4px;white-space:nowrap}.editor-stage{background:#e7e8ed;display:flex;justify-content:center;align-items:flex-start;padding:28px 18px;overflow:hidden;min-width:0}.editor-stage svg{display:block;width:100%;height:auto;max-height:780px;overflow:hidden;box-shadow:0 8px 22px #24253518;touch-action:none;user-select:none}.editor-stage svg [data-element-id]{cursor:move}.editor-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.editor-properties .field{margin-bottom:14px}.editor-properties .field label{font-size:11px;margin-bottom:6px}.editor-properties .field input,.editor-properties .field select,.editor-properties .field textarea{width:100%;min-width:0;padding:8px;font-size:12px}.editor-properties .field textarea{min-height:110px;resize:vertical}.editor-properties .field input[type=color]{height:35px;padding:3px}.editor-properties hr{border:0;border-top:1px solid var(--line);margin:22px 0}.editor-properties .sub{font-size:11px;line-height:1.7}.editor-check{display:flex;align-items:center;gap:8px;font-size:12px;margin:0 0 16px}.editor-warning{color:#8d441e;background:#fff3df;font-size:12px;padding:10px;line-height:1.6}.editor-assets{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.editor-assets button{min-width:0;text-align:left}.editor-assets img{width:100%;height:100px;object-fit:contain;background:#eee}.editor-assets span{font-size:11px;overflow-wrap:anywhere}.design-history-panel{margin-top:20px;padding:20px;background:#fff;border:1px solid var(--line);border-radius:8px}.design-history-row{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:10px 0;font-size:12px}.editor-toolbar button:disabled,.editor-mini-actions button:disabled,.design-history-panel button:disabled{opacity:.45;cursor:default}.editor-properties input:disabled,.editor-properties select:disabled,.editor-properties textarea:disabled{background:#f0eff3;color:#686475}.editor-main ::selection{background:#d9d1f5;color:#242034}
@media(max-width:1300px){.editor-layout{grid-template-columns:130px minmax(160px,1fr) 205px}.editor-layers,.editor-properties{padding:12px}.editor-heading{flex-wrap:wrap}.editor-stage{padding:22px 12px}}
@media(max-width:950px){.editor-layout{grid-template-columns:120px minmax(120px,1fr)}.editor-properties{grid-column:1/-1;border-left:0;border-top:1px solid var(--line);max-height:none}.editor-object-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.editor-object-fields>.field:first-child{grid-column:1/-1}.design-template-list{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-assets{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.editor-layout{grid-template-columns:minmax(0,1fr);min-height:0}.editor-stage{grid-row:1;min-height:280px;padding:18px 24px}.editor-stage svg{max-height:550px}.editor-layers{border-right:0;border-top:1px solid var(--line);max-height:280px}.editor-properties{grid-column:auto}.editor-object-fields{display:block}.editor-toolbar button,.editor-toolbar select,.editor-mini-actions button,.editor-actions .btn,.design-categories button,.editor-page-tabs button,.design-history-panel button{min-height:44px}.editor-toolbar select,.editor-properties .field input,.editor-properties .field select,.editor-properties .field textarea{font-size:16px}.editor-toolbar{gap:6px}.editor-heading{display:block}.editor-actions{margin-top:16px}.design-heading{display:block}.design-heading>.btn{margin-top:12px}.design-row{grid-template-columns:1fr;gap:7px}.design-template-list{gap:14px}.design-thumb{max-height:200px}.design-template strong{font-size:13px}.editor-assets{grid-template-columns:repeat(2,minmax(0,1fr))}.design-section .section-head{display:block}.design-section .search{margin-top:12px;width:100%}}
/* Catalog controls follow the existing editor palette and compact workspace rhythm. */
.design-template-filters{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 20px}.design-template-filters label{font-size:13px;color:#474356}.design-template-filters select{font:inherit;font-size:14px;min-height:40px;max-width:100%;padding:8px 12px;border:1px solid var(--line);border-radius:6px;background:#fff;color:#373145}.design-template-filters [role=status]{font-size:13px;color:#474356;margin-right:auto}.design-template-filters .btn{font-size:13px;min-height:40px}.design-template-filters .btn:disabled{opacity:.5;cursor:default}.design-template-filters :focus-visible,.design-categories button:focus-visible,.design-template:focus-visible{outline:2px solid #6650d7;outline-offset:3px}.design-template small{line-height:1.7}
@media(max-width:700px){.design-template-filters{gap:10px}.design-template-filters select,.design-template-filters .btn{min-height:44px;font-size:16px}.design-template-filters [role=status]{flex-basis:100%;order:3}.design-template-filters .btn{margin-left:auto}}
