.teamspace-dashboard-v2 {
  --teamspace-ink: #17384d;
  --teamspace-ink-soft: #4d677a;
  --teamspace-blue: #2d6fb6;
  --teamspace-blue-deep: #1f568f;
  --teamspace-green: #2a9d8f;
  --teamspace-green-deep: #1f7f72;
  --teamspace-shell: linear-gradient(135deg, rgba(234, 245, 255, 0.96), rgba(241, 252, 248, 0.96));
  --teamspace-hero: linear-gradient(135deg, rgba(225, 240, 255, 0.98) 0%, rgba(237, 249, 247, 0.98) 64%, rgba(255, 255, 255, 0.99) 100%);
  --teamspace-card: linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(248, 251, 255, 0.98));
  display: grid;
  gap: 26px;
  color: var(--teamspace-ink);
}

.teamspace-dashboard-v2__hero,
.teamspace-dashboard-v2__section {
  border: 1px solid rgba(45, 111, 182, 0.12);
  border-radius: 26px;
  background: var(--teamspace-shell);
  box-shadow: 0 18px 46px rgba(29, 73, 109, 0.1);
  padding: 24px;
}

.teamspace-dashboard-v2__hero {
  background: var(--teamspace-hero);
}

.teamspace-dashboard-v2__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.teamspace-dashboard-v2__hero-main {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
}

.teamspace-dashboard-v2__section--actions {
  margin-top: -4px;
}

.teamspace-dashboard-v2__avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(45, 111, 182, 0.3), rgba(42, 157, 143, 0.42));
  padding: 4px;
  box-shadow: 0 12px 30px rgba(34, 86, 129, 0.18);
}

.teamspace-dashboard-v2__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #eef7f3;
}

.teamspace-dashboard-v2__eyebrow {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teamspace-blue-deep);
}

.teamspace-dashboard-v2__hero-copy h3,
.teamspace-dashboard-v2__section-heading h4,
.teamspace-dashboard-v2__card h5,
.teamspace-dashboard-v2__metric-card p,
.teamspace-dashboard-v2__card h6 {
  margin-top: 0;
}

.teamspace-dashboard-v2__headline {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.5;
}

.teamspace-dashboard-v2__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.teamspace-dashboard-v2__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--teamspace-ink);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(45, 111, 182, 0.14);
  box-shadow: 0 6px 18px rgba(29, 73, 109, 0.06);
}

.teamspace-dashboard-v2__badge--status {
  background: linear-gradient(135deg, rgba(45, 111, 182, 0.12), rgba(42, 157, 143, 0.14));
}

.teamspace-dashboard-v2__badge--founder {
  padding: 4px 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.teamspace-dashboard-v2__badge--founder img {
  display: block;
  width: 72px;
  height: auto;
}

.teamspace-dashboard-v2__badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.teamspace-dashboard-v2__badge-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.teamspace-dashboard-v2__badge-image img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.teamspace-dashboard-v2__next-step {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(45, 111, 182, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.teamspace-dashboard-v2__hero-side,
.teamspace-dashboard-v2__metric-grid,
.teamspace-dashboard-v2__card-grid {
  display: grid;
  gap: 16px;
}

.teamspace-dashboard-v2__hero-side {
  grid-template-columns: minmax(0, 1fr);
}

.teamspace-dashboard-v2__metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.teamspace-dashboard-v2__metric-grid--two-up,
.teamspace-dashboard-v2__metric-grid--earnings-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teamspace-dashboard-v2__metric-grid--three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.teamspace-dashboard-v2__metric-grid--four-up {
  margin-bottom: 16px;
}

.teamspace-dashboard-v2__metric-grid--earnings-summary {
  gap: 12px;
  margin-bottom: 16px;
}

.teamspace-dashboard-v2__card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teamspace-dashboard-v2__card-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teamspace-dashboard-v2__metric-card,
.teamspace-dashboard-v2__card {
  border-radius: 22px;
  padding: 18px;
  background: var(--teamspace-card);
  border: 1px solid rgba(45, 111, 182, 0.12);
  box-shadow: 0 12px 28px rgba(30, 75, 116, 0.08);
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: 0;
  align-self: auto;
}

.teamspace-dashboard-v2__metric-card::before,
.teamspace-dashboard-v2__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teamspace-blue), var(--teamspace-green));
}

.teamspace-dashboard-v2__metric-label {
  margin-bottom: 8px;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teamspace-blue-deep);
}

.teamspace-dashboard-v2__metric-value {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--teamspace-ink);
}

