.downloads-page {
  background: #f3f1eb;
}

.downloads-current-link {
  color: var(--coral) !important;
}

.downloads-local-banner {
  background: var(--coral);
  color: #fff;
  padding: 8px 18px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.downloads-state-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
  padding: 12px 18px;
}

.downloads-state-switch > span {
  margin-right: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.downloads-state-switch button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
}

.downloads-state-switch button.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

[data-download-user] {
  display: none !important;
}

.is-download-user [data-download-user] {
  display: revert !important;
}

.downloads-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(30px, 7vw, 90px);
  align-items: end;
  background: #20332f;
  color: #fffdf8;
}

.downloads-hero > div {
  display: grid;
  gap: 18px;
}

.downloads-hero h1,
.downloads-hero p,
.downloads-heading h2,
.downloads-heading p,
.download-card h3,
.download-card p {
  margin: 0;
}

.downloads-hero h1 {
  max-width: 850px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.96;
}

.downloads-hero > div > p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 253, 248, 0.72);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.downloads-login-card {
  display: grid;
  gap: 13px;
  width: min(100%, 560px);
  box-sizing: border-box;
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 5px solid #20332f;
  border-radius: 10px;
  background: #fffdf8;
  padding: clamp(24px, 4vw, 34px);
  box-shadow: 0 14px 34px rgba(23, 33, 31, 0.08);
}

.downloads-login-card h2,
.downloads-login-card p {
  margin: 0;
}

.downloads-login-card h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.downloads-login-card > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.downloads-login-card .button {
  justify-self: start;
}

.downloads-login-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  gap: 12px 16px;
  margin-top: 5px;
}

.downloads-login-actions button,
.downloads-login-actions a:not(.button) {
  max-width: 100%;
  border: 0;
  background: transparent;
  color: var(--teal);
  padding: 8px 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.downloads-login-actions button:hover,
.downloads-login-actions button:focus-visible,
.downloads-login-actions a:not(.button):hover,
.downloads-login-actions a:not(.button):focus-visible {
  color: var(--coral);
}

.downloads-user-summary {
  display: grid;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 13px;
}

.downloads-user-avatar-ring {
  position: relative;
  display: grid;
  grid-row: 1 / 4;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  isolation: isolate;
}

.downloads-hero-access-active .downloads-user-avatar-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 4px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 235deg, rgba(45, 212, 191, 0.35) 285deg, #2dd4bf 330deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ds-download-avatar-ring 3.2s linear infinite;
}

.downloads-hero-access-guest .downloads-user-avatar-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 4px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 235deg, rgba(230, 107, 79, 0.35) 285deg, #e66b4f 330deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ds-download-avatar-ring 3.2s linear infinite;
}

.downloads-hero-access {
  justify-self: end;
  width: min(100%, 360px);
  max-width: 100%;
  min-width: 0;
  border-color: rgba(255, 253, 248, 0.22);
  border-top-color: var(--coral);
  background: rgba(255, 253, 248, 0.96);
  color: var(--ink);
}

.downloads-hero-access h2,
.downloads-hero-access p,
.downloads-hero-access .eyebrow,
.downloads-hero-access small,
.downloads-hero-access strong {
  color: inherit;
}

.downloads-hero > .downloads-hero-access h2,
.downloads-hero > .downloads-hero-access p,
.downloads-hero > .downloads-hero-access .eyebrow,
.downloads-hero > .downloads-hero-access small,
.downloads-hero > .downloads-hero-access strong {
  color: #17211f;
}

.downloads-hero > .downloads-hero-access .downloads-login-actions a:not(.button) {
  color: var(--teal);
}

.downloads-page .downloads-hero > .downloads-hero-access > p:not(.eyebrow) {
  color: #4f5f5b;
}

.downloads-hero-access h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.downloads-hero-access p {
  overflow-wrap: anywhere;
}

