/* Rewards membership space. Scoped to the existing account, using approved tokens. */
.rw { color:var(--cocoa); font:400 16px/1.65 var(--body); min-width:0; }
/* Rewards supplies its own visible, more relevant demo notice. Other views retain theirs. */
.account-main:has(#rw-account) > .account-demo-notice { display:none; }
.rw *, .rw *::before, .rw *::after { box-sizing:border-box; }
.rw h2,.rw h3,.rw h4,.rw p { margin:0; }
.rw h2,.rw h3 { font-family:var(--display); font-weight:500; color:var(--berry); line-height:1.2; }
.rw h2 { font-size:clamp(29px,3vw,38px); }
.rw h3 { font-size:25px; }
.rw h4 { font:800 17px/1.45 var(--body); }
.rw p + p { margin-top:10px; }
.rw a,.rw button,.rw summary,.rw select,.rw input { touch-action:manipulation; }
.rw a:focus-visible,.rw button:focus-visible,.rw summary:focus-visible,.rw select:focus-visible,.rw input:focus-visible { outline:3px solid var(--berry); outline-offset:4px; }
.rw .button { font-size:16px; min-height:48px; white-space:normal; text-align:center; }
.rw .text-link,.rw-text { font:800 16px/1.45 var(--body); color:var(--berry); min-height:44px; display:inline-flex; align-items:center; text-decoration:underline; text-underline-offset:4px; }
.rw-text { border:0; background:transparent; padding:8px 0; text-align:left; cursor:pointer; }
.rw .eyebrow { font-size:14px; margin-bottom:9px; }
.rw small,.rw-small { font-size:14px; line-height:1.6; color:var(--muted); }
.rw-notice { display:flex; gap:10px; background:var(--white); border:1px dashed var(--line); border-radius:14px; padding:12px 16px; font-size:14px; }
.rw-notice > span { color:var(--berry); font-size:22px; }
.rw-warning { padding:16px; background:var(--butter); margin-top:12px !important; }
.rw-nav { display:flex; gap:4px; border-bottom:1px solid var(--line); margin:20px 0 26px; }
.rw-nav a { flex:1; padding:13px 9px; min-height:50px; font-size:16px; font-weight:800; text-align:center; border-radius:12px 12px 0 0; color:var(--muted); }
.rw-nav [aria-current] { color:var(--berry); background:var(--soft-pink); box-shadow:inset 0 -3px var(--berry); }
.rw-mobile-nav { display:none; }
.rw-welcome { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px; }
.rw-welcome p:last-child { margin-top:10px; }
.rw-welcome > img { flex-shrink:0; width:105px; height:105px; transform:rotate(5deg); }
.rw-credit { padding:25px 28px 20px; background:var(--soft-pink); border:1px solid var(--line); border-radius:24px; position:relative; }
.rw-credit-top { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.rw-credit-top h3 { font-size:27px; }
.rw-stamp { border:1px solid var(--berry); outline:1px dashed var(--berry); outline-offset:4px; border-radius:50%; width:68px; height:68px; flex-shrink:0; display:flex; flex-direction:column; justify-content:center; align-items:center; font:400 31px/1 var(--display); color:var(--berry); transform:rotate(10deg); }
.rw-stamp small { display:none; }
.rw-credit-values { display:grid; grid-template-columns:1.15fr 1fr; gap:26px; margin:24px 0; }
.rw-metric { display:flex; flex-direction:column; gap:3px; min-width:0; }
.rw-metric > span { font-size:16px; font-weight:700; }
.rw-metric > strong { font:800 32px/1.25 var(--body); font-variant-numeric:tabular-nums; letter-spacing:-1px; color:var(--berry); }
.rw-main-amount > strong { font-size:52px; }
.rw-credit-values > :last-child { border-left:1px solid #7C294D33; padding-left:26px; align-self:center; }
.rw-credit-bottom { display:flex; justify-content:space-between; align-items:center; gap:20px; padding-top:18px; border-top:1px dashed #7C294D55; margin-bottom:10px; }
.rw-credit-bottom p { max-width:32ch; }
.rw-credit-bottom .button { flex-shrink:0; }
.rw-mini-metrics { display:grid; grid-template-columns:1fr 1fr; padding:24px 6px; gap:30px; }
.rw-mini-metrics .rw-metric { display:grid; grid-template-columns:auto 1fr; column-gap:16px; }
.rw-mini-metrics .rw-metric strong { grid-row:1/3; grid-column:1; align-self:center; font-size:35px; }
.rw-mini-metrics .rw-metric span,.rw-mini-metrics .rw-metric small { grid-column:2; }
.rw-cash { background:var(--lavender); padding:24px; border:1px solid var(--line); border-radius:22px; margin:10px 0 22px; }
.rw-cash-values { display:grid; grid-template-columns:1fr 1fr; gap:24px 30px; margin:24px 0; }
.rw-cash .rw-small { margin-top:12px; }
.rw-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:15px; }
.rw-heading .text-link { flex-shrink:0; }
.rw-badge { display:inline-block; border:1px solid var(--line); padding:4px 11px; font:800 14px/1.5 var(--body); border-radius:30px; color:var(--berry); background:var(--cream); }
.rw-pending,.rw-requested,.rw-review { background:var(--butter); }
.rw-available,.rw-adjusted,.rw-processing { background:var(--lavender); }
.rw-canceled,.rw-rejected { background:var(--soft-pink); }
.rw-creator-invite { display:flex; gap:16px; padding:20px 0; align-items:center; border-block:1px solid var(--line); }
.rw-creator-invite img { flex-shrink:0; }
.rw-creator-invite h3 { font-size:23px; margin-bottom:7px; }
.rw-creator-invite .text-link { flex-shrink:0; max-width:175px; }
.rw-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:22px 0; }
.rw-referral { margin-top:32px; }
.rw-referral .sf-tools { background:var(--white); border:1px solid var(--line); border-radius:22px; padding:26px; }
.rw-section { border-top:1px solid var(--line); padding-top:30px; margin-top:32px; }
.rw-first { border:0; margin:0; padding:0; }
.rw-section > p { margin-bottom:18px; }
.rw-activity,.rw-payout-list { list-style:none; margin:0; padding:0; }
.rw-activity li { display:flex; gap:16px; padding:21px 0; border-bottom:1px solid var(--line); align-items:flex-start; }
.rw-activity-symbol { width:38px; height:38px; display:grid; place-items:center; background:var(--butter); border-radius:50%; font-size:24px; color:var(--berry); flex-shrink:0; }
.rw-activity-info { flex:1; min-width:0; }
.rw-activity-info p { font-size:14px; color:var(--muted); overflow-wrap:anywhere; }
.rw-activity-amount { text-align:right; display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.rw-activity-amount strong { font-size:22px; font-weight:800; font-variant-numeric:tabular-nums; white-space:nowrap; }
.rw-activity-amount > span:not(.rw-badge) { font-size:14px; }
.rw-row-note summary { min-height:44px; display:list-item; cursor:pointer; color:var(--berry); font-size:14px; padding:10px 0; }
.rw-row-note p { max-width:56ch; }
.rw-definitions,.rw-demo-controls { border:1px dashed var(--line); border-radius:16px; padding:0 20px; margin-top:28px; }
.rw-definitions summary,.rw-demo-controls > summary { min-height:52px; padding:14px 0; cursor:pointer; font-size:16px; font-weight:800; }
.rw-definitions p,.rw-demo-controls p { margin:10px 0 16px; }
.rw-definitions dl > div { display:flex; justify-content:space-between; gap:15px; }
.rw-demo-controls { background:var(--white); }
.rw-demo-controls .rw-select { margin:16px 0; }
.rw-demo-controls .rw-text { margin:6px 0; }
.rw-demo-release { display:flex; flex-wrap:wrap; gap:12px; }
.rw-performance { border-bottom:1px solid var(--line); padding:0 0 12px; margin-top:8px; }
.rw-performance > summary { display:flex; align-items:center; gap:14px; min-height:70px; padding:12px 0; cursor:pointer; font-weight:800; }
.rw-performance > summary::after { content:'+'; font-size:25px; color:var(--berry); margin-left:auto; }
.rw-performance[open] > summary::after { content:'−'; }
.rw-performance > summary img { object-fit:cover; border-radius:9px; }
.rw-performance summary small { display:block; font-weight:400; }
.rw-performance > summary > span { min-width:0; }
.rw-performance:first-of-type > summary > span { font-weight:400; font-size:14px; }
.rw-performance-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; background:var(--white); padding:18px; border-radius:14px; margin:15px 0; }
.rw-performance-grid dt { font-size:14px; color:var(--muted); }
.rw-performance-grid dd { margin:0; font-size:21px; font-weight:800; font-variant-numeric:tabular-nums; }
.rw-post-performance { padding:0 12px; border-left:3px solid var(--lavender); margin:14px 0; }
.rw-post-performance summary { min-height:48px; cursor:pointer; padding:10px 0; overflow-wrap:anywhere; }
.rw-filters { display:flex; flex-wrap:wrap; align-items:end; gap:14px; margin:24px 0 14px; padding:18px; border:1px solid var(--line); border-radius:16px; background:var(--white); }
.rw-filters label { flex:1 1 150px; }
.rw label { font-size:16px; font-weight:700; }
.rw input:not([type=checkbox]),.rw select { display:block; width:100%; min-width:0; min-height:48px; border:1px solid var(--line); border-radius:10px; background:var(--white); color:var(--cocoa); font:400 16px/1.4 var(--body); padding:10px 12px; margin-top:6px; }
.rw-select { display:block; max-width:450px; margin:22px 0; }
.rw-referral-row { padding:24px 0; display:grid; grid-template-columns:1fr 1.1fr auto; gap:14px 24px; border-bottom:1px solid var(--line); }
.rw-referral-row time,.rw-payout-list time { font-size:14px; color:var(--muted); }
.rw-referral-row p { font-size:14px; }
.rw-referral-row dl { margin:0; display:flex; flex-direction:column; gap:9px; }
.rw-referral-row dt { font-size:14px; color:var(--muted); }
.rw-referral-row dd { margin:0; font-weight:800; font-size:19px; }
.rw-referral-row > div:last-of-type { display:flex; flex-direction:column; align-items:flex-start; }
.rw-referral-row .rw-release { grid-column:1/-1; background:var(--white); border-left:3px solid var(--lavender); padding:10px 14px; font-size:16px; }
.rw-empty { text-align:center; padding:35px 20px; }
.rw-empty img { margin:0 auto 16px; }
.rw-empty p { max-width:48ch; margin:12px auto 18px; }
.rw-dialog { padding:22px 28px 28px; }
.rw-dialog h3 { margin:24px 0 10px; }
.rw-dialog .rw-badge { margin-bottom:10px; }
.rw-calculation { background:var(--cream); padding:16px; border-radius:14px; }
.rw-calculation > div { display:flex; justify-content:space-between; gap:20px; padding:5px 0; }
.rw-calculation dd { margin:0; font-weight:800; white-space:nowrap; }
.rw-calculation > div:last-child { border-top:1px dashed var(--line); padding-top:12px; margin-top:5px; }
.rw-check { display:flex; gap:12px; margin:22px 0; align-items:flex-start; }
.rw-check input { flex-shrink:0; margin-top:4px; width:22px; height:22px; accent-color:var(--berry); }
#rw-payout-error { color:var(--berry); font-weight:800; }
.rw-payout-action { display:flex; align-items:center; gap:22px; margin:24px 0; }
.rw-payout-action h3 { margin-bottom:9px; }
.rw-payout-action .button { flex-shrink:0; }
.rw-payout-action [disabled] { opacity:.65; cursor:not-allowed; }
.rw-payout-list li { display:grid; grid-template-columns:1fr auto; gap:16px; border-bottom:1px solid var(--line); padding:22px 0; }
.rw-payout-list h4 { overflow-wrap:anywhere; }
.rw-payout-list li > div:nth-child(2) { display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.rw-payout-list strong { font-size:25px; font-variant-numeric:tabular-nums; }
.rw-payout-controls,.rw-payout-list li > p { grid-column:1/-1; }
.rw-payout-controls summary { cursor:pointer; min-height:48px; padding:10px 0; }
@media (max-width:1199px) and (min-width:900px) {
  .rw-nav { flex-wrap:wrap; }
  .rw-nav a { flex:1 1 30%; }
  .rw-credit-bottom,.rw-creator-invite { flex-wrap:wrap; }
  .rw-main-amount > strong { font-size:44px; }
  .rw-payout-action { flex-wrap:wrap; }
}
@media (max-width:699px) {
  .rw-nav { display:none; }
  .rw-mobile-nav { display:block; font-size:14px !important; margin:20px 0 24px; }
  .rw-mobile-nav select { font-weight:800; background:var(--soft-pink); }
  .rw-welcome > img { width:65px; height:65px; align-self:flex-start; }
  .rw-welcome h2 { font-size:29px; }
  .rw-welcome p:last-child { font-size:16px; }
  .rw-credit { padding:21px 20px 18px; }
  .rw-stamp { width:52px; height:52px; font-size:23px; }
  .rw-stamp small { font-size:8px; }
  .rw-credit-top h3 { font-size:24px; }
  .rw-credit-top .eyebrow { max-width:18ch; }
  .rw-credit-values { gap:14px; grid-template-columns:1fr; margin:20px 0; }
  .rw-credit-values > :last-child { border:0; border-top:1px dashed #7C294D44; padding:14px 0 0; }
  .rw-main-amount > strong { font-size:48px; }
  .rw-credit-bottom { flex-direction:column; align-items:stretch; gap:15px; }
  .rw-mini-metrics { gap:18px; padding:22px 0; }
  .rw-mini-metrics .rw-metric { display:flex; gap:5px; }
  .rw-mini-metrics .rw-metric strong { order:-1; font-size:30px; }
  .rw-mini-metrics .rw-metric > span { font-size:16px; }
  .rw-creator-invite { flex-wrap:wrap; }
  .rw-creator-invite > div { flex:1; min-width:210px; }
  .rw-creator-invite .text-link { max-width:none; }
  .rw-actions .button { flex:1 1 100%; }
  .rw-referral .sf-tools { padding:20px; }
  .rw-cash { padding:20px; }
  .rw-cash .rw-heading { flex-direction:column; align-items:flex-start; }
  .rw-cash-values { gap:22px 16px; }
  .rw-cash .rw-metric > strong { font-size:28px; }
  .rw-heading { flex-wrap:wrap; gap:8px; }
  .rw-activity li { gap:10px; flex-wrap:wrap; }
  .rw-activity-symbol { width:30px; height:30px; font-size:20px; }
  .rw-activity-info { flex-basis:calc(100% - 40px); }
  .rw-activity-amount { flex-direction:row; align-items:center; flex-wrap:wrap; gap:8px; text-align:left; margin-left:40px; }
  .rw-performance-grid { grid-template-columns:1fr 1fr; padding:15px; }
  .rw-performance:first-of-type > summary { flex-wrap:wrap; }
  .rw-performance:first-of-type > summary > span { order:3; flex-basis:100%; }
  .rw-filters { padding:16px; gap:14px; }
  .rw-filters label { flex-basis:100%; min-width:0; }
  .rw-filters input[type=date] { width:100%; }
  .rw-referral-row { grid-template-columns:1fr auto; gap:16px 12px; }
  .rw-referral-row dl { grid-row:2; grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; }
  .rw-referral-row > div:last-of-type { grid-row:1; grid-column:2; }
  .rw-payout-action { flex-direction:column; align-items:stretch; }
  .rw-dialog { padding:20px; }
  .rw-calculation { padding:13px; }
  .rw-calculation dt { min-width:0; }
}
@media (prefers-reduced-motion:reduce) { .rw * { scroll-behavior:auto; transition:none; animation:none; } }