.teamspace-dashboard-v2__metric-description,
.teamspace-dashboard-v2__section-heading p,
.teamspace-dashboard-v2__card p,
.teamspace-dashboard-v2__list li,
.teamspace-dashboard-v2__activity-list li span {
  color: var(--teamspace-ink-soft);
}

.teamspace-dashboard-v2__section-heading {
  margin-bottom: 16px;
}

.teamspace-dashboard-v2__section-heading .teamspace-dashboard-v2__kicker {
  margin-bottom: 6px;
}

.teamspace-dashboard-v2__referral-range-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 6px 0 16px;
}

.teamspace-dashboard-v2__referral-range-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teamspace-ink);
}

.teamspace-dashboard-v2__referral-range-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teamspace-dashboard-v2__referral-range-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(45, 111, 182, 0.18);
  background: rgba(255, 255, 255, 0.86);
  color: var(--teamspace-ink);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.teamspace-dashboard-v2__referral-range-link:hover,
.teamspace-dashboard-v2__referral-range-link:focus {
  border-color: rgba(31, 86, 143, 0.42);
  color: var(--teamspace-blue-deep);
  transform: translateY(-1px);
}

.teamspace-dashboard-v2__referral-range-link.is-active {
  background: linear-gradient(135deg, var(--teamspace-blue-deep), var(--teamspace-green-deep));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(31, 86, 143, 0.18);
}

.teamspace-dashboard-v2__card-highlight {
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--teamspace-blue-deep);
}

.teamspace-dashboard-v2__status-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.teamspace-dashboard-v2__status-pill--active {
  background: #dcfce7;
  color: #166534;
}

.teamspace-dashboard-v2__status-pill--inactive {
  background: #fee2e2;
  color: #991b1b;
}

.teamspace-table--commissions,
.teamspace-table--personally-sponsored-customers,
.teamspace-table--personally-sponsored-distributors,
.teamspace-table--leaderboard,
.teamspace-table--payouts {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.teamspace-table--commissions th,
.teamspace-table--commissions td,
.teamspace-table--personally-sponsored-customers th,
.teamspace-table--personally-sponsored-customers td,
.teamspace-table--personally-sponsored-distributors th,
.teamspace-table--personally-sponsored-distributors td,
.teamspace-table--leaderboard th,
.teamspace-table--leaderboard td,
.teamspace-table--payouts th,
.teamspace-table--payouts td {
  padding: 12px 18px;
}

.teamspace-table--commissions th:first-child,
.teamspace-table--commissions td:first-child,
.teamspace-table--personally-sponsored-customers th:first-child,
.teamspace-table--personally-sponsored-customers td:first-child,
.teamspace-table--personally-sponsored-distributors th:first-child,
.teamspace-table--personally-sponsored-distributors td:first-child,
.teamspace-table--leaderboard th:first-child,
.teamspace-table--leaderboard td:first-child,
.teamspace-table--payouts th:first-child,
.teamspace-table--payouts td:first-child {
  padding-left: 8px;
}

.teamspace-table--commissions th:last-child,
.teamspace-table--commissions td:last-child,
.teamspace-table--personally-sponsored-customers th:last-child,
.teamspace-table--personally-sponsored-customers td:last-child,
.teamspace-table--personally-sponsored-distributors th:last-child,
.teamspace-table--personally-sponsored-distributors td:last-child,
.teamspace-table--leaderboard th:last-child,
.teamspace-table--leaderboard td:last-child,
.teamspace-table--payouts th:last-child,
.teamspace-table--payouts td:last-child {
  padding-right: 8px;
}

.teamspace-table--leaderboard th:nth-child(1),
.teamspace-table--leaderboard td:nth-child(1) {
  padding-right: 32px;
  width: 60%;
}

.teamspace-table--leaderboard th:nth-child(2),
.teamspace-table--leaderboard td:nth-child(2) {
  padding-left: 32px;
  width: 40%;
}

.teamspace-list-search__controls {
  display: block;
  margin: 0 0 16px;
  width: 100%;
}

.teamspace-list-search__controls label {
  display: block;
  margin-bottom: 6px;
}

.teamspace-list-search__controls input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
}

.teamspace-list-search__status {
  margin-top: 8px;
  color: #50575e;
}

.teamspace-list-search__pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.teamspace-list-search__pagination button {
  border: 1px solid #8c8f94;
  border-radius: 4px;
  background: #fff;
  color: #1d2327;
  cursor: pointer;
  padding: 7px 12px;
}

.teamspace-list-search__pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.teamspace-list-search__pagination span {
  color: #50575e;
}

