.signal-list-head{align-items:center}.head-actions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}.template-open{background:#fff}.scope-legend{display:flex;gap:18px;flex-wrap:wrap;color:#66748a;font-size:12px}.scope-legend span{display:flex;align-items:center;gap:7px}.scope-dot{width:8px;height:8px;border-radius:50%}.scope-dot.company{background:#265e98}.scope-dot.department{background:#b57b21}.scope-dot.personal{background:#27865e}.signal-cards{display:grid;gap:14px}.rule-card{border-radius:18px;transition:.2s transform,.2s box-shadow}.rule-card:hover{transform:translateY(-1px);box-shadow:0 15px 35px rgba(25,42,75,.09)}.scope-company{color:#245f99;background:#edf5fd}.scope-department{color:#8a5a12;background:#fff6e8}.scope-personal{color:#19724c;background:#edf9f3}.signal-empty{display:grid;justify-items:center}.empty-ai{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:linear-gradient(145deg,#183763,#0d1c34);color:#fff;font-weight:900;box-shadow:0 12px 25px rgba(16,42,75,.2)}
.template-modal{width:min(1040px,calc(100vw - 32px));max-height:calc(100vh - 34px);padding:0;border:0;border-radius:22px;background:#f6f8fb;color:#172033;box-shadow:0 30px 90px rgba(10,26,48,.32)}.template-modal::backdrop{background:rgba(7,18,34,.62);backdrop-filter:blur(4px)}.template-modal>form{display:grid;grid-template-rows:auto auto auto minmax(180px,1fr) auto;max-height:calc(100vh - 34px)}.template-modal header{display:flex;justify-content:space-between;gap:22px;padding:25px 28px 20px;background:#fff;border-bottom:1px solid #dde5ef}.template-modal header h2{font-size:26px;margin:4px 0 6px}.template-modal header p:last-child{margin:0;color:#778397}.modal-close{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:0;border:0;border-radius:12px;background:#eff3f7;color:#526078;font-size:24px;cursor:pointer}.template-target{display:grid;gap:12px;padding:18px 28px;background:#fff}.scope-choice.compact{margin:0}.scope-choice.compact span{padding:11px 13px}.template-target>label{display:grid;grid-template-columns:105px minmax(200px,360px);align-items:center;gap:12px;color:#59677c;font-size:12px;font-weight:750}.template-target select{padding:10px 12px;border:1px solid #cfd9e6;border-radius:10px;background:#fff}.template-toolbar{display:flex;align-items:center;justify-content:space-between;padding:13px 28px;color:#68758a;font-size:12px}.template-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 28px 25px;overflow:auto}.template-card{position:relative;display:flex;gap:13px;padding:16px;border:1px solid #dce4ef;border-radius:15px;background:#fff;cursor:pointer;transition:.18s}.template-card:hover{border-color:#9db5d0;box-shadow:0 8px 20px rgba(25,49,80,.07)}.template-card>input{position:absolute;opacity:0}.template-check{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border:2px solid #c7d2df;border-radius:7px;color:transparent;font-size:12px;font-weight:900}.template-card>input:checked~.template-check{border-color:#246294;background:#246294;color:#fff}.template-card:has(input:checked){border-color:#246294;background:#f4f9ff;box-shadow:inset 0 0 0 1px #246294}.template-card-body{display:grid;gap:7px;color:#657288;font-size:12px;line-height:1.45}.template-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;color:#18243a;font-size:13px}.template-card-body small{color:#7c899c}.severity-pill{flex:0 0 auto;padding:4px 7px;border-radius:99px;background:#fff3d9;color:#8d6211;font-size:9px;font-style:normal;text-transform:uppercase}.severity-pill.high{background:#fff0e7;color:#ad4c17}.severity-pill.critical{background:#ffecef;color:#ad2536}.template-modal footer{display:flex;justify-content:flex-end;gap:10px;padding:15px 28px;border-top:1px solid #dce4ef;background:#fff}.template-modal footer button{min-width:150px}.template-modal footer button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:700px){.template-grid{grid-template-columns:1fr}.template-modal header,.template-target,.template-toolbar,.template-grid,.template-modal footer{padding-left:18px;padding-right:18px}.template-target>label{grid-template-columns:1fr}.signal-list-head{align-items:flex-start}}@media(max-width:560px){.template-modal footer{display:grid;grid-template-columns:1fr 1fr}.template-modal footer button{min-width:0}}
