.layout-dialog{width:min(1500px,94vw);max-height:92vh;overflow:auto;padding:24px;border:1px solid #cbd5e1;border-radius:14px;background:#f8fafc;color:#172033;box-shadow:0 24px 80px #12213840}
.layout-dialog::backdrop{background:#10223a80}.layout-dialog header{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}.layout-dialog h2{margin:0 0 8px}.layout-dialog header p,.layout-help{color:#52627a}.layout-dialog form{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;margin:20px 0}.layout-dialog label{display:grid;gap:8px}.layout-dialog select,.layout-dialog button{font:inherit;padding:10px 14px;border:1px solid #a7b5c8;border-radius:7px;background:white;color:#152d4a;cursor:pointer}.layout-dialog button:hover{background:#e9f2ff}.layout-dialog button:focus-visible{outline:3px solid #2683eb;outline-offset:3px}.layout-previews{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(330px,100%),1fr));gap:16px}.layout-preview{min-width:0;background:#fff;border:1px solid #d6e0ec;border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:12px}.layout-preview h3{font-size:15px;margin:0}.layout-preview-image{height:360px;overflow:auto;display:grid;place-items:center}.layout-preview-image svg{width:100%;height:100%;min-width:0}.layout-preview button{background:#123e70;color:white}.layout-preview button:hover{background:#22558d}.layout-dialog details{margin-top:20px}.layout-dialog pre{white-space:pre-wrap;max-height:240px;overflow:auto;font-size:12px}.layout-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.layout-actions button{font:inherit;cursor:pointer}
@media(max-width:650px){.layout-dialog{padding:16px}.layout-preview-image{height:280px}}
.layout-dialog select,.layout-dialog button{height:auto;min-height:42px;line-height:1.4}.layout-preview .layout-zoom{background:white;color:#123e70;border-color:#c5d2e3}.layout-fullsize-canvas{overflow:auto;max-height:75vh;margin-top:16px}.layout-fullsize-canvas svg{max-width:none}
