.history { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 22px; }
.history-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.history-head h2 { font-size: 1.15rem; }
.history-head .meta { margin-top: 5px; }
.history-list { margin-top: 14px; }
.history-empty { padding: 22px 0; color: var(--muted); }
.history-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.history-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.history-title strong { font-size: .95rem; }
.history-state { color: var(--gold); font-size: .8rem; }
.history-state.completed { color: var(--ok, #73cfa1); }
.history-state.failed { color: var(--danger, #f08d89); }
.history-copy { margin: 8px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.history-meta { margin-top: 8px; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.history-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.history-controls audio { margin: 0; min-width: 180px; flex: 1 1 220px; width: 100%; }
.history-controls .btn { min-height: 36px; padding: 7px 10px; font-size: .82rem; }
.history .btn[hidden] { display: none; }
@media (max-width: 800px) { .history-row { grid-template-columns: 1fr; gap: 12px; } }
