.progress-file-badge { display:flex; align-items:center; gap:7px; max-width:calc(100% - 34px); margin:0 17px 12px; padding:7px 9px; border:1px dashed var(--line); border-radius:7px; color:var(--muted); font-size:.72rem; text-align:left; }
.progress-file-badge:hover { color:var(--accent); border-color:rgba(var(--accent-rgb),.4); }
.progress-file-badge .icon { width:13px; height:13px; }
.progress-file-badge.linked { border-style:solid; border-color:rgba(var(--accent-rgb),.18); color:var(--accent); background:rgba(var(--accent-rgb),.05); }
.progress-file-badge i { width:5px; height:5px; border-radius:50%; background:#85d6ac; }
.progress-file-heading { display:flex; align-items:center; gap:12px; justify-content:space-between; margin-bottom:12px; }
.progress-file-heading strong { overflow-wrap:anywhere; }
.progress-source-status { color:var(--accent); font-size:.75rem; white-space:nowrap; }
.progress-source-info { display:flex; gap:8px; align-items:center; flex-wrap:wrap; border:1px solid var(--line); border-radius:9px; padding:12px; margin-top:16px; font-size:.85rem; }
.progress-source-info a { overflow-wrap:anywhere; }
.progress-source-info small { color:var(--muted); margin-left:auto; }
.progress-template-actions { display:flex; gap:9px; flex-wrap:wrap; margin:18px 0 9px; }
.progress-template-actions button { font-size:.82rem; }
.progress-upload { margin:18px 0; }
#progress-editor .field input,#progress-editor .field textarea,#progress-editor .field select { width:100%; }
#progress-text { font-family:Consolas,monospace; font-size:.85rem; line-height:1.6; min-height:160px; white-space:pre; }
.progress-preview { border:1px solid rgba(var(--accent-rgb),.2); border-radius:10px; background:rgba(var(--accent-rgb),.04); padding:14px; margin:18px 0; color:var(--muted); font-size:.83rem; }
.progress-preview-heading { display:grid; gap:7px; }
.progress-preview-heading strong { color:var(--text); }
.progress-preview-heading>span { font-size:.75rem; }
.progress-preview-tasks { display:grid; gap:8px; margin-top:16px; max-height:230px; overflow:auto; }
.progress-preview-tasks>div { display:flex; align-items:baseline; gap:9px; overflow-wrap:anywhere; }
.progress-preview-tasks>div>span { color:var(--muted); }
.progress-preview-tasks>div>span.done { color:#85d6ac; }
.progress-warning { padding-top:12px; color:#e8bd82; line-height:1.5; }
.progress-mode-help { line-height:1.7; overflow-wrap:anywhere; }
.progress-mode-help code { font-size:.75rem; color:var(--accent); }
.ai-files-panel { display:grid; gap:14px; }
.ai-files-panel .section-title { margin:8px 0 0; }
.ai-files-panel .field-help { line-height:1.75; }
.ai-files-panel .secondary { display:inline-flex; align-items:center; justify-content:center; gap:8px; font-size:.86rem; text-decoration:none; }
.ai-file-path { white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; margin:0; }
.ai-file-buttons { display:flex; gap:8px; flex-wrap:wrap; }
.ai-files-status { color:#85d6ac; font-size:.82rem; line-height:1.6; }
.ai-files-status.error { color:#e8bd82; overflow-wrap:anywhere; }
.ai-file-prompt { width:100%; font-size:.8rem; }
@media(max-width:760px) {
  .progress-file-badge { padding:10px; font-size:.78rem; }
  .progress-file-heading { align-items:flex-start; flex-direction:column; gap:6px; }
  #progress-text { font-size:16px; }
  .progress-template-actions button { flex:1; justify-content:center; padding:11px; }
  .progress-source-info small { width:100%; margin:0; }
}
