/* Generated from referral-rewards.template.css by tools/build-referral-rewards.mjs; edit the template.
   the referral page in the usage page's language: square, shadow-defined surfaces, */
.referral-page {
  --rf-ink: #111; --rf-ink-2: #2b3230; --rf-muted: #6b7370; --rf-faint: #99a19e;
  --rf-line: #e8ecea; --rf-soft: #f5f7f6; --rf-soft-2: #eef2f0; --rf-panel: #fff; --rf-hover: #f7faf9;
  --rf-teal: #1d6f65; --rf-teal-strong: #12554d; --rf-teal-soft: #ebf4f1; --rf-danger: #a33c3c; --rf-danger-soft: #fbf0ef;
  --rf-primary: #111; --rf-primary-hover: #29302d; --rf-primary-fg: #fff; --rf-track: #eef2f0;
  --rf-shadow: 0 22px 54px rgba(17, 24, 39, .06), 0 3px 12px rgba(17, 24, 39, .035);
  --rf-control: 0 .5px 1px rgba(17, 24, 39, .07), 0 2px 5px rgba(17, 24, 39, .045), 0 8px 22px rgba(17, 24, 39, .05);
  --rf-control-hover: 0 1px 2px rgba(17, 24, 39, .08), 0 5px 12px rgba(17, 24, 39, .06), 0 14px 32px rgba(17, 24, 39, .08);
  --rf-well: inset 0 1px 2px rgba(17, 24, 39, .08), inset 0 0 1px rgba(17, 24, 39, .05);
  --rf-ring: 0 0 0 3px rgba(29, 111, 101, .16), 0 1px 2px rgba(29, 111, 101, .16), 0 10px 26px rgba(29, 111, 101, .14);
  --rf-primary-shadow: 0 8px 20px rgba(17, 24, 39, .16); --rf-primary-shadow-hover: 0 12px 26px rgba(17, 24, 39, .2);
  --rf-indicator-shadow: 0 6px 16px rgba(17, 24, 39, .16); --rf-count-on: rgba(255, 255, 255, .16);
  --rf-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --rf-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --rf-ease: cubic-bezier(.22, 1, .36, 1); --rf-ease-io: cubic-bezier(.65, 0, .35, 1);
  --rf-h: 44px; --rf-pad: 28px;
}
html[data-console-theme="dark"] .referral-page {
  /* The console-night palette, as on the usage page. */
  --rf-ink: #e6e6e6; --rf-ink-2: #d5d5d5; --rf-muted: #a0a0a0; --rf-faint: #767676;
  --rf-line: #363636; --rf-soft: #2b2b2b; --rf-soft-2: #303030; --rf-panel: #242424; --rf-hover: #2a2a2a;
  --rf-teal: #76b9a2; --rf-teal-strong: #9ad1bd; --rf-teal-soft: rgba(118, 185, 162, .12); --rf-danger: #e9a19d; --rf-danger-soft: rgba(233, 161, 157, .12);
  --rf-primary: #d2d2d2; --rf-primary-hover: #e6e6e6; --rf-primary-fg: #222; --rf-track: #303030;
  --rf-shadow: 0 18px 46px rgba(0, 0, 0, .3), 0 3px 10px rgba(0, 0, 0, .18);
  --rf-control: inset 0 1px 0 rgba(255, 255, 255, .035), 0 1px 2px rgba(0, 0, 0, .36), 0 6px 18px rgba(0, 0, 0, .26);
  --rf-control-hover: inset 0 1px 0 rgba(255, 255, 255, .05), 0 2px 4px rgba(0, 0, 0, .4), 0 12px 30px rgba(0, 0, 0, .34);
  --rf-well: inset 0 1px 3px rgba(0, 0, 0, .42), inset 0 0 1px rgba(0, 0, 0, .3);
  --rf-ring: 0 0 0 3px rgba(118, 185, 162, .2), 0 10px 26px rgba(0, 0, 0, .32);
  --rf-primary-shadow: 0 6px 18px rgba(0, 0, 0, .35); --rf-primary-shadow-hover: 0 10px 24px rgba(0, 0, 0, .45);
  --rf-indicator-shadow: 0 6px 18px rgba(0, 0, 0, .35); --rf-count-on: rgba(0, 0, 0, .12);
}

