/* Seating workspace only */
body:has(#editor) main{max-width:1720px;padding-inline:clamp(10px,2vw,28px)}
#editor{grid-template-columns:260px minmax(0,1fr);gap:12px;align-items:start}
#editor .tools{background:#fff;gap:8px;padding:12px;max-height:calc(100vh - 36px);overflow:auto;position:sticky;top:12px}
#editor .tools h3{font-size:16px;margin-bottom:2px}
#editor .tools details{border:1px solid #e2e5ed;border-radius:8px;padding:10px;background:#f9fafc}
#editor .tools details summary{margin:0;cursor:pointer}
#editor .tools details[open] summary{margin-bottom:9px}
#editor .tools .fields{gap:8px}
#editor .tools button,#editor .canvas-bar button{font-size:12px;padding:7px 9px}
#editor .canvas-wrap{position:sticky;top:12px;background:white;box-shadow:0 5px 24px #1820420b;overflow:hidden}
#editor .canvas-bar{padding:10px;gap:6px;background:#fff}
#editor .canvas-bar span{font-weight:700;color:#526079;min-width:105px}
#editor .canvas-wrap svg{height:clamp(370px,65vh,800px);width:100%;min-height:0;background-color:#f9fafc;background-image:radial-gradient(#d9dee9 1px,transparent 1px);background-size:20px 20px}
#editor .editor-help{font-size:12px;padding:9px 12px;color:#58657a;background:#fff;border-block-start:1px solid #edf0f5}
#editor #delete{color:#a52b32}
@media(max-width:850px){#editor{grid-template-columns:1fr}#editor .tools{position:static;max-height:none;display:flex}#editor .canvas-wrap{position:static;grid-row:1}#editor .canvas-wrap svg{height:clamp(330px,50vh,500px)}}
.release-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:6px;margin:12px 0}.release-seat{border:1px solid #e2e5ed;border-radius:7px;padding:8px;display:flex;flex-direction:row;align-items:center;gap:6px;font-size:12px}.release-seat input{width:auto}.release-seat:has(input:checked){outline:2px solid var(--accent);background:#f0eefb}.release-seat small{font-size:11px}.release-seat[data-state=closed]{background:#fff4df}.release-seat[data-state=booked],.release-seat[data-state=blocked],.release-seat[data-state=held]{opacity:.65}.release-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.release-tools button{font-size:13px}.release-map{width:100%;height:clamp(280px,48vh,540px);background:#f7f8fa;border:1px solid #e2e5ed;border-radius:10px;touch-action:manipulation}
#release-date-wrap[hidden]{display:none}

#editor{grid-template-columns:minmax(0,1fr) 290px}#editor .tools{grid-column:2;grid-row:1}#editor .canvas-wrap{grid-column:1;grid-row:1}#editor .tools [hidden]{display:none!important}#editor .tools section{display:grid;gap:9px}#editor .tool-tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid #e1e5ed;padding-bottom:8px}#editor .tool-tabs button[aria-pressed=true]{background:#6154b0;color:white}#editor .canvas-wrap svg{height:clamp(440px,72vh,950px)}@media(max-width:850px){#editor{grid-template-columns:1fr}#editor .tools{grid-column:1;grid-row:2}#editor .canvas-wrap{grid-column:1;grid-row:1}}

#release-threshold-wrap[hidden],#price-editor[hidden]{display:none!important}
#number-direction-preview svg{display:block;height:100px;width:100%;background:none}

body.editor-expanded #editor{position:fixed;inset:0;z-index:1000;background:#f1f3f8;padding:12px;overflow:auto;grid-template-columns:minmax(0,1fr) 300px}body.editor-expanded #editor .canvas-wrap svg{height:calc(100vh - 150px)}#editor .tools input[type=color]{height:34px;padding:3px}#editor .canvas-wrap #map{touch-action:none}@media(max-width:850px){body.editor-expanded #editor{grid-template-columns:1fr}body.editor-expanded #editor .canvas-wrap svg{height:55vh}}
