#unified-rule-library[open]{display:flex;flex-direction:column;width:min(900px,96vw);height:min(90vh,950px);height:min(90dvh,950px);max-height:90dvh;overflow:hidden;background:white}
.unified-rule-head{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:22px 25px;border-bottom:1px solid #eee8f5}
.unified-rule-head small{display:block;color:#9b8aa9;font-size:11px;letter-spacing:1.5px;margin-bottom:6px}.unified-rule-head h2{font-size:19px;margin:0;color:#382644}
.unified-rule-head button{width:34px;height:34px;padding:0;border:0;border-radius:50%;background:#f3eef9;color:#775f8e;font-size:23px;line-height:1}
.unified-rule-tabs{display:flex;flex:0 0 auto;gap:4px;margin:18px 25px 0;padding:4px;background:#f5f1fa;border-radius:12px}
.unified-rule-tabs button{flex:1;border:0;background:transparent;color:#94829f;font-size:13px;padding:10px 12px;border-radius:9px}
.unified-rule-tabs button[aria-selected=true]{background:white;color:#7046b6;font-weight:600;box-shadow:0 2px 5px #47204c07}
.unified-rule-panel{flex:1 1 0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
#unified-rule-library [hidden]{display:none!important}
#unified-rule-library .unified-rule-panel>dialog{display:contents!important}
#unified-rule-library .unified-rule-panel .editor-head,#unified-rule-library .standard-rule-nav{display:none!important}
#unified-rule-library .standard-rules-body,#unified-rule-library .rules-body{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 25px}
#unified-rule-library .editor-footer{flex:0 0 auto;background:white;display:flex;flex-wrap:wrap;gap:8px;font-size:12px;padding:16px 25px}
#unified-rule-library .editor-footer span{margin-right:auto}
#unified-rule-library .unified-rule-panel button,#unified-rule-library .unified-rule-panel input,#unified-rule-library .unified-rule-panel select,#unified-rule-library .unified-rule-panel textarea{font-family:inherit;font-size:13px;line-height:1.6}
#unified-rule-library .unified-rule-panel .label,#unified-rule-library .standard-rule-grid label{font-size:13px;line-height:1.6}
#unified-rule-library .unified-rule-panel h3{font-size:14px}
#unified-rule-library .rules-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
#unified-rule-library .rules-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 12px;border-radius:9px;white-space:nowrap;font-weight:400}
#unified-rule-library #standard-profile-select{display:block;width:100%;margin-top:6px}
#unified-rules-loading{flex:1;margin:0;padding:35px 25px;font-size:13px;color:#9a88aa}
@media(max-width:650px){.unified-rule-head{padding:18px 16px}.unified-rule-tabs{margin:14px 16px 0}#unified-rule-library .standard-rules-body,#unified-rule-library .rules-body{padding:16px}#unified-rule-library .editor-footer{padding:12px 16px}#unified-rule-library .editor-footer span{flex-basis:100%}}
