.theme-toggle{position:relative;display:inline-flex;align-items:center;width:52px;min-width:52px;height:32px;padding:3px;border:1px solid #ead18b;border-radius:20px;background:#fff0b5;cursor:pointer;flex-shrink:0;box-shadow:none}
.theme-thumb{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#ffc52e;color:#fff;line-height:1;font-size:19px;transition:transform .18s ease}
.theme-moon{display:none}.theme-toggle:focus-visible{outline:3px solid #2688ed;outline-offset:3px}
html[data-theme="dark"]{color-scheme:dark;--ink:#e5edf8;--muted:#aebdd1;--line:#34445a;--blue:#7bb8ff}
html[data-theme="dark"] .theme-toggle{background:#263754;border-color:#526888}
html[data-theme="dark"] .theme-thumb{transform:translateX(20px);background:#7298df;color:#101827}
html[data-theme="dark"] .theme-sun{display:none}html[data-theme="dark"] .theme-moon{display:block}
html[data-theme="dark"] body.bobo-refresh{background:#101827;color:#e5edf8;--ink:#e5edf8;--muted:#aebdd1;--line:#34445a;--blue:#7bb8ff}
html[data-theme="dark"] :is(.site-header,.panel,.site-footer,.mobile-bottom-nav,.desktop-more-menu,.mobile-more-menu,.header-notification-panel,dialog,.landing-steps article,.faq-list details,.platform,.mobile-platform-grid>div,.step,.scene-tag){background:#182335!important;border-color:#34445a!important;color:#e5edf8}
html[data-theme="dark"] :is(.hero,.dashboard-welcome,.referral-hero,.welcome-banner,.sidebar-note,.mobile-conversion-banner,.mobile-conversion-important,.landing-hero,.landing-strip,.landing-benefits,.landing-final,.referral-code,.referral-note,.referral-earned,.app-install-card){background:#1b2c43!important;border-color:#344d69!important;color:#e5edf8}
html[data-theme="dark"] :is(h1,h2,h3,h4,strong,label,summary,.brand,.account-name,.referral-page,.landing,.product-details,.report-table,.orders-reference){color:#e5edf8}
html[data-theme="dark"] :is(p,small,.help-text,.landing-note,.landing-strip span,.landing-kicker,.landing-section-head p,.benefit-grid p,.landing-steps p,.faq-list details p,.referral-steps span,.referral-code span,.referral-rate span,.header-wallet-value small){color:#aebdd1}
html[data-theme="dark"] a{color:#8bc3ff}
/* Override daytime navigation colors, including hover and selected states. */
html[data-theme="dark"] .bobo-refresh :is(.nav-item,.desktop-more>summary,.mobile-more>summary,.mobile-bottom-nav>a,.admin-navigation a,.landing-nav a,.site-footer a){color:#cfdef1!important}
html[data-theme="dark"] .bobo-refresh :is(.profile-menu a,.order-copy,.admin-order-actions button,.order-modal-heading button,.order-details summary,.orders-count){background:#263b55!important;color:#d9eaff!important;border-color:#4c6480!important}
html[data-theme="dark"] .bobo-refresh :is(.nav-item:hover,.nav-item.is-active,.nav-item.admin-entry:hover,.admin-navigation a:hover,.admin-navigation a[aria-current="page"],.profile-menu a:hover,.profile-menu a:focus-visible,.mobile-more-menu a:hover,.desktop-more-menu a:hover){background:#29476b!important;color:#fff!important}
html[data-theme="dark"] .bobo-refresh :is(.mobile-bottom-nav>a.is-active,.mobile-more[open]>summary){color:#9bcfff!important}
html[data-theme="dark"] .bobo-refresh :is(.report-stats strong,.dashboard-wallet strong,.profile-identity strong,.product-metrics dd,.referral-code strong,.scene-tag strong){color:#e5edf8!important}
html[data-theme="dark"] .bobo-refresh :is(.report-stats h2,.page-heading p,.eyebrow,.convert-label,.product-metrics dt,.orders-reference small,.report-pagination,.section-heading span){color:#bbcadc!important}
html[data-theme="dark"] .bobo-refresh :is(.admin-order-actions .order-delete){background:#9c294a!important;color:#fff!important}
html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),select,textarea){background:#111d2e!important;color:#edf4ff!important;border-color:#405570!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#93a6c1}
html[data-theme="dark"] :is(.button-quiet,.notice,.nav-item.is-active,.admin-navigation,.admin-navigation a[aria-current="page"],.header-actions .header-wallet,.header-notifications>summary,.account-avatar,.step-symbol,.referral-steps li:before,.referral-empty>span,.landing-pill,.notification-preview.is-unread){background:#233853!important;color:#b6d7ff!important;border-color:#405570!important}
html[data-theme="dark"] .button-primary{background:#1764d9!important;color:white!important}
html[data-theme="dark"] :is(th,td){background:#182335!important;border-color:#34445a!important;color:#e5edf8}
html[data-theme="dark"] thead th{background:#233249!important;color:#bacce3!important}
html[data-theme="dark"] :is(.auth-message,.status-cancelled){background:#492a29!important;color:#ffd0bd!important}
html[data-theme="dark"] :is(.status-pending){background:#403421!important;color:#ffd68e!important}
html[data-theme="dark"] :is(.status-completed){background:#153c35!important;color:#85e6c5!important}
html[data-theme="dark"] :is(.cashback-money,.referral-earned strong,#referralCopyStatus){color:#74e2bf!important}
html[data-theme="dark"] :is(.bobo-pet-speech,.bobo-pets-toggle){background:#233249;color:#e5edf8;border-color:#405570}
html[data-theme="dark"] .mascot-orbit{background:#294567;box-shadow:0 0 0 24px #29456744}
/* Keep all header controls usable on narrow screens. */
@media(max-width:600px){
 .bobo-refresh:not(.member-layout) .header-inner{position:relative}
 .bobo-refresh:not(.member-layout) .header-inner>.theme-toggle{position:absolute;right:16px;top:12px;z-index:2}
 .bobo-refresh:not(.member-layout) .header-actions{grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;padding-top:42px}
 .bobo-refresh:not(.member-layout) .header-actions>.theme-toggle{position:absolute;right:16px;top:12px}
 .bobo-refresh.member-layout .header-inner{flex-wrap:wrap}.bobo-refresh.member-layout .header-actions{gap:5px;flex-wrap:wrap;justify-content:flex-end}.bobo-refresh.member-layout #logout-trigger{display:none}.theme-toggle{align-self:center}
}
@media(prefers-reduced-motion:reduce){.theme-thumb{transition:none}}

/* Keep native bank choices legible in both system and site themes. */

.profile-bank select,.profile-bank select option{color:#173457;background-color:#fff;color-scheme:light}
html[data-theme=dark] .profile-bank select,html[data-theme=dark] .profile-bank select option{color:#edf4ff;background-color:#111d2e;color-scheme:dark}

/* Dashboard shortcuts must use dark surfaces as well as light text. */
html[data-theme="dark"] .journey-card{background:#182335;border-color:#34445a;color:#e5edf8}
html[data-theme="dark"] .journey-card:hover,html[data-theme="dark"] .journey-card:focus-visible{background:#263b55;border-color:#7bb8ff}
html[data-theme="dark"] .journey-card strong{color:#e5edf8}
html[data-theme="dark"] .journey-card small{color:#c3d0e1}
html[data-theme="dark"] .journey-card>span{background:#263b55;color:#9bcfff}
html[data-theme="dark"] .journey-card>b{color:#9bcfff}