/* BodhiX Tunes component language. Load after the legacy application sheet.
   State, visibility, privacy filters and chart data remain application-owned. */

/* Account, authentication and supporting dialogs. */
body :is(.auth-dialog, .onboarding-popup, .preview-modal, .pro-shot-preview__dialog) {
  color: var(--text-primary);
  font-family: Manrope, 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(150deg, #282035, #121620);
  border: 1px solid #544262;
  border-radius: 22px;
  box-shadow: 0 24px 100px #0008;
}
body .auth-dialog { padding: 30px; scrollbar-color: #655075 transparent; }
body .auth-dialog.auth-dialog--account { max-width: 980px; }
body :is(.auth-overlay, .pro-shot-preview) { background: #080611c9; backdrop-filter: blur(8px); }
body .auth-title { font: 800 28px/1.2 Manrope, 'Segoe UI', sans-serif; letter-spacing: -.8px; }
body :is(.auth-close, .pro-shot-preview__close) {
  width: 44px; height: 44px; border-radius: 50%; color: var(--text-secondary);
  background: #c8b2ff0b; border-color: #50405d;
}
body :is(.auth-close, .pro-shot-preview__close):hover { color: var(--text-primary); background: #c8b2ff1c; }
body :is(.auth-hint, .auth-msg, .auth-terms-copy, .auth-terms-check span, .auth-recovery-code-modal__copy,
  .auth-recovery-code-modal__status, .auth-subscription-tip, .auth-subscription-history__meta) {
  font-family: Manrope, 'Segoe UI', sans-serif; font-size: 12px; line-height: 1.65; color: var(--text-secondary);
}
body .auth-msg.error, body .auth-recovery-code-modal__status.error { color: var(--bear); border-color: #ffb59f44; background: #ffb59f0b; }
body .auth-msg.success, body .auth-recovery-code-modal__status.success { color: var(--bull); border-color: #a8eced44; background: #a8eced0b; }
body .auth-field span { font: 650 12px/1.5 Manrope, 'Segoe UI', sans-serif; letter-spacing: 0; color: #d8cae6; text-transform: none; }
body .auth-field .glass-input {
  min-height: 48px; padding: 11px 13px; border-radius: 12px; border: 1px solid #5d496c;
  background: #151321; color: var(--text-primary); font: 500 16px/1.4 Manrope, 'Segoe UI', sans-serif;
}
body .auth-field .glass-input:focus { border-color: var(--violet); box-shadow: 0 0 0 2px #c8b2ff20; }
body .auth-submit {
  min-height: 48px; border: 1px solid var(--cyan); border-radius: 28px; background: var(--cyan);
  color: #13292e; box-shadow: 0 4px 19px #97edf21a;
  font: 800 13px/1.4 Manrope, 'Segoe UI', sans-serif; letter-spacing: 0; text-transform: none;
}
body .auth-submit:hover:not(:disabled) { color: #13292e; background: #c0f5f4; border-color: #c0f5f4; box-shadow: 0 5px 20px #97edf226; }
body .auth-link { font: 650 12px/1.5 Manrope, 'Segoe UI', sans-serif; letter-spacing: 0; color: var(--violet); text-transform: none; }
body .auth-link:hover { color: var(--cyan); }
body .auth-account-tabs { gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
body .auth-account-tab {
  min-height: 44px; border-radius: 24px; padding: 10px 16px; border-color: #44354e;
  color: var(--text-secondary); background: #211a2a;
  font: 700 12px/1.4 Manrope, 'Segoe UI', sans-serif; letter-spacing: 0; text-transform: none;
}
body .auth-account-tab:is(.is-active, [aria-selected="true"]) {
  color: #281b3c; border-color: var(--violet); background: var(--violet); box-shadow: none;
}
body :is(.auth-account-display, .auth-account-onboarding, .auth-account-security, .auth-account-password,
  .auth-account-subscription, .auth-terms-box, .auth-account-limit-wallets) {
  padding: 17px; border-radius: 14px; border: 1px solid var(--border); background: #191627;
}
body :is(.auth-account-display__title, .auth-account-onboarding__title, .auth-terms-title,
  .auth-subscription-history__title, .auth-account-limit-wallets__title, .auth-recovery-code-modal__eyebrow) {
  color: var(--violet); font: 750 11px/1.5 Manrope, 'Segoe UI', sans-serif; letter-spacing: .08em;
}
body :is(.auth-account-row, .auth-onboarding-step, .auth-wallet-limit-row, .auth-subscription-history__row,
  .auth-subscription-history__empty, .auth-wallet-limit-empty) {
  border-radius: 10px; border-color: #373044; background: #c8b2ff06; font-size: 12px;
}
body .auth-account-row { gap: 12px; padding: 12px 14px; }
body :is(.auth-account-row strong, .auth-subscription-history__tx, .auth-onboarding-step strong) {
  font-family: Manrope, 'Segoe UI', sans-serif; font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: 0;
}
body :is(.auth-onboarding-action, .auth-subscription-replace, .auth-subscription-cancel,
  .auth-security-recovery-link, .auth-subscription-howto, .intent-copy-btn, .auth-wallet-limit-remove,
  .auth-recovery-code-modal__copy-btn) {
  min-height: 44px; border-radius: 12px; border: 1px solid #50405d; background: #c8b2ff0b;
  color: #e5daf3; padding: 10px 13px; font: 650 12px/1.4 Manrope, 'Segoe UI', sans-serif;
  letter-spacing: 0; text-transform: none;
}
body :is(.auth-onboarding-action, .intent-copy-btn, .auth-wallet-limit-remove, .auth-recovery-code-modal__copy-btn):hover:not(:disabled) {
  border-color: var(--violet); background: #c8b2ff1c;
}
body .auth-wallet-limit-row__meta span { color: var(--text-secondary); font-size: 11px; }
body .auth-recovery-code-modal__value { background: #151321; color: var(--cyan); border-color: #5d496c; border-radius: 12px; font-size: 18px; }
body .auth-subscription-tip--beta { color: var(--amber); border-color: #ffb59f44; background: #ffb59f0b; }
body .auth-subscription-tip--beta a { color: var(--amber); }
body .payment-simple-head h3 { font: 800 26px/1.2 Manrope, 'Segoe UI', sans-serif; letter-spacing: -.8px; }
body .payment-simple-head p { font-size: 13px; line-height: 1.7; }
body .payment-simple-plan { padding: 20px; gap: 7px; border-radius: 14px; background: #191627; border-color: var(--border); }
body .payment-simple-plan--paid { border-color: #c8b2ff66; background: linear-gradient(140deg, #40304f, #253840); box-shadow: none; }
body .payment-simple-plan span { font: 750 11px/1.5 Manrope, 'Segoe UI', sans-serif; letter-spacing: .08em; }
body .payment-simple-plan strong { font-size: 22px; letter-spacing: -.5px; }
body .payment-simple-plan small { font-size: 12px; line-height: 1.6; }
body .payment-simple-plan--paid span, body .payment-simple-assurance span { color: var(--violet); }
body .payment-simple-assurance span { border-radius: 6px; border-color: #c8b2ff55; font-family: Manrope, 'Segoe UI', sans-serif; }

/* Score, profile and access notices retain their real locked and privacy states. */
body #portfolioScoreCard {
  --score-orange: var(--violet); --score-orange-bright: var(--cyan); --score-orange-deep: #68527f; --score-rule: #c8b2ff2e;
}
body #portfolioScoreCard.score-main-locked { border-color: #483854; background: linear-gradient(150deg, #241b30, #15121e); }
body #portfolioScoreCard .score-ring {
  background: #15121e; border-color: #44354e; box-shadow: 0 12px 28px #0003; animation: none;
}
body #portfolioScoreCard .score-ring::before {
  background: conic-gradient(var(--score-color, var(--cyan)) calc(var(--score) * 1%), #30283b 0); filter: none;
}
body #portfolioScoreCard .score-ring::after { background: #191627; border-color: #3a3047; }
body #portfolioScoreCard.score-main-locked .score-ring { box-shadow: inset 0 0 0 1px #c8b2ff18; }
body #portfolioScoreCard.score-main-locked .score-ring::before {
  background: conic-gradient(from -28deg, #c8b2ff, #a8eced88, #68527f, #c8b2ff); filter: none;
}
body #portfolioScoreCard .score-value { font-family: Manrope, 'Segoe UI', sans-serif; color: var(--text-primary); letter-spacing: -.05em; text-shadow: none; }
body #portfolioScoreCard .score-label { font-family: Manrope, 'Segoe UI', sans-serif; font-size: 11px; letter-spacing: .07em; color: var(--text-secondary); }
body #portfolioScoreCard .score-profile-spotlight,
body #portfolioScoreCard.score-main-locked .score-profile-spotlight,
body #portfolioScoreCard[data-identity-state="premium"]:not(.score-main-locked)[data-tier-access] .score-profile-spotlight {
  padding: 18px; border-radius: 14px; border: 1px solid #c8b2ff44;
  background: linear-gradient(140deg, #35283f, #202734); box-shadow: none;
}
body #portfolioScoreCard .score-profile-kicker { color: var(--violet); font: 750 11px/1.5 Manrope, 'Segoe UI', sans-serif; letter-spacing: .09em; }
body #portfolioScoreCard .score-profile-name,
body #portfolioScoreCard[data-identity-state="premium"]:not(.score-main-locked)[data-tier-access] .score-profile-name {
  color: var(--cyan); font-family: Manrope, 'Segoe UI', sans-serif; font-size: 21px; letter-spacing: -.5px; line-height: 1.35;
}
body #portfolioScoreCard .score-profile-name--free { color: var(--text-primary); }
body #portfolioScoreCard :is(.score-profile-meta, .score-profile-spotlight__summary, .score-meta__sub, .score-note) {
  color: var(--text-secondary); font: 500 12px/1.65 Manrope, 'Segoe UI', sans-serif;
}
body #portfolioScoreCard .score-profile-spotlight__summary .insight-row + .insight-row { border-color: var(--border); }
body #portfolioScoreCard .score-badge,
body #portfolioScoreCard[data-identity-state="premium"]:not(.score-main-locked)[data-tier-access] .score-badge[data-state="live"] {
  border-radius: 20px; border-color: #a8eced44; background: #a8eced0b; color: var(--cyan);
  font: 700 11px/1.4 Manrope, 'Segoe UI', sans-serif; padding: 6px 10px;
}
body #portfolioScoreCard .score-badge[data-state="locked"] { color: var(--text-secondary); border-color: var(--border); background: #252037; }
body #portfolioScoreCard .score-panel { border-radius: 12px; background: #c8b2ff06; border-color: var(--border); }
body #portfolioScoreCard .score-panel__title { font-family: Manrope, 'Segoe UI', sans-serif; font-size: 12px; color: var(--violet); letter-spacing: .04em; }
body #portfolioScoreCard :is(.score-factor__label, .score-factor__head strong, .score-panel__list, .score-factor__reason) { font-family: Manrope, 'Segoe UI', sans-serif; font-size: 12px; line-height: 1.6; }
body #portfolioScoreCard .score-factor__state { font: 650 10px/1.5 Manrope, 'Segoe UI', sans-serif; letter-spacing: .025em; }
body #portfolioScoreCard .score-factor__state--ready { color: var(--bull); border-color: #a8eced44; background: #a8eced0b; }
body #portfolioScoreCard .score-factor__state--degraded { color: var(--amber); border-color: #ffb59f44; background: #ffb59f0b; }
body #portfolioScoreCard .score-factor__bar { height: 7px; border-radius: 8px; background: #30283b; box-shadow: none; }
body #portfolioScoreCard .score-factor__bar span { border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: none; }
body #portfolioScoreCard .score-factor--degraded .score-factor__bar span { background: linear-gradient(90deg, #c597ba, var(--amber)); }
body #portfolioScoreCard .score-factor--unavailable .score-factor__bar span { background: #655075; }
body #portfolioScoreCard .score-factor__info { color: var(--violet); border-color: #50405d; background: #252037; }
body :is(.pro-upsell, .pro-upsell--calendar, .pro-upsell--hodl) { padding: 18px; border-radius: 14px; border-color: #c8b2ff44; background: linear-gradient(140deg, #30243d, #1b2430); }
body .pro-upsell__eyebrow { color: var(--violet); font-family: Manrope, 'Segoe UI', sans-serif; letter-spacing: .08em; }
body .pro-upsell__title { font-size: 18px; letter-spacing: -.4px; line-height: 1.4; }
body :is(.pro-upsell__desc, .pro-upsell__list li, .pro-upsell__shot-body span) { font-size: 12px; line-height: 1.65; }
body .pro-upsell__list li::before { color: var(--cyan); }
body .pro-upsell__shot { border-color: #44354e; background: #211a2a; border-radius: 12px; }
body .pro-upsell__shot-body strong { font: 750 11px/1.5 Manrope, 'Segoe UI', sans-serif; letter-spacing: .02em; }
body :is(.pro-upsell__shot-tier, .pro-shot-preview__tier) { color: var(--amber); border-color: #ffb59f44; background: #ffb59f0b; }
body :is(.pro-upsell__btn, .pro-shot-preview__action) { min-height: 44px; padding: 10px 16px; border-radius: 24px; border-color: var(--cyan); background: var(--cyan); color: #13292e; font: 800 12px/1.4 Manrope, 'Segoe UI', sans-serif; }
body :is(.pro-upsell__btn, .pro-shot-preview__action):hover { background: #c0f5f4; border-color: #c0f5f4; color: #13292e; transform: none; }
body :is(.pro-upsell__btn--ghost, .pro-shot-preview__action--ghost) { border-color: #50405d; background: #c8b2ff0b; color: var(--text-primary); }
body :is(.pro-upsell__btn--ghost, .pro-shot-preview__action--ghost):hover { background: #c8b2ff1c; border-color: var(--violet); color: var(--text-primary); }

/* Staking has explicit ID overrides in the retained application. */
body #page-staking .rewards-grid { gap: 14px; }
body #page-staking .reward-card, body #page-staking .reward-card[data-accent], body #page-staking .stake-card {
  border-radius: 14px; border-color: var(--border); background: linear-gradient(145deg, #241c30, #191627);
  box-shadow: 0 8px 24px #00000014;
}
body #page-staking .reward-card { min-height: 116px; padding: 18px; }
body #page-staking .stake-card { padding: 18px; gap: 14px; }
body #page-staking :is(.reward-card, .stake-card)::before { background: linear-gradient(180deg, var(--violet), #a8eced20); width: 3px; }
body #page-staking :is(.reward-card, .stake-card):hover { border-color: #655075; background: linear-gradient(145deg, #2b2238, #1e192b); transform: none; }
body #page-staking .reward-card__label { color: var(--text-secondary); font: 650 11px/1.5 Manrope, 'Segoe UI', sans-serif; letter-spacing: .04em; }
body #page-staking .reward-card__value, body #page-staking .reward-card[data-accent] .reward-card__value {
  color: var(--text-primary) !important; font-family: Manrope, 'Segoe UI', sans-serif; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.7px;
}
body #page-staking .reward-card__sub { color: var(--text-secondary); font: 500 11px/1.6 Manrope, 'Segoe UI', sans-serif; }
body #page-staking .stake-card__icon { border-color: #50405d; background: #151321; box-shadow: none; border-radius: 12px; }
body #page-staking .stake-card__name { color: var(--text-primary); font: 750 16px/1.4 Manrope, 'Segoe UI', sans-serif; }
body #page-staking .stake-card__platform { color: var(--violet); font: 600 11px/1.5 Manrope, 'Segoe UI', sans-serif; letter-spacing: .025em; }
body #page-staking .stake-card__row { min-height: 32px; padding-top: 10px; border-color: var(--border); }
body #page-staking .stake-card__label { color: var(--text-secondary); font-size: 12px; }
body #page-staking .stake-card__val { color: var(--text-primary); font: 650 13px/1.5 Manrope, 'Segoe UI', sans-serif; font-variant-numeric: tabular-nums; }
body #page-staking .stake-card__val.accent { color: var(--cyan); }
body #page-staking .stake-card__val.reward { color: var(--amber); }
body #page-staking .staking-rows-wrap { border-radius: 14px; border-color: var(--border); background: #15121e; box-shadow: none; }
body #page-staking .staking-rows-table thead th { background: #201a2a; border-color: var(--border); }
body #page-staking .staking-table-sort { min-height: 48px; padding: 12px; font: 700 11px/1.4 Manrope, 'Segoe UI', sans-serif; letter-spacing: .02em; color: var(--text-secondary); text-transform: none; }
body #page-staking .staking-table-sort:hover { color: var(--text-primary); background: #c8b2ff0b; }
body #page-staking th.is-active-sort { background: #c8b2ff16; box-shadow: inset 0 -2px var(--violet); }
body #page-staking th.is-active-sort .staking-table-sort { color: var(--violet); }
body #page-staking .staking-table-sort__arrow { color: var(--violet); font-size: 13px; }
body #page-staking .staking-rows-table tbody tr,
body #page-staking .staking-rows-table tbody tr:nth-child(odd) { background: #191627; }
body #page-staking .staking-rows-table tbody tr:nth-child(even) { background: #171321; }
body #page-staking .staking-rows-table tbody tr:hover { background: #c8b2ff0e; }
body #page-staking .staking-rows-table td { height: 68px; border-color: #30283b; color: var(--text-primary); font: 600 12px/1.5 Manrope, 'Segoe UI', sans-serif; font-variant-numeric: tabular-nums; }
body #page-staking .staking-rows-table .token-icon-wrap { width: 34px; height: 34px; border-color: #50405d; background: #151321; }
body #page-staking .staking-row-token-copy .token-name { color: var(--text-primary); font: 750 13px/1.4 Manrope, 'Segoe UI', sans-serif; }
body #page-staking .staking-row-source { color: var(--text-secondary); font: 600 11px/1.5 Manrope, 'Segoe UI', sans-serif; letter-spacing: 0; text-transform: none; }
body #page-staking .staking-row-staked { color: var(--cyan); }
body #page-staking .staking-row-quantity { color: var(--text-primary); }
body #page-staking :is(.staking-row-reward-qty, .staking-row-reward-value) { color: var(--amber); }
body #page-staking .staking-rows-table .val-bull { color: var(--bull); }
body #page-staking .staking-rows-table .val-bear { color: var(--bear); }

/* Liquidity positions and scan feedback. */
body #lpTable { font-family: Manrope, 'Segoe UI', sans-serif; }
body #lpTable th { background: #201a2a; color: var(--text-secondary); border-color: var(--border); font: 700 11px/1.5 Manrope, 'Segoe UI', sans-serif; letter-spacing: .02em; }
body #lpTable td { color: var(--text-primary); border-color: #30283b; font: 600 12px/1.5 Manrope, 'Segoe UI', sans-serif; font-variant-numeric: tabular-nums; }
body #lpTable .val-bull { color: var(--bull); }
body #lpTable .val-bear { color: var(--bear); }
body #lpTable tbody tr:nth-child(even) { background: #c8b2ff03; }
body #lpTable tbody tr:hover { background: #c8b2ff0d; }
body .lp-wallet-tag { border-color: #c8b2ff33; background: #c8b2ff0b; color: var(--text-primary); border-radius: 9px; padding: 6px; font-family: Manrope, 'Segoe UI', sans-serif; }
body .lp-wallet-tag__mark { width: 26px; height: 26px; flex-basis: 26px; color: var(--violet); border-color: #c8b2ff44; background: #c8b2ff16; border-radius: 7px; font-size: 10px; }
body .lp-wallet-tag__identity strong { color: var(--violet); font-size: 12px; }
body .lp-wallet-tag__identity span { color: var(--text-secondary); font-size: 11px; }
body :is(.lp-pair-amount, .lp-pair-amount__qty) { font-family: Manrope, 'Segoe UI', sans-serif; font-size: 12px; font-variant-numeric: tabular-nums; }
body .lp-pair-amount__sym { font-size: 11px; }
body :is(.lp-advice-badge, .range-badge) { border-radius: 20px; padding: 6px 10px; font: 700 11px/1.4 Manrope, 'Segoe UI', sans-serif; letter-spacing: 0; }
body :is(.lp-advice-badge--high, .range-badge.out-range) { color: var(--bear); border-color: #ffb59f44; background: #ffb59f0b; }
body .lp-advice-badge--medium { color: var(--amber); border-color: #ffb59f44; background: #ffb59f0b; }
body :is(.lp-advice-badge--low, .range-badge.in-range) { color: var(--bull); border-color: #a8eced44; background: #a8eced0b; }
body .lp-advice-cell__hint { color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
body .lp-scan-status { border: 1px solid #c8b2ff33; border-radius: 12px; background: #c8b2ff0b; color: var(--text-secondary); padding: 13px 15px; font: 600 12px/1.6 Manrope, 'Segoe UI', sans-serif; letter-spacing: 0; }
body .lp-scan-status.is-loading::before { background: var(--cyan); box-shadow: none; width: 7px; height: 7px; }
body .lp-scan-status.is-warning { border-color: #ffb59f44; color: var(--amber); background: #ffb59f0b; }

/* Wallet workspace and calendar. */
body :is(.wallet-intel-card, .wallet-item, .wallet-quota-banner, .wallet-lock-state) { background: #211a2a; border-color: var(--border); border-radius: 12px; }
body .wallet-intel-card { padding: 16px; gap: 12px; }
body .wallet-item:hover { background: #c8b2ff0b; border-color: #655075; }
body .wallet-quota-banner { padding: 12px 14px; color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
body .wallet-quota-banner.warn { color: var(--amber); border-color: #ffb59f44; background: #ffb59f0b; }
body .wallet-lock-state__title { color: var(--text-primary); font-size: 17px; font-weight: 750; letter-spacing: -.3px; }
body .wallet-lock-state__copy { color: var(--text-secondary); font-size: 12px; line-height: 1.7; }
body .wallet-lock-open-account { min-height: 44px; padding: 11px 17px; border-radius: 24px; color: #13292e; background: var(--cyan); border-color: var(--cyan); font: 800 12px/1.4 Manrope, 'Segoe UI', sans-serif; }
body .wallet-alias-btn { color: var(--text-primary); font: 750 14px/1.5 Manrope, 'Segoe UI', sans-serif; }
body :is(.wallet-addr, .wallet-name, .wallet-usd, .wallet-hub__overflow-title) { font-family: Manrope, 'Segoe UI', sans-serif; font-size: 12px; line-height: 1.5; letter-spacing: 0; }
body .wallet-intel-card__score { background: conic-gradient(var(--cyan) calc(var(--score, 0) * 1%), #3b3049 0); }
body .wallet-intel-card__score span { font-family: Manrope, 'Segoe UI', sans-serif; font-size: 12px; background: #191627; }
body .wallet-intel-card__stats > div { border-radius: 10px; border-color: #373044; background: #151321; padding: 9px; gap: 5px; }
body .wallet-intel-card__stats label { font: 650 10px/1.5 Manrope, 'Segoe UI', sans-serif; letter-spacing: .015em; text-transform: none; color: var(--text-secondary); }
body .wallet-intel-card__stats strong { font: 750 12px/1.5 Manrope, 'Segoe UI', sans-serif; color: var(--text-primary); font-variant-numeric: tabular-nums; }
body :is(.wallet-copy-btn, .wallet-remove) { min-height: 44px; border-radius: 12px; padding: 9px 12px; font: 650 12px/1.4 Manrope, 'Segoe UI', sans-serif; }
body .wallet-copy-btn { color: var(--violet); border-color: #50405d; background: #c8b2ff0b; }
body .wallet-copy-btn:hover { background: #c8b2ff1c; }
body .wallet-remove:hover { background: #ffb59f0b; color: var(--bear); }
body .pnl-month-label { color: var(--text-secondary); font: 700 14px/1.4 Manrope, 'Segoe UI', sans-serif; }
body .calendar-grid { gap: 8px; padding: 14px; }
body .cal-header { color: var(--text-secondary); font: 700 11px/1.5 Manrope, 'Segoe UI', sans-serif; letter-spacing: .035em; }
body .cal-day { border-radius: 12px; border-color: var(--border); font-family: Manrope, 'Segoe UI', sans-serif; padding: 10px; gap: 8px; }
body .cal-day:hover { border-color: #655075; transform: none; }
body .cal-day.today { border-color: var(--violet); box-shadow: inset 0 0 0 1px #c8b2ff55; }
body .cal-day.gain { color: var(--bull); background: #a8eced0b; border-color: #a8eced33; }
body .cal-day.loss { color: var(--bear); background: #ffb59f0b; border-color: #ffb59f33; }
body :is(.cal-day.flat, .cal-day.nodata) { background: #c8b2ff06; }
body .cal-day__num { font-size: 14px; }
body :is(.cal-day__amt, .cal-day__pct) { font-size: 12px; font-variant-numeric: tabular-nums; }
body :is(.cal-day__dow, .cal-day__net, .cal-day__empty, .cal-day__pnl) { font-size: 11px; line-height: 1.5; }
body .cal-day__note-btn { min-height: 32px; padding: 6px 9px; border-radius: 18px; color: var(--violet); border-color: #50405d; background: #c8b2ff0b; font-size: 11px; letter-spacing: 0; }
body .cal-day__note-preview { font-size: 11px; line-height: 1.5; color: var(--text-secondary); }

/* Holdings chart controls, legends and tooltip materials. */
body #holdingsHodlCard :is(.hodl-card-subtitle, .hodl-selection-summary) { color: var(--text-secondary); font: 500 12px/1.6 Manrope, 'Segoe UI', sans-serif; letter-spacing: 0; }
body #holdingsHodlCard .hodl-token-picker { gap: 8px; padding-bottom: 12px; scrollbar-color: #655075 transparent; }
body #holdingsHodlCard .hodl-token-chip { min-height: 40px; padding: 9px 13px; border-radius: 22px; border-color: #44354e; background: #211a2a; color: var(--text-secondary); font: 700 12px/1.5 Manrope, 'Segoe UI', sans-serif; letter-spacing: 0; }
body #holdingsHodlCard .hodl-token-chip:hover { border-color: #655075; background: #30243d; color: var(--text-primary); }
body #holdingsHodlCard .hodl-token-chip.is-active { border-color: var(--violet); background: var(--violet); color: #281b3c; box-shadow: none; }
body #holdingsHodlCard .hodl-chart-shell { border-radius: 14px; border-color: var(--border); background: linear-gradient(155deg, #211a2d, #15121e 72%); box-shadow: none; }
body #holdingsHodlCard .hodl-legend { gap: 10px; }
body #holdingsHodlCard .hodl-legend-note { border-radius: 12px; border-color: #c8b2ff33; background: #c8b2ff0b; color: var(--text-secondary); padding: 12px 14px; font-size: 12px; }
body #holdingsHodlCard .hodl-legend-note strong { color: var(--violet); font: 750 11px/1.5 Manrope, 'Segoe UI', sans-serif; letter-spacing: .035em; }
body #holdingsHodlCard .hodl-legend-item { border-radius: 12px; border-color: var(--border); background: #211a2a; padding: 13px; }
body #holdingsHodlCard .hodl-legend-item::before { background: var(--violet); opacity: .7; }
body #holdingsHodlCard .hodl-legend-rank { color: var(--text-secondary); font: 600 11px/1.5 Manrope, 'Segoe UI', sans-serif; }
body #holdingsHodlCard .hodl-legend-item__symbol { color: var(--text-primary); font-size: 12px; }
body #holdingsHodlCard .hodl-legend-item__value { color: var(--text-primary); font: 750 13px/1.5 Manrope, 'Segoe UI', sans-serif; font-variant-numeric: tabular-nums; }
body #holdingsHodlCard .hodl-legend-item__foot { border-color: var(--border); padding-top: 9px; margin-top: 9px; }
body #holdingsHodlCard .hodl-legend-solo { min-height: 28px; font: 700 11px/1.5 Manrope, 'Segoe UI', sans-serif; letter-spacing: 0; color: var(--violet); text-transform: none; }
body #holdingsHodlCard .hodl-legend-solo:hover { color: var(--cyan); }
body .chart-tool-btn { min-height: 40px; min-width: 40px; border-radius: 12px; border-color: #50405d; background: #c8b2ff0b; color: var(--text-secondary); }
body .chart-tool-btn:hover { color: var(--cyan); background: #c8b2ff1c; }
body .nw-insight-chip { border-radius: 12px; border-color: var(--border); background: #211a2a; padding: 12px; gap: 5px; }
body .nw-insight-chip__label { font: 650 11px/1.5 Manrope, 'Segoe UI', sans-serif; color: var(--text-secondary); letter-spacing: .02em; text-transform: none; }
body .nw-insight-chip__value { font: 750 14px/1.5 Manrope, 'Segoe UI', sans-serif; color: var(--text-primary); font-variant-numeric: tabular-nums; }
body :is(.nw-chart-tooltip, .hodl-chart-tooltip, .alloc-tooltip), body #portfolioScoreCard .score-factor-tooltip {
  border-radius: 14px; border: 1px solid #655075; background: linear-gradient(150deg, #282035f5, #171321f5);
  color: var(--text-primary); box-shadow: 0 12px 32px #0005; backdrop-filter: blur(12px);
  font-family: Manrope, 'Segoe UI', sans-serif; padding: 14px;
}
body :is(.nw-chart-tooltip__time, .hodl-chart-tooltip__date, .hodl-chart-tooltip__meta,
  .alloc-tooltip__rank, .score-factor-tooltip__source) { color: var(--text-secondary); font-family: Manrope, 'Segoe UI', sans-serif; font-size: 11px; line-height: 1.6; }
body :is(.nw-chart-tooltip__value, .hodl-chart-tooltip__value, .hodl-chart-tooltip__total-value, .alloc-tooltip__symbol,
  .score-factor-tooltip__title) { font-family: Manrope, 'Segoe UI', sans-serif; color: var(--text-primary); font-size: 14px; font-weight: 750; letter-spacing: 0; font-variant-numeric: tabular-nums; }
body :is(.hodl-chart-tooltip__delta, .hodl-chart-tooltip__total-delta, .hodl-chart-tooltip__token,
  .alloc-tooltip__row, .score-factor-tooltip__body) { font-family: Manrope, 'Segoe UI', sans-serif; font-size: 12px; line-height: 1.6; }

@media (max-width: 900px) {
  body .wallet-intel-card__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body #holdingsHodlCard .hodl-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body .auth-dialog { padding: 25px 18px; margin: 10px; max-height: calc(100dvh - 20px); }
  body .auth-account-tabs { gap: 6px; }
  body .auth-account-tab { flex: 1 1 40%; padding-inline: 10px; font-size: 11px; }
  body .auth-account-row { flex-wrap: wrap; padding: 11px; gap: 6px 12px; }
  body .auth-account-row strong { overflow-wrap: anywhere; }
  body .payment-simple-plan { padding: 16px; }
  body #page-staking .staking-rows-table thead th:first-child { background: #201a2a; }
  body #page-staking .staking-rows-table tbody td:first-child { background: #191627; }
  body #page-staking .staking-rows-table tbody tr:nth-child(even) td:first-child { background: #171321; }
  body #page-staking .staking-rows-table tbody tr:hover td:first-child { background: #292136; }
  body .wallet-intel-card { padding: 14px; }
  body .wallet-intel-card__actions { flex-wrap: wrap; gap: 7px; }
  body .calendar-grid { padding: 10px; gap: 7px; }
  body .cal-day { padding: 9px; }
  body .cal-day__note-btn { min-height: 40px; }
  body #holdingsHodlCard .hodl-selection-summary { text-align: left; }
  body #holdingsHodlCard .hodl-token-chip { min-height: 44px; }
}
@media (max-width: 430px) {
  body .wallet-intel-card__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body #holdingsHodlCard .hodl-legend { grid-template-columns: 1fr; }
  body #page-staking .reward-card { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  body #portfolioScoreCard .score-ring, body .lp-scan-status.is-loading::before { animation: none; }
}