.teamspace-list-search__row--hidden {
  display: none;
}

.teamspace-dashboard-v2__health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.teamspace-dashboard-v2__health-box {
  padding: 14px;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.teamspace-dashboard-v2__health-box--met {
  background: #f0fdf4;
}

.teamspace-dashboard-v2__health-box--missing {
  background: #fef2f2;
}

.teamspace-dashboard-v2__health-box--na {
  background: #f3f4f6;
}

.teamspace-dashboard-v2__health-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.teamspace-dashboard-v2__health-box-symbol {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
}

.teamspace-dashboard-v2__health-box--met .teamspace-dashboard-v2__health-box-symbol {
  color: #15803d;
}

.teamspace-dashboard-v2__health-box--missing .teamspace-dashboard-v2__health-box-symbol {
  color: #b91c1c;
}

.teamspace-dashboard-v2__health-box--na .teamspace-dashboard-v2__health-box-symbol {
  color: #6b7280;
}

.teamspace-dashboard-v2__health-box p,
.teamspace-dashboard-v2__health-eligibility p {
  margin: 0;
}

.teamspace-dashboard-v2__health-eligibility {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  background: #fff;
  display: grid;
  gap: 8px;
}

.teamspace-dashboard-v2__health-eligibility h6 {
  margin: 0;
}

.teamspace-dashboard-v2__list--account-health-meta {
  margin-top: 0;
}

.teamspace-dashboard-v2__rank-wrap {
  display: grid;
  grid-template-columns: 172px 1fr;
  gap: 22px;
  align-items: center;
}

.teamspace-dashboard-v2__rank-copy .teamspace-dashboard-v2__list {
  padding-left: 18px;
}

.teamspace-dashboard-v2__rank-circle {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}

.teamspace-dashboard-v2__rank-circle svg {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}

.teamspace-dashboard-v2__rank-circle-track,
.teamspace-dashboard-v2__rank-circle-bar {
  fill: none;
  stroke-width: 10;
}

.teamspace-dashboard-v2__rank-circle-track {
  stroke: rgba(45, 111, 182, 0.12);
}

.teamspace-dashboard-v2__rank-circle-bar {
  stroke: url(#teamspace-rank-gradient);
  stroke: var(--teamspace-blue);
  stroke-linecap: round;
}

.teamspace-dashboard-v2__rank-circle-label {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.teamspace-dashboard-v2__rank-circle-label strong {
  font-size: 2rem;
  color: var(--teamspace-ink);
}

.teamspace-dashboard-v2__rank-circle-label span {
  font-size: 0.85rem;
  color: var(--teamspace-blue-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.teamspace-dashboard-v2__eligibility-card {
  margin-top: 4px;
}

.teamspace-dashboard-v2__list,
.teamspace-dashboard-v2__activity-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.teamspace-dashboard-v2__mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.teamspace-dashboard-v2__mini-metrics div {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(45, 111, 182, 0.08);
  padding: 10px 12px;
}

.teamspace-dashboard-v2__mini-metrics span {
  display: block;
  font-size: 0.82rem;
  color: var(--teamspace-blue-deep);
}

.teamspace-dashboard-v2__mini-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
  color: var(--teamspace-ink);
}

@media (max-width: 1040px) {
  .teamspace-dashboard-v2__hero,
  .teamspace-dashboard-v2__card-grid--three,
  .teamspace-dashboard-v2__card-grid--two {
    grid-template-columns: 1fr;
  }

  .teamspace-dashboard-v2__metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teamspace-dashboard-v2__hero-side {
    grid-template-columns: 1fr;
  }

  .teamspace-dashboard-v2__referral-range-controls {
    align-items: flex-start;
  }

  .teamspace-dashboard-v2__metric-grid--three-up,
  .teamspace-dashboard-v2__metric-grid--four-up,
  .teamspace-dashboard-v2__health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .teamspace-dashboard-v2__hero-main,
  .teamspace-dashboard-v2__rank-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .teamspace-dashboard-v2__hero-side,
  .teamspace-dashboard-v2__metric-grid,
  .teamspace-dashboard-v2__mini-metrics {
    grid-template-columns: 1fr;
  }

  .teamspace-dashboard-v2__metric-grid--three-up,
  .teamspace-dashboard-v2__metric-grid--four-up,
  .teamspace-dashboard-v2__health-grid {
    grid-template-columns: 1fr;
  }
}

.teamspace-custom-link-generator {
  display: grid;
  gap: 18px;
}

.teamspace-custom-link-generator__intro {
  margin-top: -4px;
}

.teamspace-custom-link-generator__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.teamspace-custom-link-generator__form,
.teamspace-custom-link-generator__saved-panel,
.teamspace-custom-link-generator__saved-card {
  display: grid;
  gap: 14px;
}

.teamspace-custom-link-generator__field label,
.teamspace-custom-link-generator__copy-row label {
  display: block;
  margin-bottom: 6px;
  color: var(--teamspace-blue-deep);
}

.teamspace-custom-link-generator__field input,
.teamspace-custom-link-generator__copy-controls input {
  width: 100%;
  border: 1px solid rgba(45, 111, 182, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--teamspace-ink);
  background: rgba(255, 255, 255, 0.96);
  box-sizing: border-box;
}

.teamspace-custom-link-generator__field p,
.teamspace-custom-link-generator__saved-card p,
.teamspace-custom-link-generator__copy-feedback {
  margin: 0;
  color: var(--teamspace-ink-soft);
}

.teamspace-custom-link-generator__actions,
.teamspace-custom-link-generator__saved-actions,
.teamspace-custom-link-generator__copy-controls,
.teamspace-custom-link-generator__saved-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.teamspace-custom-link-generator__actions button,
.teamspace-custom-link-generator__saved-actions button,
.teamspace-custom-link-generator__saved-actions a,
.teamspace-custom-link-generator__open-link,
.teamspace-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(45, 111, 182, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: var(--teamspace-blue-deep);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.teamspace-copy-button--icon {
  width: 2.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
  vertical-align: middle;
  flex: 0 0 auto;
}

.teamspace-copy-button__icon {
  font-size: 1rem;
  line-height: 1;
}

.teamspace-event-submit {
  --teamspace-ink: #17384d;
  --teamspace-blue-deep: #1f568f;
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 18px 56px;
  box-sizing: border-box;
}

.teamspace-event-submit * {
  box-sizing: border-box;
}

.teamspace-event-submit h1 {
  margin: 0 0 14px;
}

.teamspace-event-submit > p {
  max-width: 760px;
  margin: 0 0 22px;
}

.teamspace-event-submit > ol {
  max-width: 760px;
  margin: 0 0 24px;
  padding: 14px 18px 14px 38px;
  border: 1px solid rgba(45, 111, 182, 0.18);
  border-radius: 10px;
  background: #f5f9fc;
}

.teamspace-event-submit__required-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--teamspace-ink);
  font-size: 0.94rem;
}

.teamspace-event-submit__form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.teamspace-event-submit__field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--teamspace-blue-deep);
  font-weight: 600;
}

.teamspace-event-submit__field--wide,
.teamspace-event-submit__actions {
  grid-column: 1 / -1;
}

.teamspace-event-submit__field input,
.teamspace-event-submit__field textarea,
.teamspace-event-submit__field select {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(45, 111, 182, 0.18);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  color: var(--teamspace-ink);
  background: #fff;
}

.teamspace-event-submit__field textarea {
  min-height: 118px;
  resize: vertical;
}

.teamspace-event-submit__field small {
  color: #526b7b;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.4;
}

.teamspace-event-submit__actions {
  display: flex;
  justify-content: flex-start;
}

.teamspace-event-submit__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(45, 111, 182, 0.18);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teamspace-blue-deep);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.teamspace-event-submit__button:hover,
.teamspace-event-submit__button:focus {
  border-color: rgba(45, 111, 182, 0.34);
}

