body.sonven-download-layout #main-content {
  --dl-text: var(--text, #14213b);
  --dl-muted: var(--muted, #4b5b74);
  --dl-surface: var(--bg2, #fff);
  --dl-inset: var(--card, #f4f7fd);
  --dl-border: color-mix(in srgb, var(--dl-text) 17%, transparent);
  --dl-blue: #2459ed;
}
body.sonven-download-layout #main-content > .intro > .shell,
body.sonven-download-layout #main-content .dl-center {
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 40px);
}
body.sonven-download-layout #main-content > .section:has(> .dl-center) {
  padding-block: 20px 48px !important;
}
.dl-center *, .dl-center *::before, .dl-center *::after { box-sizing: border-box; }
.dl-center [hidden] { display: none !important; }
.dl-center .dl-filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  background: var(--dl-surface);
  border: 1px solid var(--dl-border);
  border-radius: 14px;
}
.dl-center .dl-filter { display: grid; gap: 6px; font-weight: 650; color: var(--dl-text); }
.dl-center .dl-filter :is(input, select) {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px;
  color: var(--dl-text); background: var(--dl-inset); border: 1px solid var(--dl-border);
  border-radius: 8px; font: inherit; font-weight: 400;
}
.dl-center .dl-group { margin-top: 28px; }
.dl-center .dl-group-title { margin: 0 0 12px; color: var(--dl-text); font-size: clamp(1.25rem, 2vw, 1.6rem); }
.dl-center .dl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.dl-center .dl-product {
  display: grid; align-content: start; gap: 12px; min-width: 0; min-height: 176px;
  padding: 18px; color: var(--dl-text); background: var(--dl-surface);
  border: 1px solid var(--dl-border); border-radius: 14px; scroll-margin-top: 96px;
}
.dl-center .dl-product-header { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dl-center .dl-product-header img { width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; }
.dl-center .dl-identity { min-width: 0; }
.dl-center :is(.dl-product-name, .dl-status, .dl-description, .dl-meta, .dl-notes) { margin: 0; }
.dl-center .dl-product-name { color: var(--dl-text); font-size: 1.2rem; line-height: 1.3; overflow-wrap: anywhere; }
.dl-center :is(.dl-status, .dl-description, .dl-meta, .dl-notes) { color: var(--dl-muted); line-height: 1.45; }
.dl-center :is(.dl-status, .dl-meta, .dl-notes) { font-size: .875rem; }
.dl-center .dl-compact .dl-product { min-height: 0; padding: 13px 16px; gap: 6px; }
.dl-center .dl-compact .dl-product-header img { width: 36px; height: 36px; flex-basis: 36px; }
.dl-center .dl-options > summary {
  min-height: 44px; padding: 10px 12px; cursor: pointer; font-weight: 650;
  border-radius: 8px; background: var(--dl-inset); border: 1px solid var(--dl-border);
}
.dl-center .dl-options > summary::marker { color: var(--dl-blue); }
.dl-center .dl-files { display: grid; gap: 8px; padding: 0; margin: 10px 0 0; list-style: none; }
.dl-center .dl-file {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 7px 12px;
  padding: 11px; border: 1px solid var(--dl-border); border-radius: 8px; margin: 0;
}
.dl-center .dl-file-info { min-width: 0; overflow-wrap: anywhere; }
.dl-center .dl-file-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: end; }
.dl-center :is(.dl-link, .dl-copy) {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 44px; padding: 8px 10px; font: inherit; font-weight: 650;
  color: #fff; background: var(--dl-blue); border: 0; border-radius: 7px;
  white-space: nowrap; overflow-wrap: normal; word-break: normal;
  text-decoration: none; cursor: pointer;
}
.dl-center .dl-checksum { grid-column: 1 / -1; min-width: 0; font-size: .875rem; }
.dl-center .dl-checksum summary { min-height: 36px; padding-block: 7px; cursor: pointer; color: var(--dl-muted); }
.dl-center .dl-checksum code { display: block; margin-bottom: 7px; overflow-wrap: anywhere; }
.dl-center .dl-copy-status { padding-inline-start: 8px; }
.dl-center :is(a, button, summary, input, select):focus-visible { outline: 2px solid #5983ff; outline-offset: 3px; }
@media (max-width: 800px) {
  .dl-center .dl-cards { grid-template-columns: minmax(0, 1fr); }
  .dl-center .dl-product { min-height: 0; }
}
@media (max-width: 520px) {
  .dl-center .dl-filters, .dl-center .dl-file { grid-template-columns: minmax(0, 1fr); }
  .dl-center .dl-filters { padding: 12px; gap: 10px; }
  .dl-center .dl-product { padding: 14px; }
  .dl-center .dl-file-actions { justify-content: start; }
}
.dl-center .dl-metrics { min-width: 0; font-size: .81rem; color: var(--dl-muted); }
.dl-center .dl-metrics-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 9px; white-space: nowrap; }
.dl-center .dl-rating { color: inherit; font: inherit; padding: 0; border: 0; background: transparent; white-space: nowrap; }
.dl-center button.dl-rating { cursor: pointer; min-height: 32px; text-decoration: underline; text-underline-offset: 3px; }
.dl-center .dl-rating-panel { padding: 6px 0; }
.dl-center .dl-stars { display: flex; gap: 3px; }
.dl-center .dl-stars button { min-width: 37px; min-height: 40px; color: var(--dl-text); background: var(--dl-inset); border: 1px solid var(--dl-border); border-radius: 6px; cursor: pointer; }
.dl-center .dl-stars button:hover { color: #2459ed; }
.dl-center .dl-rating-status { margin: 4px 0 0; }
