.download-intro {
  margin-bottom: 1.5rem;
}

.download-form {
  margin-bottom: 2rem;
}

.download-section {
  margin: 0;
}

.download-section + .download-section {
  margin-top: 1rem;
}

.download-filter-sticky {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 1rem 0;
  border-bottom: 1px solid #ccc;
  z-index: 10;
}

.download-section-heading {
  font-weight: bold;
  margin: 0;
}

.download-feed-section {
  padding-top: 0;
}

.download-filter-controls {
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
}

.download-feed-controls {
  padding-top: 1rem;
}

.folder-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: center;
}

.folder-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  margin: 0;
}

.folder-option input {
  margin: 0;
}

.folder-option-count {
  color: #666;
}

.feed-options {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.5rem;
}

.feed-option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.feed-option input {
  margin: 0.2rem 0 0;
}

.feed-option-copy {
  display: grid;
  gap: 0.1rem;
}

.feed-option-name {
  font-weight: 500;
  font-size: 1.12rem;
}

.feed-option-meta {
  color: #666;
  font-size: 0.95rem;
}

.download-empty-state {
  margin: 0;
}

.download-status {
  min-height: 1.5rem;
  margin: 0.75rem 0 0;
}

.download-status.is-error {
  color: #b00020;
}

.download-status.is-success {
  color: #0a6d32;
}

.download-button {
  padding: 0.45rem 0.9rem;
}

@media (max-width: 40rem) {
  .folder-options {
    gap: 0.35rem 0.5rem;
  }
}

@media (prefers-color-scheme: dark) {
  .download-filter-sticky {
    background-color: #121212;
    border-bottom-color: #333;
  }

  .folder-option-count,
  .feed-option-meta {
    color: #b5b5b5;
  }

  .download-status.is-error {
    color: #ff9aa2;
  }

  .download-status.is-success {
    color: #7fd59a;
  }
}