.teamspace-share-tools__qr .teamspace-copy-button {
  min-height: 36px;
  padding: 8px 18px;
  border-color: #F2B544;
  background: #F2B544;
  color: #FFFFFF !important;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
}

.teamspace-share-tools__qr .teamspace-copy-button:hover,
.teamspace-share-tools__qr .teamspace-copy-button:focus {
  border-color: #E0A538;
  background: #E0A538;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

.teamspace-custom-link-generator__actions button,
.teamspace-custom-link-generator__primary-action {
  background: #163A5F;
  color: #fff;
  border-color: #163A5F;
}

.teamspace-custom-link-generator__cancel {
  color: var(--teamspace-blue-deep);
  font-weight: 600;
  text-decoration: none;
}

.teamspace-custom-link-generator__notice {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(45, 111, 182, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.teamspace-referred-affiliate__activate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 14px 42px;
  border: 1px solid #F2B544;
  border-radius: 999px;
  background: #F2B544;
  color: #FFFFFF !important;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  box-shadow: none;
  box-sizing: border-box;
}

.teamspace-referred-affiliate__activate-button:hover,
.teamspace-referred-affiliate__activate-button:focus {
  background: #E0A538;
  border-color: #E0A538;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

.teamspace-payout-email__field-wrap {
  width: 100%;
}

.teamspace-payout-email__field {
  box-sizing: border-box;
  width: 100%;
}

.teamspace-payout-email__locked-field {
  position: relative;
  display: block;
  width: 100%;
}

.teamspace-payout-email__field--locked {
  padding-right: 44px;
  opacity: 0.65;
  background: #f6f7f7;
}

.teamspace-payout-email__lock-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  color: #F2B544;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.teamspace-payout-email__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #F2B544;
  border-radius: 999px;
  background: #F2B544;
  color: #F8FBFA;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
}

.teamspace-payout-email__submit:hover,
.teamspace-payout-email__submit:focus {
  border-color: #F2B544;
  background: #F2B544;
  color: #F8FBFA;
  box-shadow: none;
}

.teamspace-custom-link-generator__notice--success {
  color: #166534;
  background: rgba(220, 252, 231, 0.86);
  border-color: rgba(22, 101, 52, 0.18);
}

.teamspace-custom-link-generator__notice--error {
  color: #991b1b;
  background: rgba(254, 226, 226, 0.92);
  border-color: rgba(153, 27, 27, 0.18);
}

.teamspace-custom-link-generator__saved-grid {
  display: grid;
  gap: 14px;
}

.teamspace-custom-link-generator__saved-card {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(45, 111, 182, 0.14);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.teamspace-custom-link-generator__saved-card h6 {
  margin: 0 0 4px;
}

.teamspace-custom-link-generator__saved-meta {
  display: grid;
  gap: 8px;
}

.teamspace-custom-link-generator__copy-controls {
  align-items: stretch;
  justify-content: flex-start;
}

.teamspace-custom-link-generator__copy-controls input {
  flex: 1 1 320px;
}

.teamspace-custom-link-generator__copy-feedback {
  min-height: 1.2em;
  font-size: 0.92rem;
}

.teamspace-custom-link-generator__copy-feedback--inline {
  display: inline;
  min-height: 0;
  margin-left: 0.35em;
}

@media (max-width: 640px) {
  .teamspace-custom-link-generator__actions,
  .teamspace-custom-link-generator__saved-actions,
  .teamspace-custom-link-generator__copy-controls,
  .teamspace-custom-link-generator__saved-card-header {
    align-items: stretch;
  }

  .teamspace-custom-link-generator__actions button,
  .teamspace-custom-link-generator__saved-actions button,
  .teamspace-custom-link-generator__saved-actions a,
  .teamspace-custom-link-generator__open-link,
  .teamspace-copy-button {
    width: 100%;
  }

  .teamspace-copy-button--icon {
    width: 2.25rem;
  }
}

@media (max-width: 760px) {
  .teamspace-event-submit {
    padding: 24px 12px 42px;
  }

  .teamspace-event-submit__form {
    grid-template-columns: 1fr;
  }

  .teamspace-event-submit__button {
    width: 100%;
  }
}


.teamspace-heat-map {
  display: block;
}

.teamspace-heat-map__intro {
  margin: 0 0 16px;
}

.teamspace-heat-map__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.teamspace-heat-map__filter-link {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #dcdcde;
  border-radius: 999px;
  background: #fff;
  color: #1d2327;
  text-decoration: none;
}

.teamspace-heat-map__filter-link:hover,
.teamspace-heat-map__filter-link:focus {
  border-color: #163A5F;
  color: #163A5F;
}

.teamspace-heat-map__filter-link.is-active {
  background: #163A5F;
  border-color: #163A5F;
  color: #fff;
}

.teamspace-heat-map__controls {
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #dcdcde;
  background: #f6f7f7;
}

.teamspace-heat-map__controls select {
  min-width: 220px;
}

.teamspace-heat-map__submit {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #8c8f94;
  border-radius: 3px;
  background: #f6f7f7;
  color: #1d2327;
  line-height: 2;
  text-decoration: none;
  cursor: pointer;
}

.teamspace-heat-map__submit:hover,
.teamspace-heat-map__submit:focus {
  border-color: #50575e;
  background: #f0f0f1;
  color: #1d2327;
}

.teamspace-heat-map__summary {
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #dcdcde;
  background: #fff;
}

.teamspace-heat-map table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.teamspace-heat-map th,
.teamspace-heat-map td {
  padding: 10px 12px;
  border: 1px solid #dcdcde;
  text-align: left;
  vertical-align: top;
}

.teamspace-heat-map th {
  background: #f6f7f7;
}

.teamspace-heat-map__count {
  width: 140px;
  text-align: right;
}

.teamspace-heat-map__group {
  width: 180px;
}

.teamspace-heat-map__note {
  margin-top: 12px;
  color: #50575e;
  font-size: 12px;
}

.teamspace-heat-map__visual {
  position: relative;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid #dcdcde;
  background: linear-gradient(135deg, rgba(234, 245, 255, 0.55), rgba(241, 252, 248, 0.7));
}

.teamspace-heat-map__visual-header {
  margin: 0 0 12px;
}

.teamspace-heat-map__visual-title,
.teamspace-heat-map__visual-group-title {
  margin: 0;
  color: #17384d;
}

.teamspace-heat-map__visual-copy,
.teamspace-heat-map__panel-copy,
.teamspace-heat-map__visual-loading,
.teamspace-heat-map__visual-error,
.teamspace-heat-map__territory-meta {
  margin: 6px 0 0;
  color: #4d677a;
}

.teamspace-heat-map__legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}

.teamspace-heat-map__legend-bar {
  width: 180px;
  max-width: 42vw;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e7eef5 0%, #143a5c 100%);
  border: 1px solid rgba(20, 58, 92, 0.12);
}

.teamspace-heat-map__legend-label {
  font-size: 12px;
  font-weight: 600;
  color: #17384d;
}

.teamspace-heat-map__visual-body {
  display: grid;
  gap: 18px;
}

.teamspace-heat-map__map-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(22, 58, 95, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.teamspace-heat-map__map-svg,
.teamspace-heat-map__territory-svg {
  display: block;
  width: 100%;
  height: auto;
}

.teamspace-heat-map__region {
  transition: fill 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
  outline: none;
}

.teamspace-heat-map__region:hover,
.teamspace-heat-map__region:focus {
  opacity: 0.92;
}

.teamspace-heat-map__region.is-zero {
  fill: #f5f7fa;
}

.teamspace-heat-map__map-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  pointer-events: none;
}

.teamspace-heat-map__territory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.teamspace-heat-map__territory-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(22, 58, 95, 0.12);
  border-radius: 12px;
  background: #fff;
}

.teamspace-heat-map__territory-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #17384d;
}

