body:has(.wrap){background:#fff}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-height:40px;padding:8px 12px;border:1px solid #dce5ed;border-radius:12px;background:#fff;color:#294e68;font-size:13px;cursor:pointer}
.theme-toggle:hover{background:#edf5fa}
html[data-color-mode=dark] body:has(.wrap){background:#111820;color:#e3edf5;color-scheme:dark}
html[data-color-mode=dark] .wrap{--bg:#111820;--panel:#1b2531;--ink:#e3edf5;--text:#e3edf5;--muted:#acbccb;--line:#344557;--accent:#83caec;color:var(--ink)}
html[data-color-mode=dark] .wrap :is(h1,h2,h3,h4,td,.field>span,.stat strong){color:#e3edf5}
html[data-color-mode=dark] .wrap :is(.panel,.stat,.backend-sidebar,.hg-step,.hg-payment-grid article,.donor-preview-panel,.form-savebar,.table-wrap,dialog){background:#1b2531;border-color:#344557;box-shadow:none}
html[data-color-mode=dark] .wrap :is(.field input,.field select,.field textarea,select,.quick-form #amount,.amounts button){background:#131d27;border-color:#465d72;color:#e3edf5}
html[data-color-mode=dark] .wrap :is(.muted,.small,.form-save-status,.backend-sidebar h2,.hg-demo,.hg-member .hg-caption){color:#acbccb}
html[data-color-mode=dark] .wrap :is(.note,.code,.member-choice,.obs-settings-fold,.obs-source-box,.hg-member,.quick-form .form-heading>span,.artist-avatar-name,.badge,.info-strip,.artist-reward-wall,.reward-ticket){background:#223647;border-color:#3b5266;color:#cbe9fa}
html[data-color-mode=dark] .wrap :is(.btn,.quick-form .donate-submit .btn){background:#83caec;border-color:#83caec;color:#102c43}
html[data-color-mode=dark] .wrap .btn:hover{background:#b0def5}
html[data-color-mode=dark] .wrap :is(.btn.secondary,.theme-toggle,header nav a:last-child){background:#223647;border-color:#465d72;color:#e3edf5}
html[data-color-mode=dark] .wrap .btn.danger{background:#4b2932;border-color:#80515b;color:#ffd0d5}
html[data-color-mode=dark] .wrap .badge.warn{background:#4b3c22;color:#ffe0a1}
html[data-color-mode=dark] .wrap .error{color:#ffb5bd}
html[data-color-mode=dark] .wrap :is(.success,form[data-save-state=saved] .form-save-status){color:#a6dfb5}
html[data-color-mode=dark] .wrap :is(.backend-nav a,.backend-menu-toggle){color:#c8d8e5}
html[data-color-mode=dark] .wrap :is(.backend-nav a.active,.tabs a.active,.amounts button.selected){background:#28465e;color:#a9ddf7;border-color:#588ca4}
html[data-color-mode=dark] .wrap :is(.backend-nav a:hover,tbody tr:hover,th){background:#22313f;color:#c8d8e5}
html[data-color-mode=dark] .wrap .backend-nav-icon{background:#2a3948;color:#b9d1e3}
html[data-color-mode=dark] .wrap .active .backend-nav-icon{background:#335872;color:#b5e5fc}
html[data-color-mode=dark] .wrap :is(.eyebrow,.ranking-more,.ranking-top,.preset-overview){color:#a9ddf7}
html[data-color-mode=dark] .wrap .backend-main .eyebrow{background:#223647;border-color:#344557}
html[data-color-mode=dark] .wrap .simple-intro{background:radial-gradient(ellipse at 80% 0,#284c68,transparent 70%),#182b3b;border-color:#344f64}
html[data-color-mode=dark] .wrap .simple-intro h1{color:#d7edfa}
html[data-color-mode=dark] .wrap .simple-intro p{color:#b5cadb}
html[data-color-mode=dark] .wrap .simple-intro>a{color:#a9ddf7}
html[data-color-mode=dark] .wrap .brand img{filter:brightness(0) saturate(100%) invert(86%) sepia(14%) saturate(783%) hue-rotate(170deg)}
html[data-color-mode=dark] .wrap .donate-submit{background:#1b2531}
html[data-color-mode=dark] .wrap .artist-avatar .artist-visual{border-color:#344557}
html[data-color-mode=dark] .wrap :is(header,footer,th,td,.quick-identity){border-color:#344557}
@media(max-width:760px){.wrap>header{flex-wrap:wrap!important;height:auto;gap:12px}.wrap>header nav{flex-wrap:wrap!important;gap:10px}.theme-toggle{font-size:12px;padding:7px 10px}.wrap>header .brand img{max-width:130px}}
