/* Editor layout overrides, loaded after shared themes. */
#editor{overflow:visible;min-width:0}#editor .editor-layout{grid-template-columns:minmax(320px,400px) minmax(0,1fr);align-items:start}#editor .editor-layout>*{min-width:0}#editor .preview-area{padding:20px;top:16px;order:initial;border-radius:0 0 14px 0}#editor .preview-heading{gap:12px;align-items:center;margin-bottom:16px}#editor .preview-heading>div{display:flex;flex-wrap:wrap;gap:5px}#editor .preview-heading button{min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);font-size:14px}#editor .preview-heading button.active{background:var(--teal);color:white;border-color:var(--teal)}.preview-stage{position:relative;width:100%;max-width:100%;min-height:480px;background:var(--surface-soft);overflow:hidden;border-radius:12px;border:1px solid var(--line)}#editor #preview{position:absolute;top:0;left:50%;margin-left:calc(var(--preview-width)/ -2);max-width:none;min-width:0;border:0;border-radius:0;transform-origin:top left;background:white}.preview-loading{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:24px;z-index:1;background:var(--surface);color:var(--muted)}#editor .preview-foot{line-height:1.5;text-align:left;font-size:15px;margin:16px 0}.editor-tabs,.preview-edit{display:none}body.preview-open{overflow:hidden}#editor .preview-expanded{position:fixed;inset:12px;z-index:1000;border:1px solid var(--line);border-radius:16px;background:var(--surface);display:flex;flex-direction:column;padding:16px;box-shadow:0 0 0 24px #0009}#editor .preview-expanded .preview-stage{flex:1;min-height:0}#editor .preview-expanded .preview-foot{margin:10px 0 0}#editor .preview-expanded .preview-edit{display:none}
@media(max-width:1100px){#editor .editor-layout{grid-template-columns:minmax(280px,340px) minmax(0,1fr)}}
@media(max-width:900px){#editor .editor-layout{display:block}#editor .editor-layout form{border-right:0;padding:20px}#editor .preview-area{position:static;order:initial;padding:12px;border-radius:0 0 14px 14px}#editor[data-editor-tab=preview] #customize{display:none}#editor[data-editor-tab=edit] .preview-area:not(.preview-expanded){display:none}.editor-tabs{display:flex;gap:8px;padding:12px 16px;position:sticky;top:0;z-index:5;background:var(--surface);border-bottom:1px solid var(--line)}.editor-tabs button{flex:1;min-height:48px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit}.editor-tabs button[aria-pressed=true]{background:var(--teal);color:white;border-color:var(--teal)}#editor .preview-edit{display:flex;justify-content:center;width:100%;font-size:16px;margin-top:16px}#editor .preview-heading>span{font-size:17px}#editor .preview-heading{align-items:start}#editor .preview-heading>div{width:100%}#editor .preview-heading button{flex:1;white-space:nowrap}#editor .preview-expanded{position:fixed;inset:6px;padding:12px}.preview-stage{min-height:480px}#editor .preview-expanded .preview-stage{min-height:0}}
@media(prefers-reduced-motion:reduce){#editor{scroll-behavior:auto}}
