.profile-format-fieldset {
  margin: 22px 0 0;
  padding: 20px;
  border: 1px solid var(--border-dark);
  background: var(--surface-soft);
}

.profile-format-fieldset legend {
  padding: 0 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.profile-format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.profile-format-option {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
}

.profile-format-option:has(input:checked) {
  border-color: var(--brand-dark);
  box-shadow: inset 5px 0 0 var(--brand-light);
  background: var(--brand-pale);
}

.profile-format-option input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--brand-dark);
}

.profile-format-option span {
  display: grid;
  gap: 3px;
}

.profile-format-option strong {
  color: var(--brand-dark);
  font-size: 13px;
}

.profile-format-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.profile-download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 28px;
}

.profile-download-option {
  display: grid;
  gap: 5px;
  padding: 14px 15px;
  border: 1px solid var(--border-dark);
  border-left: 5px solid var(--brand-light);
  background: #ffffff;
  color: var(--brand-dark);
  text-decoration: none;
}

.profile-download-option:hover,
.profile-download-option.is-primary {
  background: var(--brand-pale);
  border-color: var(--brand-dark);
}

.profile-download-option strong {
  font-size: 13px;
}

.profile-download-option span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .profile-format-grid,
  .profile-download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .profile-format-grid,
  .profile-download-grid {
    grid-template-columns: 1fr;
  }
}
