.download-shell {
  background: #f7f9fc;
  min-height: calc(100vh - 82px);
  padding: 28px 0 48px;
}

.proto-container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 28px;
}

.download-page-title {
  margin: 0 0 64px;
  color: #214b8d;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.08;
}

.download-panel {
  border: 1px solid #dbe7f8;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(26, 60, 112, 0.08);
  padding: 30px 26px 18px;
}

.download-panel h2 {
  margin: 0;
  color: #31588f;
  font-size: 28px;
  font-weight: 700;
}

.download-divider {
  height: 1px;
  margin: 20px 0 22px;
  background: #e2e8f2;
}

.download-category-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.download-category-filter button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #cfdef2;
  border-radius: 6px;
  background: #f7fbff;
  color: #31588f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 0 13px;
  white-space: nowrap;
}

.download-category-filter button span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #e7f0fb;
  color: #214b8d;
  font-size: 12px;
}

.download-category-filter button.is-active {
  border-color: #2f63b9;
  background: #2f63b9;
  color: #ffffff;
}

.download-category-filter button.is-active span {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.download-table-wrap {
  overflow-x: auto;
}

.download-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.download-table thead th {
  padding: 16px 12px;
  border-bottom: 2px solid #193458;
  color: #214b8d;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.download-table tbody td {
  padding: 18px 12px;
  border-bottom: 1px solid #dde6f3;
  color: #193458;
  font-size: 15px;
  line-height: 1.6;
  vertical-align: top;
}

.download-table tbody tr:hover {
  background: #f8fbff;
}

.download-table td.dataset-cell {
  width: 22%;
}

.download-table td.dataset-cell span {
  color: #17345c;
  font-weight: 700;
}

.dataset-toggle {
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.dataset-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dataset-caret {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #5877aa;
  transition: transform 0.22s ease;
}

.dataset-row.is-open .dataset-caret {
  transform: rotate(90deg);
}

.dataset-row.is-open {
  background: #f8fbff;
}

.download-table tbody tr.dataset-detail-row:hover {
  background: transparent;
}

.download-table tbody tr.dataset-detail-row td {
  padding: 12px 12px 20px 40px;
  background: #f8fbff;
}

.dataset-detail-inner {
  color: #647994;
  font-size: 14px;
}

.download-file-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  max-height: 320px;
  margin: 0;
  overflow-y: auto;
  padding: 0 12px 0 20px;
}

.download-file-list li {
  min-width: 0;
  padding-right: 8px;
}

.download-table a.file-link {
  color: #2f63b9;
  font-weight: 600;
  word-break: break-word;
}

.download-table a.file-link:hover {
  color: #214b8d;
}

.download-file-size {
  margin-left: 8px;
  color: #8493a8;
  font-size: 12px;
  white-space: nowrap;
}

.download-empty {
  padding: 28px 10px 10px;
  color: #5f7594;
  font-size: 15px;
}

@media (max-width: 720px) {
  .proto-container {
    padding: 0 18px;
  }

  .download-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .download-page-title {
    font-size: 40px;
  }

  .download-file-list {
    grid-template-columns: 1fr;
  }
}
