/* ====== File clean-up (js/file-cleanup.js) ====== */
/* The notice on a job: files about to be deleted */
.cleanup-box{background:var(--orange-bg);border-color:rgba(255,159,10,.3)}
.cleanup-box .decision-title{display:flex;align-items:flex-start;gap:8px;color:var(--warn-text)}
.cleanup-box .decision-title svg{width:16px;height:16px;flex-shrink:0;margin-top:1px}
/* ...and the small tag on job lists */
.cleanup-tag{display:inline-flex;align-items:center;gap:4px;margin-left:8px;font-size:11px;font-weight:600;color:var(--warn-text);background:var(--orange-bg);padding:2px 8px;border-radius:20px;vertical-align:1px;white-space:nowrap}
.cleanup-tag svg{width:11px;height:11px}
/* A file the clean-up removed: in place of its download button (no link, nothing to tap) */
.tl-file.removed{cursor:default;background:var(--surface-hover);border-style:dashed;flex-wrap:wrap;row-gap:2px}
.tl-file.removed:hover{border-color:var(--border)}
.tl-file.removed svg{color:var(--text-tertiary)}
.tl-file.removed .tl-file-name{color:var(--text-secondary);font-weight:500;min-width:0}
/* (the reason on its own line under the name, lined up with it) */
.tl-file.removed .tl-file-kind{flex-basis:100%;white-space:normal;padding-left:23px;color:var(--text-tertiary);font-weight:500}
.tl-item.tuned .tl-file.removed .tl-file-kind{color:var(--text-tertiary);font-weight:500}
.gone-chip{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:550;color:var(--text-tertiary);white-space:nowrap}
.gone-chip svg{width:12px;height:12px}
/* Payments & Plans: the admin's setting and its preview */
#cleanupCard select{max-width:260px}
.cleanup-status{margin-top:0}
.cleanup-preview{font-size:12.5px;line-height:1.5;color:var(--text-secondary);background:var(--surface-hover);border-radius:var(--radius-xs);padding:12px 14px;margin:10px 0 12px}
.cleanup-preview p{margin:0}
.cleanup-preview p + p,.cleanup-preview p + ul,.cleanup-preview ul + div{margin-top:8px}
.cleanup-first{color:var(--text-primary)}
.cleanup-error{color:var(--red)}
.cleanup-lines{list-style:none;margin:0;padding:0}
.cleanup-lines li + li{margin-top:4px}
.cleanup-lines strong{color:var(--text-primary);font-weight:600}
.cleanup-oldest{border-top:1px solid var(--border);padding-top:8px}
.cleanup-oldest-title{font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.04em;color:var(--text-tertiary);margin-bottom:2px}
.cleanup-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:6px 0;min-width:0}
.cleanup-row + .cleanup-row{border-top:1px solid var(--border-light)}
.cleanup-row > div{min-width:0;flex:1}
.cleanup-row .link-btn{font-size:12.5px;color:var(--text-primary);text-align:left;padding:0}
.cleanup-row > div > span{display:block;font-size:11.5px;color:var(--text-tertiary);overflow-wrap:anywhere}
.cleanup-row .pill{flex-shrink:0;white-space:normal;text-align:center;max-width:42%}
.cleanup-again{display:inline-block;margin-top:8px;font-size:12px}
:root[data-theme="dark"] .cleanup-box{border-color:rgba(255,159,10,.35)}
