/* Every rule belongs to this standalone team panel. */
.team-page {
  --team-blue: #2858ed;
  --team-ink: #21416d;
  --team-muted: #8b9bb3;
  --team-border: #e2eafa;
  min-width: 0;
  color: var(--team-ink);
}
.team-page[hidden],
.team-page [hidden] {
  display: none !important;
}
.team-page .team-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;
}
.team-page button,
.team-page select,
.team-page input {
  font: inherit;
}
.team-page button {
  min-height: 44px;
  cursor: pointer;
  touch-action: manipulation;
}
.team-page button:focus-visible,
.team-page input:focus-visible,
.team-page select:focus-visible {
  outline: 2px solid #91adf4;
  outline-offset: 3px;
}
.team-page svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.team-page .team-invitation {
  min-width: 0;
  margin-bottom: 16px;
  padding: 15px 18px 14px;
  border: 1px solid #d7e4fc;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 100% 0, #e5efff 0, transparent 60%),
    linear-gradient(120deg, #fff, #f5f9ff);
  box-shadow: 0 5px 18px #315ca408;
}
.team-page .team-invitation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.team-page .team-invitation-heading h2 {
  margin: 0;
  color: #4d6b96;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.team-page .team-invitation-mark {
  display: grid;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #dce7fc;
  border-radius: 8px;
  background: #ffffffb3;
  color: #7596d1;
}
.team-page .team-invitation-mark svg {
  width: 17px;
  height: 17px;
}
.team-page .team-invitation-code {
  width: fit-content;
  max-width: 100%;
  margin: 3px 0 11px;
  color: #2558ca;
  font-family: 'Segoe UI', sans-serif;
  font-size: 32px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  user-select: all;
  -webkit-user-select: all;
}
.team-page .team-invitation-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.team-page .team-invitation-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 6px;
  border: 1px solid #d7e4fc;
  border-radius: 10px;
  background: #eaf2ff;
  color: #5078bf;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.team-page .team-invitation-actions button svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}
.team-page .team-invitation-actions .team-invitation-copy {
  border-color: var(--team-blue);
  background: var(--team-blue);
  color: #fff;
  box-shadow: 0 3px 9px #2858ed12;
}
.team-page .team-invitation-actions .team-invitation-copy:not(:disabled),
.team-page .team-invitation-actions .team-invitation-copy:not(:disabled) span {
  -webkit-text-fill-color: #fff;
}
.team-page .team-invitation-actions .team-invitation-copy:hover:not(:disabled) {
  border-color: #214bd1;
  background: #214bd1;
}
.team-page .team-invitation-actions .team-invitation-link:hover:not(:disabled) {
  background: #e1ecff;
}
.team-page .team-invitation-actions button:disabled {
  border-color: #e1e8f5;
  background: #eaf0fa;
  color: #8b9bb5;
  box-shadow: none;
  cursor: default;
}
.team-page .team-invitation-feedback {
  margin: 8px 1px 0;
  color: #6e86aa;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.team-page .team-invitation-feedback:empty {
  display: none;
}
.team-page .team-invitation-manual {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 55px;
  margin: 8px 0 0;
  padding: 8px 10px;
  border: 1px solid #dce7fa;
  border-radius: 8px;
  background: #fff;
  color: #5575a6;
  font-family: 'Segoe UI', sans-serif;
  font-size: 12px;
  line-height: 1.7;
  resize: vertical;
  overflow-wrap: anywhere;
  word-break: break-all;
  user-select: text;
  -webkit-user-select: text;
}
.team-page .team-overview {
  padding: 18px 18px 12px;
  border: 1px solid #dfe8fc;
  border-radius: 18px;
  background: linear-gradient(125deg, #fff 38%, #f0f5ff);
  box-shadow: 0 5px 18px #315ca405;
}
.team-page .team-overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.team-page .team-overview-heading h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.5px;
}
.team-page .team-demo-badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border: 1px solid #dfe7f9;
  border-radius: 6px;
  background: #f6f9ff;
  color: #6c83aa;
  font-size: 11px;
  line-height: 1.7;
  white-space: nowrap;
}
.team-page .team-overview-caption {
  margin: 6px 0 15px;
  color: #788dab;
  font-size: 12px;
  line-height: 1.75;
}
.team-page .team-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}
.team-page .team-summary-item {
  min-width: 0;
  padding: 13px 0;
}
.team-page .team-summary-item:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid #e3ebfa;
}
.team-page .team-summary-item:nth-child(n + 3) {
  border-top: 1px solid #e3ebfa;
}
.team-page .team-summary-item > span {
  display: block;
  margin-bottom: 5px;
  color: #6e83a4;
  font-size: 13px;
  line-height: 1.6;
}
.team-page .team-summary-item strong {
  color: #315da8;
  font-family: 'Segoe UI', sans-serif;
  font-size: 25px;
  font-weight: 650;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.6px;
}
.team-page .team-summary-item small {
  margin-left: 5px;
  color: #7c8fa9;
  font-size: 12px;
}
.team-page .team-periods {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #e3ebfb;
  border-radius: 11px;
  background: #ecf2fd;
}
.team-page .team-periods button {
  flex: 1;
  min-width: 0;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7286a6;
  font-size: 14px;
}
.team-page .team-periods button[aria-pressed='true'] {
  color: #3661cf;
  background: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px #4164a40c;
}
.team-page .team-members {
  margin-top: 23px;
}
.team-page .team-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 1px 12px;
}
.team-page .team-section-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.5;
}
.team-page .team-section-heading > span {
  color: #7d90ad;
  font-size: 12px;
}
.team-page .team-search {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 11px;
  border: 1px solid #dfe7f7;
  border-radius: 12px;
  background: #fff;
  color: #a0b0ca;
}
.team-page .team-search > svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-right: 8px;
}
.team-page .team-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #456187;
  font-size: 14px;
}
.team-page .team-search input::placeholder {
  color: #8193ae;
}
.team-page .team-search:focus-within {
  border-color: #9eb5ed;
  box-shadow: 0 0 0 3px #eaf0ff;
}
.team-page .team-search input::-webkit-search-cancel-button {
  display: none;
}
.team-page .team-search-clear {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  margin-right: -9px;
  border: 0;
  background: transparent;
  color: #91a1bc;
}
.team-page .team-search-clear svg {
  width: 17px;
  height: 17px;
}
.team-page .team-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 9px 1px 0;
  color: #7d90ad;
  font-size: 12px;
}
.team-page .team-filter-heading label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.team-page .team-filter-heading select {
  min-width: 0;
  min-height: 44px;
  max-width: 118px;
  padding: 6px 3px 6px 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #617da9;
  font-size: 13px;
}
.team-page .team-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 1px;
}
.team-page .team-levels button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid #e3eaf8;
  border-radius: 10px;
  background: #fff;
  color: #6d83a5;
  font-size: 13px;
  white-space: nowrap;
}
.team-page .team-levels button b {
  color: #8397b7;
  font-family: 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 500;
}
.team-page .team-levels button[aria-pressed='true'] {
  border-color: #cfdcfc;
  background: #eaf1ff;
  color: #456fd2;
  font-weight: 600;
}
.team-page .team-levels button[aria-pressed='true'] b {
  color: #7191d2;
}
.team-page .team-result-summary {
  min-height: 18px;
  margin: 9px 1px 10px;
  color: #7d90ad;
  font-size: 12px;
  line-height: 1.7;
}
.team-page .team-member-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.team-page .team-member-card {
  min-width: 0;
  padding: 13px 15px 11px;
  border: 1px solid var(--team-border);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 3px 10px #365b9903;
}
.team-page .team-member-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.team-page .team-member-avatar {
  display: grid;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid #e6edfc;
  border-radius: 11px;
  background: #f0f5ff;
  color: #7997cd;
  font-size: 15px;
  font-weight: 500;
}
.team-page .team-member-identity {
  flex: 1;
  min-width: 0;
}
.team-page .team-member-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.team-page .team-member-name strong {
  min-width: 0;
  color: #34537e;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.team-page .team-member-account {
  margin: 2px 0 0;
  color: #7d90ad;
  font-family: 'Segoe UI', sans-serif;
  font-size: 12px;
  line-height: 1.6;
}
.team-page .team-member-level {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2px;
  color: #8e9eb8;
  font-size: 10px;
  line-height: 1.6;
  white-space: nowrap;
}
.team-page .team-member-level img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}
.team-page .team-member-details {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6c87b2;
  font-size: 12px;
}
.team-page .team-member-details svg {
  width: 13px;
  height: 13px;
}
.team-page .team-member-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin: 9px 0 11px;
  color: #7d90ad;
  font-size: 12px;
  line-height: 1.7;
}
.team-page .team-member-meta > span:first-child {
  min-width: 0;
}
.team-page .team-member-status {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 5px;
  background: #f4f6fa;
  color: #7a8aa4;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
}
.team-page .team-member-status[data-status='pending'] {
  background: #edf3ff;
  color: #5f82c3;
}
.team-page .team-member-status[data-status='redeemed'] {
  background: #eff6f4;
  color: #648f80;
}
.team-page .team-member-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding-top: 10px;
  border-top: 1px solid #edf1f8;
}
.team-page .team-member-metrics > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
}
.team-page .team-member-metrics span {
  color: #7d90ad;
  font-size: 12px;
  white-space: nowrap;
}
.team-page .team-member-metrics strong {
  color: #4f72ab;
  font-family: 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  white-space: nowrap;
}
.team-page .team-empty {
  padding: 28px 15px 21px;
  border: 1px solid var(--team-border);
  border-radius: 15px;
  background: #fff;
  text-align: center;
}
.team-page .team-empty-icon {
  display: block;
  margin-bottom: 9px;
  color: #afc0dc;
  font-size: 33px;
  line-height: 1.2;
}
.team-page .team-empty strong {
  display: block;
  color: #7d91b2;
  font-size: 14px;
  font-weight: 500;
}
.team-page .team-empty p {
  margin: 7px 0 12px;
  color: #a3b0c5;
  font-size: 11px;
  line-height: 1.8;
}
.team-page .team-empty button {
  padding: 7px 16px;
  border: 1px solid #e0e9fb;
  border-radius: 9px;
  background: #f4f7ff;
  color: #7794c8;
  font-size: 12px;
}
.team-page .team-footnote {
  margin: 17px 2px 0;
  color: #7f92b0;
  font-size: 12px;
  line-height: 1.9;
  text-align: center;
}
.team-page .team-detail-dialog {
  width: 420px;
  max-width: calc(100vw - 28px);
  max-height: 84dvh;
  padding: 20px;
  border: 1px solid #dfe7f7;
  border-radius: 20px;
  background: #fff;
  color: var(--team-ink);
  box-shadow: 0 20px 80px #1e365638;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.team-page .team-detail-dialog::backdrop {
  background: #142c4e66;
  backdrop-filter: blur(3px);
}
.team-page .team-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.team-page .team-detail-heading > div > span {
  color: #9aaac1;
  font-size: 11px;
}
.team-page .team-detail-heading h2 {
  margin: 4px 0 0;
  color: #2e507e;
  font-size: 23px;
  line-height: 1.45;
  font-weight: 650;
}
.team-page .team-dialog-close {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f6f8fc;
  color: #95a6c0;
}
.team-page .team-dialog-close svg {
  width: 19px;
  height: 19px;
}
.team-page .team-detail-account {
  margin: 6px 0 9px;
  color: #95a6c0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 12px;
  line-height: 1.7;
}
.team-page .team-detail-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}
.team-page .team-detail-basics {
  margin: 0;
  padding: 7px 12px;
  border: 1px solid #e7edf9;
  border-radius: 11px;
  background: #f9fbff;
}
.team-page .team-detail-basics > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: 12px;
  line-height: 1.8;
}
.team-page .team-detail-basics dt {
  flex-shrink: 0;
  color: #97a7c0;
}
.team-page .team-detail-basics dd {
  min-width: 0;
  margin: 0;
  color: #6e88b1;
  text-align: right;
  overflow-wrap: anywhere;
}
.team-page .team-detail-dialog h3 {
  margin: 20px 0 10px;
  color: #7d93b7;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
}
.team-page .team-chain {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.team-page .team-chain li {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  color: #7891b7;
  font-size: 11px;
  line-height: 1.8;
}
.team-page .team-chain li + li::before {
  content: '›';
  color: #b6c3d7;
  font-size: 15px;
}
.team-page .team-chain li > span {
  padding: 3px 7px;
  border: 1px solid #e7edf9;
  border-radius: 6px;
  background: #f7faff;
}
.team-page .team-chain li:last-child > span {
  border-color: #d6e2fb;
  background: #edf3ff;
  color: #5c83ce;
}
.team-page .team-detail-performance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.team-page .team-detail-performance > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e4ecfb;
  border-radius: 11px;
  background: #f4f8ff;
}
.team-page .team-detail-performance span {
  display: block;
  margin-bottom: 5px;
  color: #91a4c2;
  font-size: 11px;
  line-height: 1.7;
}
.team-page .team-detail-performance strong {
  color: #5a7fbe;
  font-family: 'Segoe UI', sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.4px;
  overflow-wrap: anywhere;
}
.team-page .team-cumulative > div {
  background: #fbfcff;
}
.team-page .team-cumulative strong {
  color: #8096b8;
  font-size: 18px;
}
.team-page .team-detail-note {
  margin: 16px 0 0;
  color: #8195b3;
  font-size: 12px;
  line-height: 1.85;
}
.team-page .team-detail-done {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 17px;
  padding: 9px;
  border: 1px solid #dde7fc;
  border-radius: 10px;
  background: #f0f5ff;
  color: #6a8bc7;
  font-size: 13px;
}
@media (max-width: 360px) {
  .team-page .team-invitation {
    padding: 14px;
  }
  .team-page .team-invitation-code {
    font-size: 30px;
    letter-spacing: 3.5px;
  }
  .team-page .team-invitation-actions {
    gap: 8px;
  }
  .team-page .team-invitation-actions button {
    gap: 5px;
    font-size: 12px;
    padding-inline: 5px;
  }
  .team-page .team-overview {
    padding: 16px 14px 11px;
  }
  .team-page .team-overview-heading h1 {
    font-size: 21px;
  }
  .team-page .team-overview-caption {
    font-size: 12px;
  }
  .team-page .team-summary-item:nth-child(even) {
    padding-left: 14px;
  }
  .team-page .team-summary-item strong {
    font-size: 23px;
  }
  .team-page .team-summary-item > span {
    font-size: 12px;
  }
  .team-page .team-member-card {
    padding-inline: 12px;
  }
  .team-page .team-member-heading {
    gap: 8px;
  }
  .team-page .team-member-avatar {
    flex-basis: 31px;
    width: 31px;
    height: 33px;
    border-radius: 9px;
    font-size: 14px;
  }
  .team-page .team-member-name {
    gap: 4px;
    flex-wrap: wrap;
  }
  .team-page .team-member-name strong {
    font-size: 14px;
  }
  .team-page .team-member-metrics {
    gap: 9px;
  }
  .team-page .team-member-metrics > div {
    flex-direction: column;
    gap: 2px;
  }
  .team-page .team-member-metrics strong {
    font-size: 16px;
  }
  .team-page .team-detail-dialog {
    padding: 17px;
  }
  .team-page .team-detail-performance > div {
    padding: 10px;
  }
  .team-page .team-detail-performance strong {
    font-size: 19px;
  }
}