.teamspace-heat-map__tooltip {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 4px;
  max-width: 240px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(23, 56, 77, 0.96);
  color: #fff;
  box-shadow: 0 8px 24px rgba(23, 56, 77, 0.18);
  pointer-events: none;
}

.teamspace-heat-map__tooltip span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .teamspace-heat-map__legend {
    display: grid;
    justify-items: start;
  }

  .teamspace-heat-map__legend-bar {
    max-width: 100%;
    width: 140px;
  }

  .teamspace-heat-map__map-panel {
    padding: 12px;
  }
}

.teamspace-date-range-picker {
  display: grid;
  gap: 10px;
  min-width: 320px;
  padding: 12px;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fb 100%);
}

.teamspace-date-range-picker__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.teamspace-date-range-picker__title,
.teamspace-date-range-picker__summary {
  margin: 0;
}

.teamspace-date-range-picker__summary {
  color: #50575e;
  font-size: 12px;
}

.teamspace-date-range-picker__presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.teamspace-date-range-picker__inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 10px;
}

.teamspace-date-range-picker__inputs label {
  display: grid;
  gap: 4px;
}

.teamspace-date-range-picker__inputs span {
  font-weight: 600;
}

@media (max-width: 782px) {
  .teamspace-date-range-picker {
    min-width: 100%;
  }

  .teamspace-date-range-picker__inputs {
    grid-template-columns: minmax(0, 1fr);
  }
}

