/* Reward-area refinement. Structure and visibility remain owned by the source styles. */

/* Shared reward canvas and navigation. */
.device :is(.tasks-preview, .new-user-preview, .monthly-preview, .buddy-preview, .wheel-preview) {
  background: var(--ui-bg);
  color: var(--ui-ink);
}

.device :is(.tasks-preview, .new-user-preview, .monthly-preview, .buddy-preview, .wheel-preview) :is(button, input) {
  color: inherit;
  font-family: inherit;
}

.device :is(.tasks-topbar, .new-user-topbar, .monthly-topbar, .buddy-topbar, .wheel-topbar) {
  height: 60px;
  gap: 10px;
}

.device :is(.tasks-topbar, .new-user-topbar, .monthly-topbar, .buddy-topbar, .wheel-topbar) > div {
  gap: 2px;
}

.device :is(.tasks-topbar, .new-user-topbar, .monthly-topbar, .buddy-topbar, .wheel-topbar) strong {
  color: var(--ui-ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.device :is(.tasks-topbar, .new-user-topbar, .monthly-topbar, .buddy-topbar, .wheel-topbar) span {
  color: var(--ui-muted);
  font-size: 12px;
}

.device :is(.tasks-rules-open, .new-user-rules-open, .monthly-rules-open, .buddy-rules-open, .wheel-rules-open) {
  min-width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ui-accent);
  box-shadow: none;
}

.device :is(.tasks-back, .new-user-back, .monthly-back, .buddy-back, .wheel-back) {
  min-width: 46px;
  width: auto;
  height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ui-accent);
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}

.device :is(.tasks-rules-open, .new-user-rules-open, .monthly-rules-open, .buddy-rules-open, .wheel-rules-open) {
  padding: 0 12px;
  font-size: 13px;
  font-weight: 650;
}

.device :is(.tasks-scroll, .new-user-scroll, .monthly-scroll, .buddy-scroll, .wheel-scroll) {
  padding-top: 4px;
}

.device :is(.tasks-eyebrow, .new-user-panel-heading span, .trade-bonus-intro > span,
  .monthly-eyebrow, .monthly-section-head span, .buddy-eyebrow, .buddy-section-head span,
  .buddy-records > div:first-child span, .wheel-intro > span, .wheel-section-heading > span,
  .tasks-progress-label, .tasks-section-heading span, .tasks-dialog-eyebrow) {
  color: var(--ui-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

/* One quiet card language across reward summaries and grouped rows. */
.device :is(.tasks-balance, .tasks-item, .tasks-week, .tasks-calendar-days, .tasks-coupon,
  .new-user-coupon, .trade-bonus-intro, .trade-bonus-tier, .new-user-demo,
  .monthly-leader-list, .monthly-self, .buddy-code-card, .buddy-qr-open,
  .buddy-stats > div, .buddy-steps, .buddy-records, .wheel-test-balance,
  .wheel-rule, .wheel-test-controls) {
  border: 1px solid var(--ui-line);
  background: var(--ui-surface);
  color: var(--ui-ink);
  box-shadow: var(--ui-shadow);
}

.device :is(.tasks-item, .tasks-coupon, .new-user-coupon, .trade-bonus-tier,
  .monthly-leader-list, .monthly-self, .buddy-code-card, .buddy-qr-open,
  .buddy-stats > div, .buddy-steps, .buddy-records, .wheel-test-balance,
  .wheel-rule, .wheel-test-controls) {
  border-radius: 16px;
}

.device :is(.tasks-item-copy strong, .tasks-calendar-head strong, .new-user-panel-heading h2,
  .trade-bonus-intro h2, .trade-bonus-list-heading strong, .trade-bonus-threshold b,
  .monthly-person strong, .monthly-self-detail b, .buddy-code-card strong, .buddy-qr-copy strong,
  .buddy-step strong, .buddy-empty strong, .wheel-rule strong, .wheel-test-controls strong) {
  color: var(--ui-ink);
}

.device :is(.tasks-item-copy small, .tasks-progress-caption, .tasks-shop-intro, .tasks-shop-note,
  .new-user-panel-subline, .new-user-coupon-main small, .new-user-disclaimer,
  .trade-bonus-intro p, .trade-bonus-list-heading span, .trade-bonus-threshold small,
  .monthly-person small, .monthly-self-detail span, .monthly-privacy,
  .buddy-code-card small, .buddy-qr-copy small, .buddy-stats span, .buddy-step p,
  .buddy-empty p, .buddy-preview-note, .wheel-intro p, .wheel-rule p,
  .wheel-qualification, .wheel-test-controls p, .wheel-action p) {
  color: var(--ui-muted);
}

/* Tasks and compact two-column coupon shop. */
.device .tasks-balance {
  min-height: 72px;
  padding: 12px;
  border-radius: 18px;
}

.device .tasks-balance-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: var(--ui-gold-soft);
  color: var(--ui-gold);
}

.device .tasks-balance small { color: var(--ui-muted); font-size: 11px; }
.device .tasks-balance strong { color: var(--ui-ink); font-size: 24px; }
.device .tasks-balance strong span { color: var(--ui-muted); font-size: 12px; }

.device .tasks-balance-shop {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-fill);
  color: var(--ui-accent);
  font-size: 12px;
}

