#dialog[data-kind="rules"]{width:min(1060px,94vw)}
.custom-rule-heading,.custom-rule-editor-heading,.custom-rule-row{display:flex;align-items:center;justify-content:space-between;gap:20px}
.custom-rule-heading{padding:4px 0 20px}.custom-rule-heading h3{font-size:25px;letter-spacing:-.5px;margin:7px 0}.custom-rule-heading p,.custom-rule-boundary p{color:var(--muted,#768194);font-size:15px;line-height:1.6;margin:6px 0}
.custom-rule-kicker{font-size:11px;letter-spacing:1.6px;color:#6f829e;font-weight:650}.custom-rule-status{color:#6b778b;font-size:14px;line-height:1.6;min-height:23px;margin-bottom:5px}.custom-rule-refresh{font-size:13px;margin:0 0 18px!important;padding:7px 12px!important}.rule-error{color:#b6413b!important}
.custom-rule-list{display:grid;gap:10px}.custom-rule-row{flex-wrap:wrap;padding:18px 20px;border:1px solid #dfe6ef;border-radius:20px;background:#f7f9fc;transition:background .18s,opacity .18s}.custom-rule-row.is-disabled{background:#fafbfc;color:#6f7c8e}.custom-rule-row-copy{min-width:0;flex:1}.custom-rule-row-copy>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.custom-rule-row-copy b{overflow-wrap:anywhere;font-size:17px}.custom-rule-row-copy p{font-size:14px;color:#728097;margin:7px 0}.custom-rule-row-copy small{font-size:12px;color:#8a95a7}.custom-rule-mode,.custom-rule-state{font-size:11px!important;padding:4px 8px;border-radius:8px;background:#e9eff9;color:#51739e}.custom-rule-state{background:#edf4ee;color:#568367}.is-disabled .custom-rule-state{color:#8590a0;background:#edf0f4}.custom-rule-row-actions{display:flex;gap:7px;flex-wrap:wrap}.custom-rule-row-actions button{padding:10px 13px!important;font-size:13px!important}.custom-rule-delete{color:#b75b54!important}.custom-rule-readonly{color:#8b96a6;font-size:12px}.custom-rule-confirm{width:100%;display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid #e3e8ef;padding-top:14px;font-size:14px}.custom-rule-confirm span{flex:1}
.custom-rule-empty{text-align:center;padding:36px 20px;border:1px dashed #dce4ef;border-radius:22px;background:#fafbfd}.custom-rule-empty>span{display:block;margin:0 auto 12px;width:46px;height:46px;background:#edf3fc;border-radius:14px;font-size:31px;color:#7091bd}.custom-rule-empty b{display:block;font-size:17px;color:#465974}.custom-rule-empty p{font-size:14px;color:#8792a4;line-height:1.7;max-width:470px;margin:10px auto}
.custom-rule-editor{margin-top:20px;padding:24px;border:1px solid #ceddf1;border-radius:24px;background:linear-gradient(145deg,#f8fbff,#fff 55%);box-shadow:0 12px 32px #496f9d0a}.custom-rule-editor-heading{margin-bottom:22px}.custom-rule-editor-heading small{font-size:12px;color:#6d86a7}.custom-rule-editor-heading h4{font-size:21px;letter-spacing:-.4px;margin:6px 0 0}.custom-rule-editor-heading button{width:42px;height:42px;padding:0!important;font-size:24px}.custom-rule-field{display:block;margin:16px 0;color:#43526a;font-size:14px;font-weight:600}.custom-rule-field input,.custom-rule-field select{display:block;width:100%;margin-top:9px;font-size:16px!important;padding:14px 16px!important;border-radius:14px!important;border:1px solid #dce4ef;background:#fff;color:#263750;min-height:52px;box-sizing:border-box}.custom-rule-field small{font-weight:400;color:#8994a4;margin-left:8px}.custom-rule-mode-label{font-size:14px;font-weight:600;color:#43526a;margin:20px 0 10px}.custom-rule-segment{display:grid;grid-template-columns:1fr 1fr;gap:7px;background:#eaf0f8;border:1px solid #e3eaf4;padding:6px;border-radius:18px}.custom-rule-segment button{background:transparent;border-color:transparent!important;border-radius:13px!important;padding:12px 18px!important;display:flex;flex-direction:column;gap:6px;align-items:center;min-height:68px;box-shadow:none;transition:background .18s,box-shadow .18s,transform .16s}.custom-rule-segment button[aria-pressed="true"]{background:#fff!important;box-shadow:0 3px 10px #415b7e16;color:#1677df}.custom-rule-segment b{font-size:16px}.custom-rule-segment span{font-size:12px;font-weight:400;color:#8693a5}.custom-rule-mode-help{font-size:13px;line-height:1.8;color:#71829b;margin:11px 4px 18px}.custom-rule-scope{display:flex;gap:12px;align-items:center;padding:14px 16px;background:#f0f6ff;border-radius:14px;color:#5b7da9;font-size:13px}.custom-rule-scope>span:first-child{font-size:23px}.custom-rule-scope small{display:block;color:#8a9db6;margin-top:6px;font-size:12px}.custom-rule-editor-actions{display:flex;justify-content:flex-end;gap:10px;margin:22px 0 16px}.custom-rule-editor-actions button{font-size:14px!important;padding:13px 20px!important}
.custom-rule-preview{background:#f6f8fb;border-radius:18px;padding:18px;color:#677992;font-size:14px;line-height:1.7}.custom-rule-preview-summary{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;margin-bottom:12px}.custom-rule-preview-summary b{color:#395f93}.custom-rule-preview-summary span,.custom-rule-preview-note{font-size:12px;color:#8b98aa}.custom-rule-preview-item{padding:16px 0;border-top:1px solid #e3e9f0}.custom-rule-preview-item>b{color:#3e516d}.custom-rule-preview-item>small{display:block;color:#8b99ac;font-size:12px;margin:4px 0 10px}.custom-rule-comparison{display:grid;grid-template-columns:1fr 1fr;gap:10px}.custom-rule-comparison section{min-width:0;background:#fff;border:1px solid #e8edf4;border-radius:13px;padding:12px}.custom-rule-comparison section:last-child{border-color:#d6e4f7;background:#fafdff}.custom-rule-comparison small{color:#879ab4;font-size:11px}.custom-rule-comparison p{color:#52657f;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.custom-rule-comparison em{font-size:12px;color:#b88b45;font-style:normal}.custom-rule-protected{padding:14px;background:#fcf8f0;border-radius:13px;color:#94774d;margin-top:14px}.custom-rule-protected p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.custom-rule-sample{background:#eaf2fd;border-radius:13px;padding:13px;margin:12px 0;color:#627fa8}.custom-rule-sample p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;margin-bottom:0}.custom-rule-boundary{margin:22px 0 30px;padding:18px 20px;border-radius:18px;background:#f7f9fc;border:1px solid #e6ebf2}.custom-rule-boundary b{color:#617693;font-size:14px}.custom-rule-boundary p{font-size:13px}.custom-rule-builtin-title{font-size:19px;margin:28px 0 12px}.custom-rule-builtin-note{font-size:13px;color:#8793a5;margin-bottom:18px}
#dialog[data-kind="rules"] button:active:not(:disabled){transform:scale(.975)}#dialog[data-kind="rules"] button:focus-visible,#dialog[data-kind="rules"] input:focus-visible,#dialog[data-kind="rules"] select:focus-visible{outline:3px solid #81b5ff;outline-offset:3px}
@media(max-width:700px){.custom-rule-heading{gap:12px;align-items:flex-start}.custom-rule-heading h3{font-size:22px}.custom-rule-heading p{font-size:13px}.custom-rule-heading>.primary{font-size:13px;padding:12px!important;white-space:nowrap}.custom-rule-row{padding:16px;gap:12px}.custom-rule-row-actions{width:100%;justify-content:flex-end}.custom-rule-editor{padding:17px}.custom-rule-comparison{grid-template-columns:1fr}.custom-rule-editor-actions{flex-wrap:wrap}.custom-rule-editor-actions button{flex:1;min-width:120px}.custom-rule-boundary{padding:16px}.custom-rule-field small{display:block;margin:5px 0}}
@media(prefers-reduced-motion:reduce){#dialog[data-kind="rules"] *,#dialog[data-kind="rules"] button{transition:none!important;scroll-behavior:auto!important}}