.teamspace-distributor-todos {
  display: grid;
  gap: 14px;
}

.teamspace-distributor-todos__summary {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.teamspace-distributor-todos__summary h3,
.teamspace-distributor-todos__summary p,
.teamspace-distributor-todos__message {
  margin: 0;
}

.teamspace-distributor-todos__message {
  padding: 10px 12px;
  border-left: 4px solid #163a5f;
  background: #f8fbfa;
}

.teamspace-distributor-todos__form {
  display: grid;
  gap: 12px;
}

.teamspace-distributor-todos__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.teamspace-distributor-todos__item {
  margin: 0;
}

.teamspace-distributor-todos__label,
.teamspace-distributor-todos__locked {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 10px 0;
}

.teamspace-distributor-todos__native-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.teamspace-distributor-todos__box {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #a7adb3;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.teamspace-distributor-todos__native-check:checked + .teamspace-distributor-todos__box {
  background: #16803c;
}

.teamspace-distributor-todos__native-check:checked + .teamspace-distributor-todos__box::before {
  content: "\2713";
}

.teamspace-distributor-todos__native-check:focus-visible + .teamspace-distributor-todos__box {
  outline: 2px solid #163a5f;
  outline-offset: 2px;
}

.teamspace-distributor-todos__item--complete .teamspace-distributor-todos__box {
  background: #16803c;
}

.teamspace-distributor-todos__item--urgent .teamspace-distributor-todos__box {
  background: #c62828;
}

.teamspace-distributor-todos__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.teamspace-distributor-todos__copy span,
.teamspace-distributor-todos__copy em {
  color: #50575e;
  font-size: 0.9em;
}

.teamspace-distributor-todos__copy em {
  font-style: normal;
}

.teamspace-distributor-todos__autosave-status {
  min-height: 1.2em;
  margin: 0;
  color: #50575e;
  font-size: 0.9em;
}

.teamspace-distributor-todos__autosave-status:empty {
  display: none;
}

.teamspace-distributor-todos__save {
  border: 0;
  border-radius: 4px;
  padding: 9px 14px;
  background: #163a5f;
  color: #f8fbfa;
  font-weight: 700;
  cursor: pointer;
}

.teamspace-store-credit-wallet {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.teamspace-store-credit-wallet h2,
.teamspace-store-credit-wallet h3 {
  margin: 0;
  color: #163a5f;
  letter-spacing: 0;
}

.teamspace-store-credit-wallet__balance {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  border: 1px solid #d8e2df;
  border-left: 4px solid #3e8f5a;
  border-radius: 6px;
  padding: 18px 20px;
  background: #f8fbfa;
  color: #243642;
}

.teamspace-store-credit-wallet__balance span {
  font-size: 0.95rem;
  font-weight: 700;
}

.teamspace-store-credit-wallet__balance strong {
  color: #163a5f;
  font-size: 1.65rem;
  line-height: 1.1;
}

.teamspace-store-credit-wallet__summary {
  margin: 0;
  color: #243642;
  line-height: 1.55;
}

.teamspace-store-credit-wallet__history {
  overflow: hidden;
  border-radius: 6px;
}

.teamspace-store-credit-wallet__history td:nth-child(3),
.teamspace-store-credit-wallet__history th:nth-child(3),
.teamspace-store-credit-wallet__history td:last-child,
.teamspace-store-credit-wallet__history th:last-child {
  text-align: right;
  white-space: nowrap;
}

.teamspace-store-credit-checkout {
  margin: 18px 0;
  border: 1px solid #d8e2df;
  border-left: 4px solid #4da8da;
  border-radius: 6px;
  padding: 16px 18px;
  background: #f8fbfa;
  color: #243642;
}

.teamspace-store-credit-checkout h3 {
  margin: 0 0 10px;
  color: #163a5f;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.teamspace-store-credit-checkout__balance,
.teamspace-store-credit-checkout__limit {
  margin: 0 0 8px;
}

.teamspace-store-credit-checkout__balance strong,
.teamspace-store-credit-checkout__limit strong {
  color: #163a5f;
}

.teamspace-store-credit-checkout__field {
  margin: 12px 0 0;
}

.teamspace-store-credit-checkout__help {
  margin: 6px 0 0;
  color: #52656f;
  font-size: 0.95rem;
  line-height: 1.45;
}

.teamspace-store-credit-checkout__field label {
  color: #163a5f;
  font-weight: 700;
}

.teamspace-store-credit-checkout__field input {
  width: min(220px, 100%);
  min-height: 42px;
  margin-top: 6px;
  border: 1px solid #b9c7c4;
  border-radius: 4px;
  padding: 8px 10px;
  color: #243642;
}

@media (max-width: 640px) {
  .teamspace-store-credit-wallet__balance {
    align-items: flex-start;
    flex-direction: column;
  }

  .teamspace-store-credit-wallet__balance strong {
    font-size: 1.4rem;
  }
}

.teamspace-onboarding-entry {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.teamspace-onboarding-entry__notice {
  margin: 0;
  color: #163a5f;
  font-weight: 600;
}

.teamspace-onboarding-entry__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.teamspace-onboarding-entry__button,
.teamspace-onboarding-shell__primary,
.teamspace-onboarding-shell__secondary,
.teamspace-onboarding-shell__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  white-space: normal;
  text-align: center;
}

.teamspace-onboarding-entry__button:focus-visible,
.teamspace-onboarding-shell__primary:focus-visible,
.teamspace-onboarding-shell__secondary:focus-visible,
.teamspace-onboarding-shell__link:focus-visible {
  outline: 3px solid #163a5f;
  outline-offset: 3px;
}

.teamspace-onboarding-entry__button,
.teamspace-onboarding-shell__primary {
  border: 0;
  background: #163a5f;
  color: #ffffff;
}

.teamspace-onboarding-shell__secondary,
.teamspace-onboarding-shell__link {
  border: 1px solid #163a5f;
  background: #ffffff;
  color: #163a5f;
}

.teamspace-onboarding-entry__hint {
  color: #59636e;
  font-size: 0.95rem;
}

.teamspace-onboarding-shell {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid #d8e0e6;
  border-radius: 18px;
  background: #ffffff;
}

.teamspace-onboarding-shell__intro,
.teamspace-onboarding-shell__panel,
.teamspace-onboarding-shell__status {
  padding: 1rem;
  border-radius: 14px;
  background: #f8fbfa;
  overflow-wrap: anywhere;
}

.teamspace-onboarding-shell__eyebrow,
.teamspace-onboarding-shell__meta,
.teamspace-onboarding-shell__lead,
.teamspace-onboarding-shell__panel-lead,
.teamspace-onboarding-shell__guidance,
.teamspace-onboarding-shell__loading {
  margin: 0;
}

.teamspace-onboarding-shell__eyebrow {
  color: #163a5f;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.teamspace-onboarding-shell__intro h3,
.teamspace-onboarding-shell__panel h4 {
  margin: 0.35rem 0 0.5rem;
}

.teamspace-onboarding-entry__notice:focus-visible,
.teamspace-onboarding-shell__panel-title:focus-visible,
.teamspace-onboarding-shell__status:focus-visible {
  outline: 3px solid rgba(22, 58, 95, 0.45);
  outline-offset: 4px;
}

.teamspace-onboarding-shell__steps {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.teamspace-onboarding-shell__step {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #d8e0e6;
  border-radius: 14px;
  background: #ffffff;
}

.teamspace-onboarding-shell__step.is-active {
  border-color: #163a5f;
  box-shadow: 0 0 0 2px rgba(22, 58, 95, 0.12);
}

.teamspace-onboarding-shell__step.is-complete {
  background: #f1f8f4;
}

.teamspace-onboarding-shell__step-label {
  font-weight: 600;
  color: #163a5f;
}

.teamspace-onboarding-shell__step-meta {
  color: #59636e;
  text-align: right;
}

.teamspace-onboarding-shell__status-title,
.teamspace-onboarding-shell__status-actions,
.teamspace-onboarding-shell__status-list {
  margin: 0;
}

.teamspace-onboarding-shell__status-list {
  padding-left: 1.25rem;
}

.teamspace-onboarding-shell__status {
  display: grid;
  gap: 0.75rem;
}

.teamspace-onboarding-shell__form {
  display: grid;
  gap: 0.85rem;
}

.teamspace-onboarding-shell__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.teamspace-onboarding-shell__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;
}

.teamspace-onboarding-shell__loading {
  display: none;
  color: #163a5f;
  font-weight: 600;
}

.teamspace-onboarding-shell__form.is-loading .teamspace-onboarding-shell__loading {
  display: block;
}

.teamspace-onboarding-shell__status--validation-error,
.teamspace-onboarding-shell__status--blocked,
.teamspace-onboarding-shell__status--unavailable {
  background: #fff5f5;
}

.teamspace-onboarding-shell__status--completed,
.teamspace-onboarding-shell__status--saved {
  background: #f1f8f4;
}

@media (max-width: 960px) {
  .teamspace-onboarding-shell__step {
    flex-direction: column;
    align-items: flex-start;
  }

  .teamspace-onboarding-entry__actions,
  .teamspace-onboarding-shell__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .teamspace-onboarding-entry__button,
  .teamspace-onboarding-shell__primary,
  .teamspace-onboarding-shell__secondary,
  .teamspace-onboarding-shell__link {
    width: 100%;
  }

  .teamspace-onboarding-shell__step-meta {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .teamspace-onboarding-shell,
  .teamspace-onboarding-shell__intro,
  .teamspace-onboarding-shell__panel,
  .teamspace-onboarding-shell__status {
    padding: 1rem;
  }

  .teamspace-onboarding-shell__step,
  .teamspace-onboarding-entry__actions,
  .teamspace-onboarding-shell__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .teamspace-onboarding-shell__step {
    justify-content: flex-start;
  }

  .teamspace-onboarding-shell__step-meta {
    text-align: left;
  }
}
