.task-result-files{margin-top:20px;color:var(--web-text);min-width:0;user-select:none}
.task-result-files h3{font-size:14px;font-weight:600;margin:0 0 12px}
.task-result-files h3 span{color:var(--web-muted);font-weight:400;margin-left:6px}
.task-result-file-list{display:grid;gap:0;max-height:min(440px,55vh);overflow-y:auto;scrollbar-gutter:stable;border:1px solid var(--web-line);border-radius:12px;background:var(--web-panel)}
.task-result-file{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--web-line);min-width:0}
.task-result-file:last-child{border-bottom:0}
.task-result-file>svg{width:20px;height:20px;fill:none;stroke:var(--web-accent);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.task-result-file-copy{display:grid;min-width:0;gap:4px}
.task-result-file-copy small,.task-result-file-status{font-size:12px;line-height:1.5;color:var(--web-muted)}
.task-result-file-error{font-size:13px;line-height:1.5;color:var(--web-danger);overflow-wrap:anywhere}
.task-result-file:is(:hover,:focus-within){background:color-mix(in srgb,var(--web-accent) 6%,transparent)}
html:root .task-result-file-name,html:root .task-result-files-expand,html:root .task-result-file-download{
  font:inherit;cursor:pointer
}
html:root .task-result-file-name{
  display:block;width:100%;min-width:0;min-height:44px;padding:0;text-align:left;border:0;background:transparent;box-shadow:none;color:var(--web-text);font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;user-select:text
}
html:root .task-result-file-name:is(:hover,:active,:focus,:focus-visible):not(:disabled){color:var(--web-accent);background:transparent;border:0;box-shadow:none}
html:root .task-result-file-download{
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 12px;border:1px solid var(--web-line);border-radius:8px;background:transparent;color:var(--web-accent);font-size:13px
}
html:root .task-result-file-download:hover:not(:disabled){background:var(--web-panel-muted);border-color:var(--web-line);color:var(--web-accent)}
html:root .task-result-file-download:active:not(:disabled){background:var(--web-panel-hover)}
html:root .task-result-files-expand{display:block;width:auto;min-height:44px;margin-top:6px;padding:0;border:0;background:transparent;color:var(--web-muted);font-size:13px}
html:root .task-result-file-name:focus-visible,html:root .task-result-file-download:focus-visible,html:root .task-result-files-expand:focus-visible{outline:2px solid var(--web-accent);outline-offset:2px}
.task-result-file[data-state=busy] .task-result-file-name,.task-result-file[data-state=busy] .task-result-file-download{opacity:.6;cursor:progress}
.task-result-files [hidden]{display:none}
@media (max-width:560px){
  .task-result-file{grid-template-columns:20px minmax(0,1fr);align-items:start}
  html:root .task-result-file-download{grid-column:2;justify-self:start}
  html:root .task-result-file-name{white-space:normal;overflow:visible;text-overflow:unset}
}
@media (prefers-reduced-motion:reduce){
  .task-result-file,.task-result-file-download{transition:none}
}
