.base-editor-dialog{width:min(850px,calc(100vw - 24px));max-width:calc(100vw - 24px)}.base-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:22px}.base-grid-preview{min-width:0}.base-grid-preview svg{width:100%;background:#fcfcf8;border:1px solid #dce4d1;border-radius:10px;touch-action:none;cursor:crosshair;user-select:none;display:block}.base-grid-caption{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#88967a;margin-top:8px}.base-grid-caption span{display:inline-flex;align-items:center;gap:5px}.base-grid-caption i{display:inline-block;width:9px;height:9px;border:1px solid #bdc8b3;background:#b8c7a6}.base-grid-caption .cut-key{background:#f8eeee;border-color:#dcaea1}.base-grid-caption .obstacle-key{background:#d1847370;border-color:#c47762}.base-editor-controls h3{margin:0 0 8px}.base-editor-controls p{color:#8b957f;font-size:11px;line-height:1.6}.base-editor-controls>section+section{border-top:1px solid #e1e7d8;margin-top:17px;padding-top:17px}.base-editor-controls label{display:block;font-size:11px;color:#7d8e6a;margin:8px 0}.base-editor-controls select,.base-editor-controls input{width:100%;display:block;padding:8px;background:white;border:1px solid #dbe2d1;border-radius:7px;color:#4b6040;font:inherit;margin-top:5px}.base-editor-controls button{width:100%;font-size:11px;justify-content:center}.base-cell-coordinates{display:flex;gap:8px}.base-cell-coordinates label{flex:1;min-width:0}.base-editor-controls .outline-button{padding:9px}.base-editor-tally{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;margin:15px 0;color:#7d8e6c;font-size:11px}.base-editor-tally strong{color:#526b40}.base-edit-launch{margin-top:15px;border-top:1px solid #e1e6d7;padding-top:14px}.base-edit-launch button{width:100%;justify-content:center;font-size:11px;padding:10px}.base-edit-launch p{font-size:10px;color:#8c967f;line-height:1.6}.base-cell-warning{background:#fff5e4;border-radius:8px;padding:10px;font-size:11px!important}.base-editor-controls .button{background:#627c50;color:white}.base-editor-note{font-size:11px;line-height:1.6;color:#90997f}@media(max-width:650px){.base-editor-layout{grid-template-columns:1fr}.base-editor-controls{display:grid;grid-template-columns:1fr 1fr;gap:14px}.base-editor-controls>section+section{border:0;margin:0;padding:0}.base-editor-controls>section:last-child{grid-column:1/-1}.base-editor-controls p{font-size:10px}.base-editor-dialog .dialog-actions{position:sticky;bottom:-22px;background:#fffefbf5;margin:12px -8px -15px;padding:12px 8px;z-index:1}.base-editor-note{font-size:10px}}

@media(max-width:760px),(max-width:960px) and (max-height:500px){
 .base-editor-layout{grid-template-columns:minmax(0,1fr);gap:18px}
 .base-grid-caption{flex-wrap:wrap;justify-content:flex-start;gap:8px 14px;font-size:11px}
 .base-editor-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .base-editor-controls>section{min-width:0}
 .base-editor-controls>section+section{border:0;margin:0;padding:0}
 .base-editor-controls>section:last-child{grid-column:1/-1}
 .base-editor-controls h3{font-size:14px}
 .base-editor-controls p,.base-editor-controls label,.base-editor-note{font-size:12px}
 .base-editor-controls select,.base-editor-controls input{min-width:0;min-height:44px;font-size:16px}
 .base-editor-controls button{min-height:44px;font-size:13px;white-space:normal}
 .base-editor-tally{gap:8px;font-size:12px}
 .base-editor-dialog .dialog-actions{position:static;margin:20px 0 0;padding:0;background:transparent}
}
@media(max-width:480px){
 .base-editor-controls{grid-template-columns:minmax(0,1fr)}
}
