/* Recent downloads: an honest limited history, scoped to the administrator preview. */
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-tab-toolbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding: 0; border: 0; }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-toolbar-copy { min-width: 0; display: grid; gap: 4px; }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-view-title { margin: 0; color: var(--wyl-ink); font: 650 24px/1.4 var(--wyl-ui-font); }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-tab-toolbar p { margin: 0; color: var(--wyl-muted); font-size: 13px; line-height: 1.6; font-variant-numeric: tabular-nums; }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-browse { min-height: 44px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px; background: var(--wyl-preview-action); color: var(--wyl-preview-action-ink); font-size: 14px; font-weight: 500; text-decoration: none; transition: filter .18s ease; }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] :is(.wyl-account-browse, .wyl-account-book-open) .wyl-icon { width: 18px; height: 18px; flex: 0 0 18px; stroke-width: 1.8; }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-content > .wyl-account-book-list { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; overflow: hidden; margin: 0; padding: 0; border: 1px solid var(--wyl-line); border-radius: 12px; background: var(--wyl-surface); box-shadow: none; }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-list .wyl-account-book { min-width: 0; min-height: 124px; display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 16px; margin: 0; padding: 18px; border: 0; border-bottom: 1px solid var(--wyl-line); border-radius: 0; background: transparent; color: var(--wyl-ink); text-decoration: none; box-shadow: none; transform: none; transition: background-color .18s ease; }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-list .wyl-account-book:nth-child(odd) { border-right: 1px solid var(--wyl-line); }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-list .wyl-account-book:nth-last-child(-n+2) { border-bottom: 0; }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-list .wyl-account-book-cover { width: 64px; height: 88px; align-self: start; overflow: hidden; border-radius: 5px; background: var(--wyl-surface-soft); }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-list .wyl-account-book-copy { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 0 24px 0 0; }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-list .wyl-account-book-copy h3 { min-width: 0; max-width: 100%; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0; color: var(--wyl-ink); font: 600 15px/1.5 var(--wyl-ui-font); overflow-wrap: anywhere; }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-list .wyl-account-book-copy > p { max-width: 100%; margin: 5px 0 0; color: var(--wyl-muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-list .wyl-account-book-meta { min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0 0; }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-list .wyl-account-book-meta span { max-width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--wyl-muted); font-size: 12px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-list .wyl-account-book-meta span + span { padding-left: 8px; border-left: 1px solid var(--wyl-line); }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-list .wyl-account-book-open { position: absolute; inset: 50% 0 auto auto; width: 18px; height: 24px; display: grid; place-items: center; margin: -12px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--wyl-muted); box-shadow: none; }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-list .wyl-account-book:focus-visible { outline: 2px solid var(--wyl-jade); outline-offset: -3px; background: var(--wyl-surface-soft); }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-empty { padding: 36px 24px; border: 1px solid var(--wyl-line); border-radius: 12px; background: var(--wyl-surface); box-shadow: none; }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-empty h2 { color: var(--wyl-ink); font-size: 18px; line-height: 1.5; }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-empty p { color: var(--wyl-muted); font-size: 14px; line-height: 1.7; }
body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-empty > a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid transparent; border-radius: 8px; background: var(--wyl-preview-action); color: var(--wyl-preview-action-ink); font-size: 14px; text-decoration: none; }
@media (hover: hover) {
  body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-list .wyl-account-book:hover { background: var(--wyl-surface-soft); transform: none; }
  body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book:hover .wyl-account-book-open { background: transparent; color: var(--wyl-jade); }
  body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-browse:hover { filter: brightness(.94); }
}
@media (max-width: 1100px) {
  body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-list .wyl-account-book { gap: 12px; padding: 16px; }
}
@media (max-width: 640px) {
  body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-tab-toolbar { gap: 10px; margin-bottom: 14px; }
  body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-view-title { font-size: 22px; }
  body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-tab-toolbar p { font-size: 12px; }
  body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-browse { gap: 6px; padding-inline: 10px; font-size: 13px; }
  body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-content > .wyl-account-book-list { grid-template-columns: minmax(0, 1fr); }
  body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-list .wyl-account-book { min-height: 116px; gap: 14px; padding: 14px; border: 0; border-bottom: 1px solid var(--wyl-line); }
  body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-list .wyl-account-book:nth-child(odd) { border-right: 0; }
  body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-list .wyl-account-book:nth-last-child(2) { border-bottom: 1px solid var(--wyl-line); }
  body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-list .wyl-account-book:last-child { border-bottom: 0; }
  body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-list .wyl-account-book-copy h3 { font-size: 14px; }
  body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-book-list .wyl-account-book-copy > p { font-size: 12px; }
  body.wyl-frontend-preview [data-wyl-account-section="downloads"] .wyl-account-empty { padding: 28px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  body.wyl-frontend-preview [data-wyl-account-section="downloads"] :is(.wyl-account-book, .wyl-account-browse) { transition: none; }
}
