.model-workspace{margin:0;background:#f8f5fc;color:#2e223e;font:15px system-ui,sans-serif}
.model-workspace *{box-sizing:border-box}
.model-workspace [hidden]{display:none!important}
.model-workspace a{color:#623b87}
.model-workspace-header{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:15px clamp(16px,5vw,72px);background:#fff;border-bottom:1px solid #e8dff0}
.model-workspace-brand{font-weight:900;letter-spacing:.04em;text-decoration:none}
.model-workspace-header nav{display:flex;flex-wrap:wrap;gap:16px;font-size:13px}
.model-workspace-main{max-width:1320px;margin:auto;padding:22px clamp(12px,3vw,36px)}
.model-workspace h1{font-size:clamp(25px,4vw,40px);margin:0 0 14px}
.model-workspace-actions{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap}
.model-workspace-actions>label:not(.model-file){display:flex;align-items:center;gap:6px;font-size:13px}
.model-workspace button,.model-file,.model-workspace select{font:inherit;border:1px solid #d9c8e8;border-radius:4px;background:#fff;color:#4b3264;padding:7px 10px}
.model-workspace button,.model-file{cursor:pointer}.model-workspace button:disabled{opacity:.5;cursor:default}
.model-file{position:relative;font-size:13px}.model-file input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.model-file:focus-within{outline:2px solid #7553a8}
.model-workspace button.primary,.model-workspace button[aria-pressed=true]{background:#654395;border-color:#654395;color:#fff}
.model-workspace .modeling-heading h2,.model-workspace .modeling-heading p,.model-workspace .modeling-options h3{margin:0}
.model-workspace #modeling-dialog{width:100%;height:clamp(570px,70dvh,820px);max-height:none;display:flex;flex-direction:column;border:1px solid #e2d7eb;border-radius:6px;background:#fff}
.modeling-slot{display:flex;gap:6px;align-items:center;font-size:13px}
#model-workspace-status,.model-workspace-note{font-size:13px;color:#634e76}
#model-workspace-status:empty{margin:0 0 12px}
@media(max-width:720px){
 .model-workspace #modeling-dialog{height:auto}
 .model-workspace .modeling-body{display:flex;flex-direction:column-reverse}
 .model-workspace .modeling-stage canvas{height:clamp(250px,50vw,380px);flex:none}
 .model-workspace .modeling-options{display:grid;grid-template-columns:1fr 1fr;border:0}
 .model-workspace .modeling-footer{display:grid}
}