.device .tasks-tabs,
.device .new-user-tabbar {
  border: 0;
  border-radius: 14px;
  background: var(--ui-fill);
  box-shadow: none;
}

.device .tasks-tabs { margin-top: 16px; }
.device .tasks-tab,
.device .new-user-tab-button { min-height: 44px; color: var(--ui-muted); font-size: 13px; }
.device .tasks-tab.active,
.device .new-user-tab-button.active {
  background: var(--ui-surface-raised);
  color: var(--ui-accent);
  box-shadow: var(--ui-shadow);
}

.device .tasks-progress { padding: 16px 2px 12px; }
.device .tasks-progress-count { color: var(--ui-ink); font-size: 13px; }
.device .tasks-progress-track { background: var(--ui-fill); }
.device .tasks-progress-track span { background: var(--ui-primary); }

.device .tasks-list { gap: 8px; }
.device .tasks-item { min-height: 78px; padding: 11px 12px; box-shadow: none; }
.device .tasks-item + .tasks-item { border-top: 1px solid var(--ui-line); }
.device .tasks-item-symbol {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--ui-fill) !important;
  color: var(--ui-accent) !important;
}
.device .tasks-item-copy strong { font-size: 14px; }
.device .tasks-item-copy small { margin-top: 4px; font-size: 12px; }
.device .tasks-item-action {
  min-width: 58px;
  min-height: 36px;
  border-radius: 10px;
  background: var(--ui-fill);
  color: var(--ui-accent);
  font-size: 11px;
}
.device .tasks-item-action.collect { background: var(--ui-primary); color: var(--ui-on-primary); }
.device .tasks-item.is-collected { background: var(--ui-fill); border-color: var(--ui-line); }

.device .tasks-preview.is-shop .tasks-balance { min-height: 60px; }
.device .tasks-preview.is-shop .tasks-section-heading { margin-top: 6px; }
.device .tasks-preview.is-shop .tasks-section-heading h3 { color: var(--ui-ink); font-size: 18px; }
.device .tasks-preview.is-shop .tasks-coupon-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.device .tasks-preview.is-shop .tasks-coupon { padding: 6px; border-radius: 15px; box-shadow: none; }
.device .tasks-preview.is-shop .tasks-coupon-face,
.device .tasks-preview.is-shop .tasks-coupon-locked .tasks-coupon-face {
  min-height: 74px;
  border-radius: 11px;
  background: var(--ui-gold-soft);
}
.device .tasks-preview.is-shop .tasks-coupon-face small { color: var(--ui-muted); font-size: 11px; }
.device .tasks-preview.is-shop .tasks-coupon-face strong { color: var(--ui-accent); font-size: 22px; }
.device .tasks-preview.is-shop .tasks-coupon-info { border-top-color: var(--ui-line); }
.device .tasks-preview.is-shop .tasks-coupon-info b { color: var(--ui-ink); font-size: 12px; }
.device .tasks-preview.is-shop .tasks-coupon-info small { color: var(--ui-muted); font-size: 11px; }
.device .tasks-preview.is-shop .tasks-coupon-price { color: var(--ui-gold); font-size: 12px; }
.device .tasks-preview.is-shop .tasks-coupon-action {
  min-height: 36px;
  border-radius: 10px;
  background: var(--ui-primary);
  color: var(--ui-on-primary);
  font-size: 11px;
}
.device .tasks-preview.is-shop .tasks-coupon-locked,
.device .tasks-preview.is-shop .tasks-coupon-locked .tasks-coupon-action {
  background: var(--ui-fill);
  color: var(--ui-muted);
}

