.nexus-team {
  color: var(--fenrora-text, #F2FAF7);
  min-width: 0;
}

.nexus-team h2,
.nexus-team h3 {
  margin: 0 0 1rem;
}

.nexus-team form,
.nexus-team fieldset {
  display: grid;
  gap: 0.75rem;
}

.nexus-team fieldset {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.nexus-team label {
  display: grid;
  gap: 0.375rem;
  min-width: 0;
}

.nexus-team :is(input, textarea, select, button) {
  background: var(--fenrora-surface-raised, #0B2523);
  border: 1px solid var(--fenrora-control-border, #5B8578);
  border-radius: 10px;
  color: inherit;
  font: inherit;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
}

.nexus-team textarea {
  min-height: 5rem;
  resize: vertical;
}

.nexus-team button:not(:disabled) {
  cursor: pointer;
}

.nexus-team button:disabled {
  opacity: 0.55;
}

.nexus-team button:is([type="submit"], [aria-pressed="true"]):not(:disabled) {
  background: var(--fenrora-accent, #02DF82);
  border-color: var(--fenrora-accent, #02DF82);
  color: var(--fenrora-on-accent, #031112);
}

.nexus-team :focus-visible {
  outline: 2px solid var(--fenrora-focus, #7AF4BE);
  outline-offset: 2px;
}

.nexus-team .nexus-team-actions {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nexus-team .nexus-team-table {
  max-width: 100%;
  overflow-x: auto;
}

.nexus-team table {
  border-collapse: collapse;
  width: 100%;
}

.nexus-team :is(td, th) {
  border-bottom: 1px solid var(--fenrora-border, #1F4840);
  overflow-wrap: anywhere;
  padding: 0.75rem;
  text-align: start;
  vertical-align: top;
}

.nexus-team td p {
  margin: 0.375rem 0 0;
  white-space: pre-wrap;
}

.nexus-team dialog {
  background: var(--fenrora-surface, #071C1C);
  border: 1px solid var(--fenrora-border, #1F4840);
  border-radius: 16px;
  color: inherit;
  max-height: calc(100% - 2rem);
  overflow: auto;
  padding: 1.5rem;
  width: min(32rem, calc(100% - 2rem));
  box-sizing: border-box;
}

.nexus-team dialog::backdrop {
  background: rgb(3 17 18 / 75%);
}

.nexus-team [role="alert"] {
  color: var(--fenrora-danger, #FF7A85);
}

.nexus-team [hidden] {
  display: none !important;
}
