/* One shared day/night preference, with the approved warm cosmic identity. */
#theme-toggle{flex:none;white-space:nowrap;padding:8px 12px;border:1px solid var(--line);border-radius:24px;font-size:12px;background:transparent;color:var(--ink)}
.top-actions .search{flex:1;min-width:0;max-width:480px}.top-actions .notification{flex:none}.top-actions .account{flex:none}
html[data-theme=dark]{color-scheme:dark;--bg:#111722;--ink:#f0f4fa;--muted:#a7b0c0;--line:#344152;--accent:#e0b47a;--soft:#3c3023}
html[data-theme=dark] body{background:radial-gradient(ellipse at 18% 0%,#202d40 0,transparent 57%),linear-gradient(145deg,#181d2a,#111722 78%)}
html[data-theme=dark] .sidebar{background:linear-gradient(160deg,#101622,#171d2a 72%,#222530)}
html[data-theme=dark] .topbar{background:#161e2be8;border-color:#30394a}
html[data-theme=dark] .search{background:#0d1420;border:1px solid #334053;color:var(--ink)}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#9ba8bb}
html[data-theme=dark] .account{border-color:#344152}
html[data-theme=dark] .account small,html[data-theme=dark] .account-chevron{color:#a7b0c0}
html[data-theme=dark] .profile,html[data-theme=dark] .card{background:#1c2533;border:1px solid #354050;box-shadow:0 10px 26px #0000000d}
html[data-theme=dark] .profile-view>.heading.reference-hero{background-image:linear-gradient(90deg,#1c2735fa 0%,#1c2735d9 32%,#151d2a75 100%),url('assets/gravity-hero.png');border:1px solid #354050}
html[data-theme=dark] .profile-view .heading h1{color:#f0f4fa}
html[data-theme=dark] .profile-view .heading .eyebrow{color:#c9d5e7}
html[data-theme=dark] .profile-view .heading p{color:#f1e6d6}
html[data-theme=dark] .hero-line{border-color:#d8b37c}
html[data-theme=dark] .profile-view .heading>.btn{background:#17202ce6;border-color:#7e6548;color:#e8d6bd}
html[data-theme=dark] .profile>.avatar{background-color:#33313a;border-color:#1c2533}
html[data-theme=dark] .identity p{color:#bec8d7}
html[data-theme=dark] .identity h2 .pill,html[data-theme=dark] .pill{background:#3d3023;color:#f1c995}
html[data-theme=dark] .small,html[data-theme=dark] .hint,html[data-theme=dark] .banner,html[data-theme=dark] .post p,html[data-theme=dark] .postmeta,html[data-theme=dark] .postfoot{color:#a7b0c0}
html[data-theme=dark] .space-label{color:#c7b193!important}
html[data-theme=dark] .stats b,html[data-theme=dark] .tabs button.selected{color:#f0f4fa}
html[data-theme=dark] .tabs button{color:#a7b0c0}
html[data-theme=dark] .tabs button.selected{border-color:#e0b47a}
html[data-theme=dark] .btn{background:#202d3e;border-color:#46556a;color:#e6edf6}
html[data-theme=dark] .btn.primary{background:#d5b17e;color:#1b2230;border-color:#d5b17e}
html[data-theme=dark] .textbtn{color:#c5cedb}
html[data-theme=dark] .title-display{background:linear-gradient(125deg,#413324,#2c2830);border-color:#786040}
html[data-theme=dark] .title-display strong{color:#f4dec0}
html[data-theme=dark] .title-display p{color:#d0bea5}
html[data-theme=dark] .points-balance strong,html[data-theme=dark] .points-summary strong,html[data-theme=dark] .point-ledger strong{color:#e6bf8a}
html[data-theme=dark] .points-balance span,html[data-theme=dark] .points-summary span,html[data-theme=dark] .point-ledger small{color:#a7b0c0}
html[data-theme=dark] .point-ledger>div{border-color:var(--line)}
html[data-theme=dark] .account-panel,html[data-theme=dark] dialog{background:#1c2533;border-color:#46556a;color:#f0f4fa;box-shadow:0 20px 60px #0004}
html[data-theme=dark] dialog::backdrop{background:#05091499}
html[data-theme=dark] .account-links button:hover,html[data-theme=dark] .account-session button:hover{background:#2c394d}
html[data-theme=dark] .account-links span,html[data-theme=dark] .account-demo-note,html[data-theme=dark] .mini-label{color:#b1bac8}
html[data-theme=dark] .account-session [data-action=logout]{color:#edb4a6}
html[data-theme=dark] .note{background:#263245;color:#bac6d8}
html[data-theme=dark] .field input:not([type=checkbox]),html[data-theme=dark] .field textarea,html[data-theme=dark] .field select{background:#111a28;border-color:#46556a;color:#f0f4fa}
html[data-theme=dark] .choice.active{background:#3b3128;border-color:#c39e68}
html[data-theme=dark] .demo-account-list button{background:#263245;border-color:#46556a;color:#f0f4fa}
html[data-theme=dark] .demo-account-list button:hover:not(:disabled){background:#354258;border-color:#c39e68}
html[data-theme=dark] .skin-tile small.equipped{background:#213c57;color:#9ac9ff}
@media(max-width:650px){.top-actions{gap:8px}#theme-toggle{padding:7px 9px;font-size:11px}.account{padding-left:8px}.topbar{padding-left:12px;padding-right:12px}.top-actions .search{padding:8px 10px}.top-actions .notification{margin-left:0;width:26px}}

.founder-role{display:inline-block;font-size:11px;font-weight:600;letter-spacing:0;vertical-align:middle;padding:4px 9px;border:1px solid #ba8d50;border-radius:6px;background:#fff1d8;color:#80541f}.account-panel .founder-role{margin-top:4px}html[data-theme=dark] .founder-role{background:#3d3023;color:#f1c995;border-color:#957340}