/* New-user benefits. Keep coupon rows compact and legible. */
.device .new-user-tabbar { margin: 8px 0 16px; }
.device .new-user-tab-button b {
  background: var(--ui-surface);
  color: var(--ui-muted);
}
.device .new-user-tab-button.active b { background: var(--ui-fill); color: var(--ui-accent); }
.device .new-user-panel-heading h2 { font-size: 21px; }
.device .new-user-panel-symbol { background: var(--ui-fill); color: var(--ui-accent); }
.device .new-user-panel-subline { font-size: 12px; }
.device .new-user-coupon-list { gap: 8px; }
.device .new-user-coupon,
.device .new-user-coupon + .new-user-coupon {
  grid-template-columns: 84px minmax(0, 1fr) 52px;
  min-height: 76px;
  border-color: var(--ui-line);
  background: var(--ui-surface);
  box-shadow: none;
}
.device .new-user-coupon-amount {
  border-radius: 14px 0 0 14px;
  background: var(--ui-gold-soft);
  box-shadow: inset -1px 0 var(--ui-line);
  color: var(--ui-gold);
  font-size: 20px;
}
.device .new-user-coupon-main { border-left-color: var(--ui-line); }
.device .new-user-coupon-main strong { color: var(--ui-accent); font-size: 11px; }
.device .new-user-coupon-main small { color: var(--ui-muted); font-size: 11px; line-height: 1.25; }
.device .new-user-coupon-use {
  min-width: 44px;
  height: 44px;
  margin-right: 6px;
  border: 1px solid var(--ui-line);
  border-radius: 11px;
  background: var(--ui-fill);
  color: var(--ui-accent);
  font-size: 11px;
}
.device .new-user-inline-rule,
.device .trade-bonus-example {
  border: 1px solid var(--ui-line);
  border-radius: 13px;
  background: var(--ui-fill);
}
.device .new-user-inline-rule p { color: var(--ui-muted); font-size: 12px; }
.device .new-user-inline-rule > span { color: var(--ui-accent); }
.device .trade-bonus-intro { padding: 10px 10px 14px; border-radius: 18px; }
.device .trade-bonus-intro img { height: 120px; border-radius: 12px; }
.device .trade-bonus-intro h2 { font-size: 20px; }
.device .trade-bonus-intro p { font-size: 12px; }
.device .trade-bonus-example span { color: var(--ui-muted); font-size: 12px; }
.device .trade-bonus-example b { color: var(--ui-accent); }
.device .trade-bonus-tier { min-height: 58px; padding: 9px; box-shadow: none; }
.device .trade-bonus-tier.selected { border-color: var(--ui-accent); background: var(--ui-fill); box-shadow: none; }
.device .trade-bonus-threshold small { font-size: 11px; }
.device .trade-bonus-threshold b,
.device .trade-bonus-tier > strong { font-size: 12px; }
.device .trade-bonus-tier > strong { color: var(--ui-accent); }
.device .new-user-demo-row { min-height: 44px; border-color: var(--ui-line); background: var(--ui-fill); }
.device .new-user-demo-row input { color: var(--ui-ink); font-size: 16px; }
.device .new-user-demo-row button { min-width: 54px; background: var(--ui-primary); color: var(--ui-on-primary); font-size: 12px; }
.device .new-user-demo-result { color: var(--ui-accent); font-size: 12px; }

