.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.download-matrix { margin-top: 42px; }
.download-matrix table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; border: 1px solid #ffffff24; border-radius: 22px; overflow: hidden; background: #07221855; }
.download-matrix th, .download-matrix td { padding: 26px 28px; text-align: left; vertical-align: middle; border-bottom: 1px solid #ffffff1c; }
.download-matrix thead th { color: #e6f1e8; background: #ffffff06; font-size: 18px; font-weight: 650; }
.download-matrix th:first-child { width: 20%; }
.download-matrix thead th:first-child { font-size: 13px; color: #acc0b2; font-weight: 500; }
.download-matrix tbody th { font-size: 18px; color: #f1f6ef; font-weight: 600; }
.download-matrix td, .download-matrix thead th:not(:first-child) { border-left: 1px solid #ffffff14; }
.download-matrix tbody tr:last-child > * { border-bottom: 0; }
.download-matrix .os-detail { display: block; margin-top: 5px; color: #a7b8ac; font-size: 12px; font-weight: 400; }
.download-matrix .button { min-height: 46px; justify-content: center; text-align: center; white-space: normal; }
.download-matrix td > .button { width: 100%; }
.download-matrix .format-picker { grid-template-columns: minmax(120px, .85fr) minmax(115px, 1fr); }
.download-status { display: inline-flex; border: 1px solid #adc9b22b; border-radius: 99px; padding: 9px 16px; background: #adc9b20c; color: #c7d7c9; font-size: 13px; }
.download-unavailable { display: block; color: #879a8a; }
.matrix-help { margin: 18px 2px 0; color: #b0c1b4; font-size: 13px; line-height: 1.6; }
@media(max-width: 1000px) {
  .download-matrix th, .download-matrix td { padding: 22px 18px; }
  .download-matrix .format-picker { grid-template-columns: 1fr; }
}
@media(max-width: 600px) {
  .download-matrix table { border-radius: 14px; }
  .download-matrix th, .download-matrix td { padding: 18px 9px; }
  .download-matrix th:first-child { width: 24%; }
  .download-matrix thead th, .download-matrix tbody th { font-size: 13px; }
  .download-matrix thead th:first-child { font-size: 11px; }
  .download-matrix .button { padding: 10px 7px; font-size: 12px; min-height: 44px; }
  .download-matrix .format-picker select { font-size: 11px; padding-left: 7px; padding-right: 23px; min-height: 44px; }
  .download-status { padding: 7px 9px; font-size: 11px; }
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 20px;
}

.language-control select,
.format-picker select {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background-color: rgba(11, 42, 30, 0.72);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  min-height: 42px;
  padding: 0 34px 0 15px;
  cursor: pointer;
}

.language-control select:focus-visible,
.format-picker select:focus-visible {
  outline: 3px solid rgba(217, 255, 92, 0.58);
  outline-offset: 3px;
}

.language-control option,
.format-picker option {
  background: #fff;
  color: #143a2b;
}

.connection-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}

.connection-downloads .download-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(7, 34, 24, 0.44);
  box-shadow: 0 20px 55px rgba(0, 19, 12, 0.16);
}

.connection-downloads .download-title {
  display: block;
  min-width: 0;
  margin-bottom: 28px;
}

.connection-downloads .download-title h3 {
  margin: 7px 0 10px;
}

.connection-downloads .download-title > p:last-child {
  margin: 0;
}

.connection-downloads .download-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  margin-top: auto;
}

.windows-download > label {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.format-picker {
  display: grid;
  grid-template-columns: minmax(126px, 0.75fr) minmax(190px, 1.25fr);
  gap: 10px;
}

.format-picker select {
  width: 100%;
  min-height: 50px;
  border-color: rgba(255, 255, 255, 0.38);
  border-radius: 12px;
  background-color: rgba(2, 24, 16, 0.62);
  font-size: 14px;
}

.format-picker .button {
  width: 100%;
  min-height: 50px;
  justify-content: center;
  text-align: center;
}

.format-help {
  margin: 9px 2px 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

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

.platform-downloads .button {
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding-inline: 16px;
  text-align: center;
}

@media (max-width: 1040px) {
  .header-tools {
    gap: 12px;
  }

  .header-tools nav {
    gap: 16px;
  }

  .format-picker,
  .platform-downloads {
    grid-template-columns: 1fr;
  }
}

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

  .header-tools nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-tools {
    margin-left: auto;
  }

  .language-control select {
    max-width: 132px;
  }

  .connection-downloads .download-card {
    padding: 25px 20px;
    border-radius: 19px;
  }

  .format-picker,
  .platform-downloads {
    grid-template-columns: 1fr;
  }
}
