/* 用户控制台深色模式 (管理后台不加载此文件, 保持浅色) */
.theme-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:transparent;color:inherit;border-radius:8px;padding:5px 9px;cursor:pointer;font:inherit;font-size:12px}
.theme-btn svg{width:16px;height:16px}
.theme-btn .i-sun,.theme-btn .i-moon,.theme-btn .i-auto{display:none}
html[data-theme-pref=auto] .theme-btn .i-auto,html[data-theme-pref=light] .theme-btn .i-sun,html[data-theme-pref=dark] .theme-btn .i-moon{display:inline}
html:not([data-theme-pref]) .theme-btn .i-auto{display:inline}

html[data-theme=dark]{--bg:#0b1020;--card:#121a2b;--text:#dbe4f3;--muted:#8c9ab5;--line:#24304a;--pri:#818cf8;--pri2:rgba(129,140,248,.15);--ok:#34d399;--warn:#fbbf24;--bad:#f87171;color-scheme:dark}
html[data-theme=dark] body.gate-user{background:linear-gradient(180deg,#141c33 0%,var(--bg) 260px)}
html[data-theme=dark] .store-top,html[data-theme=dark] .store-side,html[data-theme=dark] .btn,html[data-theme=dark] .modal,html[data-theme=dark] .login,
html[data-theme=dark] .prod,html[data-theme=dark] .story,html[data-theme=dark] .node-row,html[data-theme=dark] .plan,html[data-theme=dark] .tier,
html[data-theme=dark] .pcard,html[data-theme=dark] .steps div,html[data-theme=dark] .comm-card,html[data-theme=dark] .comm-card img{background:var(--card)}
html[data-theme=dark] .comm-card img{background:#fff}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#0e1525;border-color:#2a3654;color:var(--text)}
html[data-theme=dark] th{background:#0f1626}
html[data-theme=dark] .card,html[data-theme=dark] .stat,html[data-theme=dark] table,html[data-theme=dark] .prod,html[data-theme=dark] .story,html[data-theme=dark] .node-row{box-shadow:0 0 0 1px var(--line)}
html[data-theme=dark] .tag{background:#1c2539;color:#b6c2d9}
html[data-theme=dark] .tag.ok{background:rgba(52,211,153,.15);color:#6ee7b7}
html[data-theme=dark] .tag.warn{background:rgba(251,191,36,.15);color:#fcd34d}
html[data-theme=dark] .tag.bad{background:rgba(248,113,113,.15);color:#fca5a5}
html[data-theme=dark] .hint{background:rgba(251,191,36,.07);border-color:rgba(251,191,36,.28);color:#fcd34d}
html[data-theme=dark] .store-side nav a:hover{background:#18213a}
html[data-theme=dark] code,html[data-theme=dark] .gm,html[data-theme=dark] .rgs span{background:#1c2539}
html[data-theme=dark] .meter{background:#1c2539}
html[data-theme=dark] .meter span{color:#e5e7eb}
html[data-theme=dark] .tier.best{background:rgba(52,211,153,.08)}
html[data-theme=dark] .prod .cover{background:linear-gradient(135deg,#1b2344,#202a52)}
html[data-theme=dark] .probe-card .phd{background:linear-gradient(90deg,#161f3a,#1b1838)}
html[data-theme=dark] .flag img{background:#1c2539}
html[data-theme=dark] #modal-root .mask{background:rgba(0,0,0,.6)}
html[data-theme=dark] .nc.nc-light{--nc-card:#121a2b;--nc-line:#24304a;--nc-txt:#dbe4f3;--nc-mut:#8c9ab5;--nc-hi:#fff;--nc-pri:#818cf8}
.theme-btn .tl i{font-style:normal}
.store-side .theme-btn{margin-top:10px;width:100%;justify-content:center;color:var(--muted)}
.login-theme{text-align:center;margin-top:12px}
.login-theme .theme-btn{color:var(--muted)}
html[data-theme=dark] .store-side nav a{color:#b4c0d6}
html[data-theme=dark] .store-side nav a.on{color:#c7d2fe}
