.rule-section{padding:28px;border-bottom:1px solid var(--line)}.rule-section:last-child{border-bottom:0}.rule-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.rule-heading h3{margin:0 0 6px;font-size:18px}.rule-heading p,.rule-help{margin:0;color:var(--muted);font-size:13px}.rule-new{display:grid;grid-template-columns:180px minmax(220px,1fr) minmax(220px,1fr) auto;gap:14px;align-items:end;margin-bottom:20px;padding:18px;border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc}.rule-new label,.rule-card label,.risk-grid label,.agreement-form label{display:grid;gap:7px;color:#6b7280;font-size:12px}.rule-new input,.rule-new select,.rule-card input,.risk-grid input,.agreement-form input,.agreement-form textarea{box-sizing:border-box;width:100%;min-height:42px}.rule-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.rule-card{padding:18px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.03)}.rule-card header,.rule-card footer{display:flex;align-items:center;justify-content:space-between;gap:14px}.rule-card header{margin-bottom:16px}.rule-card header>div{display:flex;align-items:center;gap:10px}.rule-code{padding:5px 8px;border-radius:6px;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:800}.rule-switch{display:flex!important;grid-template-columns:auto auto;align-items:center}.rule-switch input{width:auto;min-height:0}.category-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.level-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.rule-card footer{margin-top:16px;padding-top:14px;border-top:1px solid #eef0f3}.rule-feedback{min-height:20px;color:var(--muted);font-size:13px}.rule-feedback.success{color:#16803c}.rule-feedback.error{color:#d92d20}.risk-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.risk-grid .rule-actions{grid-column:1/-1}.rule-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-top:8px}.agreement-form{display:grid;gap:14px}.agreement-form textarea{min-height:300px;resize:vertical}.rule-loading,.rule-error{padding:60px;text-align:center;color:var(--muted)}.rule-error button{margin-left:12px}.rule-section button[disabled]{cursor:wait;opacity:.7}@media(max-width:1450px){.rule-list{grid-template-columns:1fr}.category-fields{grid-template-columns:repeat(3,1fr)}}@media(max-width:1050px){.rule-new{grid-template-columns:1fr 1fr}.category-fields,.risk-grid{grid-template-columns:1fr 1fr}.rule-new button{width:100%}}@media(max-width:720px){.rule-section{padding:18px}.rule-new,.category-fields,.level-fields,.risk-grid{grid-template-columns:1fr}.risk-grid .rule-actions{grid-column:auto}}
