/* Personal spaces in the login page's restored orchid / rose palette.
   The scope deliberately outranks legacy light-theme and mobile overrides. */
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid {
  --mine-canvas:#fbfafe;
  --mine-paper:#ffffff;
  --mine-paper-solid:#ffffff;
  --mine-ink:#2b263d;
  --mine-muted:#736b83;
  --mine-line:#7959bc24;
  --mine-line-strong:#7959bc4a;
  --mine-purple:#7959bc;
  --mine-purple-deep:#6845ac;
  --mine-lavender:#f4effa;
  --mine-mint:#eef8f4;
  --mine-jade:#438779;
  --mine-blue:#f0f3fc;
  --mine-gold:#fbf0f5;
  --mine-rose:#fbf0f6;
  --ma-surface:linear-gradient(145deg,#ffffff,#ffffff 70%);
  --ma-soft:#f6f2fb;
  --ma-gold:#7959bc;
  --ma-muted:#736b83;
  --ma-ink:#2b263d;
  --ma-line:#7959bc24;
  --ma-line-strong:#7959bc4a;
  --ma-shadow:0 16px 42px #3e286710,inset 0 1px 0 #ffffff05;
}

/* The standalone login keeps its reference colors; other personal spaces use
   opaque white surfaces, distinct from the canvas and the softly tinted controls. */
html:not([data-account-page='standalone']) body.tianji-mystic.tianji-orchid {
  --mine-canvas:var(--canvas,#fbfafe);
  --mine-paper:var(--surface-panel,#ffffff);
  --mine-paper-solid:var(--surface-panel,#ffffff);
  --mine-ink:var(--ink,#2b263d);
  --mine-muted:var(--dim,#736b83);
  --mine-line:var(--line,rgba(121,89,188,.14));
  --mine-line-strong:var(--line-strong,rgba(121,89,188,.29));
  --mine-lavender:var(--surface-raised,#f4effb);
  --ma-surface:var(--surface-card-gradient,linear-gradient(145deg,#ffffff,#ffffff));
  --ma-soft:var(--surface-panel,#ffffff);
  --ma-panel:var(--surface-panel,#ffffff);
  --ma-raised:var(--surface-raised,#f4effb);
  --ma-control:var(--surface-control,#fcfaff);
  --ma-faint:var(--faint,#786e87);
  --ma-gold:var(--gold,#7959bc);
  --ma-muted:var(--dim,#736b83);
  --ma-ink:var(--ink,#2b263d);
  --ma-ink-soft:var(--ink-soft,#514a63);
  --ma-line:var(--line,rgba(121,89,188,.14));
  --ma-line-strong:var(--line-strong,rgba(121,89,188,.29));
  --ma-shadow:var(--shadow-card,inset 0 1px 0 #ffffff12,0 16px 40px #3e286727);
  --ma-hover:linear-gradient(145deg,#f4effb,#faf7fd);
  --ma-head:linear-gradient(110deg,#f7f3fd,#fbf0f6);
  --ma-backdrop-blur:6px;
}

html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid:is(:has(.mine-main),:has(.account-settings-main),:has(.records-main),:has(.share-layout),:has(.checkin-main),:has(.play-main),.orchid-activity-page) {
  color:var(--ma-ink);
  background:radial-gradient(ellipse at 80% -4%,#bda4d826,transparent 43rem),radial-gradient(ellipse at 2% 35%,#bda4d813,transparent 38rem),#fbfafe;
}
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.orchid-page-heading h1,.account-settings-heading h1,.records-hero h1,.play-heading h1,.checkin-heading h1) {
  color:var(--ma-ink);
  letter-spacing:.075em;
  text-shadow:0 2px 20px #3e286708;
}
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.orchid-page-heading p,.account-settings-heading p,.records-hero p,.mine-section-heading p,.checkin-kicker,.checkin-eyebrow,.play-main .eyebrow) { color:var(--ma-gold); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.orchid-heading-link,.account-settings-back,.account-page-home,.mine-account-actions a,.mine-account-actions button,.account-settings-identity>a,.mine-section-heading>a,.mine-heading-actions>a,.payment-return-link,.profile-primary-open,.payment-order-query,.profile-detail-back,.profile-detail-actions button,.account-logout) {
  border-color:var(--ma-line-strong);
  color:var(--ma-gold);
  background:var(--ma-raised,#f4effb);
  box-shadow:inset 0 1px 0 #ffffff06;
}

/* A continuous surface family, including empty and logged-out states. */
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.mine-account,.mine-card,.mine-menu-row,.profile-create-card,.profile-switch-group,.account-settings-identity,.account-settings-group,.records-controls,.record-card,.records-empty,.payment-product,.checkin-card,.checkin-overview,.checkin-milestone,.game-panel,.saved-card,.share-state-card,.shared-report) {
  color:var(--ma-ink);
  background:var(--ma-surface);
  border-color:var(--ma-line);
  box-shadow:var(--ma-shadow);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.mine-account-head,.account-settings-identity,.profile-detail-head) {
  background:var(--ma-head,radial-gradient(ellipse at 95% 0%,#bda4d824,transparent 65%),linear-gradient(110deg,#f4effb,#faf7fd));
  border-color:var(--ma-line);
}
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.mine-account-copy span,.account-settings-identity-copy small,.mine-current-copy small,.profile-switch-heading p) { color:var(--ma-gold); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.mine-current-copy b,.mine-account-copy b,.mine-menu-copy b,.profile-card-title b,.profile-switch-heading h2,.account-settings-row-copy b,.profile-detail-head h2) { color:var(--ma-ink); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.mine-current-copy em,.mine-account-copy p,.mine-menu-copy small,.profile-create-copy small,.profile-switch-hint,.profile-orbit-item small,.profile-card-main small,.profile-card-main em,.account-settings-row-meta,.account-settings-row-copy small) { color:var(--ma-muted); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .mine-current-profile { color:var(--ma-ink); background:var(--ma-surface); border-color:var(--ma-line); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .mine-current-chevron { border-color:var(--ma-gold); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.profile-card,.profile-primary-card,.record-kind-summary a,.mine-theme button,.mine-gate) { color:var(--ma-ink); border-color:var(--ma-line); background:var(--ma-raised,#faf7fd); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .profile-search { color:var(--ma-ink); border-color:var(--ma-line); background:var(--ma-control,#faf7fd); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.profile-card.is-default,.mine-theme button[aria-pressed='true']) { border-color:var(--ma-line-strong); background:var(--ma-hover,linear-gradient(120deg,#f4effb,#f4effb)); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.profile-default-badge,.profile-detail-badge,.profile-primary-copy i) { color:var(--ma-gold); background:#bda4d814; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .account-settings-group>h2 { color:var(--ma-muted); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .account-settings-row.is-bound .account-settings-row-meta { color:#367c68; }

/* Small beveled tokens keep the icon treatment dimensional, without chrome. */
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.mine-account-avatar,.account-settings-avatar,.mine-current-mark,.profile-create-mark,.profile-orbit-mark,.profile-card-mark,.mine-menu-icon,.account-settings-icon,.records-empty-mark,.payment-confirm-mark,.checkin-next-icon,.checkin-goal-mark,.checkin-milestone-mark,.share-state-mark) {
  position:relative;
  color:var(--ma-gold);
  border:1px solid #7959bc49;
  background:radial-gradient(circle at 22% 15%,#bda4d825,transparent 62%),linear-gradient(145deg,#f4effb,#f4effb);
  box-shadow:inset 0 1px 1px #ffffff2b,inset 0 -3px 6px #3e28671b,0 5px 0 #3e286717,0 10px 18px #3e286713;
}
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.mine-menu-icon.is-favorite,.account-settings-icon.is-recharge,.checkin-goal-mark) { color:#7959bc; background:linear-gradient(145deg,#f4effb,#f4effb); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.mine-menu-icon.is-settings,.account-settings-icon.is-email,.account-settings-icon.is-records) { color:#526ba2; background:linear-gradient(145deg,#f0f3fc,#f0f3fc); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.account-settings-icon.is-phone,.account-settings-icon.is-sync) { color:#367c68; background:linear-gradient(145deg,#f0f3fc,#f0f3fc); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .mystic-small-icon { width:62%; height:62%; overflow:visible; filter:drop-shadow(0 2px 0 #3e286728); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .mystic-small-icon .mystic-icon-back { opacity:.28; transform:translate(1.6px,2.2px); }

/* Authentication and all account / profile / payment dialogs. */
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .account-dialog .app-dialog-mask { background:#2b263d52; backdrop-filter:blur(var(--ma-backdrop-blur,14px)); }
html[data-account-page='standalone'] body.tianji-mystic.tianji-orchid .account-dialog .app-dialog-mask {
  background:radial-gradient(ellipse at 70% 6%,#bda4d837,transparent 57%),radial-gradient(ellipse at 5% 75%,#bda4d829,transparent 55%),#fbfafe;
}
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.account-dialog-surface,.account-settings-dialog-surface,.profile-detail-surface,.payment-dialog-card,.payment-confirm-dialog,.payment-confirm-surface) {
  color:var(--ma-ink);
  background:var(--ma-surface);
  border:1px solid var(--ma-line);
  box-shadow:0 32px 100px #3e286724,inset 0 1px 0 #3e286706;
}
html[data-account-page='standalone'] body.tianji-mystic.tianji-orchid .account-dialog .account-dialog-surface {
  background-color:#ffffff!important;
  background-image:radial-gradient(ellipse at 80% 0,#bda4d820,transparent 65%)!important;
}
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .account-dialog[data-view='auth'] .app-dialog-head h3 { font-family:var(--serif); font-weight:600; letter-spacing:.07em; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.account-auth-tabs,.account-dialog[data-view='auth'] .account-auth-tabs,.account-channel-tabs,.account-mode-hint,.account-policy-note,.account-page-policy,.profile-detail-lead,.payment-confirm-summary) {
  color:var(--ma-muted);
  border-color:var(--ma-line);
  background:var(--ma-raised,#f4effb);
}
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .account-dialog[data-view='auth'] .account-auth-tabs { padding:5px; border:1px solid var(--ma-line); gap:5px; border-radius:12px; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .account-dialog[data-view='auth'] .account-auth-tabs>button { min-height:42px; padding:8px 22px; border-radius:8px; border:1px solid transparent; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.account-dialog[data-view='auth'] .account-auth-tabs>button.active,.account-channel-tabs>button.active) { color:var(--ma-gold); background:var(--ma-raised,#f4effb); border-color:var(--ma-line); box-shadow:inset 0 1px 0 #3e286708; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.account-field input,.account-dialog[data-view='auth'] .account-field input,.account-settings-field input,.checkin-claim-fields input,.checkin-claim-fields textarea,.share-manual-copy textarea) { color:var(--ma-ink); border-color:var(--ma-line); background:var(--ma-control,#faf7fd); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.account-field input,.account-settings-field input,.checkin-claim-fields input,.checkin-claim-fields textarea):focus { border-color:#7959bc8c; background:var(--ma-control,#faf7fd); box-shadow:0 0 0 3px #3e286704; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.account-field input,.account-settings-field input,.checkin-claim-fields input,.checkin-claim-fields textarea)::placeholder { color:var(--ma-faint,#7959bc); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.account-dialog .dialog-kicker,.account-mode-hint b,.account-password-toggle,.account-policy-link,.account-page-policy summary b,.account-settings-dialog-surface>p:first-of-type,.payment-confirm-kicker,.payment-confirm-amount,.payment-dialog-card strong) { color:var(--ma-gold); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .account-dialog :is(.dialog-lead,.account-mode-hint span,.account-hint,.account-policy-note p,.account-page-policy summary>span:last-child,.account-page-policy>div p) { color:var(--ma-muted); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.payment-confirm-dialog,.account-settings-dialog,.payment-dialog,.profile-detail-dialog)::backdrop { background:#2b263d52; backdrop-filter:blur(var(--ma-backdrop-blur,10px)); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.payment-confirm-summary,.profile-detail-lead) { background:var(--ma-raised,#f4effb); }

html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.mine-gate button,.mine-primary-link,.profile-detail-primary,.profile-card-actions .profile-switch,.account-settings-primary,.payment-confirm-submit,.account-dialog .dialog-primary-btn,.checkin-primary,.play-main .primary-button,.share-button.primary) {
  border:1px solid #7959bc70;
  color:#ffffff;
  background:linear-gradient(120deg,#8860c4,#7952b8);
  box-shadow:inset 0 1px 0 #ffffff75,0 5px 16px #3e286713;
  text-shadow:none;
}
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.mine-gate button,.profile-detail-primary,.account-settings-primary,.payment-confirm-submit,.account-dialog .dialog-primary-btn,.checkin-primary,.play-main .primary-button,.share-button.primary):hover:not(:disabled) { background:linear-gradient(120deg,#7952b8,#6845ac); box-shadow:inset 0 1px 0 #ffffff80,0 7px 22px #3e286708; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .account-dialog[data-view='auth'] :is(#btnAccountResetPassword,#btnAccountBackToLogin) { color:var(--ma-gold); background:transparent; box-shadow:none; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.account-policy-mark,.account-dialog .account-mode-hint) { background:#bda4d80c; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.account-profile-row,.account-quota-card,.account-invite-card,.account-profiles-card) { border-color:var(--ma-line); background:var(--ma-raised,#f4effb); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .account-recharge-link { color:#ffffff; background:linear-gradient(120deg,#8860c4,#7952b8); border-color:#7959bc66; }

/* Pricing and its status labels retain the existing billing behavior. */
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .payment-product.is-recommended { border-color:#7959bc63; background:var(--ma-hover,radial-gradient(ellipse at 50% 0,#bda4d823,transparent 80%),#faf7fd); box-shadow:inset 0 1px 0 #3e28670a,0 12px 32px #3e28670d; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .payment-product-badge { color:#ffffff; background:#7959bc; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .payment-product-price { color:var(--ma-gold); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .mine-recharge .payment-product-actions button { color:var(--ma-gold); border-color:var(--ma-line-strong); background:var(--ma-raised,#f4effb); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .mine-recharge .payment-product.is-recommended .payment-product-actions button:first-child { color:#ffffff; border-color:#7959bc50; background:linear-gradient(120deg,#8860c4,#7952b8); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .mine-recharge :is(.mine-section-lead,.payment-status) { color:var(--ma-muted); background:var(--ma-raised,#f4effb); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .payment-order>span { background:var(--ma-raised,#f4effb); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.payment-order>span[data-status='paid'],.mine-recharge .payment-status[data-kind='success'],.checkin-feedback[data-kind='success'],.checkin-primary[data-complete='true']) { color:#367c68; border-color:#7959bc3b; background:#eef8f4; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.mine-recharge .payment-status[data-kind='error'],.checkin-feedback[data-kind='error'],.records-status[data-state='error']) { color:#ad4969; background:#fbf0f6; border-color:#7959bc3b; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .payment-fallback { color:#526ba2; background:#f0f3fc; border-color:#7959bc4d; }

/* Records, selected filters, and empty states. */
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .records-search { color:var(--ma-gold); background:var(--ma-control,#fcfaff); border-color:var(--ma-line); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .record-type-filters button { color:var(--ma-muted); background:var(--ma-control,#faf7fd); border:1px solid transparent; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .record-type-filters button[aria-pressed='true'] { color:var(--ma-gold); border-color:var(--ma-line-strong); background:var(--ma-raised,#f4effb); box-shadow:inset 0 1px 0 #ffffff06; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .record-card { --record-tone:#7959bc; --record-wash:#f4effb; border-inline-start:1px solid var(--ma-line); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .record-card[data-kind='hehun'] { --record-tone:#ad4969; --record-wash:#f4effb; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .record-card[data-kind='yaogua'] { --record-tone:#7959bc; --record-wash:#f4effb; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .record-card[data-kind='ziwei'] { --record-tone:#526ba2; --record-wash:#f0f3fc; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .record-card[data-kind='dream'] { --record-tone:#7959bc; --record-wash:#f4effb; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .record-card[data-kind='xiangshu'] { --record-tone:#367c68; --record-wash:#eef8f4; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .record-card .record-kind { color:var(--record-tone); background:linear-gradient(145deg,var(--record-wash),#faf7fd); border:1px solid #7959bc10; box-shadow:inset 0 1px 0 #ffffff0e,0 5px 10px #3e286713; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .record-card.is-primary { border-color:#7959bc40; background:linear-gradient(120deg,#eef8f4,#ffffff); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .record-primary { color:var(--ma-gold); border-color:var(--ma-line-strong); background:var(--ma-raised,#f4effb); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .record-primary[aria-pressed='true'] { color:#367c68; border-color:#7959bc40; background:#eef8f4; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .record-star[aria-pressed='true'] { color:var(--ma-gold); background:#bda4d812; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.records-empty>a,.records-empty button,.records-retry) { color:var(--ma-gold); border-color:var(--ma-line-strong); background:var(--ma-raised,#f4effb); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .records-status { color:#367c68; border-color:#7959bc3b; background:#eef8f4; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .records-status[data-state='warning'] { color:var(--ma-gold); border-color:var(--ma-line); background:#f4effb; }

/* Check-in remains a real calendar; only its presentation changes. */
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .checkin-hero { border-color:var(--ma-line-strong); background:var(--ma-head,radial-gradient(ellipse at 80% 15%,#bda4d830,transparent 66%),linear-gradient(120deg,#f4effb,#faf7fd)); box-shadow:var(--ma-shadow); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .checkin-grand-prize { border-color:#7959bc25; background:var(--ma-raised,linear-gradient(135deg,#7959bc05,#bda4d804)); box-shadow:inset 0 1px 0 #ffffff04; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.checkin-prize-kicker,.checkin-grand-doll,.checkin-grand-number,.checkin-next strong,.checkin-hero-description strong,.checkin-goal-summary b,.checkin-goal-summary>span:last-child) { color:var(--ma-gold); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .checkin-gift-art { filter:saturate(1.02) brightness(1.02); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .checkin-gift-spark { color:var(--ma-gold); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .checkin-progress { background:var(--ma-control,#fcfaff); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .checkin-progress>span { background:linear-gradient(90deg,#8860c4,#7952b8); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .checkin-stamp { background:var(--ma-control,#faf7fd); border-color:var(--ma-line); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .checkin-stamp b { color:var(--ma-faint,#7959bc); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .checkin-stamp.is-signed { background:linear-gradient(145deg,#f4effb,#f4effb); border-color:#7959bc48; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .checkin-stamp.is-signed b { color:#7959bc; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .checkin-stamp.is-next { background:#f4effb; border-color:#7959bc6b; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .checkin-stamp.is-grand { background:#fbf0f6; border-color:#7959bc48; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .checkin-stamp.is-grand :is(b,small) { color:#ad4969; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .checkin-milestone.is-claimed { border-color:#7959bc38; background:#eef8f4; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .checkin-milestone.is-claimed .checkin-milestone-mark { color:#367c68; background:linear-gradient(145deg,#eef8f4,#eef8f4); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.checkin-goal-summary,.checkin-doll-row,.checkin-full-reward) { border-color:var(--ma-line); background:var(--ma-raised,linear-gradient(110deg,#f4effb,#faf7fd)); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .checkin-doll-claim { border-color:var(--ma-line-strong); background:var(--ma-raised,#f4effb); color:var(--ma-gold); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .checkin-history li { border-color:var(--ma-line); }

/* Six play modes share a orchid palette while keeping their own accents. */
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .game-tabs button { --game-tone:#7959bc; --game-wash:#f4effb; background:var(--ma-panel,#ffffff); color:var(--ma-ink); border-color:var(--ma-line); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .game-tabs button>span { color:var(--game-tone); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .game-tabs :is([data-game='answer'],[data-game='coin']) { --game-tone:#7959bc; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .game-tabs :is([data-game='quiz'],[data-game='challenge']) { --game-tone:#367c68; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .game-tabs [data-game='relation'] { --game-tone:#ad4969; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .game-tabs button[aria-selected='true'] { color:var(--ma-ink); background:var(--ma-hover,linear-gradient(130deg,#f4effb,#f4effb)); border-color:#7959bc61; box-shadow:inset 0 1px 0 #3e286709,0 6px 16px #3e286712; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .game-tabs button[aria-selected='true']>span { color:var(--game-tone); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .game-tabs button[aria-selected='true']>small { color:#736b83; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .play-main h2 { text-wrap:balance; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .game-tabs .mystic-tab-icon { display:grid; place-items:center; width:40px; height:40px; border:1px solid #7959bc12; border-radius:12px; background:linear-gradient(145deg,#7959bc0b,#7959bc02); box-shadow:inset 0 1px 0 #ffffff15,0 4px 0 #3e28670d; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.game-facts span,.collection-link span,.collection h2 span) { color:var(--ma-gold); background:var(--ma-raised,#f4effb); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.play-main .secondary-button,.relationship-modes span,.quiz-option) { color:var(--ma-ink); border-color:var(--ma-line); background:var(--ma-control,#faf7fd); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.play-main .secondary-button[aria-pressed='true'],.relationship-modes input:checked+span,.quiz-option:has(input:checked)) { color:var(--ma-gold); border-color:#7959bc66; background:var(--ma-raised,#f4effb); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .inspiration-card { color:var(--ma-ink); border-color:#7959bc43; background:var(--ma-surface); box-shadow:inset 0 1px 0 #ffffff12,0 20px 45px #3e286716; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .answer-card { background:var(--ma-surface); border-color:#7959bc44; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .relation-card { background:var(--ma-surface); border-color:#7959bc40; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .inspiration-card :is(.card-top,.card-bottom,.card-number,.sealed-card p) { color:var(--ma-muted,#7959bc); border-color:#7959bc26; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .inspiration-card :is(.card-body,.card-action p) { color:var(--ma-ink-soft,#7959bc); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .inspiration-card :is(.save-button,.card-action b) { color:var(--ma-gold); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .inspiration-card .card-action { border-color:#7959bc70; background:#bda4d809; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .seal-mark { color:var(--ma-gold); border-color:#7959bc7a; background:linear-gradient(145deg,#bda4d80a,#bda4d808); box-shadow:0 0 0 7px #3e286701,inset 0 1px 0 #ffffff13,0 6px 22px #3e286712; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.quiz-workspace,.coin-workspace) { background:var(--ma-raised,#faf7fd); border:1px solid var(--ma-line); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.quiz-bar-track,.play-main progress) { background:var(--ma-control,#f4effb); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .play-main progress::-webkit-progress-bar { background:var(--ma-control,#f4effb); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .play-main progress::-webkit-progress-value { background:#7959bc; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid #coinForm input { color:var(--ma-ink); background:var(--ma-control,#faf7fd); border-color:var(--ma-line); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .coin-visual { color:var(--ma-gold); border-color:#7959bc67; outline-color:#7959bc33; background:radial-gradient(circle at 30% 22%,#bda4d82b,transparent 66%),linear-gradient(135deg,#f4effb,#f4effb); box-shadow:inset 0 2px 2px #3e286711,inset 0 -4px 8px #3e28671b,0 7px 0 #3e28672d,0 18px 30px #3e28671e; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .challenge-workspace { background:linear-gradient(145deg,#eef8f4,#f0f3fc); border-color:#7959bc38; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .challenge-workspace :is(.eyebrow,.challenge-task b) { color:#367c68; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(#challengeBody,.challenge-task p) { color:#48665e; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .challenge-task { border-color:#7959bc2e; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .challenge-steps span { background:var(--ma-control,#faf7fd); border-color:var(--ma-line); color:var(--ma-muted); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .challenge-steps span[aria-current='step'] { background:var(--ma-raised,#f4effb); border-color:var(--ma-line-strong); color:var(--ma-gold); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .challenge-steps span[data-done='true'] { background:#eef8f4; border-color:#7959bc47; color:#367c68; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .collection-empty { background:var(--ma-panel,#ffffff); border-color:var(--ma-line); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .play-status { color:var(--ma-ink); background:var(--ma-raised,#f4effb); border-color:#7959bc4d; }

/* Public report: keep long-form reading comfortable in the same atmosphere. */
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .share-backdrop { background:radial-gradient(ellipse at 25% 0,#bda4d824,transparent 45rem),#fbfafe; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .share-backdrop::before { opacity:.22; background-image:linear-gradient(#7959bc09 1px,transparent 1px),linear-gradient(90deg,#7959bc09 1px,transparent 1px); background-size:70px 70px; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.share-state-card,.shared-report)::before { border-color:#7959bc12; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .share-button { color:var(--ma-gold); background:var(--ma-raised,#f4effb); border-color:var(--ma-line-strong); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .share-button.primary { color:#ffffff; background:linear-gradient(120deg,#8860c4,#7952b8); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .shared-report-head { background:var(--ma-head,radial-gradient(ellipse at 50% 0,#bda4d829,transparent 70%),linear-gradient(180deg,#f4effb,#ffffff)); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .shared-reading-frame.is-collapsed::after { background:linear-gradient(180deg,#bda4d800,#fbfafef5 72%,#f4effb); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .shared-reading-toggle { background:var(--ma-raised,#f4effb); color:var(--ma-gold); border-color:#7959bc58; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .shared-report-body { color:var(--ma-ink-soft,#7959bc); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .shared-report-body :is(h1,h2,h3,h4) { color:var(--ma-ink); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .shared-report-body blockquote { background:var(--ma-raised,#bda4d809); border-color:#7959bc69; color:var(--ma-ink-soft,#7959bc); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .shared-report-body :is(th,td) { border-color:var(--ma-line); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .share-error .share-state-mark { color:#ad4969; border-color:#7959bc49; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .share-loader { border-color:#7959bc23; border-top-color:var(--ma-gold); }

/* Activity statistics use real values supplied by the existing endpoint. */
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page {
  --surface:var(--ma-panel,#292132); --surface-soft:var(--ma-raised,#32283d); --muted:var(--ma-muted);
  --blue:#7485bd; --violet:#8e68b9; --amber:#a56a34; --green:#438779;
  --shadow:var(--ma-shadow);
}
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page .masthead h1 { font-family:var(--serif); font-weight:600; font-size:clamp(32px,4vw,50px); letter-spacing:.04em; line-height:1.35; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page :is(.eyebrow,.section-kicker) { color:var(--ma-gold); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page :is(.eyebrow,.range-switch,.definitions,.metric-card,.trend-card) { border-color:var(--ma-line); background:var(--ma-surface); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page .range-button.is-active { color:var(--ma-gold); background:var(--ma-raised,#f4effb); box-shadow:inset 0 1px 0 #3e28670c; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page .refresh-button:hover { background:var(--ma-raised,#f4effb); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page .privacy-note { background:linear-gradient(100deg,#eef8f4,#eef8f4); border-color:#7959bc30; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page .privacy-note strong { color:#367c68; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page .privacy-note p { color:#48665e; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page .privacy-mark { color:#367c68; background:#eef8f4; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page .metric-icon { background:linear-gradient(145deg,#7959bc0d,#7959bc02); border:1px solid #7959bc12; box-shadow:inset 0 1px 0 #ffffff13,0 4px 0 #3e286712; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page :is(.metric-detail,footer) { color:var(--ma-muted); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page :is(th,td) { border-color:#7959bc18; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page tbody tr.is-today td { color:#367c68; background:#eef8f4; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page .error-panel { color:#ad4969; border-color:#7959bc33; background:#fbf0f6; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page .trend-chart [stroke='#e9ede9'] { stroke:#7959bc1c; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page .trend-chart [fill='#85908a'] { fill:var(--ma-muted); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page .trend-chart [fill='#ffffff'] { fill:var(--ma-panel,#ffffff); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page .trend-chart [stroke='#3276f5'] { stroke:var(--blue); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page .trend-chart [stroke='#8463ee'] { stroke:var(--violet); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page .trend-chart [stroke='#d99016'] { stroke:var(--amber); }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid.orchid-activity-page .trend-chart [stroke='#209a68'] { stroke:var(--green); }

/* Finite, optional motion: no loading delays and no changes to business state. */
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.mine-menu-row,.profile-create-card,.profile-card,.account-settings-row,.record-card,.checkin-milestone,.game-tabs button,.saved-card,.metric-card) { transition:transform .22s ease,background .22s ease,border-color .22s ease,box-shadow .22s ease; }
@media(hover:hover) and (pointer:fine) {
  html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.mine-menu-row,.profile-create-card,.profile-card,.record-card,.game-tabs button,.saved-card):hover { transform:translateY(-3px); background:var(--ma-hover,linear-gradient(145deg,#f4effb,#faf7fd)); border-color:#7959bc60; box-shadow:0 14px 26px #3e28671b,inset 0 1px 0 #ffffff09; }
  html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.account-settings-row,.profile-orbit-item):hover:not(:disabled) { background:#bda4d808; }
  html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.checkin-milestone,.metric-card):hover { transform:translateY(-2px); border-color:var(--ma-line-strong); }
  html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.mine-menu-icon,.account-settings-icon,.mystic-tab-icon) { transition:transform .24s ease; }
  html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.mine-menu-row,.account-settings-row,.game-tabs button):hover :is(.mine-menu-icon,.account-settings-icon,.mystic-tab-icon) { transform:translateY(-2px) rotate(-3deg); }
}
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.mine-main,.account-settings-main,.records-main,.checkin-main,.play-main,.share-layout,.account-dialog,.payment-confirm-dialog) :is(button,a,summary,input,textarea):focus-visible { outline:2px solid #7959bcbb; outline-offset:4px; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .records-search input:focus-visible { outline:none; }
html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .records-main > .account-settings-back { display:inline-flex; align-items:center; gap:8px; min-height:40px; margin-bottom:20px; padding:0 14px; border:1px solid var(--ma-line); border-radius:12px; color:var(--ma-gold); background:var(--ma-raised,#f4effb); font:12px/1.4 var(--sans); text-decoration:none; }
@media(max-width:760px) {
  html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .game-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .game-tabs button { min-width:0; min-height:82px; grid-template-columns:minmax(0,1fr); grid-template-rows:32px 18px; justify-items:center; align-content:center; gap:8px; padding:11px 6px; text-align:center; }
  html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .game-tabs .mystic-tab-icon { width:32px; height:32px; grid-row:auto; margin:0; border-radius:10px; }
  html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .game-tabs b { white-space:nowrap; font-size:clamp(11.5px,3.1vw,13px); line-height:18px; letter-spacing:0; }
  html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .game-tabs small { display:none; }
}
@media(max-width:620px) {
  html[data-account-page='standalone'] body.tianji-mystic.tianji-orchid .account-dialog[data-view='auth'] .account-dialog-surface { border:0; border-radius:0; box-shadow:none; }
  html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid .account-dialog[data-view='auth'] .account-auth-tabs>button { padding-inline:18px; }
}
@media(hover:none),(pointer:coarse) {
  html[data-account-page='standalone'] body.tianji-mystic.tianji-orchid .account-dialog[data-view='auth'] .account-dialog-surface { border:0; border-radius:0; box-shadow:none; }
}
@media(prefers-reduced-motion:reduce) {
  html:is([data-theme],:not([data-theme])) body.tianji-mystic.tianji-orchid :is(.mystic-small-icon,.mystic-tab-icon) { animation:none!important; transition:none!important; transform:none!important; }
}
