.detection-rules-page .detection-rules-intro{color:var(--text-secondary,#666);margin:0 0 20px;font-size:14px;line-height:1.55}.detection-rules-page .detection-rules-tabs{margin-bottom:0}.detection-rules-page .detection-rules-tabs .nav-tabs{margin-bottom:20px}.detection-rules-page .detection-rules-tabs .nav-tabs:before{border-color:var(--border-color,#e8e8e8)}.detection-rules-page .detection-rules-tabs .nav-tabs .nav-item .nav-link{padding:8px 14px;font-size:13px;font-weight:500}.detection-rules-page .detection-rules-tabs .nav-tabs .nav-link{color:var(--text-secondary,#666)}.detection-rules-page .detection-rules-tabs .nav-tabs .nav-link.active .nav-tabs .nav-link{color:var(--primary-color,#1677ff);font-weight:600}.detection-rules-page .tab-intro{background:color-mix(in srgb, var(--primary-color,#1677ff) 6%, var(--card-bg,#f6f8fa));border:1px solid color-mix(in srgb, var(--primary-color,#1677ff) 18%, var(--border-color,#e8e8e8));color:var(--text-primary,#333);border-radius:10px;margin:0 0 20px;padding:12px 16px;font-size:14px;line-height:1.55}.detection-rules-page .settings-tab{min-width:0}.detection-rules-page .settings-categories{grid-template-columns:1fr;gap:20px;display:grid}@media (min-width:900px){.detection-rules-page .settings-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.detection-rules-page .settings-category-wide .settings-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;display:grid}.detection-rules-page .settings-category-wide .setting-field-wide{grid-column:1/-1}}@media (min-width:1400px){.detection-rules-page .settings-categories{grid-template-columns:repeat(3,minmax(0,1fr))}}.detection-rules-page .settings-category-card{border:1px solid var(--border-color,#e8e8e8);background:var(--card-bg,#fff);border-radius:12px;flex-direction:column;min-width:0;display:flex;overflow:hidden}.detection-rules-page .settings-category-wide{grid-column:1/-1}.detection-rules-page .settings-category-header{border-bottom:1px solid var(--border-color,#e8e8e8);background:var(--bg-secondary,#fafafa);padding:16px 18px 12px}.detection-rules-page .settings-category-title{color:var(--text-primary,#1a1a1a);margin:0 0 4px;font-size:15px;font-weight:600}.detection-rules-page .settings-category-desc{color:var(--text-secondary,#666);margin:0 0 6px;font-size:13px;line-height:1.45}.detection-rules-page .settings-category-count{text-transform:uppercase;letter-spacing:.04em;color:var(--text-secondary,#999);font-size:11px;font-weight:500}.detection-rules-page .settings-fields{flex-direction:column;flex:1;gap:4px;min-width:0;padding:12px 14px 16px;display:flex}.detection-rules-page .setting-field{border:1px solid #0000;border-radius:8px;padding:12px;transition:border-color .15s,background .15s}.detection-rules-page .setting-field:hover{background:var(--bg-secondary,#fafafa)}.detection-rules-page .setting-field-dirty{border-color:color-mix(in srgb, var(--primary-color,#1677ff) 35%, transparent);background:color-mix(in srgb, var(--primary-color,#1677ff) 4%, var(--card-bg,#fff))}.detection-rules-page .setting-field-wide{grid-column:1/-1}.detection-rules-page .setting-field-header{align-items:flex-start;gap:6px;margin-bottom:2px;display:flex}.detection-rules-page .setting-field-label{color:var(--text-primary,#1a1a1a);cursor:default;flex:1;font-size:13px;font-weight:600;line-height:1.4}.detection-rules-page .setting-field-info{color:var(--text-secondary,#999);cursor:help;flex-shrink:0;margin-top:2px;font-size:14px;transition:color .15s}.detection-rules-page .setting-field-info:hover{color:var(--primary-color,#1677ff)}.detection-rules-page .setting-field-key{color:var(--text-secondary,#aaa);word-break:break-all;opacity:.75;margin-bottom:8px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:10px;display:block}.detection-rules-page .setting-field-control{min-width:0}.detection-rules-page .setting-field-input{width:100%}.detection-rules-page .setting-field-textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px}.detection-rules-page .setting-field-actions{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.detection-rules-page .rule-sections{flex-direction:column;gap:20px;display:flex}.detection-rules-page .rule-section{border:1px solid var(--border-color,#e8e8e8);background:var(--card-bg,#fff);border-radius:12px;padding:16px 18px}.detection-rules-page .rule-section-header{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;display:flex}.detection-rules-page .rule-section-title{align-items:center;gap:8px;margin:0 0 8px;font-size:16px;font-weight:600;display:flex}.detection-rules-page .rule-section-info{color:var(--text-secondary,#999);cursor:help;font-size:14px;font-weight:400}.detection-rules-page .rule-section-info:hover{color:var(--primary-color,#1677ff)}.detection-rules-page .rule-section-meta{flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:6px;display:flex}.detection-rules-page .rule-section-count{opacity:.65;font-size:12px}.detection-rules-page .rule-section-desc{opacity:.85;margin:8px 0 0;font-size:13px;line-height:1.45}.detection-rules-page .rule-section-empty{margin:8px 0 0}.detection-rules-page .rule-card-note{opacity:.75;margin-bottom:8px;font-size:12px}.detection-rules-page .rule-value-cell{word-break:break-word;font-size:12px}.detection-rules-page .rule-note-cell{white-space:normal;word-break:break-word;font-size:12px;line-height:1.45;display:block}.detection-rules-page .rules-table-wrap .app-data-table th,.app-data-table td{vertical-align:top}.detection-rules-page .rules-no-match{text-align:center;opacity:.7;padding:24px 0}.detection-rules-page .rules-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.detection-rules-page .rules-search{flex:200px;min-width:0;max-width:420px}.detection-rules-page .rules-table-wrap{overflow-x:auto}.detection-rules-page .rule-card{border:1px solid var(--border-color,#e8e8e8);background:var(--card-bg,#fff);border-radius:10px;margin-bottom:12px;padding:14px}.detection-rules-page .rule-card.inactive{opacity:.65}.detection-rules-page .rule-card-header{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.detection-rules-page .rule-card-value{word-break:break-word;margin:8px 0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:13px}.detection-rules-page .rule-card-actions{flex-wrap:wrap;gap:8px;display:flex}.detection-rules-page .rules-desktop{display:none}.detection-rules-page .rules-mobile{display:block}.detection-rules-page .test-grid{gap:20px;display:grid}.detection-rules-page .test-result{border:1px solid var(--border-color,#e8e8e8);background:var(--card-bg,#fafafa);border-radius:12px;padding:18px}.detection-rules-page .test-result pre{white-space:pre-wrap;word-break:break-word;margin:0;font-size:12px}@media (min-width:768px){.detection-rules-page .rules-desktop{display:block}.detection-rules-page .rules-mobile{display:none}.detection-rules-page .test-grid{grid-template-columns:1fr 1fr;align-items:start}}
