/* Reference coverage stays visually separate from confirmed audit findings. */
.tech-rules { margin-top:22px; overflow:hidden; min-width:0; }
.tech-rules [hidden] { display:none !important; }
.tech-rules-title { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:22px 24px 16px; }
.tech-rules-title h3 { margin:0; font-size:18px; }
.tech-rules-title p { margin:5px 0 0; font-size:12px; color:var(--ink-faint); overflow-wrap:anywhere; }
.tech-rules-total { font:12px var(--font-data); white-space:nowrap; color:var(--ink-soft); padding:7px 10px; border:1px solid var(--border); border-radius:var(--radius-sm,6px); }
.tech-rules-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.tech-rules-scope { margin:0 24px 20px; padding:12px 16px; border-left:3px solid var(--tech-blue,#2779b9); background:var(--blue-pale,#f0f6fb); color:var(--ink-soft); font-size:13px; line-height:1.8; overflow-wrap:anywhere; }
.tech-rules-scope span { display:block; font-size:12px; }
.tech-rules-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-block:1px solid var(--border); }
.tech-rules-metric { padding:18px 24px; border-right:1px solid var(--border); }
.tech-rules-metric:last-child { border-right:0; }
.tech-rules-metric>span,.tech-rules-metric>small { display:block; color:var(--ink-faint); font-size:12px; }
.tech-rules-metric>small { font-size:11px; line-height:1.5; }
.tech-rules-metric>strong { display:block; font:600 30px/1.5 var(--font-data); color:var(--ink-soft); }
.tech-rules-metric.tech-rule-issue>strong { color:var(--red); }
.tech-rules-metric.tech-rule-clear>strong { color:var(--green); }
.tech-rules-metric.tech-rule-needs_review>strong { color:var(--amber); }
.tech-rules-collection { padding:16px 24px; border-bottom:1px solid var(--border); background:var(--canvas,#f4f5f8); }
.tech-rules-collection p { margin:0 0 10px; font-size:12px; line-height:1.7; color:var(--ink-soft); overflow-wrap:anywhere; }
.tech-rules-collection p:first-child { display:flex; flex-wrap:wrap; gap:6px 18px; }
.tech-rules-collection strong { font-size:13px; color:var(--ink); }
.tech-rules-collection>div { display:flex; flex-wrap:wrap; gap:8px; }
.tech-rules-collection button { white-space:normal; text-align:left; }
.tech-rule-next { margin-top:14px; padding:2px 12px 4px; border-left:3px solid var(--tech-blue,#2779b9); background:var(--blue-pale,#f0f6fb); }
.tech-rules-filters { display:flex; flex-wrap:wrap; gap:16px; padding:22px 24px 12px; }
.tech-rules-filters>.field { min-width:150px; max-width:100%; }
.tech-rules-filters>.field:first-child { flex:1; min-width:220px; }
.tech-rules-filters .field input,.tech-rules-filters .field select { width:100%; max-width:100%; min-width:0; }
.tech-rules-filters .field:last-child { max-width:320px; }
.tech-rules-result-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:42px; padding:0 24px 12px; color:var(--ink-faint); font-size:12px; }
.tech-rules-reset { border:0; background:none; color:var(--tech-blue,#2779b9); cursor:pointer; padding:4px; font:inherit; }
.tech-rule { border-top:1px solid var(--border); border-left:3px solid transparent; }
.tech-rule.tech-rule-issue { border-left-color:var(--red); }
.tech-rule.tech-rule-needs_review { border-left-color:var(--amber); }
.tech-rule>summary { display:flex; align-items:center; gap:14px; padding:16px 22px; cursor:pointer; list-style:none; }
.tech-rule>summary::-webkit-details-marker { display:none; }
.tech-rule-status { flex-shrink:0; padding:4px 7px; font-size:11px; white-space:nowrap; border-radius:4px; color:var(--ink-faint); background:var(--canvas,#f4f5f8); }
.tech-rule-issue .tech-rule-status { color:var(--red); background:var(--red-pale); }
.tech-rule-clear .tech-rule-status { color:var(--green); background:var(--green-pale,#edf6f0); }
.tech-rule-needs_review .tech-rule-status { color:var(--amber); background:var(--amber-pale); }
.tech-rule-heading { flex:1; min-width:0; }
.tech-rule-heading strong { display:block; font-size:14px; overflow-wrap:anywhere; }
.tech-rule-heading small { display:block; color:var(--ink-faint); margin-top:4px; font-size:11px; overflow-wrap:anywhere; }
.tech-rule-affected { color:var(--ink-faint); font:12px var(--font-data); white-space:nowrap; }
.tech-rule-expand { color:var(--ink-faint); }
.tech-rule[open] .tech-rule-expand { transform:rotate(45deg); }
.tech-rule-detail { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; padding:0 24px 24px; }
.tech-rule-detail>div { min-width:0; }
.tech-rule-detail h4 { margin:14px 0 6px; font-size:12px; }
.tech-rule-detail p { margin:5px 0 10px; color:var(--ink-soft); font-size:13px; line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere; }
.tech-rule-detail .tech-rules-muted { color:var(--ink-faint); font-size:12px; }
.tech-rule-detail a { color:var(--tech-blue,#2779b9); overflow-wrap:anywhere; }
.tech-rule-urls { list-style:none; padding:0; margin:10px 0; max-height:220px; overflow:auto; }
.tech-rule-urls li { margin:0 0 7px; font:11px/1.6 var(--font-data); overflow-wrap:anywhere; }
.tech-rule-signal { border:1px solid var(--border); border-radius:var(--radius-sm,6px); padding:10px 12px; margin:8px 0; }
.tech-rule-signal p { font-size:12px; margin:3px 0; }
.tech-rule-signal p span { color:var(--ink-faint); }
.tech-rules-empty { color:var(--ink-faint); padding:16px 24px 24px; font-size:13px; }
.tech-rules-footer { display:flex; justify-content:center; padding:16px 24px; border-top:1px solid var(--border); }
.tech-rules-footer:has(button[hidden]) { display:none; }
.tech-rules :is(button,input,select,summary,a):focus-visible { outline:2px solid var(--tech-blue,#2779b9); outline-offset:3px; }
@media(max-width:800px) { .tech-rules-filters>.field:last-child { flex:1; max-width:none; }.tech-rules-metric { padding:16px; }.tech-rule-detail { grid-template-columns:1fr; gap:0; } }
@media(max-width:640px) { .tech-rules-title { align-items:flex-start; flex-direction:column; padding:18px; }.tech-rules-scope { margin:0 18px 18px; }.tech-rules-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }.tech-rules-metric:nth-child(2) { border-right:0; }.tech-rules-metric:nth-child(-n+2) { border-bottom:1px solid var(--border); }.tech-rules-metric>strong { font-size:27px; }.tech-rules-filters { padding:18px 18px 12px; gap:12px; }.tech-rules-filters>.field,.tech-rules-filters>.field:first-child { flex:1 1 100%; min-width:0; }.tech-rules-result-heading { padding-inline:18px; }.tech-rule>summary { gap:9px; padding:15px 12px; }.tech-rule-heading strong { font-size:13px; }.tech-rule-affected { font-size:10px; }.tech-rule-detail { padding:0 18px 18px; } }
@media(max-width:640px) { .tech-rules-collection { padding:16px 18px; }.tech-rules-collection>div { flex-direction:column; }.tech-rules-collection button { width:100%; } }
