/* "Send a download link" panel (dlsend.js): right panel on desktop, sheet from the bottom on phones */
.dls-side { width: min(440px, 100vw); }
.dls-side ~ .modal { z-index: 80; }   /* the in-app Revoke confirm sits over the panel */
.dls-side header { padding: 16px 20px; }
.dls-side .cx-sheet-body { padding: 14px 20px 24px; display: flex; flex-direction: column; }
.dls-song { display: flex; align-items: center; gap: 12px; padding-bottom: 4px; }
.dls-song .cx-thumb { width: 48px; height: 48px; }
.dls-song span { display: flex; flex-direction: column; min-width: 0; }
.dls-song b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dls-song small { color: var(--muted); font-size: 12.5px; }
.dls-h { margin: 20px 0 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.dls-files, .dls-links { list-style: none; margin: 0; padding: 0; }
.dls-files li { border-bottom: 1px solid var(--line); }
.dls-files li:last-child { border-bottom: 0; }
.dls-files label { display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; }
.dls-files input { width: 18px; height: 18px; padding: 0; accent-color: var(--accent); flex: none; margin: 0; }
.dls-files span { display: flex; flex-direction: column; min-width: 0; }
.dls-files b { font-weight: 500; font-size: 14px; }
.dls-files small { color: var(--muted); font-size: 12px; }
.dls-days { align-self: flex-start; }
.dls-mail { width: 100%; }
.dls-msg { width: 100%; margin-top: 10px; background: var(--panel2); border: 1px solid var(--line2); color: var(--text); border-radius: 8px; padding: 9px 11px; font: inherit; resize: vertical; min-height: 44px; outline: none; }
.dls-msg:focus { border-color: var(--accent); }
.dls-acts { display: flex; gap: 10px; margin-top: 14px; }
.dls-acts .btn { flex: 1; justify-content: center; min-height: 42px; }
.dls-acts .btn:disabled { opacity: .45; cursor: not-allowed; }
.dls-note { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; }
.dls-made { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.dls-ok { font-size: 13px; color: var(--accent); }
.dls-url { display: flex; align-items: center; gap: 10px; }
.dls-url input { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted); padding: 7px 10px; }
.dls-links li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dls-links li:last-child { border-bottom: 0; }
.dls-links li.off { opacity: .55; }
.dls-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dls-who b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dls-who small { color: var(--muted); font-size: 12px; }
.dls-who .dls-st.on { color: var(--accent); }
.dls-rv { color: var(--muted); }
@media (max-width: 640px) {
  .dls-side { top: auto; left: 0; right: 0; width: 100vw; max-height: 88vh; max-height: 88dvh; border-left: 0; border-top: 1px solid var(--line2); border-radius: 18px 18px 0 0; box-shadow: 0 -20px 50px rgba(0,0,0,.5); }
  .dls-side::before { content: ""; width: 38px; height: 4px; border-radius: 3px; background: var(--line2); margin: 8px auto 0; flex: none; }
  .dls-side header { padding: 8px 16px 10px; }
  .dls-side .cx-sheet-body { padding: 4px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .dls-days { display: flex; align-self: stretch; } .dls-days button { flex: 1; padding: 7px 6px; }
}
