/* XinXin Aurora V15.1 · LIGHT / DARK / SYSTEM
 * One theme layer, after all legacy styles. No database or markup-specific theme flags.
 * Palette is semantic; site "style presets" do not determine color mode.
 */
:root[data-color-mode="light"] {
  color-scheme: light;
  --v15-bg:#f6f8fc;--v15-surface:#fff;--v15-ink:#1b2942;--v15-mute:#75839a;
  --v15-soft:#9aa9bc;--v15-line:#e3e9f3;--v15-line-strong:#d4deec;
  --v15-shadow:0 12px 36px #2238580a,0 2px 8px #22385808;
  --v15-shadow-lift:0 23px 60px #1f355618,0 5px 15px #1f35560c;
  --v14-bg:#f6f8fc;--v14-surface:#fff;--v14-surface-soft:#f8faff;
  --v14-ink:#1b2942;--v14-body:#455773;--v14-subtle:#78879e;
  --v14-edge:#e3e9f3;--v14-strong-edge:#d4deec;--v14-accent:#5269dc;
  --v14-accent-ink:#4157bd;--v14-accent-soft:#edf2ff;
  --bg:#f6f8fc;--panel:#fff;--panel-soft:#f8faff;--text:#1b2942;
  --text-2:#455773;--muted:#78879e;--line:#e3e9f3;--line-strong:#d4deec;
  --chart-ink:#2c415e;--chart-muted:#8797ad;--chart-line:#e6ecf5;
  --mode-bg:#f6f8fc;--mode-surface:#fff;--mode-panel:#fff;
  --mode-soft:#f3f6fc;--mode-strong:#eaf0fb;--mode-text:#1b2942;
  --mode-text-2:#435674;--mode-muted:#74849c;--mode-line:#e3e9f3;
  --mode-accent:#5269dc;--mode-accent-soft:#eaf0ff;--mode-hover:#edf2ff;
  --mode-nav:rgba(255,255,255,.91);
}
:root[data-color-mode="dark"] {
  color-scheme: dark;
  --v15-bg:#0e1624;--v15-surface:#192437;--v15-ink:#eff4ff;--v15-mute:#a6b5cd;
  --v15-soft:#8c9db6;--v15-line:#2a3850;--v15-line-strong:#394a65;
  --v15-shadow:0 12px 34px #00000020,0 2px 8px #0000001a;
  --v15-shadow-lift:0 22px 54px #00000055,0 5px 15px #00000035;
  --v14-bg:#0e1624;--v14-surface:#192437;--v14-surface-soft:#202d42;
  --v14-ink:#eff4ff;--v14-body:#b5c3d9;--v14-subtle:#9bacbf;
  --v14-edge:#2a3850;--v14-strong-edge:#394a65;--v14-accent:#91a6ff;
  --v14-accent-ink:#afbdff;--v14-accent-soft:#243557;
  --bg:#0e1624;--panel:#192437;--panel-soft:#202d42;--text:#eff4ff;
  --text-2:#b5c3d9;--muted:#9bacbf;--line:#2a3850;--line-strong:#394a65;
  --accent:#91a6ff;--accent-soft:#243557;
  --chart-primary:#91a6ff;--chart-secondary:#bca8ff;--chart-mint:#51d5c0;
  --chart-ink:#e8efff;--chart-muted:#abbad1;--chart-line:#303e55;
  --mode-bg:#0e1624;--mode-surface:#192437;--mode-panel:#1d2b40;
  --mode-soft:#202d42;--mode-strong:#2a3b56;--mode-text:#eff4ff;
  --mode-text-2:#becbe0;--mode-muted:#a6b5cd;--mode-line:#2a3850;
  --mode-accent:#9bacff;--mode-accent-soft:#293b63;--mode-hover:#2b3a55;
  --mode-nav:rgba(22,32,49,.94);
}
:root[data-color-mode]{background:var(--mode-bg)!important}
html[data-color-mode] body.app-body{background:var(--mode-bg)!important;color:var(--mode-text)!important}
html[data-color-mode] body.app-body .app-mesh{opacity:.10!important}
html[data-color-mode] body.app-body .v15-page-ambient span{opacity:.23}
html[data-color-mode="dark"] body.app-body .v15-page-ambient span{background:radial-gradient(circle,#304774 0%,transparent 70%);opacity:.25}
html[data-color-mode="dark"] body.app-body .v15-page-ambient span+span{background:radial-gradient(circle,#25285a,transparent 70%);opacity:.19}

/* Shared topbar appearance picker. Accessible, no UI library and no added dependencies. */
body.app-body .nav-utility{display:flex;align-items:center;gap:11px;min-width:0;margin-left:auto}
body.app-body .nav-utility .navlinks{margin-left:0!important;min-width:0;display:flex;align-items:center;gap:8px}
body.app-body .theme-mode-switch{position:relative;flex:0 0 auto;z-index:110}
html[data-color-mode] body.app-body button.theme-mode-trigger.ghost{
  display:inline-flex!important;align-items:center;justify-content:center;gap:9px!important;
  min-width:115px!important;min-height:39px!important;padding:8px 11px!important;
  background:var(--mode-soft)!important;color:var(--mode-text-2)!important;
  border:1px solid var(--mode-line)!important;border-radius:12px!important;
  box-shadow:none!important;font-size:11px!important;font-weight:720!important;white-space:nowrap;
}
body.app-body .theme-mode-trigger:hover{transform:none!important}
body.app-body .theme-mode-trigger .theme-mode-icon{width:17px;height:17px;flex:none}
body.app-body .theme-mode-trigger .theme-mode-chevron{opacity:.62;transition:transform .2s}
body.app-body .theme-mode-trigger[aria-expanded="true"] .theme-mode-chevron{transform:rotate(180deg)}
body.app-body .theme-mode-options[hidden]{display:none!important}
html[data-color-mode] body.app-body .theme-mode-options{
  position:absolute;right:0;top:calc(100% + 10px);width:247px;min-width:227px;
  display:grid;gap:4px;padding:8px;border-radius:16px;
  background:var(--mode-surface)!important;border:1px solid var(--mode-line)!important;
  box-shadow:0 22px 54px #111b352c,0 4px 14px #111b3518!important;
  z-index:300;
}
html[data-color-mode] body.app-body .theme-mode-options button.theme-mode-option.ghost{
  display:grid!important;grid-template-columns:26px minmax(0,1fr) 17px;align-items:center;
  gap:9px;width:100%;text-align:left;padding:9px 10px!important;
  color:var(--mode-text-2)!important;background:transparent!important;
  border:1px solid transparent!important;border-radius:11px!important;box-shadow:none!important;
  transform:none!important;
}
html[data-color-mode] body.app-body .theme-mode-options button:hover{background:var(--mode-soft)!important}
html[data-color-mode] body.app-body .theme-mode-options button[aria-pressed="true"]{
  background:var(--mode-accent-soft)!important;border-color:var(--mode-line)!important;
}
body.app-body .theme-mode-options .mode-choice-symbol{font-size:19px;text-align:center;line-height:1.1}
body.app-body .theme-mode-options button>span:nth-child(2){display:grid;gap:2px;min-width:0}
html[data-color-mode] body.app-body .theme-mode-options strong{font-size:12px;color:var(--mode-text)!important;font-weight:760}
html[data-color-mode] body.app-body .theme-mode-options small{font-size:10px;color:var(--mode-muted)!important;font-weight:500}
html[data-color-mode] body.app-body .theme-mode-options .mode-choice-check{color:var(--mode-accent)!important;opacity:0;font-weight:900}
html[data-color-mode] body.app-body .theme-mode-options [aria-pressed="true"] .mode-choice-check{opacity:1}
@media(max-width:850px){
  body.app-body .nav-utility{gap:6px}
  html[data-color-mode] body.app-body button.theme-mode-trigger.ghost{min-width:38px!important;width:38px!important;min-height:36px!important;padding:8px!important;gap:0!important}
  body.app-body .theme-mode-trigger>span,body.app-body .theme-mode-trigger .theme-mode-chevron{display:none}
  body.app-body .theme-mode-options{right:-4px}
}
@media(max-width:390px){body.app-body .nav-utility{gap:3px}}

/* All modes: unify core surface, shadows, type, field controls and semantic borders. */
html[data-color-mode] body.app-body :is(.card,.module-card,.workspace-hero-card,.chart-card,.metric-card,.overview-mini-grid>article){
  color:var(--mode-text)!important;border-color:var(--mode-line)!important;
  box-shadow:var(--v15-shadow)!important;
}
html[data-color-mode] body.app-body :is(.field>label,.subsection-heading h3,.module-heading h2,.section-heading h2){color:var(--mode-text)!important}
html[data-color-mode] body.app-body :is(.field small,.module-heading p,.section-heading p,.footer,.page-breadcrumb){color:var(--mode-muted)!important}
html[data-color-mode] body.app-body .footer{border-color:var(--mode-line)!important}
html[data-color-mode] body.app-body .nav.glass-nav{
  color:var(--mode-text)!important;background:var(--mode-nav)!important;
  border:1px solid var(--mode-line)!important;
  box-shadow:var(--v15-shadow)!important;
}
html[data-color-mode] body.app-body .brand-copy strong{color:var(--mode-text)!important}
html[data-color-mode] body.app-body .brand-copy b{color:var(--mode-muted)!important}
html[data-color-mode] body.app-body :is(.endpoint-mini,.topbar-status){background:var(--mode-soft)!important;border-color:var(--mode-line)!important;color:var(--mode-text-2)!important}
html[data-color-mode] body.app-body .endpoint-mini code{color:var(--mode-text-2)!important}
html[data-color-mode] body.app-body .navlinks>a.nav-text{color:var(--mode-text-2)!important}
html[data-color-mode] body.app-body :is(.btn.secondary,button.secondary,.ghost,.btn.ghost){background:var(--mode-soft)!important;border-color:var(--mode-line)!important;color:var(--mode-text-2)!important}
html[data-color-mode] body.app-body :is(.btn.secondary,button.secondary,.ghost,.btn.ghost):hover{background:var(--mode-hover)!important;border-color:var(--mode-line)!important;color:var(--mode-text)!important}
html[data-color-mode] body.app-body :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--mode-soft)!important;border-color:var(--mode-line)!important;color:var(--mode-text)!important;box-shadow:none!important}
html[data-color-mode] body.app-body :is(input,select,textarea):focus{background:var(--mode-surface)!important;border-color:var(--mode-accent)!important;box-shadow:0 0 0 4px #7788ed23!important}
html[data-color-mode] body.app-body :is(input,textarea)::placeholder{color:var(--mode-muted)!important}
html[data-color-mode] body.app-body :is(.badge,.v15-pass-tag){background:var(--mode-accent-soft)!important;color:var(--mode-accent)!important}
html[data-color-mode] body.app-body .workspace-hero-card h2{color:var(--mode-text)!important}
html[data-color-mode] body.app-body .workspace-hero-card p{color:var(--mode-muted)!important}
html[data-color-mode] body.app-body .workspace-hero-actions .pill-link{background:var(--mode-soft)!important;color:var(--mode-text-2)!important}
html[data-color-mode] body.app-body .notice{background:var(--mode-soft)!important;border-color:var(--mode-line)!important;color:var(--mode-text-2)!important}
html[data-color-mode] body.app-body :is(.responsive-table-wrap,.chart-data-panel,.v14-chart-data-scroll){background:var(--mode-surface)!important;border-color:var(--mode-line)!important}

/* LIGHT: No midnight/navy surfaces in the main UI. The 3D treatment stays subtle. */
html[data-color-mode="light"] body.app-body :is(.user-page-sidebar,.admin-sidebar-v6).console-sidebar{
  background:linear-gradient(165deg,#fff,#f9fbff 85%)!important;border:1px solid #e0e7f2!important;
  color:#263550!important;box-shadow:var(--v15-shadow)!important;
}
html[data-color-mode="light"] body.app-body .console-sidebar .side-title{color:#8b99ab!important}
html[data-color-mode="light"] body.app-body .console-sidebar .side-link{color:#4f617e!important}
html[data-color-mode="light"] body.app-body .console-sidebar .side-link:hover{background:#f1f5fc!important;color:#2d4471!important}
html[data-color-mode="light"] body.app-body .console-sidebar .side-link.active{background:#edf2ff!important;color:#405bc5!important;border-color:#dce5fa!important;box-shadow:inset 3px 0 0 #667ee8!important}
html[data-color-mode="light"] body.app-body .console-sidebar .side-link>span{background:#f0f3fa!important;color:#8294b1!important}
html[data-color-mode="light"] body.app-body .console-sidebar .side-link.active>span{background:#dfe7ff!important;color:#3d56c7!important}
html[data-color-mode="light"] body.app-body :is(.user-sidebar-card,.sidebar-brand-panel){background:#f6f8fd!important;color:#243653!important;border-color:#e3eaf5!important}
html[data-color-mode="light"] body.app-body :is(.user-sidebar-copy strong,.sidebar-brand-panel strong){color:#253754!important}
html[data-color-mode="light"] body.app-body :is(.user-sidebar-copy small,.sidebar-brand-panel small){color:#8b9cb1!important}
html[data-color-mode="light"] body.app-body .user-sidebar-balance{background:#eaf0fc!important;color:#435c9b!important}
html[data-color-mode="light"] body.app-body :is(.sidebar-endpoint,.user-sidebar-endpoint){background:#f7f9fe!important;border-color:#e1e8f4!important}
html[data-color-mode="light"] body.app-body .sidebar-endpoint :is(small,b,code){color:#526988!important}
html[data-color-mode="light"] body.app-body :is(.user-hero-v7,.admin-head-v6).desktop-command-head{
  background:radial-gradient(ellipse at 85% 0%,#cbd7fc8a,transparent 55%),linear-gradient(125deg,#ffffff 4%,#f4f7ff 60%,#edf4ff)!important;
  border-color:#dee7f4!important;color:#263654!important;box-shadow:var(--v15-shadow-lift)!important;
}
html[data-color-mode="light"] body.app-body :is(.user-hero-v7,.admin-head-v6):before{background:repeating-radial-gradient(ellipse at 70% 48%,transparent 0 29px,#5367ba0b 30px 31px,transparent 32px 50px)}
html[data-color-mode="light"] body.app-body :is(.user-hero-v7,.admin-head-v6):after{background:radial-gradient(circle,#cedafa9c,#e5ecfc55 56%,transparent 70%)}
html[data-color-mode="light"] body.app-body .desktop-command-head h1{color:#213452!important;text-shadow:none!important}
html[data-color-mode="light"] body.app-body .desktop-command-head .eyebrow{color:#5976cc!important}
html[data-color-mode="light"] body.app-body .desktop-command-head p{color:#637590!important}
html[data-color-mode="light"] body.app-body .v15-gradient-word{background:linear-gradient(95deg,#5067c8,#7770d3 58%,#158eaa)!important;background-clip:text!important;-webkit-background-clip:text!important}
html[data-color-mode="light"] body.app-body :is(.user-hero-chips,.admin-hero-chips)>span{background:#fff9!important;border-color:#d9e3f3!important;color:#5b6e90!important}
html[data-color-mode="light"] body.app-body :is(.user-hero-panels,.admin-hero-cards)>article{background:linear-gradient(160deg,#ffffffd9,#f3f6fd)!important;border-color:#dce5f3!important;box-shadow:inset 0 1px 0 #fff!important}
html[data-color-mode="light"] body.app-body :is(.user-hero-panels,.admin-hero-cards)>article strong{color:#293d61!important}
html[data-color-mode="light"] body.app-body :is(.user-hero-panels,.admin-hero-cards)>article :is(span,small){color:#7e90aa!important}
html[data-color-mode="light"] body.app-body .overview-story-card.feature-panel{
  background:linear-gradient(135deg,#eef4ff,#f9fbff)!important;border-color:#dae4f6!important;
  box-shadow:var(--v15-shadow)!important;
}
html[data-color-mode="light"] body.app-body .overview-story-card.feature-panel :is(h3,b){color:#25385b!important}
html[data-color-mode="light"] body.app-body .overview-story-card.feature-panel :is(p,span){color:#637893!important}
html[data-color-mode="light"] body.app-body .relay-hero.aurora-home-hero{
  background:radial-gradient(circle at 78% 10%,#cbd9fcaa,transparent 47%),radial-gradient(circle at 8% 95%,#cdece652,transparent 50%),linear-gradient(118deg,#ffffff 0%,#f6f9ff 60%,#edf3ff)!important;
  border:1px solid #dce5f2!important;box-shadow:0 25px 62px #22375c1a,inset 0 1px 0 #fff!important;
}
html[data-color-mode="light"] body.app-body .relay-hero:before{background-image:linear-gradient(#5071ab09 1px,transparent 1px),linear-gradient(90deg,#5071ab09 1px,transparent 1px)}
html[data-color-mode="light"] body.app-body .relay-hero:after{border-color:#5b78b216;box-shadow:0 0 0 72px #586fb006,0 0 0 146px #586fb007,0 0 0 218px #586fb005}
html[data-color-mode="light"] body.app-body .v15-hero-overline{background:#ffffffb8;border-color:#dbe6f6;color:#536c9a}
html[data-color-mode="light"] body.app-body .v15-hero-overline>span:last-child{color:#159b9b}
html[data-color-mode="light"] body.app-body .relay-hero .eyebrow{color:#5b77d3!important}
html[data-color-mode="light"] body.app-body .relay-hero .hero-copy h1{color:#1f3151!important}
html[data-color-mode="light"] body.app-body .relay-hero .hero-copy>p{color:#5e708d!important}
html[data-color-mode="light"] body.app-body .relay-hero .endpoint-copy-row{background:#ffffffbb!important;border-color:#dbe5f2!important;color:#6c7f9a!important}
html[data-color-mode="light"] body.app-body .relay-hero .endpoint-copy-row code{color:#3d5792!important}
html[data-color-mode="light"] body.app-body .relay-hero .endpoint-copy-row>span{color:#7786a0!important}
html[data-color-mode="light"] body.app-body .relay-hero .endpoint-copy-row button{background:#eff4ff!important;border-color:#dce6fa!important;color:#425c97!important}
html[data-color-mode="light"] body.app-body .relay-hero .hero-actions .btn.secondary{background:#fff!important;border-color:#d7e1f1!important;color:#425d86!important;box-shadow:none!important}
html[data-color-mode="light"] body.app-body .relay-hero .benefit-banner{background:#fff6e6!important;border-color:#efddb8!important;color:#92673e!important}
html[data-color-mode="light"] body.app-body .relay-hero .hero-stat-ribbon article{background:#ffffffd6!important;border-color:#dee7f2!important}
html[data-color-mode="light"] body.app-body .relay-hero .hero-stat-ribbon article small{color:#8190aa!important}
html[data-color-mode="light"] body.app-body .relay-hero .hero-stat-ribbon article strong{color:#273a59!important}
html[data-color-mode="light"] body.app-body .relay-hero>.relay-console-preview{
  background:linear-gradient(150deg,#ffffffec,#edf4ffdf 60%,#e6ecfcdd)!important;
  box-shadow:0 28px 62px #33517b2c,inset 0 1px 0 #fff,0 0 0 1px #cad8f1!important;
}
html[data-color-mode="light"] body.app-body .v15-preview-eyebrow{color:#526dac!important}
html[data-color-mode="light"] body.app-body .v15-preview-eyebrow span{color:#29a5a6!important}
html[data-color-mode="light"] body.app-body .relay-console-preview :is(.preview-head,.preview-request,.preview-nodes article){
  background:#fffafa!important;background-color:#ffffffd9!important;border-color:#dce6f5!important;box-shadow:0 4px 14px #33466b0a!important;
}
html[data-color-mode="light"] body.app-body .relay-console-preview .preview-head :is(b,span){color:#2d4368!important}
html[data-color-mode="light"] body.app-body .relay-console-preview .preview-head .badge{background:#e1f7f0!important;color:#168a73!important}
html[data-color-mode="light"] body.app-body .relay-console-preview .preview-request span{color:#597bc4!important}
html[data-color-mode="light"] body.app-body .relay-console-preview .preview-request strong{color:#283d5e!important}
html[data-color-mode="light"] body.app-body .relay-console-preview .preview-request small{color:#8a9ab1!important}
html[data-color-mode="light"] body.app-body .relay-console-preview .preview-nodes span{color:#1c9c96!important}
html[data-color-mode="light"] body.app-body .relay-console-preview .preview-nodes strong{color:#2b4062!important}
html[data-color-mode="light"] body.app-body .relay-console-preview .preview-nodes small{color:#879bb7!important}
html[data-color-mode="light"] body.app-body .relay-console-preview .flow-line{color:#627ea8!important}
html[data-color-mode="light"] body.app-body .relay-console-preview .hero-mini-stats{border-color:#cddbef!important}
html[data-color-mode="light"] body.app-body .relay-console-preview .hero-mini-stats span{color:#7f8fa9!important}
html[data-color-mode="light"] body.app-body .relay-console-preview .hero-mini-stats strong{color:#304564!important}
html[data-color-mode="light"] body.app-body .v15-loyalty-hero{
  background:radial-gradient(circle at 80% 4%,#c8d7fd9c,transparent 49%),linear-gradient(115deg,#ffffff 1%,#f5f8ff 65%,#edf3ff)!important;
  border-color:#d9e3f2!important;box-shadow:var(--v15-shadow-lift)!important;
}
html[data-color-mode="light"] body.app-body .v15-loyalty-hero:after{background:repeating-radial-gradient(ellipse at 83% 44%,transparent 0 27px,#6a80ba0a 28px 29px,transparent 30px 49px)}
html[data-color-mode="light"] body.app-body :is(.v15-overline,.v15-sparkle){color:#677bc4!important}
html[data-color-mode="light"] body.app-body .v15-loyalty-copy h2{color:#203659!important}
html[data-color-mode="light"] body.app-body .v15-loyalty-copy>p{color:#60738e!important}
html[data-color-mode="light"] body.app-body .v15-hero-chips span{background:#ffffffb0!important;border-color:#dce5f3!important;color:#5a7194!important}
html[data-color-mode="light"] body.app-body .v15-jewel-inner{
  background:linear-gradient(148deg,#ffffff,#eef3ff 65%,#e9edff)!important;
  border-color:#d5dffc!important;box-shadow:0 18px 38px #283c6d29,inset 0 1px 0 #fff!important;
}
html[data-color-mode="light"] body.app-body .v15-jewel-inner span{color:#6076a8!important}
html[data-color-mode="light"] body.app-body .v15-jewel-inner strong{color:#3e57b0!important;text-shadow:none!important}
html[data-color-mode="light"] body.app-body .v15-jewel-inner small{color:#1b938e!important}
html[data-color-mode="light"] body.app-body .v15-membership-card{
  background:radial-gradient(circle at 95% 10%,#c1d3fd81,transparent 45%),linear-gradient(120deg,#f0f5ff,#e9f1fc)!important;
  border-color:#d8e4f7!important;color:#263955!important;box-shadow:0 8px 18px #20365312!important;
}
html[data-color-mode="light"] body.app-body .v15-membership-card h3{color:#2c4165!important}
html[data-color-mode="light"] body.app-body .v15-membership-card :is(p,small){color:#667c9f!important}
html[data-color-mode="light"] body.app-body .v15-membership-card .v15-tier-badge{color:#4968b4!important;background:#ffffffca!important;border-color:#d5e0f4!important}
html[data-color-mode="light"] body.app-body .v15-card-corner{color:#5674ae08!important}

/* DARK: surfaces and content components share one dark hierarchy. */
html[data-color-mode="dark"] body.app-body :is(.card,.module-card,.workspace-hero-card,.metric-card,.metric-card.featured,.chart-grid .chart-card,.overview-mini-grid>article,.home-pool-card,.public-model-card,.quick-action,.v15-home-proof,.v15-reward-snapshot>div,.v15-shop-tile,.v15-empty-shop){
  background:var(--mode-surface)!important;border-color:var(--mode-line)!important;
  color:var(--mode-text)!important;box-shadow:var(--v15-shadow)!important;
}
html[data-color-mode="dark"] body.app-body :is(.workspace-hero-card.user-workspace-hero,.workspace-hero-card.admin-workspace-hero,.metric-card.featured){
  background:linear-gradient(130deg,#1b2940,#192539)!important;border-color:#30405b!important;
}
html[data-color-mode="dark"] body.app-body :is(.user-page-sidebar,.admin-sidebar-v6).console-sidebar{
  background:linear-gradient(160deg,#192438,#141f30)!important;border-color:var(--mode-line)!important;box-shadow:var(--v15-shadow)!important;
}
html[data-color-mode="dark"] body.app-body .console-sidebar .side-link{color:#b1bfd6!important}
html[data-color-mode="dark"] body.app-body .console-sidebar .side-link:hover{background:#2a3b56!important;color:#f5f7ff!important}
html[data-color-mode="dark"] body.app-body .console-sidebar .side-link.active{background:#34466a!important;border-color:#546fa2!important;color:#f8faff!important}
html[data-color-mode="dark"] body.app-body .console-sidebar .side-link>span{background:#2b3b52!important;color:#a9bbd8!important}
html[data-color-mode="dark"] body.app-body :is(.user-sidebar-card,.sidebar-brand-panel,.sidebar-endpoint,.user-sidebar-endpoint){background:#223047!important;border-color:#33445f!important}
html[data-color-mode="dark"] body.app-body :is(.user-sidebar-copy strong,.sidebar-brand-panel strong){color:#f1f5ff!important}
html[data-color-mode="dark"] body.app-body .user-sidebar-balance{background:#2b3c56!important;color:#d4e0ff!important}
html[data-color-mode="dark"] body.app-body .workspace-hero-actions .pill-link{background:#24344d!important}
html[data-color-mode="dark"] body.app-body :is(.user-hero-v7,.admin-head-v6).desktop-command-head{
  background:radial-gradient(ellipse at 85% 1%,#4c5f9e53,transparent 52%),linear-gradient(115deg,#17243a,#20314b 65%,#1a2940)!important;
  border-color:#354863!important;color:#eef4ff!important;
}
html[data-color-mode="dark"] body.app-body :is(.user-hero-panels,.admin-hero-cards)>article{background:#ffffff0c!important;border-color:#ffffff21!important}
html[data-color-mode="dark"] body.app-body .desktop-command-head h1{color:#f4f7ff!important}
html[data-color-mode="dark"] body.app-body .desktop-command-head p{color:#b6c7e0!important}
html[data-color-mode="dark"] body.app-body :is(.user-hero-chips,.admin-hero-chips)>span{background:#ffffff0e!important;border-color:#ffffff21!important;color:#c3d0e6!important}
html[data-color-mode="dark"] body.app-body .metric-card strong{color:#f1f5ff!important}
html[data-color-mode="dark"] body.app-body :is(.metric-card small,.metric-card .metric-top){color:#acbbd0!important}
html[data-color-mode="dark"] body.app-body .metric-card .metric-top i{background:#293b58!important;color:#b6c5ff!important}
html[data-color-mode="dark"] body.app-body .metric-card:hover,html[data-color-mode="dark"] body.app-body .chart-card:hover{border-color:#51658b!important}
html[data-color-mode="dark"] body.app-body .chart-grid .chart-card{background:#192437!important;border-color:#2e3e56!important}
html[data-color-mode="dark"] body.app-body :is(.chart-title h2,.chart-title h3,.aurora-chart-meta b){color:#e8f0ff!important}
html[data-color-mode="dark"] body.app-body .chart-title span:not(.badge){color:#a2b1ca!important}
html[data-color-mode="dark"] body.app-body :is(.chart-host,.chart-host.donut-host){background:linear-gradient(165deg,#1b2940,#172337)!important;border-color:#31425d!important}
html[data-color-mode="dark"] body.app-body .aurora-axis-label{fill:#a7b7ce!important}
html[data-color-mode="dark"] body.app-body .aurora-gridline{stroke:#35445b!important}
html[data-color-mode="dark"] body.app-body .aurora-gridline.is-baseline{stroke:#435572!important}
html[data-color-mode="dark"] body.app-body .aurora-value-label{fill:#c9d7e9!important}
html[data-color-mode="dark"] body.app-body .aurora-bar-track{fill:#2b3a55!important}
html[data-color-mode="dark"] body.app-body .aurora-peak-ring{fill:#1e2e45!important}
html[data-color-mode="dark"] body.app-body .aurora-peak-label{fill:#b3c2ff!important;stroke:#1b2940!important}
html[data-color-mode="dark"] body.app-body .aurora-hover-dot{fill:#1e2e45!important}
html[data-color-mode="dark"] body.app-body .aurora-donut-track{stroke:#30425a!important}
html[data-color-mode="dark"] body.app-body .aurora-donut-total{fill:#f0f4ff!important}
html[data-color-mode="dark"] body.app-body .aurora-donut-caption{fill:#a9bad2!important}
html[data-color-mode="dark"] body.app-body .aurora-donut-legend-row{color:#b5c3d9!important}
html[data-color-mode="dark"] body.app-body .aurora-donut-legend-row:hover{background:#2a3c54!important}
html[data-color-mode="dark"] body.app-body .aurora-donut-legend-row strong{color:#e7eefc!important}
html[data-color-mode="dark"] body.app-body :is(.aurora-chart-meta>span,.aurora-chart-empty,.v14-chart-data-scroll,.chart-data-panel){background:#1e2b40!important;border-color:#31425b!important;color:#b4c3d8!important}
html[data-color-mode="dark"] body.app-body :is(.v14-chart-tool,.chart-utility button,.range-switcher,.range-switcher>a,.aurora-chart-tooltip){border-color:#3c5072!important}
html[data-color-mode="dark"] body.app-body :is(.v14-chart-tool,.chart-utility button,.range-switcher){background:#24334b!important;color:#b1c2dd!important}
html[data-color-mode="dark"] body.app-body :is(.v14-chart-tool[aria-pressed=true],.v14-chart-tool[aria-expanded=true],.range-switcher>a.active){background:#344970!important;color:#d2dfff!important;border-color:#526897!important}
html[data-color-mode="dark"] body.app-body .range-switcher>a{color:#b9c8de!important}
html[data-color-mode="dark"] body.app-body .aurora-chart-tooltip{background:#101a2aeF!important;color:#f1f6ff!important}
html[data-color-mode="dark"] body.app-body :is(.v14-chart-table,.chart-data-panel table){background:#1c293d!important;color:#d4e0f1!important}
html[data-color-mode="dark"] body.app-body :is(.v14-chart-table thead th,.chart-data-panel th){background:#263650!important;color:#ced8e9!important}
html[data-color-mode="dark"] body.app-body :is(.v14-chart-table :is(th,td),.chart-data-panel :is(th,td)){border-color:#32435c!important;color:#c5d4e8!important}
html[data-color-mode="dark"] body.app-body :is(.v14-chart-table tr:hover :is(th,td),.chart-data-panel tr:hover td){background:#293b58!important}
html[data-color-mode="dark"] body.app-body .overview-story-card.feature-panel{background:linear-gradient(130deg,#1d2d46,#263950)!important;border-color:#3a4e70!important;box-shadow:var(--v15-shadow)!important}
html[data-color-mode="dark"] body.app-body .overview-story-card.feature-panel :is(h3,b){color:#f1f4ff!important}
html[data-color-mode="dark"] body.app-body .overview-story-card.feature-panel :is(p,span){color:#b8c9e2!important}
html[data-color-mode="dark"] body.app-body .overview-mini-grid>article strong{color:#e6edff!important}
html[data-color-mode="dark"] body.app-body .responsive-table thead{background:#26354d!important}
html[data-color-mode="dark"] body.app-body .responsive-table tbody tr:nth-child(even){background:#1b2940!important}
html[data-color-mode="dark"] body.app-body .responsive-table tr:hover{background:#283a55!important}
html[data-color-mode="dark"] body.app-body :is(.responsive-table th,.responsive-table td){color:#c5d3e8!important;border-color:#34445f!important}
html[data-color-mode="dark"] body.app-body .table-enhancer input{background:#24334a!important}
html[data-color-mode="dark"] body.app-body .relay-hero.aurora-home-hero{
  background:radial-gradient(circle at 77% 24%,#465dab63,transparent 38%),radial-gradient(circle at 18% 98%,#1b548256,transparent 55%),linear-gradient(125deg,#131d30,#202f4c 62%,#18263e)!important;
  border-color:#374a68!important;box-shadow:0 30px 76px #00000045,inset 0 1px 0 #ffffff21!important;
}
html[data-color-mode="dark"] body.app-body .relay-hero>.relay-console-preview{background:linear-gradient(155deg,#ffffff25,#9eaffb12 50%,#ffffff09)!important;border-color:#ffffff24!important}
html[data-color-mode="dark"] body.app-body .relay-console-preview :is(.preview-head,.preview-request,.preview-nodes article){background:#182943bb!important;border-color:#ffffff22!important}
html[data-color-mode="dark"] body.app-body :is(.v15-home-proof,.v15-home-proof>div){border-color:#32435e!important}
html[data-color-mode="dark"] body.app-body .v15-home-proof>div>span{background:#293b5a!important;color:#bdc9ff!important}
html[data-color-mode="dark"] body.app-body .v15-home-proof strong{color:#e9f0ff!important}
html[data-color-mode="dark"] body.app-body .v15-home-proof small{color:#a8b8d0!important}
html[data-color-mode="dark"] body.app-body .v15-loyalty-hero{
  background:radial-gradient(circle at 88% 14%,#5368a64d,transparent 46%),linear-gradient(120deg,#1a283d,#21324f)!important;
  border-color:#354966!important;box-shadow:var(--v15-shadow-lift)!important;
}
html[data-color-mode="dark"] body.app-body .v15-jewel-inner{background:linear-gradient(145deg,#6076ad7b,#3d4f7d50)!important;border-color:#8aa2dd5c!important}
html[data-color-mode="dark"] body.app-body .v15-reward-snapshot>div{background:#1c2a40!important;border-color:#31435f!important}
html[data-color-mode="dark"] body.app-body .v15-reward-snapshot>div strong{color:#edf3ff!important}
html[data-color-mode="dark"] body.app-body .v15-reward-snapshot>div :is(small,span:nth-child(2)){color:#abbcd5!important}
html[data-color-mode="dark"] body.app-body .v15-snapshot-icon{background:#2b3e60!important;border-color:#405883!important;color:#b5c5ff!important}
html[data-color-mode="dark"] body.app-body .v15-membership-card{background:linear-gradient(130deg,#263a56,#304665)!important;border-color:#3f587c!important}
html[data-color-mode="dark"] body.app-body .v15-checkin-medal,html[data-color-mode="dark"] body.app-body .v15-privilege-icon{background:#263b58!important;color:#b4c4ff!important;border-color:#354d70!important}
html[data-color-mode="dark"] body.app-body .v15-panel-heading h2,html[data-color-mode="dark"] body.app-body .v15-checkin-score>div strong{color:#f0f5ff!important}
html[data-color-mode="dark"] body.app-body .v15-panel-heading p{color:#aabbd5!important}
html[data-color-mode="dark"] body.app-body .v15-week-day{background:#202f45!important;color:#b0bfd6!important;border-color:#30415d!important}
html[data-color-mode="dark"] body.app-body .v15-week-day b{background:#2b3d59!important;color:#afbdd5!important}
html[data-color-mode="dark"] body.app-body .v15-week-day small{color:#a0b3cb!important}
html[data-color-mode="dark"] body.app-body .v15-week-day.is-complete{background:#1d3b3c!important;border-color:#2c625b!important;color:#8eedd6!important}
html[data-color-mode="dark"] body.app-body .v15-week-day.is-complete b{background:#285950!important;color:#a8f3da!important}
html[data-color-mode="dark"] body.app-body .v15-week-day.is-today{background:#2b3e64!important;border-color:#6078bb!important;color:#c2d0ff!important}
html[data-color-mode="dark"] body.app-body .v15-week-day.is-today b{background:#6278d8!important;color:#fff!important}
html[data-color-mode="dark"] body.app-body .v15-mini-pill{background:#342d49!important;color:#dfc5f2!important;border-color:#504361!important}
html[data-color-mode="dark"] body.app-body :is(.v15-subheader strong,.v15-pass-item b){color:#d9e4f4!important}
html[data-color-mode="dark"] body.app-body .v15-pass-item{border-color:#31415b!important}
html[data-color-mode="dark"] body.app-body :is(.v15-voucher-panel,.v15-grant-points,.v15-product-editor,.v15-order-delivery){background:#1e2b40!important;border-color:#31415e!important}
html[data-color-mode="dark"] body.app-body :is(.v15-voucher-head h2,.v15-section-head h2,.v15-subheader strong){color:#edf3ff!important}
html[data-color-mode="dark"] body.app-body :is(.v15-voucher-head p,.v15-section-head p,.v15-voucher-tags span){color:#a9b8d0!important}
html[data-color-mode="dark"] body.app-body .v15-voucher-mark{background:#2b3e61!important;color:#b7c6ff!important;border-color:#465b81!important}
html[data-color-mode="dark"] body.app-body .v15-code-form input{background:#1a273c!important;color:#edf3ff!important;border-color:#364968!important}
html[data-color-mode="dark"] body.app-body .v15-point-counter{background:#23334d!important;border-color:#3a4b6b!important;color:#b1c3ff!important}
html[data-color-mode="dark"] body.app-body .v15-point-counter strong{color:#d5dfff!important}
html[data-color-mode="dark"] body.app-body .v15-shop-tile{background:#192437!important;border-color:#2f405a!important}
html[data-color-mode="dark"] body.app-body .v15-shop-tile:hover{border-color:#536da1!important}
html[data-color-mode="dark"] body.app-body .v15-product-art{background:#23344e!important;border-color:#334760!important}
html[data-color-mode="dark"] body.app-body .v15-shop-tile:nth-child(4n+1) .v15-product-art{background:linear-gradient(140deg,#283c73,#202c50)!important}
html[data-color-mode="dark"] body.app-body .v15-shop-tile:nth-child(4n+2) .v15-product-art{background:linear-gradient(140deg,#174d52,#1e3d48)!important}
html[data-color-mode="dark"] body.app-body .v15-shop-tile:nth-child(4n+3) .v15-product-art{background:linear-gradient(140deg,#523447,#362943)!important}
html[data-color-mode="dark"] body.app-body .v15-shop-tile:nth-child(4n+4) .v15-product-art{background:linear-gradient(140deg,#534b32,#3a3640)!important}
html[data-color-mode="dark"] body.app-body .v15-product-content{background:#192437!important}
html[data-color-mode="dark"] body.app-body :is(.v15-product-content h3,.v15-product-bottom>div strong,.v15-ledger-row strong,.v15-order strong,.v15-empty-shop h3){color:#f0f4ff!important}
html[data-color-mode="dark"] body.app-body :is(.v15-product-content p,.v15-ledger-row small,.v15-order small,.v15-empty-shop p){color:#a9b9d0!important}
html[data-color-mode="dark"] body.app-body .v15-product-bottom{border-color:#30425d!important}
html[data-color-mode="dark"] body.app-body .v15-product-bottom button{background:#2b3c62!important;border-color:#455987!important;color:#c9d5ff!important}
html[data-color-mode="dark"] body.app-body .v15-product-bottom button:hover:not(:disabled){background:#3a507e!important}
html[data-color-mode="dark"] body.app-body .v15-product-bottom button:disabled{background:#263348!important;border-color:#344054!important;color:#899bb6!important}
html[data-color-mode="dark"] body.app-body :is(.v15-ledger-row,.v15-order>summary,.v15-order[open]>summary){border-color:#34445c!important}
html[data-color-mode="dark"] body.app-body .v15-ledger-symbol{background:#2c3d61!important;color:#bbcaff!important}
html[data-color-mode="dark"] body.app-body .v15-order-delivery p{color:#d8e2f4!important}
html[data-color-mode="dark"] body.app-body .v15-empty-shop{background:#192437!important;border-color:#364963!important}
/* Compatibility with legacy modules, dialogs, preview tiles and admin settings. */
html[data-color-mode="dark"] body.app-body :is(.settings-form,.settings-card,.setting-card,.admin-polished-form,.appearance-editor,.appearance-workbench,.operation-card,.shop-product,.benefit-card,.key-item,.key-reveal,.page-key-reveal,.account-card,.record-card,.module-panel,.topup-card,.price-card,.flow-card,.info-card,.stat-card,.mini-stat,.quick-stat,.feature-strip>div,.v5-feature-strip>div){
  background-color:#192437!important;border-color:#2c3c55!important;color:#e8effd!important;
}
html[data-color-mode="dark"] body.app-body :is(.module-section h2,.module-section h3,.module-section h4,.module-card h3,.module-card h4,.settings-form label,.admin-polished-form label,.setting-card label,.card h2,.card h3,.card h4,.module-heading h2){color:#edf3ff!important}
html[data-color-mode="dark"] body.app-body :is(.module-section p,.module-section small,.module-card p,.module-card small,.card p,.card small){color:#aabbcf!important}
html[data-color-mode="dark"] body.app-body :is(.tabbar,.tabs,.segmented-control,.filter-panel,.info-strip,.toolbar,.stats-panel,.model-row,.pool-row,.item-row,.setting-row,.list-item,.status-item,.help-box,.panel-soft){background-color:#202d42!important;border-color:#35445d!important;color:#c7d5e9!important}
html[data-color-mode="dark"] body.app-body :is(.auth-card,.auth-panel,.login-card,.register-card,.modal-card,.announcement-modal-card,.announcement-modal-item,.announcement-rail,.announcement-preview-item,.chart-data-panel,.appearance-preview,.theme-preview-card){background:#1c293c!important;border-color:#34465f!important;color:#e8f0fe!important}
html[data-color-mode="dark"] body.app-body :is(.announcement-modal-card p,.announcement-preview-item span,.announcement-modal-item p){color:#bac8da!important}
html[data-color-mode="dark"] body.app-body :is(.announcement-modal-card h2,.announcement-preview-item b,.announcement-modal-item strong){color:#f2f5ff!important}
html[data-color-mode="dark"] body.app-body :is(.announcement-rail-label,.announcement-rail-v1110){background:#1b283a!important;border-color:#35465f!important;color:#c8d6ed!important}
html[data-color-mode="dark"] body.app-body :is(.menu,.dropdown,.popover,.dropdown-menu,.subnav,.profile-card,.model-card,.guide-card,.announcement-all-button){background-color:#202e44!important;border-color:#354761!important;color:#e4ebfa!important}
html[data-color-mode="dark"] body.app-body :is(hr,.divider){border-color:#34445d!important}
html[data-color-mode="dark"] body.app-body :is(code,pre){color:#cfdbf9}
html[data-color-mode="dark"] body.app-body :is(.tag,.chip,.pill){background-color:#293a56!important;color:#cbd8ed!important;border-color:#3b4f70!important}
html[data-color-mode="dark"] body.app-body :is(.mobile-console-head,.premium-mobile-head){background:#1b2b42!important;border-color:#374964!important;color:#edf3ff!important}
html[data-color-mode="dark"] body.app-body :is(.mobile-console-head strong,.mobile-console-head b){color:#f5f7ff!important}
html[data-color-mode="dark"] body.app-body ::selection{background:#384d95;color:#fff}
@media(max-width:820px){
  html[data-color-mode="light"] body.app-body .console-sidebar .side-link.active{box-shadow:inset 0 -3px 0 #667ee8!important}
  html[data-color-mode="dark"] body.app-body .console-sidebar .side-link.active{box-shadow:inset 0 -3px 0 #9bacff!important}
}
@media(prefers-reduced-motion:reduce){
  body.app-body .theme-mode-switch *,body.app-body .theme-mode-switch *::before,body.app-body .theme-mode-switch *::after{transition:none!important;animation:none!important}
}

/* Dark mode: legacy large white section wrappers need a surface, not a white sheet. */
html[data-color-mode="dark"] body.app-body :is(.module-section,.public-section,.feature-strip,.v5-feature-strip,.relay-capabilities,.home-api-card,.relay-api-card){
  background:#172235!important;border:1px solid #2b3b54!important;color:#ebf1ff!important;
  box-shadow:var(--v15-shadow)!important;
}
html[data-color-mode="dark"] body.app-body .module-section:before,
html[data-color-mode="dark"] body.app-body .public-section:before{border-color:#31435c!important}
html[data-color-mode="dark"] body.app-body :is(.public-section h2,.public-section h3,.public-section strong,.feature-strip strong,.home-api-card h2,.home-api-card strong,.home-pool-card h3,.public-model-card h3){color:#eff4ff!important}
html[data-color-mode="dark"] body.app-body :is(.public-section p,.public-section small,.feature-strip small,.home-api-card p,.home-pool-card p,.public-model-card p){color:#adbfda!important}
html[data-color-mode="dark"] body.app-body :is(.home-pool-model-list>div,.public-price>span,.feature-strip>div,.v5-feature-strip>div,.model-public-grid .empty,.public-section .empty){background:#1e2d43!important;border-color:#30435d!important;color:#d9e4f6!important}
html[data-color-mode="dark"] body.app-body :is(.home-pool-model-list code,.home-api-card code,.public-price strong,.public-section .section-count){color:#b8caff!important}
html[data-color-mode="dark"] body.app-body :is(.feature-strip>div>span,.feature-strip>div strong,.feature-strip>div small){color:#d0dff5!important}
html[data-color-mode="dark"] body.app-body :is(.public-model-card .model-card-head,.image-tier-public,.model-type-icon,.home-pool-card header,.public-price){border-color:#374963!important}
html[data-color-mode="dark"] body.app-body :is(.home-pool-model-list>div span,.public-price>span,.public-model-card code){color:#b5c3da!important}
html[data-color-mode="dark"] body.app-body :is(.theme-preview-card,.theme-preset-showcase,.theme-choice-grid,.appearance-workbench .appearance-preview){background:#202e44!important;color:#e9f1ff!important;border-color:#394e6c!important}
/* High-specificity legacy bright pills and empty states. */
html[data-color-mode="dark"] body.app-body .module-heading.range-heading .range-switcher,
html[data-color-mode="dark"] body.app-body .range-heading .range-switcher{
  background:#24334b!important;border:1px solid #3a4d6a!important;color:#c5d3ea!important;
}
html[data-color-mode="dark"] body.app-body .range-heading .range-switcher>a{
  color:#b6c7dd!important;background:transparent!important;border-color:transparent!important;
}
html[data-color-mode="dark"] body.app-body .range-heading .range-switcher>a.active{
  color:#ebf1ff!important;background:#415fa9!important;border-color:#607cc4!important;box-shadow:none!important;
}
html[data-color-mode="dark"] body.app-body :is(.section-count,.empty,.empty-state,.empty-card,.v15-empty-shop,.v15-history-grid .empty,.v15-history-grid .empty-state,.model-public-grid .empty,.public-section .empty){
  background:#202e45!important;border-color:#364a66!important;color:#b5c6de!important;
}
html[data-color-mode="dark"] body.app-body :is(.empty p,.empty-state p,.v15-history-grid .empty,.v15-history-grid .empty-state){color:#b5c6de!important}
html[data-color-mode="dark"] body.app-body :is(.section-count,.chart-title .badge,.badge.image-badge){color:#c0ceff!important}
/* The old admin stylesheet forced white metrics into the dark business signal panel. */
html[data-color-mode="dark"] body.admin-surface .overview-story-card.feature-panel .story-inline-metrics>span{
  background:#2b3b54!important;border:1px solid #3c506d!important;color:#dce8fb!important;
}
html[data-color-mode="dark"] body.admin-surface .overview-story-card.feature-panel .story-inline-metrics>span small{color:#aebed5!important}
html[data-color-mode="dark"] body.admin-surface .overview-story-card.feature-panel .story-inline-metrics>span b{color:#f0f5ff!important}
html[data-color-mode="dark"] body.app-body .model-public-grid .section-count,
html[data-color-mode="dark"] body.app-body .public-section .section-count{
  background:#293852!important;border-color:#3e516d!important;color:#c8d8f5!important;
}
