/* Account appearance only. Layout, API behaviour, original avatars and credit
   artwork stay in account.css/mobile.css and their existing components. */
html[data-theme='light'] {
  --mobile-bg: var(--bg);
  --mobile-surface: var(--surface);
  --mobile-surface-2: var(--surface-light);
  --mobile-line: var(--line);
  --mobile-copy: var(--text);
  --mobile-muted: var(--muted);
  --mobile-cyan: var(--accent);
  --mobile-blue: #006bad;
}

html[data-theme='light'] body.account-active {
  --bg: inherit;
  --muted: inherit;
  --body: inherit;
  --accent: inherit;
  background: radial-gradient(ellipse 72% 35% at 98% -5%, #cee9f6, transparent 80%),
    radial-gradient(ellipse 52% 28% at 64% -10%, #e0f2fb, transparent 76%), var(--bg);
}

html[data-theme='light'] :is(.ac-lead, .ac-action-copy > span, .ac-profile-copy p,
  .ac-credit-large .ac-credit-label, .ac-list-copy p, .ac-caption,
  .ac-reward-row > span > span, .ac-coming p, .ac-detail-row p,
  .ac-summary dt, .ac-pair-link p, .ac-accordion p, .ac-earned .ac-credit-value) {
  color: var(--body);
}

html[data-theme='light'] :is(.ac-page-heading .eyebrow, .ac-group > .eyebrow,
  .ac-facts dt, .ac-month) {
  color: var(--muted);
}

html[data-theme='light'] :is(.ac-back, .ac-chevron, .ac-text-link, .ac-center-link,
  .ac-balance-note .ac-icon, .ac-balance-compact .ac-cyan,
  .ac-balance-compact .ac-credit-label, .ac-reward-row > .ac-icon,
  .ac-pair-person .ac-credit-value, .ac-pair-person .ac-credit-label,
  .ac-referral-row > .ac-credit .ac-credit-value) {
  color: var(--accent);
}

html[data-theme='light'] .ac-card,
html[data-theme='light'] #account-legacy .panel {
  border-color: var(--line);
  background: linear-gradient(130deg, var(--surface), #f7fbfe);
  box-shadow: 0 7px 24px #16476609;
}

html[data-theme='light'] .ac-action:hover {
  border-color: #6ba6bd;
  background: var(--surface-light);
}

html[data-theme='light'] .ac-round-icon {
  background: linear-gradient(135deg, #d8edf7, #edf8fd);
  color: var(--accent);
}

html[data-theme='light'] .ac-blue,
html[data-theme='light'] .ac-balance,
html[data-theme='light'] .ac-price {
  background: radial-gradient(ellipse at 100% 100%, #b9e5fb90, transparent 65%),
    linear-gradient(130deg, #ffffff, #e9f5ff 55%, #d5ecfc);
  border-color: #64afce;
  box-shadow: inset 0 1px 0 #fff, 0 7px 25px #087daa14;
}

html[data-theme='light'] .ac-blue:hover {
  border-color: var(--accent);
  background: linear-gradient(130deg, #f7fcff, #dceffc);
}

html[data-theme='light'] .ac-green {
  background: radial-gradient(ellipse at 100% 0, #b9ebdf80, transparent 65%),
    linear-gradient(130deg, #f8fdfa, #e5f7ef);
  border-color: #86bfae;
}

html[data-theme='light'] .ac-green:hover {
  border-color: var(--mint);
  background: #e1f4ec;
}

html[data-theme='light'] .ac-green .ac-action-copy > span,
html[data-theme='light'] .ac-pair-link .ac-icon,
html[data-theme='light'] .ac-visible-code {
  color: var(--mint);
}

html[data-theme='light'] .ac-green .ac-round-icon,
html[data-theme='light'] .ac-positive .ac-round-icon {
  color: var(--mint);
  background: #d5f0e5;
  border-color: #8ebcae;
}

html[data-theme='light'] .ac-gold {
  background: radial-gradient(ellipse at 5% 10%, #f6d68c40, transparent 55%),
    linear-gradient(130deg, #fffaf0, #fff3d5);
  border-color: #c6aa60;
}

html[data-theme='light'] .ac-gold:hover {
  border-color: #8d6a16;
  background: #fff0c5;
}

html[data-theme='light'] .ac-gold .ac-round-icon,
html[data-theme='light'] .ac-pending .ac-round-icon {
  color: #77580f;
  background: #f8e9bf;
  border-color: #c4a257;
}

html[data-theme='light'] .ac-gold .ac-chevron { color: #77580f; }
html[data-theme='light'] .ac-destructive { color: var(--danger); }
html[data-theme='light'] .ac-destructive .ac-round-icon {
  color: var(--danger);
  background: #fae8e7;
}

html[data-theme='light'] .ac-avatar {
  border-color: #72b5cb;
  box-shadow: 0 3px 14px #126e9121;
}

html[data-theme='light'] .ac-profile-edit {
  background: var(--surface-light);
  border-color: var(--line);
  color: var(--accent);
}

html[data-theme='light'] .ac-home-rewards .ac-round-icon { background: none; }
html[data-theme='light'] .ac-feature-coin,
html[data-theme='light'] .ac-balance-coin { filter: drop-shadow(0 6px 12px #006a9c24); }
html[data-theme='light'] .ac-home-rewards .ac-action-copy > span { color: var(--accent); }
html[data-theme='light'] .ac-home-balance .ac-credit-label { color: var(--body); }

html[data-theme='light'] :is(.ac-balance-copy .ac-balance-note, .ac-ledger-row,
  .ac-detail-row, .ac-referral-row, .ac-summary > div:last-child, .ac-accordion) {
  border-color: var(--line);
}

html[data-theme='light'] .ac-plus {
  background: #e0f5eb;
  color: var(--mint);
}

html[data-theme='light'] .ac-minus {
  background: #fff0ed;
  color: var(--danger);
}

html[data-theme='light'] .ac-positive .ac-credit-value { color: var(--mint); }
html[data-theme='light'] .ac-negative > .ac-credit-value { color: var(--danger); }

html[data-theme='light'] .ac-button {
  color: #fff;
  border-color: #087ead;
  background: linear-gradient(130deg, #007ba6, #0064b2);
  box-shadow: 0 4px 14px #006ba51a;
}

html[data-theme='light'] .ac-button:hover {
  filter: none;
  background: linear-gradient(130deg, #00678e, #005491);
}

html[data-theme='light'] .ac-button:disabled {
  background: #dbe5ec;
  border-color: #b4c8d4;
  color: #597080;
  opacity: 1;
  box-shadow: none;
}

html[data-theme='light'] .ac-secondary {
  border-color: #82aebe;
  color: var(--accent);
  background: #f2f9fc;
  box-shadow: none;
}

html[data-theme='light'] .ac-secondary:hover { background: #dfedf5; }

html[data-theme='light'] .ac-green-button {
  color: #fff;
  background: linear-gradient(130deg, #087c68, #066050);
  border-color: #066a59;
}

html[data-theme='light'] .ac-green-button:hover { background: #065c4f; }

html[data-theme='light'] .ac-gold-button {
  background: linear-gradient(120deg, #f5d788, #e9bf59);
  border-color: #b68c2b;
  color: #513700;
}

html[data-theme='light'] .ac-gold-button:hover { background: #e9bd57; }

html[data-theme='light'] .ac-warning {
  background: #fff6e5;
  border-color: #ceb478;
  color: #76501a;
}

html[data-theme='light'] .ac-warning p { color: inherit; }
html[data-theme='light'] .ac-warm-note { border-color: #c5aa74; }

html[data-theme='light'] .ac-reward-row {
  border-color: var(--line);
  background: linear-gradient(110deg, #f0f8fd, #ffffff);
}

html[data-theme='light'] .ac-reward-row:hover {
  border-color: #6ba6bd;
  background: #e9f4fa;
}

html[data-theme='light'] .ac-reward-row[aria-disabled='true'] {
  opacity: 1;
  color: var(--muted);
  background: #edf2f6;
  border-color: var(--line);
}

html[data-theme='light'] .ac-badge {
  border-color: #a5c1d1;
  color: var(--body);
  background: #e7f1f7;
}

html[data-theme='light'] .ac-pro {
  background: #007693;
  color: #fff;
}

html[data-theme='light'] .ac-summary > div:last-child .ac-credit-value {
  color: var(--accent);
}

html[data-theme='light'] .ac-success-mark {
  background: linear-gradient(145deg, #00836f, #0066b9);
  border-color: #54c6cb;
  box-shadow: 0 6px 35px #008b9024;
}

html[data-theme='light'] .ac-success-mark .ac-icon { color: #fff; }

html[data-theme='light'] .ac-filters {
  border-color: var(--line);
  background: #e8f1f7;
}

html[data-theme='light'] .ac-filters button { color: var(--body); }
html[data-theme='light'] .ac-filters button:hover { background: #d5e7f0; }
html[data-theme='light'] .ac-filters button.is-selected {
  background: var(--accent);
  color: #fff;
}

html[data-theme='light'] .ac-accordion summary { color: var(--text); }
html[data-theme='light'] .ac-accordion summary:focus-visible { outline-color: var(--accent); }
html[data-theme='light'] .ac-qr { box-shadow: 0 0 0 1px var(--line); }
html[data-theme='light'] .ac-apple-mark { color: var(--text); }

/* Existing desktop account forms and confirmation dialogs. */
html[data-theme='light'] #account-legacy :is(input:not([type='checkbox']), select),
html[data-theme='light'] body.account-active dialog :is(input:not([type='checkbox']), select) {
  background: var(--surface);
  color: var(--text);
  border-color: #7394a6;
}

html[data-theme='light'] #account-legacy input::placeholder,
html[data-theme='light'] body.account-active dialog input::placeholder { color: var(--muted); }

html[data-theme='light'] #account-legacy .item-icon {
  background: var(--surface-light);
  border-color: var(--line);
  color: var(--accent);
}

html[data-theme='light'] #account-legacy .profile-avatar {
  background: #e0f1f6;
  border-color: #91becd;
}

html[data-theme='light'] #account-legacy .badge {
  background: #e2f4ec;
  color: var(--mint);
  border-color: #9bc8b8;
}

html[data-theme='light'] body.account-active .notice {
  border-color: #8cbfae;
  background: #e7f5ee;
  color: #176547;
}

html[data-theme='light'] body.account-active :is(.notice.error, .inline-error) {
  background: #fff0ed;
  border-color: #d3a09a;
  color: var(--danger);
}

html[data-theme='light'] body.account-active dialog {
  color: var(--text);
  background: var(--surface);
  border-color: #94b2c4;
  box-shadow: 0 25px 90px #16334a45;
}

html[data-theme='light'] body.account-active dialog::backdrop { background: #12304770; }

html[data-theme='light'] body.account-active .subscription-note {
  border-color: #d0b77e;
  background: #fff6e5;
  color: #74501c;
}

html[data-theme='light'] body.account-active .button.primary {
  color: #fff;
  background: #006b84;
}

html[data-theme='light'] body.account-active .button.primary:hover { background: #005568; }

html[data-theme='light'] body.account-active .button.quiet {
  color: var(--body);
  background: #f4f9fc;
  border-color: #aac2cf;
}

html[data-theme='light'] body.account-active .button.quiet:hover { background: #e3eff6; }

html[data-theme='light'] body.account-active .button.danger-text {
  color: var(--danger);
  border-color: #d2a09b;
  background: #fff7f5;
}

html[data-theme='light'] body.account-active .button.danger-text:hover { background: #f9e4e0; }
html[data-theme='light'] body.account-active .button.danger { background: #ad3035; color: #fff; }
html[data-theme='light'] body.account-active .button.danger:hover { background: #94232a; }

/* Mobile keeps its existing one-column layout, hit areas and native pickers. */
@media (max-width: 700px) {
  html[data-theme='light'] :is(.mobile-profile-card, .mobile-settings-profile,
    .mobile-settings-menu, .mobile-data-menu, .mobile-rewards-actions, .mobile-data-error) {
    background: linear-gradient(145deg, #fff, #f6fbfe);
    border-color: var(--line);
    box-shadow: 0 5px 16px #16476609;
  }

  html[data-theme='light'] .mobile-rewards-card {
    border-color: #74b3cd;
    background: radial-gradient(ellipse at 100% 80%, #b5e1f8a0, transparent 64%),
      linear-gradient(140deg, #f3fbff, #e0f1fc);
    box-shadow: 0 5px 20px #087daa12;
  }

  html[data-theme='light'] .mobile-profile-avatar {
    border-color: #7bafc1;
    box-shadow: 0 3px 12px #126e9121;
  }

  html[data-theme='light'] .mobile-rewards-arrow { color: var(--accent); }
  html[data-theme='light'] .mobile-field { background: var(--surface); border-color: #7394a6; }
  html[data-theme='light'] .mobile-field::placeholder { color: var(--muted); }
  html[data-theme='light'] .mobile-field:focus-visible { border-color: var(--accent); }
  html[data-theme='light'] .mobile-delete-link { color: var(--danger); }
  html[data-theme='light'] .mobile-data-action { background: #f4f9fc; }
  html[data-theme='light'] .mobile-data-action:hover { background: #e4f0f6; }
  html[data-theme='light'] .mobile-empty { background: var(--surface); }

  html[data-theme='light'] .mobile-avatar-choice {
    background: linear-gradient(145deg, #fff, #eaf4fa);
    border-color: var(--line);
  }

  html[data-theme='light'] .mobile-avatar-choice.is-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px #006b842c;
    background: #deeff7;
  }

  html[data-theme='light'] .mobile-avatar-check { color: #fff; background: var(--accent); }
  html[data-theme='light'] .mobile-sheet-backdrop { background: #12304770; }

  html[data-theme='light'] .mobile-sheet {
    background: var(--surface);
    box-shadow: 0 -15px 50px #16334a2e;
  }

  html[data-theme='light'] .mobile-sheet-option[aria-pressed='true'] {
    color: var(--accent);
    background: #e9f4f9;
  }

  html[data-theme='light'] :is(.mobile-save, .mobile-picker-confirm) {
    color: #fff;
    background: linear-gradient(130deg, #007ba6, #0064b2);
  }

  html[data-theme='light'] :is(.mobile-save, .mobile-picker-confirm):disabled {
    background: #dbe5ec;
    border-color: #b4c8d4;
    color: #597080;
  }
}
