/* Styles für Erweiterung „history“ */
.hist-intro { margin: 0 0 var(--sp-4); max-width: 72ch; }
.hist-item .item-head h3 { min-width: 0; white-space: nowrap; }
.hist-meta { margin-top: 4px; }
.hist-projects { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; color: var(--text-2); }
.hist-proj { overflow-wrap: anywhere; min-width: 0; }
.hist-proj.gone { color: var(--text-3); text-decoration: line-through; }
.hist-proj.gone .btn { text-decoration: none; }
.hist-actions { margin-top: 10px; gap: 8px; }
.hist-actions .small { flex-basis: 100%; }

.hist-compare { overflow-wrap: anywhere; }
.hist-h { font-size: var(--fs-sm); font-weight: 650; color: var(--text-2); margin: var(--sp-4) 0 var(--sp-2); }
.hist-h:first-child { margin-top: 4px; }
.hist-diff { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.hist-diff li { padding: 5px 10px; border-radius: var(--radius-sm); border-left: 3px solid var(--border); background: var(--surface-2); }
.hist-diff.add li { border-left-color: var(--ok); background: var(--ok-soft); }
.hist-diff.del li { border-left-color: var(--danger); background: var(--danger-soft); }
.hist-diff.chg li { border-left-color: var(--warn); }
.hist-counts { width: 100%; max-width: 420px; border-collapse: collapse; font-size: 13px; }
.hist-counts th, .hist-counts td { padding: 5px 8px; border-bottom: 1px solid var(--border); text-align: right; }
.hist-counts th[scope="row"], .hist-counts thead th:first-child { text-align: left; font-weight: 500; }
.hist-counts tr.diff td { color: var(--accent); font-weight: 600; }
