.download-shell {
  min-height: 100vh;
}

.downloads-hero,
.downloads-panel {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 20%, rgba(46, 233, 189, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(8, 30, 43, 0.96), rgba(5, 17, 25, 0.98));
  box-shadow: var(--shadow);
}

.downloads-hero {
  padding: 46px;
}

.downloads-hero h1 {
  margin: 10px 0 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 760;
  line-height: 1.1;
}

.downloads-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.downloads-panel {
  padding: 30px;
}

.downloads-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.downloads-panel-header h2 {
  margin: 8px 0 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.18;
}

.downloads-refresh {
  flex: 0 0 auto;
}

.downloads-refresh:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.download-status {
  min-height: 38px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(134, 218, 199, 0.24);
  border-radius: 14px;
  background: rgba(134, 218, 199, 0.08);
  color: rgba(220, 241, 236, 0.84);
  font-size: 14px;
  font-weight: 620;
}

.download-status.is-error {
  border-color: rgba(255, 151, 126, 0.45);
  background: rgba(255, 151, 126, 0.1);
  color: #ffd1c6;
}

.download-list {
  display: grid;
  gap: 12px;
}

.download-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(54, 230, 210, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 36%),
    rgba(10, 29, 43, 0.88);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.download-file-badge {
  display: grid;
  place-items: center;
  width: 76px;
  height: 56px;
  border: 1px solid rgba(134, 218, 199, 0.36);
  border-radius: 16px;
  background: rgba(134, 218, 199, 0.1);
  color: var(--mint);
  font-family: var(--font-number);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.download-file-main {
  min-width: 0;
}

.download-file-main h3 {
  margin: 0;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 720;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-file-main p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.download-file-action {
  min-width: 112px;
}

.download-empty {
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(134, 218, 199, 0.28);
  border-radius: 20px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
}

@media (max-width: 720px) {
  .downloads-hero,
  .downloads-panel {
    padding: 22px;
    border-radius: 28px;
  }

  .downloads-hero h1 {
    font-size: 38px;
  }

  .downloads-panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .download-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .download-file-badge {
    width: 68px;
    height: 48px;
  }

  .download-file-main h3 {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .download-file-action,
  .downloads-refresh {
    width: 100%;
  }
}
