[hidden] { display: none !important; }
/* Input column (same shape as the other Config Audit tabs) */
textarea#src { width: 100%; font-family: var(--ax-mono); font-size: 12.5px; line-height: 1.55; color: var(--ax-ink); background: #fff;
  border: 2px solid var(--ax-line); border-radius: 12px; padding: 10px 12px; outline: none; white-space: pre; overflow: auto; tab-size: 2; font-variant-ligatures: none; }
textarea#src:focus { border-color: var(--ax-accent); box-shadow: 0 0 0 4px rgba(4,120,87,.14); }
.cb-drop.over textarea#src { border-color: var(--ax-accent); border-style: dashed; background: #f0fdf4; }
.cb-filebtn { position: relative; overflow: hidden; }
.cb-filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.sp-ctrl .cb-drop { display: flex; flex-direction: column; gap: 6px; flex: 1 0 auto; min-height: 170px; }
.sp-ctrl textarea#src { flex: 1 1 140px; min-height: 140px; resize: none; }
.sp-ctrl .ax-actions { margin: 0; gap: 8px; }
.sp-ctrl .ax-actions .ax-btn { flex: 0 1 auto; min-height: 36px; padding: 6px 10px; gap: 6px; font-size: 13px; border-radius: 11px; }
.sp-ctrl .ax-actions .ax-btn svg { width: 16px; height: 16px; }
.sp-ctrl .ax-note { margin: 0; }
.cb-samples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.cb-samples > span { font-family: var(--ax-mono); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ax-dim); }
.sp-ctrl .ax-chip { padding-block: 3px; border-width: 2px; }
.sp-ctrl .ax-chip[aria-pressed="true"] { border-color: var(--ax-accent); color: #065f46; background: #ecfdf5; }
@media (max-width: 959px) { .sp-stage .sp-scroll { max-height: 78svh; } .sp-ctrl textarea#src { min-height: 220px; } }
@media (max-width: 640px) { textarea#src { font-size: 16px; } }
@media (pointer: coarse) { .sp-ctrl .ax-chip, .sp-ctrl .ax-actions .ax-btn { min-height: 44px; } }
.sp-scroll { overflow: auto; overscroll-behavior: contain; padding: 2px 4px 4px 2px; }
.sp-report:empty { display: none; }
.sp-app > .reading { margin-top: 18px; }
.fw-fmt { font-family: var(--ax-mono); font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #334155; background: #f1f5f9; border: 2px solid #cbd5e1; border-radius: 8px; padding: 1px 8px; white-space: nowrap; }
.fw-fmt:empty { display: none; }

/* Verdict and tiles */
.sp-report.ax-stack { gap: 8px; }
.sp-report .ax-verdict { padding: 9px 12px; }
.fw-meta { font-size: 13px; color: var(--ax-muted); margin: 2px 0 0; line-height: 1.5; overflow-wrap: break-word; }
.sp-report .ax-tiles { gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 760px) { .sp-report .ax-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.sp-report .ax-tile { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; padding: 6px 10px; border-radius: 10px; }
.sp-report .ax-tile-label { font-size: 10px; letter-spacing: .06em; word-break: keep-all; }
.sp-report .ax-tile-value { font-size: 1.15rem; line-height: 1.1; }
button.ax-tile { font: inherit; text-align: left; cursor: pointer; width: 100%; color: inherit; }
button.ax-tile[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--ax-accent); }
@media (pointer: coarse) { .sp-report button.ax-tile { min-height: 44px; align-items: center; } }

/* Severity pills */
.fw-sev { display: inline-flex; align-items: center; gap: 5px; font-family: var(--ax-mono); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; border-radius: 999px; padding: 1px 7px; border: 1px solid; }
.fw-sev i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fw-sev--critical { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.fw-sev--high { color: #9a3412; background: #fff7ed; border-color: #fed7aa; }
.fw-sev--medium { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.fw-sev--low { color: #334155; background: #f1f5f9; border-color: #cbd5e1; }
.fw-sev--ok { color: #065f46; background: #ecfdf5; border-color: #a7f3d0; }

/* Rule table */
.fw-rules.ax-table-wrap { max-height: none; overflow-x: auto; overflow-y: visible; box-shadow: none; }
.fw-rules table { font-size: 12.5px; }
.fw-rules thead th { padding: 6px 9px; cursor: pointer; user-select: none; }
.fw-rules thead th[aria-sort="ascending"]::after { content: " \25B2"; font-size: 8px; }
.fw-rules thead th[aria-sort="descending"]::after { content: " \25BC"; font-size: 8px; }
.fw-rules tbody td { padding: 6px 9px; line-height: 1.4; }
.fw-rules td:first-child { min-width: 11rem; }
.fw-rules .fw-subj { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.fw-rules .fw-subj b { font-family: var(--ax-mono); font-size: 12px; overflow-wrap: break-word; }
.fw-rules .fw-subj small { font-family: var(--ax-mono); font-size: 10.5px; font-weight: 600; color: var(--ax-muted); }
.fw-rules code { font-family: var(--ax-mono); font-size: 11.5px; overflow-wrap: break-word; }
.fw-act { font-family: var(--ax-mono); font-size: 11px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.fw-act--allow { color: #065f46; }
.fw-act--deny { color: #991b1b; }
.fw-act--other { color: #475467; }
.fw-off { opacity: .55; }
.fw-ftitles { display: flex; flex-direction: column; gap: 2px; }
.fw-ftitles span { overflow-wrap: break-word; }
.fw-none { color: var(--ax-muted); }
.fw-rules tbody tr.fw-row { cursor: pointer; }
.fw-rules tbody tr.fw-row.sev-critical td:first-child, .fw-rules tbody tr.fw-row.sev-high td:first-child { box-shadow: inset 4px 0 0 var(--ax-bad), 1px 0 0 var(--ax-line), 8px 0 10px -8px rgba(15,23,42,.22); }
.fw-rules tbody tr.fw-row.sev-medium td:first-child { box-shadow: inset 4px 0 0 var(--ax-warn), 1px 0 0 var(--ax-line), 8px 0 10px -8px rgba(15,23,42,.22); }
.fw-rules tbody tr.fw-row[aria-expanded="true"] td { background: #f3faf7; }
.fw-rules tbody tr.fw-dim td { opacity: .35; }
.fw-rules tbody tr.fw-detail td { background: #fbfcfe; padding: 0; }
.fw-rules tbody tr.fw-detail td:first-child { position: static; box-shadow: none; }
.fw-det { position: sticky; left: 0; padding: 8px 12px 12px; display: grid; gap: 10px; max-width: min(100vw - 60px, 1100px); }
.fw-f { display: grid; gap: 4px; border-left: 3px solid var(--ax-line); padding-left: 10px; }
.fw-f.sev-critical, .fw-f.sev-high { border-left-color: var(--ax-bad); }
.fw-f.sev-medium { border-left-color: var(--ax-warn); }
.fw-f h4 { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; font-family: var(--ax-display); color: var(--ax-ink); }
.fw-f h4 code { font-size: 10.5px; color: var(--ax-muted); }
.fw-f p { margin: 0; font-size: 13px; line-height: 1.55; overflow-wrap: break-word; }
.fw-f p b { color: var(--ax-muted); font-weight: 700; }
.fw-raw { margin: 0; font-family: var(--ax-mono); font-size: 11.5px; color: #475467; background: #f8fafc; border: 1px solid var(--ax-line); border-radius: 8px; padding: 6px 8px; white-space: pre-wrap; overflow-wrap: break-word; }
.fw-notes { margin: 0; font-size: 12.5px; color: var(--ax-muted); }

/* Catalog and export tables */
.fw-cat td, .fw-exp td { overflow-wrap: break-word; vertical-align: top; }
.fw-cat th, .fw-exp th { word-break: keep-all; }
.fw-cat code, .fw-exp code { font-family: var(--ax-mono); font-size: 12px; }
.ax-table-wrap.fw-cat tbody td, .ax-table-wrap.fw-exp tbody td { padding: 6px 10px; line-height: 1.45; }