.downloads-hero-access-active {
  align-self: start;
  transform: translateY(-50px);
  width: min(100%, 330px);
  border: 0;
  border-top: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  color: #fffdf8;
}

.downloads-hero-access-guest {
  align-self: start;
  transform: translateY(-50px);
  width: min(100%, 390px);
  border: 0;
  border-top: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  color: #fffdf8;
}

.downloads-hero > .downloads-hero-access-active .eyebrow,
.downloads-hero > .downloads-hero-access-active p,
.downloads-hero > .downloads-hero-access-active small,
.downloads-hero > .downloads-hero-access-active strong,
.downloads-hero > .downloads-hero-access-active em {
  color: #fffdf8;
}

.downloads-hero > .downloads-hero-access-guest .eyebrow,
.downloads-hero > .downloads-hero-access-guest p,
.downloads-hero > .downloads-hero-access-guest small,
.downloads-hero > .downloads-hero-access-guest strong,
.downloads-hero > .downloads-hero-access-guest em {
  color: #fffdf8;
}

.downloads-hero-access-active .downloads-user-summary,
.downloads-hero-access-guest .downloads-user-summary {
  grid-template-columns: auto minmax(0, 1fr);
  justify-content: end;
  align-items: center;
  text-align: left;
}

.downloads-hero-access-active .downloads-user-summary > .eyebrow,
.downloads-hero-access-guest .downloads-user-summary > .eyebrow {
  grid-column: 2;
}

.downloads-hero-access-active .downloads-user-summary small,
.downloads-hero-access-guest .downloads-user-summary small {
  color: rgba(255, 253, 248, 0.72);
}

.downloads-hero-access-active .downloads-user-summary em,
.downloads-hero-access-guest .downloads-user-summary em {
  color: rgba(255, 253, 248, 0.82);
}

.downloads-hero-access-guest .downloads-user-summary em a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.downloads-hero-access-guest .downloads-user-summary em a:hover,
.downloads-hero-access-guest .downloads-user-summary em a:focus-visible {
  color: var(--coral);
}

.downloads-hero-access-guest .downloads-login-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.downloads-hero > .downloads-hero-access-guest .downloads-login-actions a:not(.button) {
  color: rgba(255, 253, 248, 0.86);
}

.downloads-hero-access-guest .downloads-login-actions a:not(.button):hover,
.downloads-hero-access-guest .downloads-login-actions a:not(.button):focus-visible {
  color: var(--coral);
}

.downloads-user-avatar {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: #4564c8;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  object-fit: cover;
}

.downloads-user-avatar-empty {
  position: relative;
  z-index: 1;
  display: block;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  background: #333;
  box-shadow: inset 0 0 0 2px rgba(255, 253, 248, 0.62);
}

.downloads-user-avatar-empty::before,
.downloads-user-avatar-empty::after {
  content: "";
  position: absolute;
  left: 50%;
  background: rgba(255, 253, 248, 0.78);
  transform: translateX(-50%);
}

.downloads-user-avatar-empty::before {
  top: 17px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
}

.downloads-user-avatar-empty::after {
  bottom: 15px;
  width: 34px;
  height: 20px;
  border-radius: 999px 999px 12px 12px;
}

@keyframes ds-download-avatar-ring {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .downloads-hero-access-active .downloads-user-avatar-ring::before,
  .downloads-hero-access-guest .downloads-user-avatar-ring::before {
    animation: none;
  }
}

.downloads-user-summary p {
  display: grid;
  margin: 0;
}

.downloads-user-summary small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.downloads-user-summary em {
  grid-column: 2;
  color: var(--teal);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 850;
}

.downloads-library {
  display: grid;
  gap: 32px;
  background: #f3f1eb;
}

.downloads-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.downloads-heading h2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.downloads-controls {
  display: grid;
  gap: 10px;
  min-width: min(100%, 430px);
}

