.task-history { width:100%; max-width:1100px; }
.task-history-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.task-history-head h3 { margin:0; }
.task-history-actions { display:flex; gap:8px; }
.task-history-list { display:grid; gap:12px; }
.task-history-card { background:var(--panel, var(--surface)); border:1px solid var(--border); border-radius:12px; padding:14px; }
.task-history-main { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.task-history-name { font-weight:650; overflow-wrap:anywhere; }
.task-history-meta { color:var(--muted); font-size:12px; line-height:1.7; margin-top:5px; }
.task-history-status { flex:none; border-radius:999px; padding:3px 9px; font-size:12px; background:var(--surface-2, var(--panel2)); }
.task-history-status.done { color:#15803d; }
.task-history-status.unmet { color:#b45309; }
.task-history-status.failed { color:#dc2626; }
.task-history-status.running,.task-history-status.queued { color:#2563eb; }
.task-history-error { color:#dc2626; font-size:12px; margin-top:8px; overflow-wrap:anywhere; }
.task-history-downloads { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.task-history-downloads a { color:var(--accent); border:1px solid var(--border); border-radius:8px; padding:7px 10px; text-decoration:none; font-size:13px; overflow-wrap:anywhere; }
.task-history-empty,.task-history-note { color:var(--muted); text-align:center; padding:24px 12px; }
.task-history-more { display:block; margin:14px auto; }

.task-history-head,.task-history-actions{flex-wrap:wrap}.task-history-actions button{white-space:normal}

/* Repair errors may include long worker paths; keep the goal readable on phones. */
.task-history-card{min-width:0;overflow-wrap:anywhere}.task-history-meta,.task-history-error{overflow-wrap:anywhere;word-break:break-word}.task-history-main>div{min-width:0}
