.shell:has(#promotion:not([hidden])) .profile-header { display: none; }
.shell:has(#promotion:not([hidden])) > .page { grid-row: 2; }

#promotion {
  gap: 14px;
  padding-top: 6px;
}

#promotion .promotion-tabs {
  min-height: 40px;
  background: #191817;
}

#promotion .promotion-tabs button { min-height: 38px; }

#promotion .promotion-tabs button[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(180deg, #191817, #101010) padding-box,
    linear-gradient(110deg, #c1aa75, #393633 74%) border-box;
  color: #ddbb78;
}

#promotion .promotion-summary {
  border: 0;
  background: linear-gradient(130deg, #59504a, #332c25 71%);
}

#promotion .promotion-summary .promotion-stats { padding-block: 7px; }

#promotion .promotion-summary .promotion-stats dt { color: #bfa483; }

#promotion .promotion-stats > div {
  gap: 3px;
  padding-block: 0;
}

#promotion .promotion-stats dd { color: #e0d2c5; }

#promotion .promotion-reward { gap: 8px; }

#promotion .promotion-team-watermark {
  position: absolute;
  z-index: -1;
  right: 12px;
  width: min(38%, 132px);
  fill: #f0dbc5;
  opacity: .08;
  pointer-events: none;
}

#promotion .promotion-reward .promotion-team-watermark { bottom: 9px; }

#promotion .promotion-link-card {
  gap: 12px;
  border: 0;
  background: linear-gradient(#3d362f, #1e1c19);
}

.promotion-link-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  min-height: 44px;
  border: 1px solid #393939;
  border-radius: 12px;
  background: #1e1d1b;
  color: #fff;
}

.promotion-link-value {
  min-width: 0;
  padding: 0 2px 0 12px;
  border-radius: 12px 0 0 12px;
  color: inherit;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
}

.promotion-link-value span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promotion-link-copy {
  display: grid;
  place-items: center;
  border-radius: 0 12px 12px 0;
  color: inherit;
}

.promotion-link-controls button:hover { background: #ffffff0d; }
.promotion-link-copy .promotion-copy-icon { width: 20px; height: 20px; }

.promotion-link-copy .promotion-copy-icon::before,
.promotion-link-copy .promotion-copy-icon::after {
  width: 12px;
  height: 13px;
  border-width: 1.5px;
  border-radius: 3px;
}

.promotion-link-copy .promotion-copy-icon::after { background: #1e1d1b; }

#promotion .agency-promo-secondary {
  border-color: #e9d6bb;
  background: transparent;
  color: #fff4e6;
  font-weight: 500;
}

#promotion .agency-promo-secondary:hover { background: #ffffff0d; }

#promotion .promotion-team-summary { border-color: #71513a55; }

#promotion .promotion-team-overview {
  padding: 12px 16px 14px;
  background: linear-gradient(100deg, #634c3a, #3f3024 35%, #150f07 85%);
}

#promotion .promotion-team-overview .promotion-team-watermark {
  right: 16px;
  bottom: 7px;
  width: min(28%, 88px);
}

#promotion .promotion-team-size { color: #e0d2c5; }

.promotion-period-picker { position: relative; }

.promotion-period-picker::after {
  position: absolute;
  top: calc(50% - 5px);
  right: 6px;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border: solid #dfc89d;
  border-width: 0 2px 2px 0;
  content: "";
  pointer-events: none;
}

#promotion .promotion-period-picker select {
  min-height: 28px;
  padding: 2px 24px 2px 6px;
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff4e6;
  font-size: 14px;
}

.promotion-period-picker option { background: #211911; }

#promotion .promotion-team-finances {
  gap: 8px 0;
  padding: 12px;
  background: linear-gradient(130deg, #2b241d, #100f0d 96%);
}

#promotion .promotion-members {
  padding: 0;
  border: 0;
  background: none;
}

#promotion .promotion-members summary {
  min-height: 24px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 500;
}

#promotion .promotion-members summary > :nth-child(2) { background: #302924; }
#promotion .promotion-members summary::after { transform: rotate(225deg); }
#promotion .promotion-members[open] summary::after { transform: rotate(45deg); }

.promotion-members-empty {
  display: grid;
  min-height: 307px;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(#241f19, #1a1814);
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.promotion-members-empty img {
  width: min(100%, 160px);
  height: 160px;
  object-fit: contain;
}

#promotion .promotion-members ul {
  margin-top: 0;
  padding: 0 10px;
  border-radius: 12px;
  background: linear-gradient(#241f19, #1a1814);
}

#promotion .promotion-members li:first-child { border-top: 0; }

.promotion-page-back {
  justify-self: center;
  min-height: 32px;
  margin-top: 10px;
  padding: 0 16px;
  color: #bfa483;
  font-size: 13px;
}

/* 2026.11.22 文档第 6、7 条：我的邀请 / 我的团队照原版 */
#promotion .promotion-reward { display: grid; gap: 2px; padding: 10px 14px 12px; }
#promotion .promotion-reward-lead { margin: 0; color: #f1e4d3; font-size: 13px; }
#promotion .promotion-reward-rate { margin: 0; color: #fff; font-size: 20px; font-weight: 700; }
#promotion #promotion-reward-note { margin: 0; color: #a99784; font-size: 11px; }
#promotion .promotion-share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
#promotion .promotion-share-actions > * { min-height: 38px; border-radius: 9px; font-size: 13px; }
#promotion a.agency-promo-secondary { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d8c3ae66; color: #fff1df; text-decoration: none; }
#promotion span.promotion-link-value { display: flex; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#promotion .promotion-team-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#promotion .promotion-team-range select {
  min-height: 28px;
  padding: 0 24px 0 10px;
  border: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f1e4d3' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 6px center;
  color: #f1e4d3;
  font-size: 14px;
  appearance: none;
}
#promotion .promotion-team-range select option { color: #222; }
#promotion .promotion-team-finances { grid-template-columns: repeat(3, minmax(0, 1fr)); }
