
    .rw-title {
      margin: 4px 0 8px;
      font-family: var(--font-display);
      font-size: 28px;
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.1;
      color: var(--ink);
    }
    .rw-lede {
      margin: 0 0 22px;
      font-size: 15px;
      line-height: 1.5;
      color: var(--palette-body);
    }
    .rw-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    .rw-grid > .reward {
      width: 100%;
      max-width: none;
      min-width: 0;
      height: 100%;
      gap: 16px;
      padding: 22px 24px 24px;
      border: 1px solid var(--palette-kelly);
      border-radius: var(--radius-surface, 14px);
      background: var(--tone-kelly);
      box-shadow: 0 14px 44px color-mix(in srgb, var(--palette-shadow) 8%, transparent);
      box-sizing: border-box;
      position: relative;
    }
    .rw-grid > .reward.locked {
      border: 1px solid color-mix(in srgb, var(--palette-ink) 8%, transparent);
      background: var(--palette-sand);
    }
    .rw-grid .reward .title {
      margin: 0 0 6px;
      font-size: 20px;
      font-weight: 700;
      line-height: 1.2;
      letter-spacing: -0.02em;
      color: var(--palette-body);
    }
    .rw-grid .reward .sub:not(.bc-sub) {
      font-size: 14px;
      line-height: 1.4;
      color: var(--palette-body);
    }
    .rw-grid .reward.locked .title { color: var(--ink); }
    .rw-grid .reward.locked .sub:not(.bc-sub) { color: var(--palette-body); }
    .rw-grid .btn-redeem {
      width: auto;
      height: 36px;
      margin-top: auto;
      padding: 0 16px;
      border-radius: var(--radius-surface, 14px);
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0;
      text-transform: none;
    }
    .rw-grid .btn-redeem:not(:disabled):hover { background: var(--palette-kelly); }
    .rw-grid .reward-progress {
      width: 100%;
      margin-top: auto;
      gap: 10px;
    }
    .rw-grid .reward-progress-well {
      border-radius: var(--radius-surface, 14px);
      padding: 8px;
    }
    .rw-grid .reward-progress-track { height: 8px; }
    .rw-grid .reward-progress-fill {
      width: var(--fill, 0%);
    }
    .rw-grid .progress-ratio,
    .rw-grid .more-pts {
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 600;
      line-height: 1.3;
      color: var(--palette-body);
    }
    .rw-offer {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
      width: 100%;
      flex: 1 1 auto;
    }
    .rw-offer[hidden],
    .code-card[hidden],
    .rw-code-side[hidden] { display: none; }
    .rw-grid.is-redeemed { grid-template-columns: 1fr 1fr 1fr; }
    .rw-grid > .reward.is-code {
      grid-column: 1 / -1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 18px;
      width: 100%;
      max-width: none;
      height: auto;
      padding: 28px 32px 32px;
      border: 1px solid color-mix(in srgb, var(--palette-ink) 8%, transparent);
      border-radius: var(--radius-surface, 14px);
      background: var(--palette-sand);
      box-shadow: 0 14px 44px color-mix(in srgb, var(--palette-shadow) 8%, transparent);
    }
    .rw-grid > .reward.is-code .code-card,
    .rw-grid > .reward.is-code .rw-code-side {
      width: 100%;
      max-width: 560px;
    }
    .rw-grid > .reward.is-code .code-card {
      border-radius: var(--radius-surface, 14px);
      padding: 22px 24px;
    }
    .rw-grid > .reward.is-code .code-reveal .kicker { font-size: 14px; line-height: 1.4; }
    .rw-grid > .reward.is-code .code-reveal .value { font-size: 28px; line-height: 1.15; }
    .rw-code-side { min-width: 0; }
    .rw-copy-row {
      display: flex;
      align-items: center;
      gap: 8px;
      height: 44px;
      margin-bottom: 14px;
      padding: 0 8px 0 14px;
      border: 1px solid color-mix(in srgb, var(--palette-ink) 16%, transparent);
      border-radius: var(--radius-surface, 14px);
      background: var(--palette-white);
      box-sizing: border-box;
    }
    .rw-copy-row input {
      flex: 1 1 auto;
      min-width: 0;
      border: 0;
      padding: 0;
      background: transparent;
      font-family: "DM Sans", sans-serif;
      font-size: 16px;
      font-weight: 700;
      color: var(--palette-ink);
      outline: none;
    }
    .rw-copy {
      appearance: none;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      height: 28px;
      padding: 0 8px;
      border: 0;
      border-radius: var(--radius-surface, 14px);
      background: transparent;
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 700;
      color: var(--palette-body);
      cursor: pointer;
    }
    .rw-copy svg {
      width: 16px;
      height: 16px;
      display: block;
    }
    .rw-code-side .body-copy {
      width: auto;
      max-width: 420px;
      margin: 0 auto;
      text-align: center;
    }
    @media (max-width: 800px) {
      .rw-grid,
      .rw-grid.is-redeemed,
      .reward.is-code { grid-template-columns: 1fr; }
    }
    .ref-title {
      margin: 4px 0 28px;
      font-family: var(--font-display);
      font-size: 28px;
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.1;
      color: var(--ink);
    }
    .ref-intro {
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      gap: 28px;
      margin: 0 0 22px;
      padding: 16px 28px 12px 16px;
      border-radius: var(--radius-surface, 14px);
      background: var(--palette-sand);
      box-sizing: border-box;
    }
    .ref-art {
      display: block;
      width: 100%;
      height: auto;
      margin: 0;
    }
    .ref-card h2.ref-lede-title {
      margin: 0 0 8px;
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.2;
      color: var(--ink);
    }
    .ref-lede {
      margin: 0;
      font-size: 15px;
      line-height: 1.5;
      color: var(--palette-body);
    }
    .ref-stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 16px;
    }
    .ref-points,
    .ref-clicks {
      border-radius: var(--radius-surface, 14px);
      padding: 22px 24px;
      box-sizing: border-box;
    }
    .ref-points {
      background: var(--yellow);
      color:var(--palette-on-yellow);
    }
    .ref-clicks {
      background: var(--palette-white);
      border: 1px solid color-mix(in srgb, var(--palette-ink) 8%, transparent);
    }
    .ref-stat-label {
      margin: 0 0 8px;
      font-size: 14px;
      font-weight: 700;
    }
    .ref-stat-num {
      margin: 0;
      font-family: var(--font-display);
      font-size: 40px;
      font-weight: 500;
      line-height: 1;
      letter-spacing: -0.03em;
    }
    .ref-stat-unit {
      display: block;
      margin-top: 8px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.04em;
    }
    .ref-share {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 16px;
    }
    .ref-link {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 1 1 auto;
      min-width: 0;
      height: 48px;
      padding: 0 8px 0 16px;
      border: 1px solid color-mix(in srgb, var(--palette-ink) 16%, transparent);
      border-radius: var(--radius-surface, 14px);
      background: var(--palette-white);
      box-sizing: border-box;
    }
    .ref-link input {
      flex: 1 1 auto;
      min-width: 0;
      border: 0;
      padding: 0;
      background: transparent;
      font-family: var(--font-body);
      font-size: 15px;
      font-weight: 600;
      color: var(--ink);
      outline: none;
    }
    .ref-link input:focus { outline: none; }
    .ref-copy {
      appearance: none;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      height: 34px;
      padding: 0 10px;
      border: 0;
      border-radius: var(--radius-surface, 14px);
      background: transparent;
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 700;
      color: var(--kelly-2);
      cursor: pointer;
    }
    .ref-copy-ico {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      display: block;
      color: var(--kelly-2);
    }
    .ref-share .btn { width: auto; flex-shrink: 0; }
    .ref-note,
    .ref-alt {
      margin: 0 0 12px;
      font-size: 14px;
      line-height: 1.5;
      color: var(--palette-body);
    }
    .ref-alt { margin-bottom: 16px; }
    .ref-rewards {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      margin: 0;
      padding: 18px 20px;
      border-radius: var(--radius-surface, 14px);
      background: var(--tone-kelly);
      color: var(--kelly-2);
    }
    .ref-rewards strong {
      display: block;
      margin-bottom: 6px;
      font-size: 15px;
    }
    .ref-rewards span {
      display: block;
      font-size: 14px;
      line-height: 1.45;
    }
    .ref-rewards-cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      flex-shrink: 0;
      height: 40px;
      padding: 0 16px;
      border-radius: var(--radius-surface, 14px);
      background: var(--kelly-2);
      color: var(--palette-white);
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 700;
      line-height: 1;
      text-decoration: none;
      white-space: nowrap;
      transition: background-color 0.15s ease, box-shadow 0.15s ease;
    }
    .ref-rewards-cta svg {
      width: 16px;
      height: 16px;
      display: block;
    }
    .ref-rewards-cta:hover {
      background: var(--palette-kelly);
      box-shadow: 0 8px 20px color-mix(in srgb, var(--palette-kelly) 28%, transparent);
    }
    .ref-card {
      margin: 0 0 16px;
      padding: 22px 24px 28px;
      border: 1px solid color-mix(in srgb, var(--palette-ink) 8%, transparent);
      border-radius: var(--radius-surface, 14px);
      background: var(--palette-sand);
      box-shadow: 0 14px 44px color-mix(in srgb, var(--palette-shadow) 8%, transparent);
    }
    .ref-card-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 18px;
    }
    .ref-card h2 {
      margin: 0;
      font-family: var(--font-display);
      font-size: 20px;
      font-weight: 700;
      letter-spacing: -0.02em;
    }
    .ref-card-head span {
      font-size: 14px;
      font-weight: 600;
      color: var(--kelly-2);
    }
    .ref-empty {
      margin: 8px 0 4px;
      text-align: center;
      font-size: 15px;
      line-height: 1.45;
      color: var(--palette-body);
    }
    .ref-history p {
      margin: 0 0 16px;
      font-size: 14px;
      line-height: 1.5;
      color: var(--palette-body);
    }
    .ref-rows {
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .ref-rows li {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 16px;
      margin: 0 -10px;
      padding: 14px 10px;
      border-top: 1px solid color-mix(in srgb, var(--palette-ink) 8%, transparent);
    }
    .ref-rows li:first-child {
      border-top: 0;
      padding-top: 4px;
    }
    .ref-who {
      min-width: 0;
      font-size: 15px;
      font-weight: 600;
      color: var(--ink);
    }
    .ref-when {
      display: block;
      margin-top: 4px;
      font-size: 13px;
      font-weight: 400;
      color: var(--palette-body);
    }
    .ref-earn,
    .ref-pts {
      flex-shrink: 0;
      font-size: 14px;
      color: var(--palette-body);
      white-space: nowrap;
    }
    .ref-pts {
      font-weight: 600;
      color: var(--ink);
    }
    @media (max-width: 800px) {
      .ref-stats,
      .ref-share { grid-template-columns: 1fr; display: grid; }
      .ref-share { display: flex; flex-direction: column; align-items: stretch; }
      .ref-share .btn { width: 100%; }
      .ref-link input { font-size: 13px; }
      .ref-intro {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 8px 12px 16px;
      }
      .ref-art { width: 78%; margin: 0 auto; }
      .ref-card h2.ref-lede-title { font-size: 20px; }
      .ref-rewards { flex-direction: column; align-items: stretch; }
      .ref-rewards-cta { width: 100%; }
    }

.dashboard-rewards,.dashboard-referrals{margin:32px 0;min-width:0}.dashboard-referrals .ref-link{min-width:0}.dashboard-referrals .ref-link input{min-width:0}.dashboard-referrals .ref-share{min-width:0}.dashboard-referrals .ref-card{min-width:0}.dashboard-rewards .rw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:800px){.dashboard-rewards .rw-grid,.dashboard-rewards .rw-grid.is-redeemed{grid-template-columns:minmax(0,1fr)}}
