client-downloads { display: block; }
client-downloads:empty { display: none; }

.client-downloads {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #dce7db;
  border-radius: 16px;
  background: #f6f9f3;
  color: #183e31;
}
.client-downloads h2 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.35;
}
.client-downloads-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 144px), 1fr));
  gap: 8px;
}
.client-download-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dce7db;
  border-radius: 11px;
  background: #fffef9;
}
.client-download-option h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}
.client-download-option p {
  flex: 1;
  margin: 0;
  color: #4e6557;
  font-size: 12px;
  line-height: 1.55;
}
.client-download-option a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid #d4e5d8;
  border-radius: 7px;
  background: #eaf3eb;
  color: #205740;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.client-download-option a:hover { background: #dcecdf; }
.client-download-option a:focus-visible { outline: 2px solid #377a5b; outline-offset: 2px; }
.login-panel .client-downloads { margin: 0 0 18px; padding: 12px; }

@media (max-width: 430px) {
  .client-downloads { padding: 12px; }
}

@media (min-width: 761px) {
  #content .client-download-option a { align-self: flex-start; gap: 16px; padding-inline: 12px; }
}

.welcome-hero > client-downloads { grid-column: 1 / -1; min-width: 0; }
.welcome-hero .client-downloads {
  margin: 16px 0 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid #cbd7bd;
  border-radius: 0;
  background: transparent;
}
.welcome-hero .client-download-option { background: #fffef9b3; }

@media (max-width: 760px) {
  .welcome-hero > div:first-child { grid-area: 1 / 1; }
  .welcome-hero .hero-art {
    grid-row: 1;
    grid-column: 1;
    align-self: end;
    justify-self: end;
    position: relative;
    right: auto;
    bottom: auto;
  }
  .welcome-hero:has(.hero-art:not([hidden])) .hero-meta { padding-right: 46px; }
}
