.wf-talents {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.wf-talents .page-head,
.wf-talents h2,
.wf-talents h3,
.wf-talents p {
  margin: 0;
}

.wf-talents .page-head p:not(.eyebrow),
.wf-talent-source p,
.wf-talent-examples > p,
.wf-legacy-challenges > p,
.wf-talent-saves > p {
  margin-top: 8px;
}

.wf-talent-controls,
.wf-talent-detail,
.wf-talent-examples,
.wf-talent-saves,
.wf-legacy-challenges,
.wf-talent-source {
  min-width: 0;
  padding: 18px;
}

.wf-talent-parameters,
.wf-talent-budget,
.wf-talent-actions,
.wf-talent-section-head,
.wf-talent-source-links,
.wf-talent-detail-title,
.wf-talent-inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wf-talent-parameters .field {
  flex: 1 1 142px;
}

.wf-talents .field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.wf-talents .field input,
.wf-talents .field select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
}

.wf-talent-budget {
  margin: 14px 0;
  gap: 8px;
}

.wf-talent-budget > div {
  flex: 1 1 110px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 8px 12px;
  background: rgb(0 0 0 / 15%);
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 8px;
}

.wf-talent-budget strong,
.wf-talent-rank {
  color: var(--wf-talent-accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.wf-talent-budget strong {
  font-size: 1.35rem;
}

.wf-talent-budget small {
  font-size: 0.78rem;
  opacity: 0.85;
}

.wf-talent-actions .btn,
.wf-talent-section-head .btn,
.wf-talent-inline-form .btn,
.wf-talent-recommend-grid .btn,
.wf-talent-saved-list .btn {
  min-height: 42px;
}

.wf-talents button:disabled {
  opacity: 0.5;
  cursor: default;
}

.wf-talent-controls .wf-talent-feedback {
  margin-top: 12px;
  color: var(--wf-talent-accent);
}

.wf-talent-shared {
  display: grid;
  gap: 10px;
  border-color: color-mix(in srgb, var(--wf-talent-accent) 55%, transparent);
  scroll-margin-top: 84px;
}

.wf-talent-share-split {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wf-talent-share-split strong {
  margin-left: 4px;
  color: var(--wf-talent-accent);
}

.wf-talent-inline-form {
  align-items: flex-end;
  margin-top: 12px;
}

.wf-talent-inline-form .field {
  flex: 1 1 180px;
}

.wf-talent-workbench {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(245px, 2fr);
  align-items: start;
  gap: 14px;
}

.wf-talent-board {
  min-width: 0;
  padding: 12px;
}

.wf-talent-tree-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.wf-talent-tree-tabs button {
  min-width: 0;
  min-height: 44px;
  padding: 6px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 7px;
  color: inherit;
  background: rgb(255 255 255 / 4%);
  cursor: pointer;
}

.wf-talent-tree-tabs button[aria-pressed='true'] {
  color: var(--wf-talent-accent);
  border-color: var(--wf-talent-accent);
}

.wf-talent-tree-tabs span {
  display: inline-block;
  min-width: 18px;
  margin-left: 1px;
  font-size: 0.78em;
}

.wf-talent-node-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(var(--wf-talent-rows), minmax(65px, auto));
  gap: 6px;
}

.wf-talent-node {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 68px;
  padding: 8px 6px;
  text-align: left;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 7px;
  background: rgb(0 0 0 / 14%);
  color: inherit;
  cursor: pointer;
}

.wf-talent-node.is-locked {
  opacity: 0.67;
}

.wf-talent-node.has-rank {
  background: color-mix(in srgb, var(--wf-talent-accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--wf-talent-accent) 55%, transparent);
}

.wf-talent-node[aria-pressed='true'],
.wf-talent-node:hover {
  border-color: var(--wf-talent-accent);
  opacity: 1;
}

.wf-talent-node-name {
  font-size: 0.8rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.wf-talent-node-rank {
  display: block;
  margin-top: 5px;
  font-size: 0.71rem;
  font-variant-numeric: tabular-nums;
  color: var(--wf-talent-accent);
}

.wf-talent-detail {
  position: sticky;
  top: 14px;
}

.wf-talent-detail-title,
.wf-talent-section-head {
  justify-content: space-between;
}

.wf-talent-detail h3 {
  overflow-wrap: anywhere;
}

.wf-talent-detail p,
.wf-talent-detail details,
.wf-talent-detail .wf-talent-actions {
  margin-top: 10px;
}

.wf-talent-rank-description {
  margin: 12px 0 4px;
  padding: 11px;
  border-radius: 7px;
  border: 1px solid rgb(255 255 255 / 10%);
  background: rgb(0 0 0 / 18%);
}

.wf-talent-rank-description p {
  margin-top: 4px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.wf-talent-rank-list,
.wf-talent-gates {
  padding-left: 1.15rem;
  line-height: 1.45;
}

.wf-talent-gates,
.wf-talent-cost {
  font-size: 0.85rem;
}

.wf-talent-detail .wf-talent-actions > button {
  flex: 1 1 100px;
}

.wf-talent-return {
  display: none;
}

.wf-talent-recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 10px;
  margin-top: 14px;
}

.wf-talent-recommend-grid article {
  padding: 13px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  background: rgb(0 0 0 / 15%);
}

.wf-talent-recommend-grid article p {
  margin: 7px 0 9px;
  font-size: 0.88rem;
}

.wf-talent-recommend-grid a,
.wf-talent-source-links a {
  color: var(--wf-talent-accent);
  font-size: 0.88rem;
}

.wf-talent-challenge-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.wf-legacy-challenges .wf-talent-actions {
  margin-top: 12px;
}

.wf-talent-challenge-list details,
.wf-talent-saved-list li {
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 7px;
  padding: 9px 11px;
}

.wf-talent-challenge-list details summary,
.wf-talent-source summary,
.wf-talent-detail summary {
  cursor: pointer;
}

.wf-talent-challenge-list summary span {
  float: right;
  color: var(--wf-talent-accent);
}

.wf-talent-challenge-list details div {
  margin-top: 7px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 5px;
}

.wf-talent-challenge-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 5px;
  cursor: pointer;
}

.wf-talent-challenge-list input {
  accent-color: var(--wf-talent-accent);
}

.wf-talent-challenge-list small,
.wf-talent-saved-list span {
  display: block;
  margin-top: 3px;
}

.wf-talent-saved-list {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.wf-talent-saved-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.wf-talent-saved-list li > div {
  flex: 1 1 105px;
  overflow-wrap: anywhere;
}

.wf-talent-source details,
.wf-talent-source-links {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .wf-talent-workbench {
    grid-template-columns: 1fr;
  }

  .wf-talent-detail {
    position: static;
    scroll-margin-block: 12px 86px;
  }

  .wf-talent-return {
    display: inline-flex;
    min-height: 42px;
    margin-top: 8px;
  }

  .wf-talent-tree-tabs button,
  .wf-talent-node {
    min-height: 44px;
  }
}

@media (max-width: 410px) {
  .wf-talent-node-grid,
  .wf-talent-tree-tabs {
    gap: 4px;
  }

  .wf-talent-board {
    padding: 8px;
  }

  .wf-talent-node {
    padding: 6px 4px;
  }

  .wf-talent-node-name {
    font-size: 0.74rem;
  }
}
