body[data-theme]{--bg:#0e1726;--surface:#182638;--raised:#23334b;--line:#354963;--text:#eff5ff;--muted:#b4c4da;--sidebar:#111e30;--soft:#20344d;--primary:#436bd0;--blue:#aec9ff;background:var(--bg);color:var(--text);color-scheme:dark}
body[data-theme=midnight]{--bg:#080b12;--surface:#101622;--raised:#192230;--line:#344051;--sidebar:#0c1019;--soft:#182538}
body[data-theme=light]{--bg:#f1f5fa;--surface:#ffffff;--raised:#e6edf6;--line:#b9c9db;--text:#182a41;--muted:#4b6079;--sidebar:#e8eff8;--soft:#dce7f6;--primary:#365fc4;--blue:#244fa8;color-scheme:light}
@media(prefers-color-scheme:light){body[data-theme=system]{--bg:#f1f5fa;--surface:#fff;--raised:#e6edf6;--line:#b9c9db;--text:#182a41;--muted:#4b6079;--sidebar:#e8eff8;--soft:#dce7f6;--primary:#365fc4;--blue:#244fa8;color-scheme:light}}
body[data-accent=violet]{--primary:#7451bd;--blue:#bfa7ff}body[data-accent=green]{--primary:#247b62;--blue:#80d8b8}body[data-accent=orange]{--primary:#aa501d;--blue:#ffc08a}
body[data-theme=light][data-accent=violet]{--blue:#6940a8}body[data-theme=light][data-accent=green]{--blue:#16644c}body[data-theme=light][data-accent=orange]{--blue:#914313}
@media(prefers-color-scheme:light){body[data-theme=system][data-accent=violet]{--blue:#6940a8}body[data-theme=system][data-accent=green]{--blue:#16644c}body[data-theme=system][data-accent=orange]{--blue:#914313}}
body[data-theme] :is(.panel,.site-card,.game-card,.node-card,.mod-guide>article,.stats>div,.hero-panel,.price-card,.public-features>article,.public-template,.admin-feature-hub){background:var(--surface);border-color:var(--line);color:var(--text)}
body[data-theme] :is(.sidebar,.topbar,.public-header){background:var(--sidebar);border-color:var(--line);color:var(--text)}
body[data-theme] :is(.project-tool,.context-help,.notice,.discord-community,.public-trust,.public-final,.hero-panel-top){background:var(--soft);border-color:var(--line);color:var(--text)}
body[data-theme] :is(input,select,textarea,dialog,#auth,#forgot,#verify){background:var(--raised);border-color:var(--line);color:var(--text)}
body[data-theme] :is(.muted,.stats span,.setting-summary dt,.public-hero p,.public-guide>p,.public-header nav a,.context-help strong){color:var(--muted)}
body[data-theme] .sidebar nav a{color:var(--text)}body[data-theme] .sidebar nav a.active{background:var(--soft);box-shadow:inset 3px 0 var(--blue)}
body[data-theme] .game-tabs button[aria-pressed=true],body[data-theme] .framework-picker button[aria-pressed=true]{background:var(--primary);color:#fff}
body[data-theme] button.secondary,body[data-theme] .button.secondary{background:var(--raised);border-color:var(--line);color:var(--text)}
.profile-preview{display:flex;align-items:center;gap:16px;padding:20px;background:var(--raised);border-radius:14px;margin-bottom:24px}.profile-preview p{margin:3px 0;color:var(--muted)}.profile-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:18px}.profile-avatar{position:relative;flex-shrink:0;overflow:hidden;display:inline-flex;align-items:center;justify-content:center}.profile-avatar img{display:block;max-width:100%;width:100%;height:100%;object-fit:cover}.profile-preview .profile-avatar{width:64px;height:64px;font-size:24px}
body[data-density=compact] .dashboard{padding-top:20px}body[data-density=compact] :is(.panel,.site-card,.game-card-body){padding:18px;margin-bottom:16px}body[data-density=compact] .sidebar nav a{min-height:40px;margin-bottom:2px}body[data-density=compact] .stats>div{padding:16px}body[data-density=compact] .topbar{min-height:64px}
body[data-reduce-motion="1"] *,body[data-reduce-motion="1"] *::before,body[data-reduce-motion="1"] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