/* Ranking and buddy views. */
.device .monthly-hero,
.device .buddy-hero {
  min-height: 166px;
  height: auto;
  padding: 19px;
  border: 1px solid var(--ui-line);
  border-radius: 22px;
  background: var(--ui-primary);
  color: var(--ui-on-primary);
  box-shadow: none;
}
.device .monthly-hero :is(.monthly-eyebrow, p, .monthly-hero-note span),
.device .buddy-hero :is(.buddy-eyebrow, p) { color: var(--ui-on-primary); opacity: .78; }
.device .monthly-period,
.device .buddy-hero h2 { margin-top: 12px; color: var(--ui-on-primary); font-size: 26px; }
.device .monthly-hero-note { margin-top: 17px; }
.device .monthly-section-head { margin-top: 19px; }
.device .monthly-section-head h3,
.device .buddy-section-head h3,
.device .buddy-records h3 { color: var(--ui-ink); font-size: 18px; }
.device .monthly-section-head small { background: var(--ui-fill); color: var(--ui-accent); font-size: 11px; }
.device .monthly-leader-list { overflow: hidden; box-shadow: none; }
.device .monthly-leader { min-height: 62px; }
.device .monthly-leader + .monthly-leader { border-top-color: var(--ui-line); }
.device .monthly-leader:first-child { background: var(--ui-gold-soft); }
.device .monthly-rank { background: var(--ui-fill); color: var(--ui-accent); }
.device .monthly-leader:first-child .monthly-rank { background: var(--ui-gold); color: var(--ui-on-primary); }
.device .monthly-person strong { font-size: 14px; }
.device .monthly-person small { font-size: 12px; }
.device .monthly-amount,
.device .monthly-leader:first-child .monthly-amount { color: var(--ui-accent); font-size: 13px; }
.device .monthly-self { background: var(--ui-surface-raised); box-shadow: none; }
.device .monthly-self-rank { background: var(--ui-primary); color: var(--ui-on-primary); }

.device .buddy-code-card { padding: 12px 14px; box-shadow: none; }
.device .buddy-code-card small { font-size: 11px; }
.device .buddy-copy {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--ui-line);
  background: var(--ui-fill);
  color: var(--ui-accent);
  font-size: 12px;
}
.device .buddy-qr-open { min-height: 76px; background: var(--ui-surface); box-shadow: none; }
.device .buddy-qr-thumb,
.device .buddy-qr-arrow { background: var(--ui-fill); color: var(--ui-accent); box-shadow: none; }
.device .buddy-qr-copy strong { font-size: 14px; }
.device .buddy-qr-copy small { font-size: 12px; }
.device .buddy-stats > div { padding: 11px 6px; box-shadow: none; }
.device .buddy-stats strong { color: var(--ui-ink); font-size: 18px; }
.device .buddy-stats span { font-size: 11px; }
.device .buddy-steps { overflow: hidden; padding: 0 13px; box-shadow: none; }
.device .buddy-step { min-height: 68px; }
.device .buddy-step + .buddy-step { border-top-color: var(--ui-line); }
.device .buddy-step-icon,
.device .buddy-empty-icon { background: var(--ui-fill); color: var(--ui-accent); }
.device .buddy-step strong { font-size: 14px; }
.device .buddy-step p { font-size: 12px; }
.device .buddy-step > b { color: var(--ui-muted); }
.device .buddy-records { padding: 14px; box-shadow: none; }
.device .buddy-record-count { color: var(--ui-muted); font-size: 12px; }

