/* Vorschau „audit“ – Änderungsprotokoll mit Prüfsummen-Kette */
.xd-audit-panel { min-height: 500px; gap: 10px; }
.xd-audit-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.xd-audit-filters select, .xd-audit-filters input { font: 13px var(--text); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fff; min-width: 0; min-height: 36px; }
.xd-audit-filters input { grid-column: 1 / -1; }
.xd-audit-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.xd-audit-table th { text-align: left; font: 600 11px var(--display); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 0 4px 4px; border-bottom: 2px solid var(--line); }
.xd-audit-table th:nth-child(1) { width: 20%; } .xd-audit-table th:nth-child(2) { width: 21%; } .xd-audit-table th:nth-child(3) { width: 24%; }
.xd-audit-table td { padding: 5px 4px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; line-height: 1.3; }
.xd-audit-table td:first-child { font-variant-numeric: tabular-nums; color: var(--muted); }
.xd-audit-table td:nth-child(3) { font-weight: 600; }
.xd-audit-table tr.is-ok td:first-child { box-shadow: inset 3px 0 0 var(--green); }
.xd-audit-table tr.is-now td { background: var(--amber-soft); }
.xd-audit-table td:first-child { position: relative; padding-right: 14px; }
.xd-audit-table tr.is-ok td:first-child::after { content: "✓"; position: absolute; right: 2px; top: 5px; color: var(--green); font-weight: 700; }
.xd-audit-empty { color: var(--muted); font-size: 13px; margin: 0; }
.xd-audit-verify { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.xd-audit-status { font-size: 13px; min-height: 20px; margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.xd-audit-status.ok { color: var(--green); font-weight: 600; }
.xd-meter span.xd-audit-meter-ok { background: var(--green); }
.xd-audit-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.xd-audit-csv { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.xd-audit-csv:hover { background: var(--steel); }
.xd-audit-tier { color: var(--muted); font-size: 11px; }
.xd-audit-pre { margin: 0; flex: 1; background: var(--ink); color: #E8EDF1; border-radius: 10px; padding: 10px 12px; font: 11px/1.55 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; overflow: auto; white-space: pre; min-height: 280px; }
.xd-audit-pre i { color: var(--amber); font-style: normal; }
@media (max-width: 480px) {
  .xd-audit-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .xd-audit-table, .xd-audit-table tbody { display: block; }
  .xd-audit-table tr { display: grid; grid-template-columns: 96px 1fr; column-gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); }
  .xd-audit-table td { display: block; padding: 0; border: 0; }
  .xd-audit-table td:nth-child(1) { grid-row: 1; grid-column: 1; padding-right: 14px; }
  .xd-audit-table td:nth-child(3) { grid-row: 1; grid-column: 2; }
  .xd-audit-table td:nth-child(2) { grid-row: 2; grid-column: 1; font-size: 11px; color: var(--muted); }
  .xd-audit-table td:nth-child(4) { grid-row: 2; grid-column: 2; color: var(--muted); }
  .xd-audit-panel { min-height: 560px; }
}
@media (prefers-reduced-motion: reduce) { .xd-audit-table td { transition: none; } }
.xd-audit .xd-toast { bottom: auto; top: 52px; transform: translate(-50%, -8px); }
.xd-audit .xd-toast.on { transform: translate(-50%, 0); }
.xd-audit { contain: inline-size; }
.xd-audit .xd-audit-table thead th { background: transparent; color: var(--muted); }
.xd-audit .xd-audit-table td:first-child, .xd-audit .xd-audit-table th:first-child { padding-left: 8px; }
