.download-panel{position:fixed;right:28px;bottom:22px;width:420px;max-width:calc(100vw - 30px);z-index:21;background:var(--surface,#fff);color:var(--text,#33412e);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 42px #0003;overflow:hidden}.download-panel[hidden]{display:none}.download-panel header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line);font-size:13px}.download-jobs{max-height:min(65vh,560px);overflow:auto}.download-job{padding:14px 18px;border-bottom:1px solid var(--line)}.download-job:last-child{border-bottom:0}.download-job-head{display:flex;gap:8px;align-items:center;margin-bottom:10px}.download-job-head>strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.download-job .icon-button{height:28px;width:28px;flex:0 0 28px;border-radius:7px}.download-job progress{display:block;width:100%;height:5px;border:0;accent-color:var(--accent,#99b95b);margin:10px 0}.download-numbers{display:flex;justify-content:space-between;font-size:12px;margin:9px 0}.download-job small{display:block;font-size:11px;color:var(--muted);line-height:1.6}.download-job>.secondary{margin-top:10px;font-size:12px}html[data-theme="dark"] .download-panel,body[data-theme="dark"] .download-panel{background:#1d2329;color:#dce1e5}.preview-dialog video{width:100%;aspect-ratio:16/9;background:#111}.preview-loading{font-size:12px;color:var(--muted);text-align:center;margin:10px 0}
.download-settings{border-bottom:1px solid var(--line);padding:0 18px}.download-settings summary{cursor:pointer;padding:12px 0;list-style:none;display:flex;gap:10px;align-items:center;justify-content:space-between;font-size:11px}.download-settings summary::after{content:'⌄';font-size:15px;color:var(--muted)}.download-settings[open] summary::after{transform:rotate(180deg)}.download-settings-state{margin-left:auto;font-size:10px;color:var(--muted)}.download-settings-body{padding:0 0 14px}.download-settings-body>label{margin:10px 0;font-size:11px;color:var(--muted);display:flex;justify-content:space-between;align-items:center;gap:12px}.download-settings-body input{background:transparent;color:inherit;border:1px solid var(--line);border-radius:7px;padding:7px 8px;width:66px;font-size:12px;margin:0}.download-settings-body>label:has(.download-rate-row){display:block}.download-rate-row{display:flex;gap:7px;align-items:center;margin-top:8px}.download-rate-row input{flex:1;min-width:60px}.download-rate-units{display:flex;border:1px solid var(--line);border-radius:8px;padding:2px;gap:2px}.download-rate-units button{font-size:10px;padding:6px 7px;border-radius:6px}.download-rate-units button[aria-pressed=true]{background:#92b76526;color:#91ab63}.download-rate-row .text-button{font-size:10px;white-space:nowrap}.download-settings-body>small{font-size:10px;color:var(--muted)}

.download-panel{display:flex;flex-direction:column;max-height:calc(100dvh - 44px)}.download-panel>header,.download-settings{flex-shrink:0}.download-jobs{flex:1;min-height:0}.download-job .download-target{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:-5px}
.download-job-complete{padding:10px 18px}.download-job-complete .download-job-head{margin:0 0 6px;gap:12px}.download-job-complete .download-job-head>.download-complete-percent{flex:0 0 auto;font-size:11px;color:#8da958}.download-job-complete progress{height:3px;margin:0}.download-destination{background:var(--surface,#fff);color:var(--text,#33412e);border-color:var(--line);width:460px}.download-destination h2{font-size:20px;margin:0 0 12px}.download-destination>p{color:var(--muted)}.download-destination-help{border:1px solid var(--line);border-radius:10px;padding:14px;background:#92b7650c}.download-destination-help strong{font-size:12px}.download-destination-help p{font-size:12px;line-height:1.7;color:var(--muted);margin:8px 0 0}html[data-theme="dark"] .download-destination{background:#1d2329;color:#dce1e5}

.download-panel button[aria-pressed="true"]{background:#b4d574;color:#111b12;font-weight:700;border-radius:5px}