/* Wheel: retain the wheel illustration, quieten everything around it. */
.device .wheel-intro { padding: 7px 3px 13px; }
.device .wheel-intro h2 { margin: 6px 0; color: var(--ui-ink); font-size: 24px; }
.device .wheel-intro p { color: var(--ui-muted); font-size: 12px; }
.device .wheel-test-balance { margin-bottom: 9px; box-shadow: none; }
.device .wheel-test-balance > span { color: var(--ui-muted); font-size: 11px; }
.device .wheel-test-balance strong { color: var(--ui-accent); }
.device .wheel-test-balance small { color: var(--ui-muted); font-size: 11px; }
.device .wheel-stage { min-height: 350px; border-color: var(--ui-line); border-radius: 22px; box-shadow: var(--ui-shadow); }
.device .wheel-status { border-color: var(--ui-line); background: var(--ui-gold-soft); }
.device .wheel-status-symbol { background: var(--ui-surface); color: var(--ui-gold); }
.device .wheel-status strong { color: var(--ui-ink); font-size: 13px; }
.device .wheel-status p { color: var(--ui-muted); font-size: 12px; }
.device .wheel-how { margin-top: 20px; }
.device .wheel-section-heading h3 { color: var(--ui-ink); font-size: 18px; }
.device .wheel-rule { min-height: 72px; border-radius: 0; box-shadow: none; }
.device .wheel-rule:nth-of-type(1) { border-radius: 16px 16px 0 0; }
.device .wheel-rule:nth-of-type(2) { border-top: 0; border-radius: 0 0 16px 16px; }
.device .wheel-rule-icon { background: var(--ui-fill); color: var(--ui-accent); }
.device .wheel-rule strong { font-size: 14px; }
.device .wheel-rule p { font-size: 12px; }
.device .wheel-rule > b { color: var(--ui-accent); }
.device .wheel-test-controls { padding: 12px; box-shadow: none; }
.device .wheel-test-controls strong { font-size: 14px; }
.device .wheel-test-controls p { font-size: 12px; }
.device .wheel-test-controls button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--ui-line);
  border-radius: 11px;
  background: var(--ui-fill);
  color: var(--ui-accent);
  font-size: 12px;
}
.device .wheel-test-controls .wheel-reset-test { background: var(--ui-surface); color: var(--ui-muted); }

/* Fixed actions. */
.device :is(.tasks-footer, .new-user-action, .monthly-action, .buddy-footer, .wheel-action) {
  background: var(--ui-bg);
}
.device :is(.tasks-primary, .new-user-action button, .monthly-action button,
  .buddy-share, .buddy-sheet-done, .buddy-share-copy, .wheel-action button) {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--ui-primary);
  color: var(--ui-on-primary);
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
}
.device .wheel-action button:disabled { background: var(--ui-fill); color: var(--ui-muted); }

/* Reward-owned dialogs and sheets. */
.device :is(.tasks-dialog, .tasks-rules-sheet, .new-user-rules-overlay,
  .monthly-rules-overlay, .buddy-rules-sheet, .buddy-share-sheet,
  .buddy-qr-sheet, .wheel-rules-overlay, .wheel-result-overlay) {
  background: color-mix(in srgb, var(--ui-ink) 48%, transparent);
}
.device :is(.tasks-dialog-card, .tasks-rules-card, .new-user-rules-card,
  .monthly-rules-card, .buddy-sheet-card, .buddy-qr-panel,
  .wheel-rules-card, .wheel-result-card) {
  border: 1px solid var(--ui-line);
  background: var(--ui-surface-raised);
  color: var(--ui-ink);
  box-shadow: var(--ui-shadow);
}
.device :is(.tasks-dialog-card, .new-user-rules-card, .monthly-rules-card,
  .buddy-qr-panel, .wheel-rules-card, .wheel-result-card) { border-radius: 22px; }
.device :is(.tasks-rules-card, .buddy-sheet-card) { border-radius: 24px 24px 0 0; }
.device :is(.tasks-rules-grab, .buddy-sheet-handle) { background: var(--ui-line); }
.device :is(.tasks-dialog-close, .new-user-rules-close, .monthly-rules-close,
  .buddy-rules-close, .buddy-share-close, .buddy-qr-close, .wheel-rules-close) {
  min-width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--ui-fill);
  color: var(--ui-accent);
}
.device :is(.tasks-dialog-card h3, .tasks-rules-head h3, .new-user-rules-card h3,
  .monthly-rules-card h3, .buddy-sheet-head h3, .buddy-qr-panel h3,
  .wheel-rules-card h3, .wheel-result-card h3) { color: var(--ui-ink); }
