.history-cleanup-modal{width:min(760px,calc(100% - 32px));max-width:760px;background:#fff}
.history-cleanup-modal .modal-heading{align-items:center;margin-bottom:12px}
.history-cleanup-modal .modal-heading h2{margin:0}
.cleanup-description{font-size:13px;line-height:1.8;color:#666;margin:0 0 14px}
.cleanup-selection,.cleanup-pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:#777}
.cleanup-selection{margin-bottom:10px}
.cleanup-selection>span{margin-left:auto}
.cleanup-records{border:1px solid #eee6df;border-radius:8px;max-height:45vh;overflow:auto;overscroll-behavior:contain}
.cleanup-record{display:flex;align-items:center;gap:12px;padding:10px 12px;border-bottom:1px solid #f0ece8;min-height:56px}
.cleanup-record:last-child{border-bottom:0}
label.cleanup-record{cursor:pointer}
.cleanup-record>input{width:17px;height:17px;flex:none;accent-color:#ff7900}
.cleanup-record>input:disabled{cursor:not-allowed}
.cleanup-record-detail{min-width:0;display:grid;gap:4px}
.cleanup-record-detail strong{font-size:12px;font-weight:500;color:#333;overflow-wrap:anywhere}
.cleanup-record-detail small{font-size:11px;color:#777}
.cleanup-record-detail .cleanup-running{color:#966c42}
.cleanup-pagination{justify-content:space-between;margin:12px 0}
.cleanup-empty{font-size:13px;color:#777;padding:20px;text-align:center}
.cleanup-actions{margin-top:14px;flex-wrap:wrap}
.cleanup-feedback{font-size:12px;line-height:1.8;color:#985514;margin:12px 0 0;overflow-wrap:anywhere}
.cleanup-feedback:empty{display:none}
.cleanup-confirm-phrase input{font-size:14px;background:#fff}
.history-cleanup-modal .button.cleanup-danger{background:#b64225;border-color:#b64225;color:#fff}
.history-cleanup-modal button:disabled{cursor:not-allowed;opacity:.5}
@media(max-width:600px){.history-cleanup-modal{padding:18px}.cleanup-selection .button,.cleanup-pagination .button{padding:8px 10px}.cleanup-records{max-height:40vh}.cleanup-actions .button{flex:1}.cleanup-description{font-size:12px}}