.downloads-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.downloads-controls input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
  padding: 0 18px;
  color: var(--ink);
  font: inherit;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.download-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf8;
  padding: 14px;
  position: relative;
  overflow: visible;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.download-card:not(.download-card--has-preview) {
  grid-template-columns: 88px minmax(0, 1fr);
}

.download-card:hover {
  z-index: 90;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(23, 33, 31, 0.08);
}

.download-card--has-preview {
  grid-template-columns: 88px minmax(0, 1fr);
}

.download-card-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 96px;
  gap: 4px;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, #4564c8 88%, #101816), #4564c8),
    #4564c8;
  color: #fffdf8;
  text-align: center;
}

.download-card:not(.download-card--has-preview) .download-card-visual {
  min-height: 96px;
}

.download-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(135deg, transparent 0 40%, rgba(255, 255, 255, 0.12) 40% 55%, transparent 55%);
  pointer-events: none;
}

.download-card-visual.has-preview {
  place-items: center;
  gap: 0;
  min-height: 96px;
  border-radius: 14px;
  background: #101816;
}

.download-card-preview-link,
.download-card-document-preview,
.download-card-visual video,
.download-card-visual img {
  display: block;
  width: 100%;
  height: 100%;
}

.download-card-visual img,
.download-card-visual video {
  object-fit: cover;
  background: #101816;
}

