.profile-gear-intro p {
  margin: 0;

  color: var(--text-muted, #999);

  font-size: 14px;
  line-height: 1.55;
}


.profile-gear-legend {
  display: flex;
  flex-wrap: wrap;

  gap: 8px 14px;

  margin: 18px 0 22px;

  color: var(--text-muted, #999);

  font-size: 12px;
}

.profile-gear-legend > span {
  display: inline-flex;
  align-items: center;

  gap: 5px;
}

.profile-gear-legend strong {
  color: var(--text, #fff);

  font-size: 15px;
}


.profile-gear-categories {
  display: grid;
  gap: 12px;
}


.profile-gear-category {
  overflow: hidden;

  border: 1px solid var(--border, #292929);
  border-radius: 16px;

  background: var(--surface-2, #111);
}


.profile-gear-category > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  padding: 16px 18px;

  cursor: pointer;

  font-weight: 800;

  list-style: none;
}

.profile-gear-category > summary::-webkit-details-marker {
  display: none;
}

.profile-gear-category > summary::after {
  content: '›';

  flex: 0 0 auto;

  color: #888;

  font-size: 22px;
  font-weight: 400;

  transform: rotate(90deg);

  transition: transform .15s ease;
}

.profile-gear-category[open] > summary::after {
  transform: rotate(-90deg);
}


.profile-gear-items {
  display: grid;

  border-top: 1px solid rgba(255,255,255,.08);
}


.profile-gear-item {
  min-width: 0;

  display: grid;
  grid-template-columns:
    minmax(130px, 1fr)
    minmax(0, 2fr);

  align-items: center;

  gap: 14px;

  padding: 14px 18px;
}

.profile-gear-item +
.profile-gear-item {
  border-top: 1px solid rgba(255,255,255,.06);
}


.profile-gear-item-name {
  min-width: 0;

  font-size: 13px;
  font-weight: 750;

  overflow: hidden;
  text-overflow: ellipsis;
}


.profile-gear-relations {
  min-width: 0;

  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 7px;
}


.profile-gear-choice {
  min-width: 0;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;

  padding: 6px 7px;

  box-sizing: border-box;

  border: 1px solid #303030;
  border-radius: 11px;

  background: #151515;
  color: #aaa;

  cursor: pointer;

  font-size: 11px;
  font-weight: 700;

  text-align: center;

  transition:
    border-color .15s ease,
    background .15s ease,
    color .15s ease;
}

.profile-gear-choice input {
  position: absolute;

  opacity: 0;
  pointer-events: none;
}


.profile-gear-choice:has(input:checked) {
  border-color: #777;

  background: #272727;
  color: #fff;
}


.profile-gear-choice:focus-within {
  outline: 2px solid #777;
  outline-offset: 2px;
}


@media (max-width: 699px) {
  .profile-gear-item {
    grid-template-columns: 1fr;

    gap: 10px;

    padding: 14px;
  }

  .profile-gear-relations {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .profile-gear-category > summary {
    padding: 15px 14px;
  }
}
