/* Indications inherit the account palette and type scale. */
.referral-panel { border-color: rgba(167,139,250,.24); }
.referral-intro { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.referral-intro h3 { margin: 0 0 8px; font-size: clamp(20px,2.2vw,26px); letter-spacing: -.025em; }
.referral-intro p { color: var(--muted); margin: 0; line-height: 1.6; max-width: 65ch; }
.referral-mark { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 14px; color: #bba4ff; background: rgba(139,92,246,.12); }
.referral-mark svg { width: 24px; height: 24px; }
.referral-link-label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.referral-link-bar { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid rgba(167,139,250,.22); border-radius: 14px; background: rgba(8,10,17,.5); }
.referral-link-bar input { flex: 1; width: 0; min-width: 0; padding: 8px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; text-overflow: ellipsis; }
.referral-link-bar input:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; border-radius: 6px; }
.referral-link-bar .btn { flex-shrink: 0; }
.referral-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 22px 0; }
.referral-stats > div { padding: 12px 16px; border-left: 2px solid rgba(167,139,250,.4); }
.referral-stats dt { color: var(--muted); font-size: 13px; }
.referral-stats dd { margin: 4px 0 0; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.referral-rules { color: var(--muted); font-size: 14px; line-height: 1.6; }
.referral-rules summary { cursor: pointer; color: var(--text); width: fit-content; }
.referral-rules summary:focus-visible { outline: 2px solid #a78bfa; outline-offset: 4px; }
.referral-rules ul { margin: 12px 0 0; padding-left: 20px; }
.referral-rules li + li { margin-top: 8px; }
.referral-list-heading { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.referral-list { list-style: none; margin: 0 0 16px; padding: 0; max-height: 360px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: rgba(167,139,250,.35) transparent; }
.referral-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.referral-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.referral-person { display: flex; align-items: center; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.referral-person > svg { width: 22px; height: 22px; flex-shrink: 0; color: #a78bfa; }
.referral-result { text-align: right; font-size: 13px; }
.referral-result > b { color: #c2afea; font-weight: 500; }
.referral-empty { color: var(--muted); line-height: 1.6; padding: 14px 0; }
@media (max-width: 600px) {
  .referral-intro { gap: 12px; }
  .referral-mark { flex-basis: 36px; height: 36px; border-radius: 10px; }
  .referral-link-bar { flex-wrap: wrap; }
  .referral-link-bar input { flex-basis: 100%; width: 100%; }
  .referral-link-bar .btn { width: 100%; }
  .referral-stats { gap: 6px; }
  .referral-stats > div { padding: 8px; }
  .referral-stats dt { font-size: 11px; }
  .referral-stats dd { font-size: 22px; }
  .referral-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .referral-result { text-align: left; padding-left: 34px; }
}
