/* Dark themes (tube, night, neon), 2026-10-25 (owner: "white blocks with white text"): app.css, the admin styles and some
   inline styles paint light surfaces (#fff, #f6f6fa …) that the theme's light text then sits on. Loaded after the theme
   for dark designs only; photo overlays (badges, bars, the lock price) keep their white on purpose. */
.topbar{background:color-mix(in srgb,var(--card) 88%,transparent)}.tabbar{background:color-mix(in srgb,var(--card) 94%,transparent)}
.hero,.hero-cards .bubble,.search,.sbtn,.deck-empty,.chat-shell,.auth,.modal,.menu,.ctx-menu,.react,.to-bottom,.reply-card,.attach-card,
.composer,.quick,.quota,.emoji-panel,.hb-acts,.hb-reacts,.react-picker,.pin-bar,.pin-bar:hover,.ep-tabs button.on,.ep-tabs button:hover,.seg input:checked+label{background:var(--card);color:var(--ink)}
.thread,.thread-head{background:var(--bg-2);background-image:none}.ep-tabs{background:var(--bg-2)}.day-sep span{background:var(--card);color:var(--ink-2)}
.skel{background:linear-gradient(90deg,var(--bg-2) 0%,var(--line-2) 50%,var(--bg-2) 100%);background-size:200% 100%}
.input:focus,.select:focus,.textarea:focus,.post-reply input:focus{background:var(--bg-2)}
.alert-error,.usdt-timer.late{background:rgba(220,38,38,.16);color:#ff8a98}.usdt-warn{background:rgba(234,179,8,.14);color:#f5d36b}
.fswitch .track::after{background:#fff}
/* admin (its <style> blocks come later in the page, hence !important) */
.admin-service-grid>div,.admin-note,.admin-save-bar,.admin-media-item,.admin-field .input,.admin-group-count,.admin-icon,.admin-setting-group,.admin-rule-group,
.admin-table.admin-cards tr:not(.admin-table-head),.chat-log .m,.cl-cols .box,.cl-pill.off,.dc-chip,.dc-ex,.dc-bad,.gc-chip,.gc-part,.gc-scene,.gc-noprev,.pp-text,.brand-color input[type=color]{background:var(--card)!important;color:var(--ink)!important;border-color:var(--line-2)!important}
.admin-icon:hover,.admin-icon:focus-visible{background:var(--bg-2)!important}.admin-error,.dc-bad{background:rgba(220,38,38,.16)!important;color:#ff8a98!important}
.admin-panel,.admin-navigation,.admin-table th,.admin-table td{border-color:var(--line-2)}
/* inline style="background:#fff …" and dark text in templates */
[style*="background:#fff;"],[style*="background:#fff\""],[style*="background: #fff"],[style*="background:#ffffff"],[style*="background:white"],[style*="background:#fafafa"],[style*="background:#f6f6fa"],
[style*="background:#f7f4f6"],[style*="background:#fcfbfc"],[style*="background:#faf8f9"],[style*="background:#f2f2f4"],[style*="background:#f1eef0"],[style*="background:#f1f8f3"],[style*="background:#fdf1f1"],[style*="background:#fff0f0"]{background:var(--card)!important;color:var(--ink)!important}
[style*="background:#fff3cd"],[style*="background:#fff3c4"]{background:rgba(234,179,8,.16)!important;color:#f5d36b!important}
[style*="color:#000"],[style*="color:#111"],[style*="color:#222"],[style*="color:#333"],[style*="color:#444"],[style*="color: #333"]{color:var(--ink)!important}
[style*="color:#555"],[style*="color:#666"],[style*="color:#777"]{color:var(--ink-2)!important}
table,th,td{border-color:var(--line-2)}