.device :is(.tasks-dialog-body, .tasks-dialog-note, .tasks-rules-content p,
  .new-user-rules-card p, .monthly-rules-card p, .buddy-sheet-content p,
  .buddy-qr-panel p, .wheel-rules-card p, .wheel-result-card p) {
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 1.5;
}
.device .tasks-rules-content section { border-bottom-color: var(--ui-line); }
.device .tasks-rules-content b { color: var(--ui-ink); font-size: 14px; }
.device .tasks-dialog-icon,
.device .tasks-dialog-reward,
.device .buddy-sheet-content p,
.device .buddy-share-text { border-color: var(--ui-line); background: var(--ui-fill); }
.device .tasks-dialog-icon { color: var(--ui-accent); }
.device .tasks-dialog-reward span { color: var(--ui-muted); }
.device .tasks-dialog-reward strong,
.device .buddy-share-text b,
.device .buddy-share-feedback,
.device .buddy-qr-code-label strong,
.device .wheel-result-card > small { color: var(--ui-accent); }
.device .buddy-share-text { color: var(--ui-ink); }
.device .buddy-qr-full { border-color: var(--ui-line); background: var(--ui-surface); box-shadow: none; }
.device .buddy-qr-download,
.device :is(.tasks-dialog-done, .new-user-rules-done, .monthly-rules-done,
  .wheel-rules-done, .wheel-result-close) {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--ui-primary);
  color: var(--ui-on-primary);
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
}
.device .wheel-result-icon { background: var(--ui-gold-soft); color: var(--ui-gold); }
.device .wheel-result-index { color: var(--ui-muted); }

@media (max-width: 360px) {
  .device .new-user-coupon,
  .device .new-user-coupon + .new-user-coupon {
    grid-template-columns: 76px minmax(0, 1fr) 48px;
  }
  .device .new-user-coupon-amount { font-size: 18px; }
  .device .new-user-coupon-main { padding-left: 7px; padding-right: 4px; }
  .device .new-user-coupon-main small { font-size: 10px; }
  .device .trade-bonus-intro img { height: 110px; }
  .device .monthly-hero, .device .buddy-hero { min-height: 158px; }
  .device .wheel-stage { min-height: 332px; }
}

/* Live coupon state hardening. Keep these after all generic button/card rules. */
.device .tasks-preview.is-shop .tasks-coupon:not(.tasks-coupon-locked):not(.is-locked),
.beike-live .device .tasks-preview.is-shop .tasks-coupon:not(.tasks-coupon-locked):not(.is-locked) {
  border-color: var(--ui-line) !important;
  background: var(--ui-surface) !important;
  color: var(--ui-ink) !important;
  box-shadow: none !important;
}

.device .tasks-preview.is-shop .tasks-coupon.tasks-coupon-locked,
.device .tasks-preview.is-shop .tasks-coupon.is-locked,
.beike-live .device .tasks-preview.is-shop .tasks-coupon.tasks-coupon-locked,
.beike-live .device .tasks-preview.is-shop .tasks-coupon.is-locked {
  border-color: var(--ui-line) !important;
  background: var(--ui-fill) !important;
  color: var(--ui-muted) !important;
  box-shadow: none !important;
}

.device .tasks-preview.is-shop .tasks-coupon :is(.tasks-coupon-info b, .tasks-coupon-info small),
.beike-live .device .tasks-preview.is-shop .tasks-coupon :is(.tasks-coupon-info b, .tasks-coupon-info small) {
  color: var(--ui-ink) !important;
}

.device .tasks-preview.is-shop .tasks-coupon .tasks-coupon-info small,
.device .tasks-preview.is-shop .tasks-coupon:is(.tasks-coupon-locked, .is-locked) :is(.tasks-coupon-info b, .tasks-coupon-info small),
.beike-live .device .tasks-preview.is-shop .tasks-coupon .tasks-coupon-info small,
.beike-live .device .tasks-preview.is-shop .tasks-coupon:is(.tasks-coupon-locked, .is-locked) :is(.tasks-coupon-info b, .tasks-coupon-info small) {
  color: var(--ui-muted) !important;
}

