/* UI 11-03（Owner：按极光标准统一）：配色换成极光色板（深蓝主按钮、青色强调、极光中性灰），字体跟页面走；设置里是整页的一个分区。 */
/* A compact invitation card, isolated from the large account/team dialog. */
html:root body dialog#referralRewardsDialog.rf-dialog {
  box-sizing: border-box; width: min(480px, calc(100vw - 32px)); max-width: 480px;
  height: fit-content; max-height: calc(100dvh - 32px); padding: 0; margin: auto;
  border: 1px solid rgba(10, 29, 53, .08); border-radius: 22px; background: #fff;
  color: #253545; overflow: hidden; box-shadow: 0 20px 70px #0A1D352b;
}
#referralRewardsDialog::backdrop { background: #0E1B2A73; backdrop-filter: blur(4px); }
html:root body dialog#referralRewardsDialog.rf-dialog > .dialog-head { position: absolute; inset: 12px 12px auto auto; z-index: 2; padding: 0; border: 0; background: transparent; backdrop-filter: none; }
html:root body dialog#referralRewardsDialog.rf-dialog > .dialog-head h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:root body dialog#referralRewardsDialog.rf-dialog > .dialog-head button { display: grid; place-items: center; width: 32px; min-width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #4A5B6B; font-size: 24px; line-height: 1; cursor: pointer; }
html:root body dialog#referralRewardsDialog.rf-dialog > .dialog-head button:hover { background: #ffffff80; }
#referralRewardsDialog > .rf-body { padding: 0; max-height: calc(100dvh - 34px); overflow: auto; overscroll-behavior: contain; }
.rf-body { min-width: 0; color: #253545; }
.st-org.rf-body { max-width: 560px; margin-inline: 0; border: 1px solid #E1E8EB; border-radius: 12px; background: #fff; overflow: hidden; }
.rf-content { min-width: 0; font: inherit; font-size: 14px; line-height: 1.6; }
.rf-content *, .rf-content *::before, .rf-content *::after { box-sizing: border-box; }
.rf-content h3, .rf-content p { margin: 0; }
.rf-content p { overflow-wrap: anywhere; }
.rf-hero { position: relative; overflow: hidden; min-height: 202px; padding: 26px 28px 52px; background: linear-gradient(120deg, #EEF7FA, #E3F4F8 65%, #F2F8FA); }
.rf-kicker { display: block; margin-bottom: 10px; color: #4A5B6B; font-size: 11px; letter-spacing: .06em; }
.rf-hero h3 { position: relative; z-index: 1; font-size: 27px; line-height: 1.3; font-weight: 650; letter-spacing: -.5px; }
.rf-hero h3 span { color: #0F6E85; }
.rf-hero p { position: relative; z-index: 1; width: 79%; margin-top: 12px; color: #4A5B6B; font-size: 12px; line-height: 1.7; }
.rf-art { position: absolute; right: 26px; top: 50px; display: grid; place-items: center; width: 96px; height: 96px; color: #2A9BB8; font-size: 72px; transform: rotate(14deg); }
.rf-art::before, .rf-art::after { content: ""; position: absolute; width: 154px; height: 154px; border: 1px solid #ffffffb0; border-radius: 50%; }
.rf-art::after { width: 204px; height: 204px; }
.rf-rewards { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: -30px 24px 0; padding: 16px 8px; border: 1px solid #E1E8EB; border-radius: 16px; background: #fff; }
.rf-rewards > div { display: grid; gap: 6px; text-align: center; padding: 0 6px; }
.rf-rewards > div + div { border-left: 1px dashed #E1E8EB; }
.rf-rewards span { font-size: 12px; }
.rf-rewards strong { color: #0E1B2A; font-size: 22px; line-height: 1.4; font-weight: 600; white-space: nowrap; }
.rf-rewards small { color: #5E6F7E; font-size: 10px; }
.rf-share { display: grid; gap: 14px; padding: 24px 24px 16px; }
.rf-link-row { display: flex; gap: 8px; min-width: 0; }
.rf-link-row input { display: block; width: 100%; min-width: 0; flex: 1; height: 38px; padding: 0 10px; border: 1px solid #D3DCE0; border-radius: 8px; background: #F5F8F9; color: #4A5B6B; font: inherit; font-size: 12px; }
.rf-content button { min-height: 34px; padding: 6px 10px; border: 1px solid #C3CDD2; border-radius: 8px; background: #fff; color: #0E1B2A; font: inherit; font-size: 12px; white-space: nowrap; cursor: pointer; }
.rf-content button.primary { height: 38px; min-width: 94px; border-color: #13253D; background: #13253D; color: #fff; }
.rf-content button:hover:not(:disabled) { background: #F2F6F7; }
.rf-content button.primary:hover:not(:disabled) { background: #1E3654; }
.rf-content button:disabled { opacity: .5; cursor: default; }
.rf-content button:focus-visible, .rf-content summary:focus-visible, #referralRewardsDialog .dialog-head button:focus-visible { outline: 2px solid #0F6E85; outline-offset: 3px; }
.rf-content .rf-status { color: #4A5B6B; font-size: 12px; line-height: 1.6; }
.rf-status:empty { display: none; }
.rf-shortcuts { display: grid; gap: 10px; }
.rf-shortcuts summary { width: fit-content; margin: auto; color: #5E6F7E; font-size: 11px; cursor: pointer; }
.rf-rules[open], .rf-qr[open] { padding: 10px; border-radius: 10px; background: #F5F8F9; }
.rf-rules p { margin-top: 8px; color: #4A5B6B; font-size: 11px; line-height: 1.8; }
.rf-qr svg { display: block; width: 160px; max-width: 100%; height: auto; margin: 12px auto 2px; }
.rf-content .rf-history { width: 100%; min-height: 40px; margin-top: 2px; border: 0; border-top: 1px solid #EDF2F4; border-radius: 0; background: transparent; font-size: 13px; }
.rf-content[data-view="records"] { padding: 24px; }
.rf-records-nav { display: flex; align-items: center; gap: 6px; min-height: 32px; padding-right: 24px; margin-bottom: 20px; }
.rf-records-nav h3 { font-size: 17px; font-weight: 600; }
.rf-records-nav .rf-back { width: 26px; min-height: 30px; padding: 0; border: 0; font-size: 26px; }
.rf-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.rf-stats > div { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: #F5F8F9; }
.rf-stats strong { color: #0E1B2A; font-size: 24px; line-height: 1.3; font-weight: 500; }
.rf-stats span { font-size: 12px; color: #5E6F7E; }
.rf-table-scroll { max-height: 300px; overflow: auto; border: 1px solid #E1E8EB; border-radius: 14px; }
.rf-records { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.rf-records th { position: sticky; top: 0; padding: 10px 12px; background: #F5F8F9; color: #5E6F7E; font-size: 12px; font-weight: 400; }
.rf-records th:first-child { width: 40%; }
.rf-records th:last-child { width: 21%; text-align: right; }
.rf-records td { padding: 12px; border-top: 1px solid #EDF2F4; vertical-align: top; overflow-wrap: anywhere; font-size: 11px; }
.rf-records td strong { display: block; font-size: 12px; font-weight: 500; }
.rf-records small { display: block; margin-top: 4px; color: #7A8B98; font-size: 10px; }
.rf-records .rf-record-points { text-align: right; white-space: nowrap; }
.rf-state { color: #5E6F7E; }
.rf-state.is-rewarded { color: #1F7A5A; }
.rf-records .rf-empty { height: 240px; padding: 20px; vertical-align: middle; text-align: center; color: #7A8B98; font-size: 13px; }
.rf-paging { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 14px 0; }
.rf-content .rf-note { color: #7A8B98; font-size: 11px; line-height: 1.8; }
@media (max-width: 420px) {
  .rf-hero { padding: 24px 20px 48px; }
  .rf-hero h3 { font-size: 25px; }
  .rf-art { right: 8px; font-size: 58px; }
  .rf-rewards { margin-inline: 16px; padding-block: 14px; }
  .rf-rewards strong { font-size: 19px; }
  .rf-rewards small { font-size: 9px; }
  .rf-share { padding: 20px 16px 12px; }
  .rf-content[data-view="records"] { padding: 20px 16px; }
  .rf-records td, .rf-records th { padding: 10px 8px; }
}
