.production-history-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin:0 0 10px}
.production-history-heading h2{margin:0;font-size:15px;line-height:1.4;font-weight:600}
.task-history-filters{margin:0 0 10px;min-width:0}
.task-history-filters label{display:grid;gap:5px;font-size:12px;color:var(--muted)}
.task-history-filters select{width:100%;min-width:0;max-width:100%;height:32px;font-size:12px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:5px;padding:0 6px}
.task-history-filters small{display:block;margin-top:5px;color:var(--danger)}
.task-history-total{margin-left:auto;color:var(--muted);font-size:11px;font-weight:400;white-space:nowrap}
.task-history-scroll-end{min-height:22px;padding:5px 0;color:var(--muted);font-size:11px}
.task-history-scroll-end:empty{min-height:1px;padding:0}
.task-history-scroll-end button{padding:3px 7px;min-height:27px;font-size:11px}
@media(min-width:900px){
 .production-workspace .production-history:not(.collapsed):has(.task-history-scroll-end){display:flex;flex-direction:column;overflow:hidden}
 .production-workspace .production-history:has(.task-history-scroll-end)>:not(.production-history-list){flex-shrink:0}
 .production-workspace .production-history:has(.task-history-scroll-end)>.production-history-list{flex:1 1 auto;min-height:0;margin-top:0;overflow:auto;align-content:start}
}
@media(min-width:900px) and (max-width:1150px){
 .production-history-heading:has(.task-history-total){flex-wrap:wrap;gap:4px}
 .task-history-total{order:3;flex-basis:100%;margin-left:0}
}
.task-history-preview-meta{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.task-history-prompt{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;max-height:160px;overflow:auto;background:var(--surface-alt);padding:12px;border-radius:6px}
.task-history-result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.task-history-result-grid figure{margin:0;min-width:0}
.task-history-result-grid img{display:block;width:100%;height:220px;object-fit:contain;background:var(--surface-alt);border-radius:6px}
.task-history-result-grid figcaption{display:flex;justify-content:space-between;gap:8px;font-size:12px;padding-top:6px;color:var(--muted)}