/* ---------- Page rhythm ---------- */
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 16px !important; color: var(--rf-ink); font-family: var(--rf-font) !important; font-size: 13px; font-weight: 400; line-height: 1.6; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page :is(button, input) { font-family: var(--rf-font) !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page > *, .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page > .rf-top > *, .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page > .rf-skeleton > *, .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page > .rf-skeleton > .rf-top > * { min-width: 0; animation: rf-section-in 560ms var(--rf-ease) backwards; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page > :is(.rf-top, .rf-skeleton), .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page > .rf-skeleton > .rf-top { animation: none; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page > .rf-top > :nth-child(1), .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page > .rf-skeleton > .rf-top > :nth-child(1) { animation-delay: 40ms; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page > .rf-top > :nth-child(2), .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page > .rf-skeleton > .rf-top > :nth-child(2) { animation-delay: 90ms; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page > .rf-stats { animation-delay: 140ms; } .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page > .rf-records { animation-delay: 190ms; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-icon { flex: 0 0 auto; display: block; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page :is(button, input, [tabindex]):focus-visible { outline: 2px solid var(--rf-teal) !important; outline-offset: 2px; }

/* ---------- Header: title left, refresh right on one baseline ---------- */
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page > .rf-header { display: flex !important; align-items: flex-end !important; justify-content: space-between !important; gap: 24px; min-height: 0 !important; margin: 0 0 6px !important; padding: 0 !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-title { min-width: 0; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-eyebrow { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 0 10px !important; color: var(--rf-teal) !important; font-size: 11px !important; font-weight: 600 !important; letter-spacing: .08em !important; line-height: 1.4 !important; text-transform: uppercase; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-eyebrow .rf-icon { width: 14px; height: 14px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-header h1 { margin: 0 !important; color: var(--rf-ink) !important; font-family: var(--rf-font) !important; font-size: clamp(32px, 3.2vw, 44px) !important; font-weight: 500 !important; letter-spacing: -.01em !important; line-height: 1.12 !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-header-actions { display: flex !important; align-items: center; gap: 12px; margin: 0 !important; padding: 0 !important; }

/* ---------- Buttons (the console's hover sweep is replaced by a quiet lift) ---------- */
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button {
  display: inline-flex !important; flex: 0 0 auto; align-items: center !important; justify-content: center !important; gap: 8px; height: var(--rf-h) !important; min-height: 0 !important; margin: 0 !important; padding: 0 18px !important;
  border: 0 !important; border-radius: 0 !important; font-size: 13px !important; font-weight: 500 !important; letter-spacing: 0 !important; line-height: 1 !important; white-space: nowrap; cursor: pointer;
  transition: background-color 140ms ease, box-shadow 240ms var(--rf-ease), color 140ms ease, opacity 240ms ease, scale 140ms ease !important;
}
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button-primary { --hover-sweep-color: var(--rf-primary-fg) !important; background: var(--rf-primary) !important; color: var(--rf-primary-fg) !important; box-shadow: var(--rf-primary-shadow) !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button-primary:hover:not(:disabled) { background: var(--rf-primary-hover) !important; box-shadow: var(--rf-primary-shadow-hover) !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button-secondary { --hover-sweep-color: var(--rf-ink) !important; background: var(--rf-panel) !important; color: var(--rf-ink) !important; box-shadow: var(--rf-control) !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button-secondary:hover:not(:disabled) { box-shadow: var(--rf-control-hover) !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button:active:not(:disabled) { scale: .97; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button:disabled { cursor: default !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button-primary:disabled { background: var(--rf-soft-2) !important; color: var(--rf-faint) !important; box-shadow: none !important; opacity: 1 !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button-secondary:disabled { background: var(--rf-soft) !important; box-shadow: none !important; opacity: .55 !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button-primary[data-busy] { background: var(--rf-primary) !important; color: var(--rf-primary-fg) !important; opacity: .78 !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button-primary[data-busy]::before { content: ""; width: 12px; height: 12px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rf-spin 700ms linear infinite; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button[data-copied] { background: var(--rf-teal) !important; color: #fff !important; --hover-sweep-color: #fff !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button-secondary[data-copied] { background: var(--rf-teal-soft) !important; color: var(--rf-teal) !important; box-shadow: none !important; --hover-sweep-color: var(--rf-teal) !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-copy-icon { display: block; animation: rf-pop 260ms var(--rf-ease) backwards; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-refresh { height: 40px !important; padding: 0 16px !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-refresh[data-busy] .rf-refresh-icon { animation: rf-spin 900ms linear infinite; }

/* ---------- Panels ---------- */
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-panel { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0 !important; padding: var(--rf-pad) !important; border: 0 !important; border-radius: 0 !important; background: var(--rf-panel) !important; box-shadow: var(--rf-shadow) !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-top { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(330px, 1fr); gap: 16px; align-items: stretch; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; margin: 0 0 8px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-panel h2 { margin: 0 !important; color: var(--rf-ink) !important; font-family: var(--rf-font) !important; font-size: 18px !important; font-weight: 560 !important; letter-spacing: 0 !important; line-height: 1.35 !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-lead { max-width: 640px; margin: 0 !important; color: var(--rf-muted) !important; font-size: 13px !important; line-height: 1.75 !important; text-wrap: pretty; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-share .rf-lead { max-width: none; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-label { display: block; color: var(--rf-muted) !important; font-size: 12px !important; font-weight: 500 !important; line-height: 1.4 !important; }
/* Both panels end on their action row, so the two rows line up across the page. */
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-action { display: grid; gap: 8px; margin-top: auto; padding-top: 24px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-action-row { display: flex; align-items: stretch; min-width: 0; }

/* Share: the code is the page's one display figure; the link is a quiet well the copy action closes. */
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-code { display: grid; gap: 8px; margin-top: 22px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-code-value { display: block; width: fit-content; max-width: 100%; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--rf-ink) !important; font-family: var(--rf-mono) !important; font-size: 30px !important; font-weight: 500 !important; letter-spacing: .16em !important; line-height: 1.15 !important; overflow-wrap: anywhere; user-select: all; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-link-value {
  flex: 1 1 auto; width: auto !important; min-width: 0; height: var(--rf-h) !important; min-height: 0 !important; margin: 0 !important; padding: 0 14px !important; border: 0 !important; border-radius: 0 !important;
  background: var(--rf-soft) !important; box-shadow: var(--rf-well) !important; color: var(--rf-ink-2) !important; font-family: var(--rf-mono) !important; font-size: 13px !important; letter-spacing: 0 !important; text-overflow: ellipsis; outline: none; cursor: text;
  transition: box-shadow 240ms var(--rf-ease) !important;
}
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-link-value:focus { box-shadow: var(--rf-ring) !important; outline: none !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-copy { min-width: 172px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-retired { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; padding: 10px 14px; background: var(--rf-soft); color: var(--rf-ink-2); font-size: 12px; line-height: 1.7; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-retired > .rf-icon { width: 15px; height: 15px; margin-top: 3px; color: var(--rf-teal); }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-retired p { margin: 0 !important; color: inherit !important; font-size: 12px !important; line-height: 1.7 !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-retired code { padding: 1px 5px; border: 0 !important; background: var(--rf-panel) !important; color: var(--rf-ink) !important; font-family: var(--rf-mono) !important; font-size: 12px !important; }

/* Reward: the balance leads, the transfer field and its action close the panel. */
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-balance { display: grid; gap: 6px; margin: 14px 0 10px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-balance-value { display: block; color: var(--rf-ink) !important; font-size: 40px !important; font-weight: 540 !important; letter-spacing: -.02em !important; line-height: 1.1 !important; font-variant-numeric: tabular-nums; animation: rf-value-in 460ms var(--rf-ease) backwards; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-amount-field { position: relative; flex: 1 1 auto; min-width: 0; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-currency { position: absolute; top: 50%; left: 14px; z-index: 1; color: var(--rf-muted); font-size: 14px; line-height: 1; transform: translateY(-50%); pointer-events: none; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-amount-field input {
  display: block; width: 100% !important; height: var(--rf-h) !important; min-height: 0 !important; margin: 0 !important; padding: 0 12px 0 30px !important; border: 0 !important; border-radius: 0 !important;
  background: var(--rf-panel) !important; box-shadow: var(--rf-control) !important; color: var(--rf-ink) !important; font-size: 15px !important; font-weight: 500 !important; font-variant-numeric: tabular-nums; outline: none !important;
  -moz-appearance: textfield; appearance: textfield; transition: box-shadow 240ms var(--rf-ease) !important;
}
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-amount-field input::-webkit-inner-spin-button, .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-amount-field input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-amount-field input::placeholder { color: var(--rf-faint) !important; opacity: 1; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-amount-field input:hover:not(:focus) { box-shadow: var(--rf-control-hover) !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-amount-field input:focus { box-shadow: var(--rf-ring) !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-transfer-button { min-width: 116px; }

/* Notices sit beside the control that raised them. */
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-notice { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin: 4px 0 0 !important; padding: 8px 12px !important; background: var(--rf-soft); color: var(--rf-ink-2) !important; font-size: 12px !important; line-height: 1.5 !important; animation: rf-pop-in 280ms var(--rf-ease) backwards; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-notice .rf-icon { width: 15px; height: 15px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-notice.is-success { background: var(--rf-teal-soft); color: var(--rf-teal) !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-notice.is-error { background: var(--rf-danger-soft); color: var(--rf-danger) !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page > .rf-notice { margin: 0 !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-login { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--rf-teal-soft); color: var(--rf-ink-2); font-size: 13px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-login .rf-icon { color: var(--rf-teal); }

/* ---------- Totals: one strip, hairline dividers ---------- */
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-stats { padding: 0 !important; overflow: hidden; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 0 !important; padding: 0 !important; background: var(--rf-line); }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-stat { display: grid; align-content: start; gap: 8px; min-width: 0; margin: 0; padding: 20px 24px 22px; background: var(--rf-panel); }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-stat dt { margin: 0 !important; color: var(--rf-muted) !important; font-size: 12px !important; font-weight: 500 !important; line-height: 1.4 !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-stat dd { margin: 0 !important; color: var(--rf-ink) !important; font-size: 24px !important; font-weight: 540 !important; letter-spacing: -.015em !important; line-height: 1.15 !important; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; animation: rf-value-in 460ms var(--rf-ease) backwards; animation-delay: calc(160ms + var(--rf-i, 0) * 40ms); }

/* ---------- Records: two tabs over one table ---------- */
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-records { padding: 22px var(--rf-pad) 12px !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-records-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-tabs { position: relative; isolation: isolate; display: inline-grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; height: 40px; background: var(--rf-track); box-shadow: var(--rf-well); }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-tabs-indicator { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: calc(100% / var(--rf-tab-count)); background: var(--rf-primary); box-shadow: var(--rf-indicator-shadow); transform: translateX(calc(var(--rf-tab-index) * 100%)); transition: transform 320ms var(--rf-ease); }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-tabs button {
  --hover-sweep-color: var(--rf-ink) !important; position: relative; z-index: 1; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 100% !important; min-height: 0 !important; margin: 0 !important; padding: 0 18px !important;
  border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--rf-muted) !important; font-size: 13px !important; font-weight: 450 !important; letter-spacing: 0 !important; white-space: nowrap; cursor: pointer; transition: color 240ms var(--rf-ease) !important;
}
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-tabs button:hover:not(.active) { color: var(--rf-ink) !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-tabs button.active { --hover-sweep-color: var(--rf-primary-fg) !important; color: var(--rf-primary-fg) !important; font-weight: 500 !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-tabs button:focus-visible { outline-offset: -2px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-tab-count { min-width: 22px; padding: 0 6px; background: var(--rf-soft-2); color: var(--rf-muted); font-size: 11px; font-weight: 500; line-height: 18px; font-variant-numeric: tabular-nums; text-align: center; transition: background-color 240ms var(--rf-ease), color 240ms var(--rf-ease); }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-tabs button:not(.active) .rf-tab-count { background: var(--rf-panel); }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-tabs button.active .rf-tab-count { background: var(--rf-count-on); color: inherit; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-tabpanel { min-width: 0; outline: none; animation: rf-swap 300ms var(--rf-ease) backwards; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-tabpanel:focus-visible { outline: 2px solid var(--rf-teal) !important; outline-offset: 4px; }

.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-table { width: 100%; margin: 0 !important; border: 0 !important; border-collapse: separate !important; border-spacing: 0 !important; background: transparent !important; box-shadow: none !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-table th { height: 40px; padding: 0 14px !important; border: 0 !important; background: var(--rf-soft) !important; box-shadow: none !important; color: var(--rf-muted) !important; font-size: 12px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-align: left; text-transform: none !important; white-space: nowrap; vertical-align: middle !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-table td { height: 58px; padding: 9px 14px !important; border: 0 !important; border-bottom: 1px solid var(--rf-line) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--rf-ink-2) !important; font-size: 13px !important; line-height: 1.45 !important; vertical-align: middle !important; transition: background-color 140ms ease; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-table tbody tr { border: 0 !important; background: transparent !important; animation: rf-row-in 380ms var(--rf-ease) backwards; animation-delay: calc(var(--rf-r, 0) * 22ms); }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-table tbody tr:hover td { background: var(--rf-hover) !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-table tbody tr:last-child td { border-bottom: 0 !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-table td strong { display: block; color: var(--rf-ink) !important; font-weight: 550 !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-table td small { display: block; margin-top: 2px; color: var(--rf-muted) !important; font-size: 12px !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-date { width: 128px; color: var(--rf-muted) !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-person { width: 46%; max-width: 0; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-subject { width: 32%; max-width: 0; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page :is(.rf-person strong, .rf-person small, .rf-subject span) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-subject span { display: block; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-event { white-space: nowrap; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-event > * { display: inline-flex !important; vertical-align: middle; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-event-icon { place-items: center; justify-content: center; align-items: center; width: 26px; height: 26px; margin-right: 10px; background: var(--rf-soft-2); color: var(--rf-muted); }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-event-icon.is-reward_grant { background: var(--rf-teal-soft); color: var(--rf-teal); }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-event-icon .rf-icon { width: 14px; height: 14px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-status { width: 128px; padding-left: 28px !important; white-space: nowrap; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; background: var(--rf-teal-soft); color: var(--rf-teal); font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-pill::before { content: ""; width: 5px; height: 5px; background: currentColor; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-pill.is-pending { background: var(--rf-soft-2); color: var(--rf-ink-2); }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-pill.is-danger { background: var(--rf-danger-soft); color: var(--rf-danger); }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-pill.is-muted { background: var(--rf-soft); color: var(--rf-muted); }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-dash { color: var(--rf-faint); }

.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 244px; padding: 28px 16px 40px; text-align: center; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-empty-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; background: var(--rf-soft); color: var(--rf-muted); }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-empty-icon .rf-icon { width: 20px; height: 20px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-empty-icon.is-error { background: var(--rf-danger-soft); color: var(--rf-danger); }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page :is(.rf-empty, .rf-state) strong { color: var(--rf-ink) !important; font-size: 14px !important; font-weight: 560 !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page :is(.rf-empty, .rf-state) > p { max-width: 380px; margin: 0 !important; color: var(--rf-muted) !important; font-size: 12px !important; line-height: 1.65 !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-empty-action { display: grid; justify-items: center; gap: 4px; margin-top: 10px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-empty-action .rf-button, .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-state .rf-button { height: 36px !important; padding: 0 14px !important; font-size: 12px !important; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-state { align-items: center; justify-content: center; gap: 8px; min-height: 280px; text-align: center; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-state .rf-button { margin-top: 8px !important; }

/* ---------- Loading ---------- */
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-skeleton { display: grid; gap: 16px; animation: none; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-skeleton .rf-panel { gap: 14px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-skeleton i { display: block; height: 10px; background: linear-gradient(100deg, var(--rf-soft-2) 30%, var(--rf-hover) 50%, var(--rf-soft-2) 70%); background-size: 240% 100%; animation: rf-shimmer 1.4s linear infinite; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-skeleton .is-title { width: 34%; height: 14px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-skeleton .is-line { width: 82%; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-skeleton .is-code { width: 42%; height: 28px; margin-top: 10px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-skeleton .is-money { width: 48%; height: 36px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-skeleton .is-field { height: var(--rf-h); margin-top: 18px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-skeleton .is-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-skeleton .is-stats span { display: grid; gap: 12px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-skeleton .is-stats i:first-child { width: 60%; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-skeleton .is-stats i:last-child { width: 44%; height: 22px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-skeleton .is-rows i { height: 40px; }
.app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-skeleton .is-rows i:first-child { width: 220px; }

/* ---------- Dark theme: the console-night layer recolours buttons, fields, cells and text by tag with
   !important, which unlayered rules can never outrank. These rules join that layer to keep the design. ---------- */
@layer console-night {
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-panel { border-color: transparent !important; background-color: var(--rf-panel) !important; box-shadow: var(--rf-shadow) !important; color: var(--rf-ink) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-stat { background-color: var(--rf-panel) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button-primary { background-color: var(--rf-primary) !important; color: var(--rf-primary-fg) !important; box-shadow: var(--rf-primary-shadow) !important; opacity: 1 !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button-primary:hover:not(:disabled) { background-color: var(--rf-primary-hover) !important; box-shadow: var(--rf-primary-shadow-hover) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button-primary[data-busy] { background-color: var(--rf-primary) !important; color: var(--rf-primary-fg) !important; opacity: .78 !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button-secondary { background-color: var(--rf-soft) !important; color: var(--rf-ink) !important; box-shadow: var(--rf-control) !important; opacity: 1 !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button-secondary:hover:not(:disabled) { box-shadow: var(--rf-control-hover) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button-primary:disabled:not([data-busy]) { background-color: var(--rf-soft-2) !important; color: var(--rf-faint) !important; box-shadow: none !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button-secondary:disabled { background-color: var(--rf-soft) !important; color: var(--rf-faint) !important; box-shadow: none !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button[data-copied] { background-color: var(--rf-teal) !important; color: #1a1a1a !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-button-secondary[data-copied] { background-color: var(--rf-teal-soft) !important; color: var(--rf-teal) !important; box-shadow: none !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-tabs button { background-color: transparent !important; color: var(--rf-muted) !important; box-shadow: none !important; opacity: 1 !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-tabs button:hover:not(.active) { color: var(--rf-ink) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-tabs button.active { color: var(--rf-primary-fg) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-link-value { border-color: transparent !important; background-color: var(--rf-soft) !important; box-shadow: var(--rf-well) !important; color: var(--rf-ink-2) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-link-value:focus { box-shadow: var(--rf-ring) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-amount-field input { border-color: transparent !important; background-color: var(--rf-soft-2) !important; box-shadow: var(--rf-control) !important; color: var(--rf-ink) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-amount-field input:focus { box-shadow: var(--rf-ring) !important; }
  /* The layer gives every cell the card surface and a drop shadow, which bands a table into columns. */
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-table th { background-color: var(--rf-soft) !important; box-shadow: none !important; color: var(--rf-muted) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-table td { border-bottom-color: var(--rf-line) !important; background-color: transparent !important; box-shadow: none !important; color: var(--rf-ink-2) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-code-value { background-color: transparent !important; box-shadow: none !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-table tbody tr:hover td { background-color: var(--rf-hover) !important; }
  /* Text colours: the layer recolours every div, span, p, dt, dd, code and td by tag. Ordered from plain classes
     to variants so each variant (one more class) wins over its base. */
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page :is(.rf-label, .rf-lead, .rf-currency, .rf-date, .rf-tab-count, .rf-empty-icon, .rf-event-icon, .rf-dash) { color: var(--rf-muted) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page :is(.rf-stat dt, .rf-table td small, .rf-empty > p, .rf-state > p) { color: var(--rf-muted) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page :is(.rf-code-value, .rf-balance-value, .rf-header h1, .rf-panel h2, .rf-retired code) { color: var(--rf-ink) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page :is(.rf-stat dd, .rf-table td strong, .rf-empty strong, .rf-state strong) { color: var(--rf-ink) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page :is(.rf-retired, .rf-notice, .rf-login) { color: var(--rf-ink-2) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-retired p { color: inherit !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page :is(.rf-eyebrow, .rf-pill, .rf-login .rf-icon, .rf-retired > .rf-icon) { color: var(--rf-teal) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page :is(.rf-notice.is-success, .rf-event-icon.is-reward_grant) { color: var(--rf-teal) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-pill.is-pending { color: var(--rf-ink-2) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-pill.is-muted { color: var(--rf-muted) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page :is(.rf-pill.is-danger, .rf-notice.is-error, .rf-empty-icon.is-error) { color: var(--rf-danger) !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-tabs button.active .rf-tab-count { color: inherit !important; }
  html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-retired code { background-color: var(--rf-panel) !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-top { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-stat { padding: 18px 18px 20px; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-stat dd { font-size: 22px !important; }
}
@media (max-width: 900px) {
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-top { grid-template-columns: minmax(0, 1fr); }
  /* Invitation results on one row, the reward flow on the next. */
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-stat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-stat { grid-column: span 2; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-stat:nth-child(-n+2) { grid-column: span 3; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-skeleton .is-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page { gap: 12px !important; --rf-pad: 20px; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page > .rf-header { align-items: flex-end !important; gap: 12px; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-refresh { width: 40px; padding: 0 !important; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-refresh-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-code-value { font-size: 24px !important; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-balance-value { font-size: 34px !important; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-action { padding-top: 20px; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-action-row { flex-wrap: wrap; gap: 8px; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-action-row > :is(.rf-link-value, .rf-amount-field) { flex: 1 1 100%; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-action-row > .rf-button { flex: 1 1 100%; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-stat, .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-stat:nth-child(-n+2) { grid-column: auto; padding: 16px 18px 18px; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-stat:last-child { grid-column: 1 / -1; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-stat dd { font-size: 20px !important; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-records { padding: 18px var(--rf-pad) 6px !important; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-tabs { display: grid; width: 100%; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-tabs button { padding: 0 10px !important; }
  /* Rows become two-line records; labels come from each cell's data-label. */
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-table, .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-table tbody { display: block; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-table tbody tr { display: grid; gap: 10px 12px; padding: 14px 0; border-bottom: 1px solid var(--rf-line) !important; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-table tbody tr:last-child { border-bottom: 0 !important; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-table td { display: block; width: auto !important; max-width: none; height: auto; padding: 0 !important; border: 0 !important; text-align: left; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-table tbody tr:hover td { background: transparent !important; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-invitee-table td:is(.rf-date, .rf-paid, .rf-reward-cell)::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--rf-faint); font-size: 11px; font-weight: 500; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-invitee-table tbody tr { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "person person person" "date paid reward"; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-invitee-table .is-num { text-align: left; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-invitee-table .rf-person { grid-area: person; } .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-invitee-table .rf-date { grid-area: date; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-invitee-table .rf-paid { grid-area: paid; } .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-invitee-table .rf-reward-cell { grid-area: reward; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-event-table tbody tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "event status" "subject subject" "date money"; gap: 6px 12px; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-event-table .rf-event { grid-area: event; } .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-event-table .rf-status { grid-area: status; justify-self: end; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-event-table .rf-subject { grid-area: subject; padding-left: 36px !important; color: var(--rf-muted) !important; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-event-table .rf-date { grid-area: date; align-self: center; padding-left: 36px !important; font-size: 12px !important; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-event-table .rf-money { grid-area: money; text-align: right; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-event-table .rf-money :is(strong, small) { display: inline; margin: 0 0 0 8px; }
  .app-shell.agy-console-shell.agy-board-shell .agy-board-main .invite-rewards-page.referral-page .rf-skeleton .is-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Motion ---------- */
/* Keep loading and ready cards on the shell's signed horizontal route travel. */
@keyframes rf-section-in {
  from { opacity: 0; filter: blur(4px); transform: translate3d(var(--agy-route-travel, 0px), 0, 0); }
  60% { opacity: 1; filter: blur(0); }
  to { opacity: 1; filter: none; transform: none; }
}
@keyframes rf-value-in { from { opacity: 0; filter: blur(4px); } }
@keyframes rf-row-in { from { opacity: 0; } }
@keyframes rf-swap {
  from { opacity: 0; filter: blur(3px); transform: translate3d(var(--rf-tab-travel, var(--agy-route-travel, 0px)), 0, 0); }
  60% { opacity: 1; filter: blur(0); }
  to { opacity: 1; filter: none; transform: none; }
}
@keyframes rf-pop-in { from { opacity: 0; filter: blur(6px); transform: translateY(-4px) scale(.98); } }
@keyframes rf-pop { from { opacity: 0; transform: scale(.6) rotate(-12deg); } }
@keyframes rf-spin { to { transform: rotate(360deg); } }
@keyframes rf-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) {
  .referral-page, .referral-page *, .referral-page *::before, .referral-page *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}
