/* Fluent 浅色（暖白玫红）· 仅浅色生效 */
html:root[data-theme="light"] { --purple:#b3406e;--purple-dark:#8e2f57;--violet:#b3406e;--violet-wash:#fbe6ee;--lilac:#f3dde6;--lime:#fbe6ee;--ink:#2a211d;--paper:#faf7f2;--white:#ffffff;--line:#eadfd8;--muted:#7d6f68;--ink-soft:#57443c; }
html:root[data-theme="light"] body{background: #faf7f2 !important; color: #2a211d !important}
html:root[data-theme="light"] body{font-weight: 400 !important}
html:root[data-theme="light"] header, html:root[data-theme="light"] .topbar, html:root[data-theme="light"] .admin-top, html:root[data-theme="light"] .app-header, html:root[data-theme="light"] .site-head, html:root[data-theme="light"] footer, html:root[data-theme="light"] .site-foot{background: #fffdf9 !important;
  border-bottom: 1px solid #eadfd8 !important;
  box-shadow: none !important}
html:root[data-theme="light"] .admin-nav, html:root[data-theme="light"] .side-nav, html:root[data-theme="light"] .nav{background: #ffffff !important;
  border: 1px solid #eadfd8 !important;
  border-radius: 12px !important;
  padding: 10px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.04) !important}
html:root[data-theme="light"] .admin-nav a, html:root[data-theme="light"] .side-nav a, html:root[data-theme="light"] .nav a{border-radius: 8px !important;
  font-weight: 600 !important;
  color: #4a3b34 !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
  border: 0 !important;
  transition: background .15s ease !important}
html:root[data-theme="light"] .admin-nav a:hover, html:root[data-theme="light"] .side-nav a:hover{background: #f5ece6 !important}
html:root[data-theme="light"] .admin-nav a.on, html:root[data-theme="light"] .side-nav a.on, html:root[data-theme="light"] .nav a.on{background: #fbe6ee !important;
  color: #b3406e !important;
  box-shadow: none !important}
html:root[data-theme="light"] .dash-kpi, html:root[data-theme="light"] .dash-chart-card, html:root[data-theme="light"] .cs-col, html:root[data-theme="light"] .cs-card, html:root[data-theme="light"] .panel, html:root[data-theme="light"] .card, html:root[data-theme="light"] .stat, html:root[data-theme="light"] .dp-card, html:root[data-theme="light"] .dp-list .row, html:root[data-theme="light"] .rkcard, html:root[data-theme="light"] .wallet-hero{background: #ffffff !important;
  border: 1px solid #eadfd8 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(15,15,25,.06) !important}
html:root[data-theme="light"] .dash-kpi, html:root[data-theme="light"] .dash-chart-card{padding: 20px 22px !important}
html:root[data-theme="light"] .dash-kpi.k1, html:root[data-theme="light"] .dash-kpi.k2, html:root[data-theme="light"] .dash-kpi.k4{background: #ffffff !important; border-color: #eadfd8 !important}
html:root[data-theme="light"] .dash-kpi.k3{background: #fdf2f5 !important; border-color: #f0d3de !important}
html:root[data-theme="light"] .dash-kpi .k{font-size: 12px !important; font-weight: 600 !important; color: #7d6f68 !important}
html:root[data-theme="light"] .dash-kpi .v{font-size: 24px !important; font-weight: 600 !important; color: #2a211d !important}
html:root[data-theme="light"] .dash-kpi.k3 .v{color: #b3406e !important}
html:root[data-theme="light"] .dash-kpi .delta.up{color: #0f7b4f !important}
html:root[data-theme="light"] .dash-kpi .delta.down{color: #c0355a !important}
html:root[data-theme="light"] input, html:root[data-theme="light"] textarea, html:root[data-theme="light"] select{background: #fffdfa !important;
  border: 1px solid #eadfd8 !important;
  border-radius: 8px !important;
  color: #2a211d !important;
  box-shadow: none !important;
  padding: 10px 12px !important}
html:root[data-theme="light"] input:focus, html:root[data-theme="light"] textarea:focus, html:root[data-theme="light"] select:focus{border-color: #b3406e !important}
html:root[data-theme="light"] .btn, html:root[data-theme="light"] button{border-radius: 8px !important;
  border: 1px solid #eadfd8 !important;
  background: #ffffff !important;
  color: #2a211d !important;
  box-shadow: none !important;
  font-weight: 600 !important}
html:root[data-theme="light"] .btn-primary, html:root[data-theme="light"] .btn.p, html:root[data-theme="light"] button.primary{background: #b3406e !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(179,64,110,.22) !important}
html:root[data-theme="light"] .btn:hover, html:root[data-theme="light"] button:hover{background: #f5ece6 !important}
html:root[data-theme="light"] th{background: transparent !important; border-bottom: 1px solid #eadfd8 !important; font-weight: 600 !important; color: #7d6f68 !important}
html:root[data-theme="light"] td{border-bottom: 1px solid #eadfd8 !important}
html:root[data-theme="light"] tr:hover td{background: #f5ece6 !important}
html:root[data-theme="light"] .cs-col > header{background: transparent !important; border-bottom: 1px solid #eadfd8 !important; font-weight: 600 !important}
html:root[data-theme="light"] .cs-stat{background: #ffffff !important; border: 1px solid #eadfd8 !important; border-radius: 12px !important; box-shadow: none !important}
html:root[data-theme="light"] .cs-stat.alert{background: #fdf2f5 !important; border-color: #f0d3de !important}
html:root[data-theme="light"] .cs-stat.alert .v, html:root[data-theme="light"] .cs-stat.alert .k{color: #b3406e !important}
html:root[data-theme="light"] h1, html:root[data-theme="light"] .page-title, html:root[data-theme="light"] h2{font-weight: 600 !important; letter-spacing: -.2px !important; color: #2a211d !important}
html:root[data-theme="light"] h3, html:root[data-theme="light"] h4{font-weight: 600 !important}
html:root[data-theme="light"] p, html:root[data-theme="light"] span, html:root[data-theme="light"] div{font-weight: 400}
html:root[data-theme="light"] b, html:root[data-theme="light"] strong{font-weight: 600 !important}
html:root[data-theme="light"] .music-bar, html:root[data-theme="light"] .mbar{background: #fffdf9 !important; border-top: 1px solid #eadfd8 !important}
html:root[data-theme="light"] header, html:root[data-theme="light"] .topbar, html:root[data-theme="light"] .site-head, html:root[data-theme="light"] footer, html:root[data-theme="light"] .site-foot{color: #2a211d !important}
html:root[data-theme="light"] header .brand, html:root[data-theme="light"] header .logo, html:root[data-theme="light"] .topbar .brand, html:root[data-theme="light"] .topbar .logo, html:root[data-theme="light"] .topbar a:not(.btn){color: #2a211d !important}
html:root[data-theme="light"] .admin-nav a, html:root[data-theme="light"] .admin-nav a span, html:root[data-theme="light"] .side-nav a, html:root[data-theme="light"] .side-nav a span{color: #4a3b34 !important}
html:root[data-theme="light"] .admin-nav a.on, html:root[data-theme="light"] .admin-nav a.on span{color: #b3406e !important}
html:root[data-theme="light"] .music-bar, html:root[data-theme="light"] .mbar, html:root[data-theme="light"] .mbar *, html:root[data-theme="light"] .music-bar *{color: #2a211d !important}
html:root[data-theme="light"] .mbar-bind, html:root[data-theme="light"] .mbar-liked{color: #2a211d !important}
html:root[data-theme="light"] .badge, html:root[data-theme="light"] .tag, html:root[data-theme="light"] .pill, html:root[data-theme="light"] .chip, html:root[data-theme="light"] .count, html:root[data-theme="light"] .num-badge, html:root[data-theme="light"] .admin-nav .n, html:root[data-theme="light"] .admin-nav .badge, html:root[data-theme="light"] .cs-col > header .n, html:root[data-theme="light"] .topbar .who, html:root[data-theme="light"] .topbar .role, html:root[data-theme="light"] .mbar-toggle{background: #f4ede7 !important;
  color: #57443c !important;
  border: 1px solid #e9dcd3 !important;
  box-shadow: none !important}
html:root[data-theme="light"] .tag.on, html:root[data-theme="light"] .badge.on, html:root[data-theme="light"] .pill.on{background: #fbe6ee !important; color: #b3406e !important; border-color: #fbe6ee !important}
html:root[data-theme="light"] .pill-warn, html:root[data-theme="light"] .tag-warn{background: #fff4e6 !important; color: #a3560c !important; border-color: #f0dcc2 !important}
@media (prefers-color-scheme: light){
html:root:not([data-theme="dark"]) { --purple:#b3406e;--purple-dark:#8e2f57;--violet:#b3406e;--violet-wash:#fbe6ee;--lilac:#f3dde6;--lime:#fbe6ee;--ink:#2a211d;--paper:#faf7f2;--white:#ffffff;--line:#eadfd8;--muted:#7d6f68;--ink-soft:#57443c; }
html:root:not([data-theme="dark"]) body{background: #faf7f2 !important; color: #2a211d !important}
html:root:not([data-theme="dark"]) body{font-weight: 400 !important}
html:root:not([data-theme="dark"]) header, html:root:not([data-theme="dark"]) .topbar, html:root:not([data-theme="dark"]) .admin-top, html:root:not([data-theme="dark"]) .app-header, html:root:not([data-theme="dark"]) .site-head, html:root:not([data-theme="dark"]) footer, html:root:not([data-theme="dark"]) .site-foot{background: #fffdf9 !important;
  border-bottom: 1px solid #eadfd8 !important;
  box-shadow: none !important}
html:root:not([data-theme="dark"]) .admin-nav, html:root:not([data-theme="dark"]) .side-nav, html:root:not([data-theme="dark"]) .nav{background: #ffffff !important;
  border: 1px solid #eadfd8 !important;
  border-radius: 12px !important;
  padding: 10px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.04) !important}
html:root:not([data-theme="dark"]) .admin-nav a, html:root:not([data-theme="dark"]) .side-nav a, html:root:not([data-theme="dark"]) .nav a{border-radius: 8px !important;
  font-weight: 600 !important;
  color: #4a3b34 !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
  border: 0 !important;
  transition: background .15s ease !important}
html:root:not([data-theme="dark"]) .admin-nav a:hover, html:root:not([data-theme="dark"]) .side-nav a:hover{background: #f5ece6 !important}
html:root:not([data-theme="dark"]) .admin-nav a.on, html:root:not([data-theme="dark"]) .side-nav a.on, html:root:not([data-theme="dark"]) .nav a.on{background: #fbe6ee !important;
  color: #b3406e !important;
  box-shadow: none !important}
html:root:not([data-theme="dark"]) .dash-kpi, html:root:not([data-theme="dark"]) .dash-chart-card, html:root:not([data-theme="dark"]) .cs-col, html:root:not([data-theme="dark"]) .cs-card, html:root:not([data-theme="dark"]) .panel, html:root:not([data-theme="dark"]) .card, html:root:not([data-theme="dark"]) .stat, html:root:not([data-theme="dark"]) .dp-card, html:root:not([data-theme="dark"]) .dp-list .row, html:root:not([data-theme="dark"]) .rkcard, html:root:not([data-theme="dark"]) .wallet-hero{background: #ffffff !important;
  border: 1px solid #eadfd8 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(15,15,25,.06) !important}
html:root:not([data-theme="dark"]) .dash-kpi, html:root:not([data-theme="dark"]) .dash-chart-card{padding: 20px 22px !important}
html:root:not([data-theme="dark"]) .dash-kpi.k1, html:root:not([data-theme="dark"]) .dash-kpi.k2, html:root:not([data-theme="dark"]) .dash-kpi.k4{background: #ffffff !important; border-color: #eadfd8 !important}
html:root:not([data-theme="dark"]) .dash-kpi.k3{background: #fdf2f5 !important; border-color: #f0d3de !important}
html:root:not([data-theme="dark"]) .dash-kpi .k{font-size: 12px !important; font-weight: 600 !important; color: #7d6f68 !important}
html:root:not([data-theme="dark"]) .dash-kpi .v{font-size: 24px !important; font-weight: 600 !important; color: #2a211d !important}
html:root:not([data-theme="dark"]) .dash-kpi.k3 .v{color: #b3406e !important}
html:root:not([data-theme="dark"]) .dash-kpi .delta.up{color: #0f7b4f !important}
html:root:not([data-theme="dark"]) .dash-kpi .delta.down{color: #c0355a !important}
html:root:not([data-theme="dark"]) input, html:root:not([data-theme="dark"]) textarea, html:root:not([data-theme="dark"]) select{background: #fffdfa !important;
  border: 1px solid #eadfd8 !important;
  border-radius: 8px !important;
  color: #2a211d !important;
  box-shadow: none !important;
  padding: 10px 12px !important}
html:root:not([data-theme="dark"]) input:focus, html:root:not([data-theme="dark"]) textarea:focus, html:root:not([data-theme="dark"]) select:focus{border-color: #b3406e !important}
html:root:not([data-theme="dark"]) .btn, html:root:not([data-theme="dark"]) button{border-radius: 8px !important;
  border: 1px solid #eadfd8 !important;
  background: #ffffff !important;
  color: #2a211d !important;
  box-shadow: none !important;
  font-weight: 600 !important}
html:root:not([data-theme="dark"]) .btn-primary, html:root:not([data-theme="dark"]) .btn.p, html:root:not([data-theme="dark"]) button.primary{background: #b3406e !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(179,64,110,.22) !important}
html:root:not([data-theme="dark"]) .btn:hover, html:root:not([data-theme="dark"]) button:hover{background: #f5ece6 !important}
html:root:not([data-theme="dark"]) th{background: transparent !important; border-bottom: 1px solid #eadfd8 !important; font-weight: 600 !important; color: #7d6f68 !important}
html:root:not([data-theme="dark"]) td{border-bottom: 1px solid #eadfd8 !important}
html:root:not([data-theme="dark"]) tr:hover td{background: #f5ece6 !important}
html:root:not([data-theme="dark"]) .cs-col > header{background: transparent !important; border-bottom: 1px solid #eadfd8 !important; font-weight: 600 !important}
html:root:not([data-theme="dark"]) .cs-stat{background: #ffffff !important; border: 1px solid #eadfd8 !important; border-radius: 12px !important; box-shadow: none !important}
html:root:not([data-theme="dark"]) .cs-stat.alert{background: #fdf2f5 !important; border-color: #f0d3de !important}
html:root:not([data-theme="dark"]) .cs-stat.alert .v, html:root:not([data-theme="dark"]) .cs-stat.alert .k{color: #b3406e !important}
html:root:not([data-theme="dark"]) h1, html:root:not([data-theme="dark"]) .page-title, html:root:not([data-theme="dark"]) h2{font-weight: 600 !important; letter-spacing: -.2px !important; color: #2a211d !important}
html:root:not([data-theme="dark"]) h3, html:root:not([data-theme="dark"]) h4{font-weight: 600 !important}
html:root:not([data-theme="dark"]) p, html:root:not([data-theme="dark"]) span, html:root:not([data-theme="dark"]) div{font-weight: 400}
html:root:not([data-theme="dark"]) b, html:root:not([data-theme="dark"]) strong{font-weight: 600 !important}
html:root:not([data-theme="dark"]) .music-bar, html:root:not([data-theme="dark"]) .mbar{background: #fffdf9 !important; border-top: 1px solid #eadfd8 !important}
html:root:not([data-theme="dark"]) header, html:root:not([data-theme="dark"]) .topbar, html:root:not([data-theme="dark"]) .site-head, html:root:not([data-theme="dark"]) footer, html:root:not([data-theme="dark"]) .site-foot{color: #2a211d !important}
html:root:not([data-theme="dark"]) header .brand, html:root:not([data-theme="dark"]) header .logo, html:root:not([data-theme="dark"]) .topbar .brand, html:root:not([data-theme="dark"]) .topbar .logo, html:root:not([data-theme="dark"]) .topbar a:not(.btn){color: #2a211d !important}
html:root:not([data-theme="dark"]) .admin-nav a, html:root:not([data-theme="dark"]) .admin-nav a span, html:root:not([data-theme="dark"]) .side-nav a, html:root:not([data-theme="dark"]) .side-nav a span{color: #4a3b34 !important}
html:root:not([data-theme="dark"]) .admin-nav a.on, html:root:not([data-theme="dark"]) .admin-nav a.on span{color: #b3406e !important}
html:root:not([data-theme="dark"]) .music-bar, html:root:not([data-theme="dark"]) .mbar, html:root:not([data-theme="dark"]) .mbar *, html:root:not([data-theme="dark"]) .music-bar *{color: #2a211d !important}
html:root:not([data-theme="dark"]) .mbar-bind, html:root:not([data-theme="dark"]) .mbar-liked{color: #2a211d !important}
html:root:not([data-theme="dark"]) .badge, html:root:not([data-theme="dark"]) .tag, html:root:not([data-theme="dark"]) .pill, html:root:not([data-theme="dark"]) .chip, html:root:not([data-theme="dark"]) .count, html:root:not([data-theme="dark"]) .num-badge, html:root:not([data-theme="dark"]) .admin-nav .n, html:root:not([data-theme="dark"]) .admin-nav .badge, html:root:not([data-theme="dark"]) .cs-col > header .n, html:root:not([data-theme="dark"]) .topbar .who, html:root:not([data-theme="dark"]) .topbar .role, html:root:not([data-theme="dark"]) .mbar-toggle{background: #f4ede7 !important;
  color: #57443c !important;
  border: 1px solid #e9dcd3 !important;
  box-shadow: none !important}
html:root:not([data-theme="dark"]) .tag.on, html:root:not([data-theme="dark"]) .badge.on, html:root:not([data-theme="dark"]) .pill.on{background: #fbe6ee !important; color: #b3406e !important; border-color: #fbe6ee !important}
html:root:not([data-theme="dark"]) .pill-warn, html:root:not([data-theme="dark"]) .tag-warn{background: #fff4e6 !important; color: #a3560c !important; border-color: #f0dcc2 !important}
}

/* active 与 on 同款高亮 */
html:root[data-theme="light"] .admin-nav a.active, html:root[data-theme="light"] .side-nav a.active, html:root[data-theme="light"] .nav a.active{background: #fbe6ee !important;
  color: #b3406e !important;
  box-shadow: none !important}
html:root[data-theme="light"] .admin-nav a.active, html:root[data-theme="light"] .admin-nav a.active span{color: #b3406e !important}
html:root[data-theme="light"] .tag.active, html:root[data-theme="light"] .badge.active, html:root[data-theme="light"] .pill.active{background: #fbe6ee !important; color: #b3406e !important; border-color: #fbe6ee !important}
html:root:not([data-theme="dark"]) .admin-nav a.active, html:root:not([data-theme="dark"]) .side-nav a.active, html:root:not([data-theme="dark"]) .nav a.active{background: #fbe6ee !important;
  color: #b3406e !important;
  box-shadow: none !important}
html:root:not([data-theme="dark"]) .admin-nav a.active, html:root:not([data-theme="dark"]) .admin-nav a.active span{color: #b3406e !important}
html:root:not([data-theme="dark"]) .tag.active, html:root:not([data-theme="dark"]) .badge.active, html:root:not([data-theme="dark"]) .pill.active{background: #fbe6ee !important; color: #b3406e !important; border-color: #fbe6ee !important}

/* 浅色：html 与 body 同色，消除短页面底部色带分割 */
html:root[data-theme="light"], html:root[data-theme="light"] body { background-color: #faf7f2 !important; }
html:root[data-theme="light"] body::before {
  background-image:
    radial-gradient(circle at 12% 8%, #f7ece6 0, transparent 38%),
    radial-gradient(circle at 88% 4%, #fbe9f0 0, transparent 34%) !important;
}
@media (prefers-color-scheme: light){
  html:root:not([data-theme="dark"]), html:root:not([data-theme="dark"]) body { background-color: #faf7f2 !important; }
  html:root:not([data-theme="dark"]) body::before {
    background-image:
      radial-gradient(circle at 12% 8%, #f7ece6 0, transparent 38%),
      radial-gradient(circle at 88% 4%, #fbe9f0 0, transparent 34%) !important;
  }
}
