/* === F06 Règles avancées === */
        .aiforya-sm-h4 { font-size:12px; text-transform:uppercase; letter-spacing:0.06em; color:#94a3b8; margin:18px 0 10px; padding-top:14px; border-top:1px solid rgba(255,255,255,0.06); font-weight:700; }
        .aiforya-sm-rules-toolbar { display:flex; align-items:center; gap:10px; margin:8px 0 14px; flex-wrap:wrap; }
        .aiforya-sm-rules-toolbar .button { display:inline-flex; align-items:center; gap:6px; }
        .aiforya-sm-rules-test-result { font-size:13px; }
        .aiforya-sm-rules-empty { padding:14px; background:rgba(99,102,241,0.06); border:1px dashed rgba(99,102,241,0.30); border-radius:8px; color:#cbd5e1; }
        .aiforya-sm-rules-list { display:flex; flex-direction:column; gap:10px; }
        .aiforya-sm-rule-card { padding:12px 14px; background:rgba(255,255,255,0.03); border:1px solid rgba(99,102,241,0.20); border-radius:10px; }
        .aiforya-sm-rule-card.is-disabled { opacity:0.55; }
        .aiforya-sm-rule-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:6px; }
        .aiforya-sm-rule-priority { font-size:11px; color:#a5b4fc; font-weight:700; background:rgba(99,102,241,0.18); padding:2px 6px; border-radius:4px; }
        .aiforya-sm-rule-name { font-size:14px; color:#f1f5f9; flex:1 1 auto; }
        .aiforya-sm-rule-type { background:rgba(99,102,241,0.15); padding:2px 8px; border-radius:4px; font-size:11.5px; color:#c7d2fe; }
        .aiforya-sm-rule-op { font-size:11px; color:#94a3b8; padding:1px 6px; border:1px solid rgba(255,255,255,0.10); border-radius:4px; }
        .aiforya-sm-rule-cond-count { font-size:11.5px; color:#94a3b8; }
        .aiforya-sm-rule-status { font-size:10px; text-transform:uppercase; letter-spacing:0.05em; padding:2px 8px; border-radius:4px; font-weight:700; }
        .aiforya-sm-rule-status.is-on  { background:rgba(74,222,128,0.18); color:#bbf7d0; }
        .aiforya-sm-rule-status.is-off { background:rgba(148,163,184,0.18); color:#cbd5e1; }
        .aiforya-sm-rule-conds { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:8px; }
        .aiforya-sm-rule-cond { font-family:Menlo, Consolas, monospace; font-size:11px; padding:2px 6px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:4px; color:#cbd5e1; }
        .aiforya-sm-rule-actions { display:flex; gap:6px; }
        .aiforya-sm-button-danger { background:rgba(239,68,68,0.10) !important; border-color:rgba(239,68,68,0.4) !important; color:#fecaca !important; }

        /* Modal règle */
        .aiforya-sm-rule-modal { position:fixed !important; inset:0 !important; z-index:99999 !important; display:none; isolation:isolate; }
        .aiforya-sm-rule-modal.is-open { display:block !important; }
        .aiforya-sm-rule-modal-backdrop { position:fixed !important; inset:0 !important; z-index:1; background:rgba(2,6,23,0.85); backdrop-filter:blur(3px); }
        .aiforya-sm-rule-modal-panel { position:fixed !important; top:50%; left:50%; transform:translate(-50%, -50%); z-index:2; width:min(720px, 92vw); max-height:88vh; display:flex; flex-direction:column; background:#0f172a !important; color:#f1f5f9; border:1px solid rgba(99,102,241,0.45); border-radius:14px; box-shadow:0 24px 64px rgba(0,0,0,0.65); overflow:hidden; }
        .aiforya-sm-rule-modal-head { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; border-bottom:1px solid rgba(255,255,255,0.10); }
        .aiforya-sm-rule-modal-head h3 { margin:0; font-size:15px; color:#f1f5f9; }
        .aiforya-sm-rule-modal-body { padding:14px 18px; overflow:auto; flex:1 1 auto; background:#0f172a; }
        .aiforya-sm-rule-modal-body .form-table th { color:#cbd5e1; font-weight:600; font-size:13px; padding:8px 10px 8px 0; }
        .aiforya-sm-rule-modal-body .form-table td { padding:6px 10px 6px 0; }
        .aiforya-sm-rule-modal-body input[type="text"], .aiforya-sm-rule-modal-body input[type="number"], .aiforya-sm-rule-modal-body select { background:#1e293b; color:#e2e8f0; border:1px solid rgba(255,255,255,0.15); border-radius:6px; padding:6px 10px; font-size:13px; }
        .aiforya-sm-rule-modal-foot { display:flex; justify-content:flex-end; gap:8px; padding:12px 18px; border-top:1px solid rgba(255,255,255,0.10); background:#0f172a; }
        #aiforya-sm-rule-conditions { display:flex; flex-direction:column; gap:6px; margin-bottom:10px; }
        .aiforya-sm-rule-cond-row { display:flex; gap:6px; align-items:center; padding:6px 8px; background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:6px; flex-wrap:wrap; }
        .aiforya-sm-rule-cond-row select { min-width:140px; }
        .aiforya-sm-rule-cond-row .aiforya-sm-cond-value { flex:1 1 200px; min-width:160px; }
        .aiforya-sm-rule-cond-row .aiforya-sm-cond-field { flex:1 1 180px; min-width:140px; }
        .aiforya-sm-cond-remove { padding:2px 6px !important; }
        .aiforya-sm-cond-remove .dashicons { font-size:14px; width:14px; height:14px; line-height:14px; }

        /* Toast */
        .aiforya-sm-toast-host { position:fixed; right:24px; bottom:24px; z-index:100001; display:flex; flex-direction:column; gap:10px; pointer-events:none; }
        .aiforya-sm-toast { pointer-events:auto; min-width:240px; max-width:380px; padding:12px 16px; border-radius:10px; font-size:13px; line-height:1.45; color:#f1f5f9; background:#0f172a; border:1px solid rgba(255,255,255,0.12); box-shadow:0 12px 32px rgba(0,0,0,0.45); transform:translateX(120%); opacity:0; transition:transform .28s ease, opacity .28s ease; }
        .aiforya-sm-toast.is-visible { transform:translateX(0); opacity:1; }
        .aiforya-sm-toast--success { border-left:3px solid #4ade80; }
        .aiforya-sm-toast--error   { border-left:3px solid #f87171; }
        .aiforya-sm-toast--warning { border-left:3px solid #fbbf24; }
        .aiforya-sm-toast--info    { border-left:3px solid #60a5fa; }