.device .tasks-preview.is-shop .tasks-coupon .tasks-coupon-price,
.device .tasks-preview.is-shop .tasks-coupon:not([data-coins]) .tasks-coupon-price,
.beike-live .device .tasks-preview.is-shop .tasks-coupon .tasks-coupon-price,
.beike-live .device .tasks-preview.is-shop .tasks-coupon:not([data-coins]) .tasks-coupon-price {
  color: var(--ui-gold) !important;
}

.device .tasks-preview.is-shop .tasks-coupon:not(.tasks-coupon-locked):not(.is-locked) .tasks-coupon-action,
.beike-live .device .tasks-preview.is-shop .tasks-coupon:not(.tasks-coupon-locked):not(.is-locked) .tasks-coupon-action {
  background: var(--ui-primary) !important;
  color: var(--ui-on-primary) !important;
}

.device .tasks-preview.is-shop .tasks-coupon:is(.tasks-coupon-locked, .is-locked) .tasks-coupon-action,
.beike-live .device .tasks-preview.is-shop .tasks-coupon:is(.tasks-coupon-locked, .is-locked) .tasks-coupon-action {
  background: var(--ui-surface) !important;
  color: var(--ui-muted) !important;
}

.device .tasks-preview.is-shop .tasks-coupon:is(.tasks-coupon-locked, .is-locked) .tasks-coupon-price,
.beike-live .device .tasks-preview.is-shop .tasks-coupon:is(.tasks-coupon-locked, .is-locked) .tasks-coupon-price {
  color: var(--ui-muted) !important;
}

.device .tasks-preview.is-shop .tasks-coupon:disabled .tasks-coupon-action,
.beike-live .device .tasks-preview.is-shop .tasks-coupon:disabled .tasks-coupon-action {
  background: var(--ui-fill) !important;
  color: var(--ui-muted) !important;
}

.beike-live .device .tasks-preview.is-shop .tasks-owned-coupons {
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: var(--ui-surface);
  color: var(--ui-ink);
  box-shadow: none;
}
.beike-live .device .tasks-preview.is-shop .tasks-owned-coupons h3 { color: var(--ui-ink); font-size: 15px; }
.beike-live .device .tasks-preview.is-shop .tasks-owned-coupons > p,
.beike-live .device .tasks-preview.is-shop .tasks-owned-coupon small { color: var(--ui-muted); font-size: 12px; }
.beike-live .device .tasks-preview.is-shop .tasks-owned-coupon { border-top-color: var(--ui-line); }
.beike-live .device .tasks-preview.is-shop .tasks-owned-coupon strong { color: var(--ui-accent); }
.beike-live .device .tasks-preview.is-shop .tasks-owned-coupon button {
  min-width: 58px;
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  background: var(--ui-primary);
  color: var(--ui-on-primary);
  font-size: 12px;
}
.beike-live .device .tasks-preview.is-shop .tasks-owned-coupon button:disabled {
  background: var(--ui-fill);
  color: var(--ui-muted);
}

/* Hero contrast: semantic foreground must win over legacy accent and gold rules. */
.device .buddy-preview .buddy-hero :is(.buddy-eyebrow, h2, h2 em, p),
.device .monthly-preview .monthly-hero :is(.monthly-eyebrow, .monthly-period, p, .monthly-hero-note span, .monthly-hero-note strong) {
  color: var(--ui-on-primary) !important;
  opacity: 1;
  text-shadow: none;
}

.device .monthly-preview .monthly-self-detail small {
  color: var(--ui-muted) !important;
  font-size: 11px;
}

/* Live wheel prize probabilities share the existing rules sheet. */
.wheel-prize-odds{margin:16px 0;padding:12px 0;border-top:1px solid var(--ui-line)}
.wheel-prize-odds h3{margin:0 0 8px;font-size:14px;color:inherit}
.wheel-prize-odds p{display:flex;justify-content:space-between;gap:16px;margin:6px 0;font-size:12px;line-height:1.5}
.wheel-prize-odds strong{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}
