#library-usage{flex-wrap:wrap}
#library-usage .private-cleanup{flex:0 0 100%;min-width:0;border-top:1px solid #ffffff10;padding-top:28px;margin-top:4px}
.private-cleanup .cleanup-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.cleanup-eyebrow{font-size:10px;letter-spacing:.13em;font-weight:600;color:#aaa7b7}
.private-cleanup h2{font-size:23px;letter-spacing:-.02em;margin:6px 0 0}.private-cleanup h3{font-size:20px;margin:6px 0 9px}
.private-cleanup p{font-size:13px;line-height:1.6;color:#bcb9c8}.private-cleanup .cleanup-intro{max-width:55ch;margin:16px 0 22px}
.private-cleanup button,.private-cleanup-dialog button{min-height:44px;border:0}.cleanup-heading>button{font-size:24px;width:44px;background:#ffffff08}
.cleanup-stack{height:16px;display:flex;overflow:hidden;border-radius:10px;gap:2px;background:#292932}.cleanup-stack>span{height:100%}
.cleanup-color-recent{background:#dedee8}.cleanup-color-review{background:#dca1b8}.cleanup-color-protected{background:#aaa1d9}.cleanup-color-removed{background:#7999ac}.cleanup-color-observing{background:#777583}.cleanup-color-other{background:#45454f}
.cleanup-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;margin:22px 0 28px}.cleanup-legend>div{display:flex;gap:9px;align-items:flex-start;font-size:12px}.cleanup-legend i{width:8px;height:8px;border-radius:3px;flex:none;margin-top:4px}.cleanup-legend span{flex:1;min-width:0}.cleanup-legend small{display:block;font-size:11px;color:#a4a1ae;margin-top:3px}.cleanup-legend strong{font-variant-numeric:tabular-nums;font-size:11px;color:#d3d0dc;white-space:nowrap}
.cleanup-summary{padding:20px;border-radius:18px;background:#ffffff04}.cleanup-summary p{margin:0}.private-cleanup .cleanup-history{font-size:12px;margin:16px 3px 23px}
.cleanup-filters{display:flex;flex-wrap:wrap;gap:6px;margin:20px 0 12px}.cleanup-filters button{border-radius:24px;font-size:12px;background:transparent;color:#b8b4c3;padding:9px 15px}.cleanup-filters button[aria-pressed="true"]{background:#e1e1e6;color:#202027}
.cleanup-select{display:flex;align-items:center;gap:10px;color:#aaa7b4;font-size:12px}.cleanup-select span{margin-right:auto}.cleanup-select button{background:transparent;font-size:12px;padding:6px}
.cleanup-tracks{list-style:none;margin:8px 0 0;padding:0;max-height:480px;overflow:auto;overscroll-behavior:contain}.cleanup-tracks li{display:flex;align-items:center;gap:10px;padding:15px 0;border-top:1px solid #ffffff09}.cleanup-tracks label{display:flex;align-items:flex-start;gap:12px;flex:1;min-width:0;cursor:pointer;padding:4px 0}.cleanup-tracks label>span{min-width:0}.cleanup-tracks input{accent-color:#e1e1e6;width:19px;height:19px;flex:none;margin:2px 0}.cleanup-tracks strong{display:block;overflow-wrap:anywhere;font-size:14px;line-height:1.4}.cleanup-tracks small{display:block;color:#aaa7b7;font-size:11px;line-height:1.5;margin-top:4px}.cleanup-tracks li>button{padding:10px;width:44px;flex:none;background:transparent;color:#b6abc9}.cleanup-tracks svg{width:21px;height:21px}.cleanup-tracks .cleanup-empty{font-size:13px;line-height:1.7;color:#b1adbc;padding:25px 4px}
.cleanup-actions{margin-top:16px;padding-top:16px;border-top:1px solid #ffffff10}.cleanup-actions>span{display:block;font-size:12px;color:#bdb8c9;margin-bottom:14px}.cleanup-actions>div{display:flex;flex-wrap:wrap;gap:8px}.cleanup-actions button{font-size:12px;background:#ffffff08;padding:10px 14px;border-radius:22px}.cleanup-actions [data-delete]{color:#ffb4c4;background:#58313f55}.private-cleanup .cleanup-note{font-size:11px;margin:16px 0 0;color:#a4a0b1}.cleanup-notice:empty{display:none}.private-cleanup .cleanup-notice{color:#ded9e9}
.private-cleanup-dialog{width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 36px);overflow:auto;box-sizing:border-box;padding:24px;background:#18171f;border:0;border-radius:24px;color:#f0eef5}.private-cleanup-dialog::backdrop{background:#0009;backdrop-filter:blur(12px)}.private-cleanup-dialog h2{font-size:23px;margin:0}.private-cleanup-dialog p{font-size:14px;line-height:1.6;color:#c2bdce}.cleanup-review-list{list-style:none;padding:0;margin:20px 0;max-height:35dvh;overflow:auto}.cleanup-review-list li{padding:14px 0;border-bottom:1px solid #ffffff0c}.cleanup-review-list strong{display:block;font-size:14px;overflow-wrap:anywhere}.cleanup-review-list small{display:block;color:#aaa6b9;margin-top:5px}.cleanup-confirm-word{display:grid;gap:9px;font-size:13px;margin:20px 0}.cleanup-confirm-word input{width:100%;min-height:48px;border:1px solid #70677f;background:#111017;color:#fff;border-radius:12px;padding:12px}.private-cleanup-dialog [data-error]{color:#ffb4c4}.private-cleanup-dialog .private-dialog-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap}.private-cleanup-dialog [data-confirm]{background:#e1e1e6;color:#22212a}
@media(max-width:450px){.cleanup-legend{grid-template-columns:1fr;gap:13px}.private-cleanup .cleanup-summary{padding:16px}.cleanup-filters{gap:3px}.cleanup-filters button{padding:9px 11px}.private-cleanup-dialog{padding:20px}.cleanup-actions>div{display:grid;grid-template-columns:1fr 1fr}.cleanup-actions [data-protect]{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.private-cleanup *{scroll-behavior:auto}}

.cleanup-batches{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.cleanup-batches button{font-size:12px;background:#ffffff08;padding:10px 14px;border-radius:16px}

.upload-match-list{list-style:none;padding:0;margin:16px 0}.upload-match-list li{padding:16px 0;border-top:1px solid #ffffff18}.upload-match-list strong,.upload-match-list small{display:block;overflow-wrap:anywhere}.upload-match-list small{color:#aaa7b7;margin-top:6px}.upload-match-list p{font-size:12px}.upload-match-list button{background:#e1e1e6;color:#22212a;padding:12px}

body dialog[open].private-cleanup-dialog{width:min(540px,calc(100vw - 24px))!important;max-width:540px!important;height:fit-content!important;max-height:calc(100dvh - 32px)!important;margin:auto;border-radius:24px!important;background:#18171f;padding:24px}


/* Quiet purple listening accents; capacity and delivery keep their own colors. */
.private-cleanup{--cleanup-purple:#b1a2da;--cleanup-check:#89baa3}
.cleanup-color-recent{background:#9c8bbd}.cleanup-color-review{background:#d2c5e4}.cleanup-color-protected{background:#77638e}.cleanup-color-removed{background:#b1a8b8}.cleanup-color-observing{background:#777583}.cleanup-color-other{background:#49464f}
.private-cleanup .cleanup-eyebrow,.cleanup-heading-icon{color:var(--cleanup-purple)}
.private-cleanup h2{display:flex;align-items:center;gap:10px}.cleanup-heading-icon{display:inline-flex}.cleanup-heading-icon svg{width:24px;height:24px}
.cleanup-heading>button{display:grid;place-items:center;flex:none;border-radius:50%;background:#ffffff08;color:#d8d4e1}.cleanup-heading>button svg{width:22px;height:22px}
.cleanup-stack{height:26px;gap:3px;margin-top:24px;background:#24232a;border-radius:14px}
.cleanup-legend{gap:10px;margin:16px 0 24px}.cleanup-legend>div{background:#ffffff03;padding:12px;border-radius:14px;flex-wrap:wrap;row-gap:6px}.cleanup-legend strong{color:#d3d0dc;margin-left:17px}
.cleanup-summary{display:flex;align-items:center;gap:12px;background:#ffffff04;padding:18px}.cleanup-summary-icon{display:flex;flex:none;color:var(--cleanup-check)}.cleanup-summary-icon svg{width:25px;height:25px}
.cleanup-summary[data-review=true] .cleanup-summary-icon{color:var(--cleanup-purple)}.cleanup-summary .cleanup-eyebrow{color:#aaa7b7}.private-cleanup .cleanup-summary h3{margin:4px 0 0;font-size:18px}.cleanup-summary p{margin:8px 0 12px}
.private-cleanup [data-review-open],.cleanup-actions button,.cleanup-batches button,.cleanup-customize{background:#e1e1e6;color:#24232b;padding:10px 16px;border-radius:24px}
.cleanup-settings-links{display:grid;gap:2px;margin-top:14px}.cleanup-settings-links button{display:flex;align-items:center;gap:12px;width:100%;padding:14px 2px;text-align:left;background:transparent;color:#eeeaf3;font-size:14px}.cleanup-settings-links button>span:first-of-type{flex:1}.cleanup-settings-links small{display:block;color:#aaa7b7;font-size:12px;margin-top:4px}.cleanup-settings-links svg{width:21px;height:21px;color:var(--cleanup-purple);flex:none}.cleanup-settings-links button>span:last-child{color:#96929f}
.private-cleanup .cleanup-about{border:0;padding:0;background:transparent;margin-top:12px;font-size:12px;color:#aaa7b7}.cleanup-about summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:7px;list-style:none}.cleanup-about summary::after{content:'+'}.cleanup-about[open] summary::after{content:'−'}.cleanup-about summary::-webkit-details-marker{display:none}.private-cleanup .cleanup-about p{font-size:12px;margin:0 0 12px}
.cleanup-back{margin-top:16px;padding:8px 0;background:transparent;color:#c4b9dc;font-size:13px}.private-cleanup .cleanup-view-title{margin:10px 0}.private-cleanup .cleanup-view-description{margin:8px 0 16px}
.cleanup-tracks button[data-lock]{color:#9b96a5;border-radius:50%;background:transparent}.cleanup-tracks button[data-lock][aria-pressed=true]{color:#d4c6ed;background:#b1a2da1a}.cleanup-tracks input{accent-color:#b1a2da}
.cleanup-customize{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin:20px 0}.cleanup-customize svg{width:20px;height:20px}
.cleanup-actions [data-delete]{color:#f1b8c7;background:#59313d55}.private-cleanup .cleanup-notice{color:#d8d0e5}
.private-cleanup [hidden],.private-cleanup-dialog [hidden]{display:none!important}.private-cleanup button:focus-visible,.cleanup-about summary:focus-visible{outline:2px solid #b1a2da;outline-offset:3px}
#library-usage .storage-actions #space{color:#eeeaf3;background:#25242c;border-color:#ffffff18}
@media(max-width:450px){.cleanup-stack{height:26px}.private-cleanup h2{font-size:21px}.private-cleanup .cleanup-summary{padding:16px}.cleanup-legend{grid-template-columns:1fr;gap:8px}.cleanup-legend>div{padding:10px 12px}}

/* Listening status colors belong to the chart, not every control. */
.cleanup-color-new{background:#70a9e1}.cleanup-color-recent{background:#83b79b}
.cleanup-color-quiet{background:#d5bd6d}.cleanup-color-idle{background:#d69861}
.cleanup-color-removed{background:#da7c88}.cleanup-color-protected{background:#9c8bbd}
.cleanup-color-observing{background:#777583}.cleanup-color-other{background:#49464f}
.private-cleanup .cleanup-view-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px 0 10px}
.private-cleanup .cleanup-view-description{max-width:80ch}
.private-cleanup .cleanup-close{display:flex;align-items:center;gap:12px;padding:8px 14px;border-radius:22px;flex:none;background:#292832;color:#eeeaf3}
.cleanup-close span{font-size:22px}
.private-cleanup .cleanup-settings-links [data-protected-settings]{width:100%;max-width:440px;padding:14px 18px;border-radius:24px;background:linear-gradient(110deg,#6951b9,#386da6);color:#fff}
.private-cleanup .cleanup-settings-links [data-protected-settings] svg,.private-cleanup .cleanup-settings-links [data-protected-settings] span,.private-cleanup .cleanup-settings-links [data-protected-settings] small{color:inherit}
.private-cleanup .cleanup-settings-links [data-protected-settings]:hover,.private-cleanup .cleanup-settings-links [data-protected-settings]:focus-visible{background:linear-gradient(110deg,#7b62cc,#4b83bc);color:#fff;filter:none}
.private-cleanup .cleanup-tracks [data-lock]{color:#ddd9e6}
.private-cleanup .cleanup-tracks [data-lock]:hover{background:#ffffff12;color:#fff}
.private-cleanup .cleanup-view-exit,.private-cleanup-dialog[aria-labelledby="cleanup-review-title"] .private-dialog-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.private-cleanup .cleanup-view-exit{margin-top:18px}
.private-cleanup .cleanup-view-exit button,.private-cleanup-dialog[aria-labelledby="cleanup-review-title"] [data-cancel]{background:#292832;color:#f1eef6;padding:10px 20px;border-radius:22px}
.private-cleanup-dialog[aria-labelledby="cleanup-review-title"] [data-confirm]{background:#4b4a55;color:#fff;border-radius:22px;padding:10px 20px}
.private-cleanup .cleanup-view-exit button:hover,.private-cleanup-dialog[aria-labelledby="cleanup-review-title"] [data-cancel]:hover,.private-cleanup .cleanup-close:hover{background:#3b3945;color:#fff}
.private-cleanup-dialog[aria-labelledby="cleanup-review-title"] [data-confirm]:hover{background:#5e5c69;color:#fff}
.private-cleanup .cleanup-disclosure{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:18px;padding:10px;border-radius:18px;background:transparent;color:#c8c3d2;font-size:13px}
.private-cleanup .cleanup-disclosure:hover{background:#ffffff08;color:#fff}
.cleanup-disclosure svg{width:20px;height:20px}
.private-cleanup #cleanup-body[hidden]+.cleanup-disclosure{margin-top:0}
@media(max-width:450px){.private-cleanup .cleanup-view-heading{align-items:flex-start;gap:8px}.private-cleanup .cleanup-close{padding:8px 12px}.private-cleanup .cleanup-view-title{font-size:18px}}

/* Expanded guidance is a distinct, slightly lighter card. */
.private-cleanup .cleanup-about-card{box-sizing:border-box;padding:20px 22px;margin:4px 0 12px;border:0;border-radius:18px;background:#ffffff0a;color:#eeedf2}
.private-cleanup .cleanup-about-card p{color:inherit;line-height:1.7;margin:0 0 14px}
.private-cleanup .cleanup-about-card p:last-child{margin-bottom:0}
@media(max-width:450px){.private-cleanup .cleanup-about-card{padding:17px 18px;border-radius:16px}}

/* Mobile Storage & delivery stays open; desktop retains its disclosure. */
@media (max-width:700px), (max-width:900px) and (max-height:500px) {
  body.private-home-mobile .private-cleanup .cleanup-disclosure { display:none; }
}

/* Percentage is the primary measure; desktop also shows bytes. */
.cleanup-amount{display:grid;gap:5px;text-align:right;white-space:nowrap;align-self:center}.cleanup-amount .cleanup-bytes{font-size:12px;font-weight:400;color:#aaa8b8}
@media(max-width:700px){.cleanup-amount{display:grid;min-width:64px}.cleanup-amount>span{grid-area:1/1;align-self:center}.cleanup-amount .cleanup-percent{animation:cleanup-percent 10s infinite}.cleanup-amount .cleanup-bytes{font-size:13px;animation:cleanup-bytes 10s infinite}}
@keyframes cleanup-percent{0%,42%,100%{opacity:1}50%,92%{opacity:0}}@keyframes cleanup-bytes{0%,42%,100%{opacity:0}50%,92%{opacity:1}}
@media(prefers-reduced-motion:reduce){.cleanup-amount>span{animation:none!important;grid-area:auto;opacity:1!important}}
