/* The Downloads page (public/downloads.js). The file icon reuses .file-icon from styles.css, the day headings
   .day-head, the buttons .btn, and the "on your PC" card .more-icon / .more-text. */
.dl-head { display: flex; flex-direction: column; gap: 10px; }
.dl-search { display: flex; align-items: center; gap: 10px; max-width: 640px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--ink-3); transition: border-color .2s var(--ease); }
.dl-search:focus-within { border-color: var(--pen); }
.dl-search svg { flex: none; }
.dl-search input { flex: 1; min-width: 0; min-height: 46px; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); outline: none; }

.dl-group { display: flex; flex-direction: column; }
.dl-group .day-head { margin-top: 0; }
.dl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: var(--card); overflow: hidden; }
.dl-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; min-height: 64px; }
.dl-row + .dl-row { border-top: 1px solid var(--rule); }
.dl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dl-name { font-size: 15px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-meta { font-size: 13px; color: var(--ink-3); }
.dl-actions { flex: none; display: flex; gap: 8px; }
.dl-actions .btn.ghost { border-color: var(--line-2); }
.dl-foot { margin: 0; font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }

.dl-away { display: flex; align-items: center; gap: 16px; max-width: 640px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }

@media (max-width: 860px) {
  .dl-row { flex-wrap: wrap; }
  .dl-text { flex-basis: calc(100% - 56px); }
  .dl-actions { width: 100%; padding-left: 52px; }
  .dl-actions .btn { flex: 1; justify-content: center; }
}
