.modal-overlay{position:fixed;inset:0;z-index:1000;background:#15213270;display:flex;align-items:center;justify-content:center;padding:16px}.eq-dialog{width:620px;max-width:100%;max-height:90dvh;overflow:auto;background:white;border:1px solid #ccd4e1;border-radius:8px;box-shadow:0 12px 45px #0003}.dialog-title{display:flex;align-items:center;gap:12px;padding:12px 18px;background:#edf1f7;font-weight:600}.dialog-close{margin-left:auto;font-size:22px;padding:0 10px}.eq-body{padding:16px}.eq-tabs,.eq-toolbar{display:flex;gap:4px;flex-wrap:wrap}.eq-tab{font-size:14px;padding:6px 10px;border:0;border-radius:3px}.eq-tab-active{background:#dce7fc;color:#244db3}.eq-toolbar{min-height:90px;background:#f6f7f9;padding:8px;margin:8px 0}.eq-toolbar-btn{padding:4px 8px;min-width:36px;min-height:36px}.eq-search-input{width:100%;padding:8px;border:1px solid #ccd4df;border-radius:4px}.eq-preview{min-height:100px;overflow:auto;padding:18px;margin:12px 0;border:1px solid #ddd;display:flex;align-items:center;justify-content:center}.eq-script{min-height:110px;height:110px}.eq-script-wrap{position:relative}.eq-autocomplete{position:absolute;background:white;z-index:2;box-shadow:0 3px 12px #0003;max-height:160px;overflow:auto;bottom:100%;min-width:220px}.eq-ac-item{padding:4px 12px;font-size:14px;cursor:pointer}.eq-ac-selected{background:#e0ebff}.eq-ac-name,.eq-ac-group{margin-left:12px;color:#677385}.eq-search-results{display:flex;flex-wrap:wrap;gap:4px}.eq-search-result-btn{font-size:13px}.eq-sr-name{margin-left:8px}.dialog-footer{display:flex;justify-content:flex-end;gap:8px;padding:0 16px 16px}.dialog-btn-primary{background:#295ecd;color:white}.eq-preview svg,.equation svg{max-width:none;flex-shrink:0}.eq-props-row[hidden],.eq-mode-btn[hidden]{display:none!important}.eq-latex-hint{display:none!important}@media(max-width:600px){.eq-body{padding:10px}.eq-tab{padding:5px 6px;font-size:13px}.eq-dialog{max-height:94dvh}.eq-preview{min-height:80px}}
