/* ============================================================
 * CARDES – Öffentliche Download-Seite (cp.cardes.xyz/download)
 * Baut auf feedback.css auf (gleicher Look wie cardes.xyz), hier nur die Ergänzungen.
 * ============================================================ */

/* gleiche Breite/Ausrichtung wie die Überschrift, Inhalt aber nicht breiter als 820px */
.dl-wrap { display: grid; gap: 16px; justify-items: start; align-content: start; padding-bottom: 100px; }
.dl-wrap > .fb-panel, .dl-wrap > .fb-banner { width: 100%; max-width: 820px; }

.dl-all {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-size: .88rem; font-weight: 600; transition: border-color .2s, color .2s;
}
.dl-all:hover { border-color: rgba(255,122,26,.5); color: var(--text); }
.dl-all svg { width: 16px; height: 16px; }

.dl-body { display: flex; flex-direction: column; gap: 18px; }

/* Datei-Karte */
.dl-file { display: flex; align-items: center; gap: 14px; }
.dl-file > div { flex: 1; min-width: 0; }
.dl-file b { display: block; font-size: 1.05rem; font-weight: 800; overflow-wrap: anywhere; }
.dl-file small { color: var(--muted); font-size: .85rem; }
.dl-ext {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(255,122,26,.25);
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; transition: background .2s, color .2s;
}
.dl-lock { flex: none; }
.dl-lock svg, .dl-pw svg { width: 14px; height: 14px; }
.dl-pw { display: inline-flex; vertical-align: -2px; margin-right: 6px; color: var(--accent); }

.dl-desc { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); font-size: .97rem; line-height: 1.65; }
.dl-hash { font: 12px ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--muted); word-break: break-all; font-weight: 400; }
.dl-body .fb-sum { margin: 0; }

/* Übersicht */
.dl-list { list-style: none; margin: 0; padding: 0; }
.dl-list li + li { border-top: 1px solid var(--line); }
.dl-row { display: flex; align-items: center; gap: 14px; padding: 18px 24px; color: var(--text); transition: background .2s; }
.dl-row:hover { background: rgba(255,255,255,.02); }
.dl-row:hover .dl-ext { background: var(--accent); color: #fff; }
.dl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl-info b { font-size: 1rem; font-weight: 700; }
.dl-info small { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-size: .88rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dl-meta small { color: var(--faint); font-size: .78rem; font-weight: 400; }

@media (max-width: 560px) {
  .dl-row { padding: 14px 16px; }
  .dl-meta small { display: none; }
  .dl-file { flex-wrap: wrap; }
}
