#editor {min-width:0;--be-ink:#273b35;--be-line:#d1d2c8;--be-accent:#865031}
#editor [hidden] {display:none!important}
#editor .be-head, #editor .be-pager {display:flex;align-items:center}
#editor .be-head {justify-content:space-between;gap:1rem;margin-bottom:1rem}
#editor .be-head h2 {font:normal clamp(1.35rem,3vw,1.85rem)/1.13 Georgia,serif;letter-spacing:-.03em;color:var(--be-ink);margin:0}
#editor .be-pager {gap:.4rem}
#editor button, #editor select, #editor input {font:inherit;color:inherit;box-sizing:border-box}
#editor button {cursor:pointer}
#editor button:focus-visible, #editor input:focus-visible, #editor select:focus-visible {outline:3px solid #a36940;outline-offset:2px}
#editor .be-pager button, #editor .be-nav button, #editor .be-crop button {border:1px solid var(--be-line);background:#fffdf8;color:var(--be-ink);border-radius:6px;padding:.42rem .7rem;line-height:1.3}
#editor .be-pager button {font-size:1.15rem;min-width:2.55rem}
#editor .be-pager button:disabled {opacity:.36;cursor:default}
#editor .be-stage {display:grid;place-items:center;position:relative;overflow:hidden;min-height:clamp(205px,33vw,400px);background:#e6e5dc;padding:clamp(12px,2.8vw,30px);border:1px solid #deded4;border-radius:8px}
#editor .be-sheet {position:relative;width:100%;max-width:740px;aspect-ratio:2/1;box-shadow:0 8px 18px #30382826,0 1px 2px #30382817;background:#fffdf7}
#editor .be-sheet[data-kind=cover] {aspect-ratio:1;max-width:clamp(170px,29vw,335px)}
#editor .be-sheet canvas, #editor .be-cells {display:block;width:100%;height:100%;position:absolute;inset:0}
#editor .be-cell {position:absolute;border:0;border-radius:0;min-width:0;min-height:0;padding:0;margin:0;box-shadow:none;background:transparent;color:var(--be-ink);touch-action:none;cursor:grab}
#editor .be-cell:active {cursor:grabbing}
#editor .be-cell[aria-pressed=true] {outline:2px solid var(--be-accent);outline-offset:-2px;z-index:1}
#editor .be-cell:focus-visible {outline:3px solid #673820;outline-offset:-3px;z-index:2}
#editor .be-cell.be-empty {touch-action:manipulation;cursor:pointer;display:grid;place-items:center;background:#eeede5;color:#6d7165}
#editor .be-empty span {font:normal .85rem/1.2 Arial,sans-serif}
#editor .be-empty span::before {content:'+';display:block;font-size:1.8rem;font-weight:300;line-height:1.2;text-align:center}
#editor .be-fold {pointer-events:none;position:absolute;top:0;bottom:0;left:50%;width:1px;background:#35352d2b;z-index:3}
#editor [data-kind=cover] .be-fold {display:none}
#editor .be-hint {font:.85rem/1.4 Arial,sans-serif;color:#606960;margin:.7rem 0 1rem}
#editor .be-config {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:.75rem}
#editor .be-field {display:grid;gap:.35rem;font:600 .83rem/1.3 Arial,sans-serif;color:#36423b;margin:0;text-align:left;min-width:0}
#editor .be-field input:not([type=range]), #editor .be-field select {width:100%;min-height:38px;padding:.4rem .6rem;border:1px solid var(--be-line);border-radius:5px;background:#fffefa;font:normal .95rem/1.3 Arial,sans-serif}
#editor .be-field input[type=range] {width:100%;min-width:0;margin:0;accent-color:var(--be-ink)}
#editor .be-crop {display:flex;flex-wrap:wrap;align-items:center;gap:.65rem .85rem;margin-top:1rem}
#editor .be-crop label {flex:1 1 85px}
#editor .be-crop button {font:normal .82rem/1.4 Arial,sans-serif}
#editor .be-nav {display:flex;gap:.25rem;flex-wrap:wrap;margin:1.25rem 0 0;padding:.75rem 0 0;border-top:1px solid var(--be-line)}
#editor .be-nav button {font:normal .82rem/1.5 Arial,sans-serif;min-height:31px;padding:.22rem .42rem}
#editor .be-nav button[aria-pressed=true] {background:var(--be-ink);color:#fff;border-color:var(--be-ink)}
@media(max-width:520px) {
 #editor .be-config {grid-template-columns:1fr}
 #editor .be-stage {min-height:180px}
 #editor .be-crop {align-items:end}
 #editor .be-crop button {margin-top:.2rem}
 #editor .be-nav button {min-height:34px}
}
