#standard-rule-settings[open],#rule-library[open]{display:flex;flex-direction:column;height:min(90vh,950px);height:min(90dvh,950px);max-height:90dvh;overflow:hidden}
#standard-rule-settings>.editor-head,#standard-rule-settings>.editor-footer,#rule-library>.editor-head,#rule-library>.editor-footer{flex:0 0 auto;background:white}
#standard-rule-settings .standard-rules-body,#rule-library>.rules-body{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 25px}
.standard-rule-nav{display:flex;gap:6px;margin:0 0 18px;padding:4px;background:#f4f1f9;border-radius:12px}.standard-rule-nav button{flex:1;background:transparent;border:0;font-size:13px}.standard-rule-nav .active{background:white;color:#7047b8;font-weight:600}
.standard-rule-field{padding:16px 0;border-bottom:1px solid #ece6f4}.standard-rule-field h3{margin:0 0 10px;font-size:14px;color:#574168}.standard-rule-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.standard-rule-grid label{font-size:12px;color:#8d7b9e}.standard-rule-grid textarea{display:block;height:92px;margin-top:6px;font-size:13px}#standard-rule-style{height:95px}#standard-rule-name{display:block;width:100%}#standard-rule-error{font-size:12px;color:#7750ae}#standard-rule-settings .editor-footer{flex-wrap:wrap;gap:8px;font-size:12px}#standard-rule-settings .editor-footer span{margin-right:auto}
@media(max-width:650px){#editor .ota-view-tabs{flex-wrap:wrap}#editor .ota-view-tabs button{flex:1 1 auto;padding:9px 10px}#standard-rule-settings{width:96vw}.standard-rule-grid{grid-template-columns:1fr}#standard-rule-settings .standard-rules-body{padding:16px}#standard-rule-settings .editor-footer span{flex-basis:100%}}
