.assembly-editor{margin:12px 0;padding:16px;border:1px solid #bed4ce;border-radius:16px;background:#fff;color:#20362f}.assembly-editor [hidden]{display:none!important}.assembly-editor h2{font-size:20px;margin:0 0 8px}.assembly-editor button,.assembly-editor select{min-height:44px;padding:8px 12px;border:1px solid #a9c7bd;border-radius:9px;background:#f4f8f6;color:#173d32;font:inherit;cursor:pointer}.assembly-editor button:disabled{opacity:.45;cursor:default}.assembly-editor button[aria-pressed=true]{background:#087f70;color:white}.assembly-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.assembly-toolbar label{display:grid;gap:4px;font-size:13px}.assembly-scope{overflow-wrap:anywhere;font-size:13px;color:#426259}.assembly-list,.assembly-library{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;margin:10px 0;max-height:300px;overflow:auto}.assembly-card{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:8px;text-align:left}.assembly-card img{width:52px;height:52px;object-fit:contain}.assembly-library{max-height:360px}.assembly-list .assembly-card[aria-pressed=true]{border:2px solid #087f70}.assembly-message{min-height:24px;font-size:14px}.assembly-editor output{font-variant-numeric:tabular-nums;font-size:13px}.assembly-editing #viewer canvas{touch-action:none}.assembly-dirty{color:#965a0b}.assembly-editor .primary{background:#087f70;color:white}.assembly-editor .danger{color:#9b3025}.assembly-editor details summary{cursor:pointer;padding:12px;font-weight:600}@media(max-width:600px){.assembly-editor{padding:12px}.assembly-toolbar button{flex:1 1 auto}.assembly-list,.assembly-library{grid-template-columns:1fr}.assembly-library{max-height:260px}.viewer-host{min-height:360px}}
.assembly-editing{overflow:hidden}.assembly-editing .viewer-panel{position:fixed;inset:12px;top:12px;z-index:1000;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);grid-template-rows:minmax(0,1fr) auto auto;gap:0;overflow:hidden;box-shadow:0 8px 50px #163b3640}.assembly-editing #viewer{grid-column:1;grid-row:1;height:100%;min-height:0}.assembly-editing .viewer-toolbar{grid-column:1;grid-row:2}.assembly-editing .viewer-note{display:none}.assembly-editing .viewer-status{grid-column:1;grid-row:3}.assembly-editing .assembly-editor{grid-column:2;grid-row:1/4;margin:0;border-radius:0;overflow:auto}.assembly-editing .constructor-controls{visibility:hidden}@media(max-width:700px){.assembly-editing .viewer-panel{inset:0;grid-template-columns:1fr;grid-template-rows:38dvh auto minmax(0,1fr);border-radius:0}.assembly-editing .assembly-editor{grid-column:1;grid-row:3}.assembly-editing .viewer-status{display:none}}
.assembly-editing .viewer-panel{height:calc(100dvh - 24px);min-height:0;align-self:stretch}.assembly-editing .assembly-editor{min-height:0}.assembly-editing #viewer{min-width:0}.assembly-keyboard{font-size:12px;color:#4c665d}@media(max-width:700px){.assembly-editing .viewer-panel{height:100dvh}}
