/* ═══ Audit tab glue: token map for the extracted reference sheet (audit-v5.css), legacy workflow tracker hidden ═══ */
#tab-audit .au5 {
  --bg: var(--st-bg); --surface: var(--st-surface); --surface-2: var(--st-surface-2);
  --ink: var(--st-ink); --text: var(--st-ink); --muted: var(--st-muted); --line: var(--st-line);
  --primary: var(--st-primary); --primary-2: var(--st-primary-2); --teal: var(--st-teal); --shadow: var(--st-shadow);
  --teal-soft: var(--st-soft); --orange-soft: var(--st-soft); --accent: var(--st-primary);
  --amber: #c98a1a; --red: #d6453d; --green: var(--st-teal);
  color: var(--st-ink); font-family: var(--app-font, Inter, 'Outfit', system-ui, sans-serif); font-size: 16px; line-height: 1.55;
  padding: 0 24px 24px;
}
.au5 *, .au5 *::before, .au5 *::after { box-sizing: border-box; }
.au5 button, .au5 input { font: inherit; }
.au5 button { color: inherit; cursor: pointer; }
.au5 button:disabled { cursor: not-allowed; }
.au5 svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.au5 h1, .au5 h2, .au5 h3 { line-height: 1.2; }
.au5 .btn:disabled { opacity: .5; }

/* the legacy workflow-progress tracker (markup + refresh handlers stay in the DOM) */
#tab-audit .au5 > .audit-wrap { display: none !important; }

/* real-data additions that the approved sheet has no rule for: error text, evidence, manual-fix note, log levels */
.au5 .au5Error { margin: 0; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--red) 40%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--red) 8%, var(--surface)); color: var(--red); font-size: 13.5px; }
.au5 .au5Evidence { list-style: none; margin: 6px 0 0; padding: 8px 10px; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font: 500 11.5px/1.4 ui-monospace, 'SFMono-Regular', Consolas, monospace; color: var(--muted); }
.au5 .au5Evidence li { overflow-wrap: anywhere; }
.au5 .au5Err { margin: 6px 0 0; font-size: 12.5px; color: var(--red); }
.au5 .au5Manual { color: var(--muted); }
.au5 .au5Manual em { font-style: normal; opacity: .8; }
.au5 .au5LogErr span { color: var(--red); }
.au5 .au5LogWarn span { color: var(--amber); }
