/* Rule center presentation only. Shared rule authority and execution stay in existing modules. */
.app-shell:has(.rules-operations-page){--sidebar-width:224px;--topbar-height:64px;background:#f5f8fd}
.app-shell:has(.rules-operations-page) .page-container{padding:30px 32px 48px}
.app-shell #app .rules-operations-page{--org-ink:#425b7d;--org-text:#425b7d;--org-muted:#8c9fba;--org-line:#e3ebf6;--org-accent:#4965f1;max-width:none;min-width:0;color:var(--org-ink);font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;font-size:13px;line-height:1.8}
.app-shell #app .rules-operations-page .page-heading{margin:0 0 25px;padding:0;border:0;align-items:center;gap:20px}
.app-shell #app .rules-operations-page .page-heading .eyebrow{display:none}
.app-shell #app .rules-operations-page .page-heading h1{color:#253f62!important;font-size:29px!important;font-weight:650!important;letter-spacing:-.7px;line-height:1.5}
.app-shell #app .rules-operations-page .page-heading p:not(.eyebrow){margin:8px 0 0;color:#879bb9!important;font-size:14px;line-height:1.9}
.app-shell #app .rules-operations-page .button,.app-shell #app .rules-operations-page button.button-icon{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 13px;border:1px solid #e0e8f5;border-radius:7px!important;background:#fff!important;color:#7189ae!important;font-size:13px!important;font-weight:500;line-height:20px;white-space:nowrap;box-shadow:0 2px 5px #2a467405;cursor:pointer}
.app-shell #app .rules-operations-page .button-primary{color:#fff!important;background:#536cf5!important;border-color:#536cf5;box-shadow:0 3px 9px #4965f124}
.app-shell #app .rules-operations-page .button:hover:not(:disabled){background:#f2f6ff!important;border-color:#bdcdfa;color:#4965e9!important}
.app-shell #app .rules-operations-page .button-primary:hover:not(:disabled){color:#fff!important;background:#435ce5!important}
.app-shell #app .rules-operations-page button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.app-shell #app .rules-operations-page .rc-ui-icon{width:16px;height:16px;flex:none}
.app-shell #app .rules-operations-page :is(.rules-list-panel,.rules-flat-panel){margin:0 0 22px;border:1px solid #e2e9f5!important;border-radius:12px!important;background:#fff;box-shadow:0 3px 16px #243f6504;overflow:hidden;min-width:0}
.app-shell #app .rules-operations-page .rules-flat-panel>.panel-header{padding:21px 24px;gap:16px;border-bottom:1px solid #eaf0f7}
.app-shell #app .rules-operations-page :is(.panel-header h2,.panel-header h3){font-size:16px!important;font-weight:600!important;color:#4b6488!important;line-height:1.7;margin:0}
.app-shell #app .rules-operations-page .rules-flat-panel>p:not(.rules-empty){margin:0;padding:19px 24px;color:#8a9fb9;font-size:13px;line-height:1.9}
.app-shell #app .rules-operations-page .rules-flat-panel>h3{margin:0;padding:18px 24px 0;font-size:14px;color:#6881a6;font-weight:600}
.app-shell #app .rules-operations-page .rules-toolbar{padding:22px 24px;border-bottom:1px solid #e9eef7;gap:18px;align-items:center}
.app-shell #app .rules-operations-page .rules-filters{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap;padding:5px;border:1px solid #e7ecf4;border-radius:10px;background:#f3f5f9;max-width:100%}
.app-shell #app .rules-operations-page .rules-filters button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 16px;border:1px solid transparent;border-radius:7px;background:transparent;color:#69768b;font-size:14px;line-height:20px;font-weight:500;white-space:nowrap;cursor:pointer}
.app-shell #app .rules-operations-page .rules-filters button.active{color:#315dea;background:#fff;border-color:#e3e9f4;box-shadow:0 2px 5px #2035550c;font-weight:600}
.app-shell #app .rules-operations-page .rules-filters button:hover:not(.active){color:#3f608f;background:#eaf0fb}
.app-shell #app .rules-operations-page .rules-search{gap:10px;max-width:100%;min-width:0}
.app-shell #app .rules-operations-page .rules-search input{width:260px;flex:1;min-width:0}
.app-shell #app .rules-operations-page :is(input:not([type=checkbox]):not([type=radio]),textarea,select){box-sizing:border-box;min-height:40px;padding:10px 13px!important;border:1px solid #dfe7f5!important;border-radius:7px!important;color:#5e769a;background:#fff;box-shadow:0 2px 6px #283f5d03;font-family:inherit;font-size:13px!important;line-height:1.8;max-width:100%}
.app-shell #app .rules-operations-page :is(input,textarea)::placeholder{color:#a0aec4;font-weight:400}
.app-shell #app .rules-operations-page :is(input,textarea):focus{outline:0;border-color:#99adfa!important;box-shadow:0 0 0 3px #536cf510}
.app-shell #app .rules-operations-page .rules-search>.button{min-height:40px;padding:9px 16px;background:#f6f8ff!important;color:#6b83db!important}
.app-shell #app .rules-operations-page .rules-list-panel>.tenant-admin-table-wrap{margin:0;border:0;overflow:visible!important}
.app-shell #app .rules-operations-page .data-table{width:100%;min-width:0!important;table-layout:fixed;border-collapse:collapse}
.app-shell #app .rules-operations-page .data-table th{padding:16px 18px;background:#f6f8fd!important;color:#92a1ba!important;font-size:12px;font-weight:500;text-align:left;white-space:normal;border-bottom:1px solid #e8eef7}
.app-shell #app .rules-operations-page .data-table td{padding:23px 18px!important;min-width:0;color:#7188a7;font-size:13px;line-height:1.9;vertical-align:middle;overflow-wrap:anywhere;white-space:normal;border-bottom:1px solid #edf1f7}
.app-shell #app .rules-operations-page .data-table tbody tr:last-child td{border-bottom:0}
.app-shell #app .rules-operations-page .data-table tbody tr:hover td{background:#fafbff}
.app-shell #app .rules-operations-page .rules-list-panel th:first-child{width:26%;padding-left:24px}
.app-shell #app .rules-operations-page .rules-list-panel th:nth-child(2){width:20%}
.app-shell #app .rules-operations-page .rules-list-panel th:nth-child(3){width:17%}
.app-shell #app .rules-operations-page .rules-list-panel th:nth-child(4){width:15%}
.app-shell #app .rules-operations-page .rules-list-panel th:nth-child(5){width:10%}
.app-shell #app .rules-operations-page .rules-list-panel th:last-child{width:12%}
.app-shell #app .rules-operations-page .rules-list-panel td:first-child{padding-left:24px!important}
.app-shell #app .rules-operations-page .rc-rule-identity{display:flex;align-items:center;gap:12px;min-width:0}
.app-shell #app .rules-operations-page .rc-rule-identity strong{color:#526d92;font-size:14px;font-weight:600;line-height:1.8;overflow-wrap:anywhere}
.app-shell #app .rules-operations-page .rc-rule-icon{display:grid;place-items:center;flex:none;width:35px;height:38px;border:1px solid #e1e9fe;border-radius:8px;background:#f1f5ff;color:#829ad7}
.app-shell #app .rules-operations-page .rc-rule-icon.is-green{color:#74b19c;border-color:#e0f0ea;background:#f0f9f5}
.app-shell #app .rules-operations-page .rc-rule-icon.is-cyan{color:#6aabb9;border-color:#dff0f3;background:#eef9fb}
.app-shell #app .rules-operations-page .rc-rule-icon.is-amber{color:#c0a16e;border-color:#f3eadb;background:#fff9ef}
.app-shell #app .rules-operations-page .rc-rule-icon.is-purple{color:#a18ac8;border-color:#ece4f7;background:#f7f3fc}
.app-shell #app .rules-operations-page .rc-rule-icon.is-rose{color:#c38f9e;border-color:#f4e2e8;background:#fff4f7}
.app-shell #app .rules-operations-page .rules-row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.app-shell #app .rules-operations-page .rules-row-actions>.button{min-height:34px;padding:6px 10px;background:#f8faff!important;border-color:#e4eafb;color:#6b83db!important;box-shadow:none}
.app-shell #app .rules-operations-page .rules-row-actions>.button-primary{background:#536cf5!important;border-color:#536cf5;color:#fff!important}
.app-shell #app .rules-operations-page .chip{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border:1px solid transparent;border-radius:5px!important;color:#94a3b8;background:#f0f3f8;font-size:11px!important;font-weight:500;line-height:18px;white-space:normal}
.app-shell #app .rules-operations-page .chip::before{content:"";width:5px;height:5px;flex:none;border-radius:50%;background:currentColor}
.app-shell #app .rules-operations-page .chip-blue{color:#7793d0!important;background:#f0f5ff!important;border-color:#e2ebfc}
.app-shell #app .rules-operations-page .chip-green{color:#5ca48d!important;background:#eef9f4!important;border-color:#e0f0e8}
.app-shell #app .rules-operations-page .chip-orange{color:#c49a56!important;background:#fff8eb!important;border-color:#f8ecd5}
.app-shell #app .rules-operations-page .rules-list-footer{padding:18px 24px;border-top:1px solid #e9eef7;color:#97a7be;font-size:12px;gap:16px;flex-wrap:wrap}
.app-shell #app .rules-operations-page .rules-backline{margin:0 0 24px;gap:12px;flex-wrap:wrap}
.app-shell #app .rules-operations-page .rules-detail-status{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:-7px 0 25px;color:#95a6be;font-size:12px}
.app-shell #app .rules-operations-page .rules-requirements{margin:0;padding:0}
.app-shell #app .rules-operations-page .rules-requirements>div{grid-template-columns:128px minmax(0,1fr);gap:24px;padding:23px 24px;border-color:#edf1f7}
.app-shell #app .rules-operations-page .rules-requirements dt{color:#94a5bd;font-size:12px;font-weight:500;line-height:1.9}
.app-shell #app .rules-operations-page .rules-requirements dd{color:#657f9f;font-size:13px;line-height:2;overflow-wrap:anywhere;white-space:pre-wrap}
.app-shell #app .rules-operations-page .rules-checks{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 36px;padding:22px 26px 23px 43px;color:#7188a6;line-height:1.95;font-size:13px}
.app-shell #app .rules-operations-page .rules-checks li::marker{color:#a2b5de}
.app-shell #app .rules-operations-page .rules-inline-notice{margin:17px 0;padding:15px 18px;border:1px solid #e5ecf8;border-radius:8px;background:#f8faff;color:#8499b7;font-size:13px;line-height:1.95;overflow-wrap:anywhere}
.app-shell #app .rules-operations-page .rules-flat-panel>details.rules-inline-notice{margin:16px 24px}
.app-shell #app .rules-operations-page .rules-inline-notice summary{color:#7088ae;font-weight:500;line-height:1.9;cursor:pointer;overflow-wrap:anywhere}
.app-shell #app .rules-operations-page .rules-inline-notice[open]>summary{padding-bottom:15px;margin-bottom:5px;border-bottom:1px solid #e5ecf8}
.app-shell #app .rules-operations-page .rules-inline-notice pre{padding:16px;border-radius:7px;background:#f1f5fc;color:#6a82a5;font-family:ui-monospace,Consolas,monospace;font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
.app-shell #app .rules-operations-page .rules-flat-panel>.tenant-admin-table-wrap{margin:0;border:0;overflow:auto!important}
.app-shell #app .rules-operations-page .rules-editor-form{margin:0;padding:24px;background:#fff;border:0;border-radius:0}
.app-shell #app .rules-operations-page .rules-editor-form label{display:grid;gap:8px;margin:0 0 24px;color:#8499b7;font-size:13px;font-weight:500}
.app-shell #app .rules-operations-page .rules-editor-form textarea{display:block;width:100%;margin:0;min-height:140px;resize:vertical;line-height:1.95}
.app-shell #app .rules-operations-page .rules-editor-form .rules-savebar{padding-top:22px;border-color:#e9eef7;gap:18px;line-height:1.8}
.app-shell #app .rules-operations-page .rules-savebar span{color:#95a6be;font-size:12px}
.app-shell #app .rules-operations-page .rules-modal-overlay{padding:24px;grid-template-columns:minmax(0,1fr);background:#162e4e55;backdrop-filter:blur(4px)}
.app-shell #app .rules-operations-page .rules-operation-modal{width:min(960px,calc(100vw - 48px));max-height:calc(100dvh - 48px);padding:0;border:1px solid #e1e8f5;border-radius:13px!important;background:#fff;box-shadow:0 28px 100px #18325730;overflow:hidden}
.app-shell #app .rules-operations-page .rules-operation-modal>.team-v1-modal-heading{padding:23px 26px;border-color:#e9eef7;gap:18px}
.app-shell #app .rules-operations-page .rules-operation-modal h2{color:#3c557b;font-size:21px;font-weight:600;line-height:1.65;margin:0}
.app-shell #app .rules-operations-page .rules-operation-modal .button-icon{width:32px;min-height:32px;flex:none;padding:0;font-size:21px!important;color:#9cadc4!important;background:#f7f9fd!important;border-color:#e8edf6}
.app-shell #app .rules-operations-page .rules-modal-body{padding:25px 26px;overflow:auto;min-height:0;overscroll-behavior:contain}
.app-shell #app .rules-operations-page .rules-modal-body>h3{margin:21px 0 13px;color:#7189ad;font-size:14px;font-weight:600}
.app-shell #app .rules-operations-page .rules-modal-body>.rules-inline-notice:first-child{margin-top:0}
.app-shell #app .rules-operations-page .rules-operation-modal>.team-v1-modal-actions{padding:18px 26px;border-color:#e9eef7;gap:10px;flex-wrap:wrap}
.app-shell #app .rules-operations-page .rules-modal-body .support-form{display:grid;gap:18px;margin:0;padding:20px;border:1px solid #e5ecf8;border-radius:9px;background:#f9fbff}
.app-shell #app .rules-operations-page .rules-modal-body .support-form label{display:grid;gap:8px;color:#8398b6;font-size:13px}
.app-shell #app .rules-operations-page .rules-modal-body .support-form textarea{width:100%;min-height:100px;resize:vertical}
.app-shell #app .rules-operations-page .rules-modal-body .rules-search{margin:0 0 20px}
.app-shell #app .rules-operations-page .rules-modal-body .data-table :is(th,td){padding:15px 12px!important;font-size:12px}
.app-shell #app .rules-operations-page .ic-composer-select{width:100%;min-width:0;max-width:100%;font-weight:400}
.app-shell #app .rules-operations-page .ic-composer-trigger{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:42px;padding:10px 13px;border:1px solid #dfe7f5;border-radius:7px;color:#7087aa;background:#fff;font-family:inherit;font-size:13px;line-height:20px;box-shadow:none;text-align:left;cursor:pointer}
.app-shell #app .rules-operations-page .ic-composer-trigger[aria-invalid=true]{border-color:#d48595}
.app-shell #app .rules-operations-page .ic-composer-trigger:disabled{opacity:.5;cursor:not-allowed;background:#f7f9fd}
.app-shell #app .rules-operations-page .ic-composer-trigger svg{width:14px;color:#9cadd1}
.app-shell #app .rules-operations-page .ic-composer-popover{border:1px solid #dfe7f8;border-radius:10px;padding:8px;background:#fff;box-shadow:0 15px 45px #183b7020;max-width:calc(100vw - 24px)}
.app-shell #app .rules-operations-page [role=option]{min-height:38px;padding:9px 12px;border-radius:6px;color:#7c91b1;font-size:13px;line-height:20px;white-space:normal;overflow-wrap:anywhere}
.app-shell #app .rules-operations-page [role=option] strong{font-size:13px;font-weight:500;line-height:1.8}
.app-shell #app .rules-operations-page [role=option][aria-selected=true]{color:#5874e5;background:#f1f5ff}
.app-shell #app .rules-operations-page .ic-composer-option-icon{width:25px;height:29px;font-size:15px;border-radius:5px}
.app-shell #app .rules-operations-page .rc-select-error{display:block;margin-top:6px;color:#cc8192;font-size:12px;font-weight:400}
.app-shell #app .rules-operations-page select[hidden]{display:none!important}
.app-shell #app .rules-operations-page .rules-empty{color:#98a8bf;font-size:13px;padding:28px 24px;line-height:1.9}
@media(max-width:1250px){.app-shell #app .rules-operations-page .rc-rule-icon{display:none}.app-shell #app .rules-operations-page .rules-toolbar .rules-search{width:100%}}
@media(max-width:1100px){
 .app-shell #app .rules-operations-page .rules-list-panel .data-table,.app-shell #app .rules-operations-page .rules-list-panel tbody{display:block}
 .app-shell #app .rules-operations-page .rules-list-panel thead{display:none}
 .app-shell #app .rules-operations-page .rules-list-panel tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:11px 20px;padding:23px 24px;border-bottom:1px solid #eaf0f8}
 .app-shell #app .rules-operations-page .rules-list-panel td{display:block;padding:0!important;border:0!important;min-width:0;grid-column:1}
 .app-shell #app .rules-operations-page .rules-list-panel td:first-child{padding:0!important;font-weight:600}
 .app-shell #app .rules-operations-page .rules-list-panel td:last-child:not([colspan]){grid-column:2;grid-row:1 / span 5;max-width:160px}
 .app-shell #app .rules-operations-page .rules-list-panel .rules-row-actions{flex-direction:column;align-items:stretch}
 .app-shell #app .rules-operations-page .rules-list-panel td:not(:first-child):not(:last-child)::before{content:attr(data-label)'：';color:#a1aec3;font-size:12px}
 .app-shell #app .rules-operations-page .rules-list-panel td[colspan]{grid-column:1 / -1}
}
@media(max-width:760px){
 .app-shell:has(.rules-operations-page) .page-container{padding:22px 16px 40px}
 .app-shell #app .rules-operations-page .page-heading{align-items:flex-start;flex-direction:column;gap:18px}
 .app-shell #app .rules-operations-page .page-heading h1{font-size:26px!important}
 .app-shell #app .rules-operations-page .page-heading p:not(.eyebrow){font-size:13px}
 .app-shell #app .rules-operations-page .rules-toolbar{padding:18px 16px}
 .app-shell #app .rules-operations-page .rules-list-panel tr{grid-template-columns:minmax(0,1fr);gap:10px;padding:21px 16px}
 .app-shell #app .rules-operations-page .rules-list-panel td:last-child:not([colspan]){grid-column:1;grid-row:auto;max-width:none;margin-top:5px}
 .app-shell #app .rules-operations-page .rules-list-panel .rules-row-actions{flex-direction:row;align-items:center}
 .app-shell #app .rules-operations-page .rules-flat-panel>.panel-header{padding:19px 18px}
 .app-shell #app .rules-operations-page .rules-flat-panel>p:not(.rules-empty){padding:17px 18px}
 .app-shell #app .rules-operations-page .rules-flat-panel>details.rules-inline-notice{margin:15px 18px}
 .app-shell #app .rules-operations-page .rules-requirements>div{grid-template-columns:minmax(0,1fr);gap:7px;padding:18px}
 .app-shell #app .rules-operations-page .rules-checks{grid-template-columns:minmax(0,1fr);gap:13px;padding:18px 24px 19px 35px}
 .app-shell #app .rules-operations-page .rules-modal-overlay{padding:12px}
 .app-shell #app .rules-operations-page .rules-operation-modal{width:100%;max-height:calc(100dvh - 24px)}
 .app-shell #app .rules-operations-page .rules-operation-modal>.team-v1-modal-heading{padding:20px 18px}
 .app-shell #app .rules-operations-page .rules-operation-modal h2{font-size:19px}
 .app-shell #app .rules-operations-page .rules-modal-body{padding:20px 18px}
 .app-shell #app .rules-operations-page .rules-operation-modal>.team-v1-modal-actions{padding:16px 18px}
 .app-shell #app .rules-operations-page .rules-modal-body .support-form{padding:16px}
 .app-shell #app .rules-operations-page .rules-editor-form{padding:20px 18px}
}