.download-card-visual video,
.download-card-audio-preview audio {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.download-card-preview-link {
  cursor: pointer;
}

.download-card-document-preview,
.download-card-audio-preview {
  display: grid;
  place-items: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  color: #fffdf8;
  padding: 10px;
  text-decoration: none;
}

.download-card-document-preview strong,
.download-card-audio-preview strong {
  font-size: 0.98rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.download-card-document-preview span {
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-card-document-preview:hover,
.download-card-document-preview:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.download-card-audio-preview audio {
  width: 100%;
}

.download-card-visual span {
  position: relative;
  z-index: 1;
  max-width: 78px;
  overflow: hidden;
  font-size: 0.98rem;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
}

.download-card:not(.download-card--has-preview) .download-card-visual span {
  font-size: 0.98rem;
}

.download-card-visual small {
  position: relative;
  z-index: 1;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.18);
  padding: 3px 8px;
  color: rgba(255, 253, 248, 0.88);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-card-visual-teal { background: #4564c8; }
.download-card-visual-coral { background: #b33f58; }
.download-card-visual-dark { background: #2f7898; }
.download-card-visual-cream { background: #596675; }

.download-card-content {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 0;
}

.download-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.download-card-tags span {
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal);
  padding: 4px 8px;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.download-card h3 {
  margin: 0;
  color: var(--ink);
  display: -webkit-box;
  overflow: hidden;
  font-size: 1.08rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.download-card-content > p,
.download-card-content > .download-description {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.download-description-toggle {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--teal);
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.download-description-toggle:hover,
.download-description-toggle:focus-visible {
  color: var(--coral);
}

.download-card.is-description-open .download-description,
.lab-download-browser-card.is-description-open .download-description {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.download-card.is-description-open .download-card-content > .download-description {
  color: var(--muted);
}

.download-card-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.download-card-actions {
  position: relative;
  z-index: 35;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.download-card-actions .button {
  min-height: 38px;
  padding: 8px 12px;
}

.downloads-category-shell .download-card {
  box-shadow: 0 12px 24px rgba(14, 37, 33, 0.04);
}

.downloads-category-shell .download-card:hover {
  box-shadow: 0 14px 30px rgba(23, 33, 31, 0.08);
  transform: translateY(-3px);
}

.downloads-category-shell .download-card-tags {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.downloads-category-shell .download-card-tags span {
  display: inline;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0.03em;
}

.downloads-category-shell .download-card-tags span + span::before {
  content: " · ";
}

.downloads-category-shell .download-card-footer {
  justify-content: space-between;
}

.downloads-category-shell .download-card-tags span + span::before {
  content: " - ";
}

.lab-download-browser-card > .download-archive-thumb {
  position: relative;
  display: grid;
  min-height: 68px;
  place-items: center;
  gap: 2px;
  border-radius: 14px;
  background: #4564c8;
  color: #fffdf8;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
}

.lab-download-browser-card > .download-archive-thumb--preview {
  background: #101816;
}

.lab-download-browser-card > .download-archive-thumb img,
.lab-download-browser-card > .download-archive-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 68px;
  object-fit: cover;
}

.lab-download-browser-card > .download-archive-thumb strong {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  font-weight: 950;
}

.lab-download-browser-card > .download-archive-thumb small {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(16, 24, 22, 0.72);
  padding: 2px 7px;
  color: #fffdf8;
  font-size: 0.58rem;
  font-weight: 900;
}

.downloads-page .lab-download-browser-card {
  align-items: center;
}

.downloads-page .lab-download-browser-card > div:not(.lab-download-browser-actions) {
  display: grid;
  gap: 3px;
  min-width: 0;
  max-height: 68px;
  overflow: hidden;
}

.downloads-page .lab-download-browser-card h4 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.downloads-page .lab-download-browser-card p,
.downloads-page .lab-download-browser-card .download-description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.downloads-page .lab-download-browser-card > div:not(.lab-download-browser-actions) > small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.downloads-page .lab-download-browser-actions {
  position: relative;
  z-index: 6;
  flex-wrap: nowrap;
}

.downloads-page .lab-download-browser-actions .button {
  position: relative;
  z-index: 7;
  min-height: 34px;
  padding: 7px 10px;
  white-space: nowrap;
}

.downloads-page .lab-download-category-browser .lab-download-browser-grid {
  gap: 7px;
}

.downloads-page .lab-download-category-browser .lab-download-browser-card {
  position: relative;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 90px;
  max-height: 90px;
  align-items: center;
  padding: 6px 10px;
  overflow: visible;
  box-shadow: 0 8px 18px rgba(14, 37, 33, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.downloads-page .lab-download-category-browser .lab-download-browser-card.is-description-open {
  max-height: none;
  min-height: 90px;
}

.downloads-page .lab-download-category-browser .lab-download-browser-card:hover,
.downloads-page .lab-download-category-browser .lab-download-browser-card:focus-within {
  z-index: 80;
  box-shadow: 0 14px 30px rgba(23, 33, 31, 0.08);
  transform: translateY(-3px);
}

.downloads-page .lab-download-category-browser .lab-download-browser-card > span,
.downloads-page .lab-download-category-browser .lab-download-browser-card > .download-archive-thumb {
  width: 76px;
  min-height: 68px;
  height: 68px;
  overflow: hidden;
}

.downloads-page .lab-download-category-browser .lab-download-browser-card > .download-archive-thumb img,
.downloads-page .lab-download-category-browser .lab-download-browser-card > .download-archive-thumb video {
  min-height: 68px;
  height: 68px;
}

.downloads-page .lab-download-category-browser .lab-download-browser-card > div:not(.lab-download-browser-actions) {
  gap: 1px;
  max-height: 84px;
  overflow: hidden;
}

.downloads-page .lab-download-category-browser .lab-download-browser-card.is-description-open > div:not(.lab-download-browser-actions) {
  max-height: none;
  overflow: visible;
}

.downloads-page .lab-download-category-browser .lab-download-browser-card h4 {
  font-size: 0.95rem;
  line-height: 1.1;
}

.downloads-page .lab-download-category-browser .lab-download-browser-card p,
.downloads-page .lab-download-category-browser .lab-download-browser-card .download-description {
  font-size: 0.82rem;
  line-height: 1.2;
}

.downloads-page .lab-download-category-browser .download-description-toggle {
  font-size: 0.68rem;
}

.downloads-page .lab-download-category-browser .lab-download-browser-card.is-description-open .download-description {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.downloads-page .lab-download-category-browser .lab-download-browser-card > div:not(.lab-download-browser-actions) > small {
  font-size: 0.68rem;
  line-height: 1.2;
}

.downloads-page .lab-download-category-browser .lab-download-browser-actions .button {
  position: relative;
  z-index: 7;
  min-height: 30px;
  padding: 6px 9px;
  font-size: 0.76rem;
}

.downloads-page .lab-download-browser-pagination a.button {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  border-color: var(--line);
  background: #fffdf8;
  color: var(--ink);
  text-decoration: none;
}

.downloads-page .lab-download-browser-pagination a.button:hover,
.downloads-page .lab-download-browser-pagination a.button:focus-visible {
  border-color: rgba(15, 118, 110, 0.42);
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal);
}

.downloads-page .lab-download-category-browser .lab-download-browser-actions .button[title]::after {
  z-index: 140;
}

.downloads-page .lab-download-category-browser .lab-download-browser-actions .button[title]::before {
  z-index: 141;
}

.download-uploader {
  display: flex;
  align-items: center;
  gap: 10px;
}

.download-uploader-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #20332f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  object-fit: cover;
}

.download-uploader > span:last-child {
  display: grid;
  gap: 2px;
}

.download-uploader small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.download-uploader strong {
  font-size: 0.82rem;
}

.downloads-status {
  min-height: 22px;
  color: var(--coral);
  font-weight: 800;
  text-align: center;
}

.downloads-page .download-preview-secondary {
  border-color: var(--line);
  background: #fffdf8;
  color: var(--ink);
}

.downloads-page .download-preview-secondary:hover,
.downloads-page .download-preview-secondary:focus-visible {
  border-color: rgba(15, 118, 110, 0.42);
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal);
}

@media (max-width: 1050px) {
  .downloads-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .downloads-hero { grid-template-columns: 1fr; }

  .downloads-hero-access {
    justify-self: stretch;
    width: 100%;
  }

  .downloads-hero-access-active,
  .downloads-hero-access-guest {
    transform: none;
  }

  .downloads-heading { align-items: start; flex-direction: column; }
  .downloads-controls { width: 100%; }
}

@media (max-width: 560px) {
  .download-card { grid-template-columns: 1fr; }
  .download-card:not(.download-card--has-preview) { grid-template-columns: 1fr; }
  .download-card--has-preview { grid-template-columns: 1fr; }
  .download-card-visual,
  .download-card-visual.has-preview {
    min-height: 96px;
    border-radius: 14px;
  }
  .download-card-footer { align-items: stretch; flex-direction: column; }
  .download-card-actions,
  .download-card-footer .button { width: 100%; }
  .download-card-actions { justify-content: stretch; }
}

@media (max-width: 720px) {
  .downloads-page .lab-download-category-browser .lab-download-browser-card {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    max-height: none;
    padding: 12px;
    overflow: visible;
  }

  .downloads-page .lab-download-category-browser .lab-download-browser-card > span,
  .downloads-page .lab-download-category-browser .lab-download-browser-card > .download-archive-thumb {
    width: 100%;
    min-height: 130px;
    height: 130px;
  }

  .downloads-page .lab-download-category-browser .lab-download-browser-card > .download-archive-thumb img,
  .downloads-page .lab-download-category-browser .lab-download-browser-card > .download-archive-thumb video {
    min-height: 130px;
    height: 130px;
  }

  .downloads-page .lab-download-category-browser .lab-download-browser-card > div:not(.lab-download-browser-actions) {
    max-height: none;
  }

  .downloads-page .lab-download-category-browser .lab-download-browser-card p {
    -webkit-line-clamp: 2;
  }

  .downloads-page .lab-download-category-browser .lab-download-browser-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .downloads-page .lab-download-category-browser .lab-download-browser-actions .button {
    width: 100%;
    min-height: 38px;
  }
}

@media (max-width: 420px) {
  .downloads-page .lab-download-category-browser .lab-download-browser-actions {
    grid-template-columns: 1fr;
  }
}
