:root[data-theme="dark"]{color-scheme:dark;background:#14151e;color:#eeedf6;--tint:color-mix(in srgb,var(--accent) 23%,#20212e)}
[data-theme="dark"] .sidebar,[data-theme="dark"] .chat-head,[data-theme="dark"] .composer-area,[data-theme="dark"] dialog{background:#1d1e2b;color:#eeedf6;border-color:#353648}
[data-theme="dark"] .chat{background:radial-gradient(ellipse at 70% 40%,#28233c55,transparent 70%),#14151e}
[data-theme="dark"] .composer,[data-theme="dark"] input,[data-theme="dark"] textarea,[data-theme="dark"] select{background:#252635;color:#eeedf6;border-color:#424358}
[data-theme="dark"] .bubble{background:#282938;border-color:#3a3b4e;color:#f0eef9}
[data-theme="dark"] .mine .bubble{background:var(--accent);border-color:transparent;color:#fff}
[data-theme="dark"] .room{color:#e0ddec}
[data-theme="dark"] .room.selected{background:var(--tint);color:#e4dcff}
[data-theme="dark"] .ghost,[data-theme="dark"] .muted,[data-theme="dark"] small,[data-theme="dark"] .privacy,[data-theme="dark"] .message details{color:#b6b3cb}
[data-theme="dark"] .empty h3{color:#e0ddec}
[data-theme="dark"] .empty,[data-theme="dark"] .nav-label,[data-theme="dark"] .room .caption,[data-theme="dark"] .chat-head p,[data-theme="dark"] .message .author,[data-theme="dark"] .message .meta,[data-theme="dark"] .day,[data-theme="dark"] .composer-note{color:#aaa7c0}
[data-theme="dark"] .secondary,[data-theme="dark"] .chat-head .right,[data-theme="dark"] .meta button,[data-theme="dark"] .link{color:#d5caff}
[data-theme="dark"] .notice{background:#3a3020;color:#ebce99}
[data-theme="dark"] .profile{border-color:#353648}
[data-theme="dark"] .emoji-grid button,[data-theme="dark"] .gif-grid button{background:#2b2c3c;color:#eee9ff}
[data-theme="dark"] button.danger{background:#442834;color:#ffb6c8}
[data-theme="dark"] hr{border:0;border-top:1px solid #424358}
[data-theme="dark"] .color-options button{border-color:#1d1e2b}
[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder{color:#aaa7c0}
.bg-controls{border:1px solid #dcdce8;border-radius:12px;padding:15px;display:grid;gap:14px;min-width:0}.bg-controls legend{font-size:.9rem;font-weight:650;padding:0 6px}.bg-controls input[type="color"]{height:48px;padding:5px}.bg-preview{padding:25px 12px;border-radius:12px;text-align:center}.bg-preview span{background:#fff;color:#252535;border-radius:9px;padding:10px;font-size:.8rem;display:inline-block}.bg-controls [hidden]{display:none!important}[data-theme="dark"] .bg-controls{border-color:#424358}
:root[data-bg="solid"] .chat,:root[data-bg="gradient"] .chat{background:var(--chat-bg)}
:root:not([data-bg="theme"]) .message .author,:root:not([data-bg="theme"]) .message .meta,:root:not([data-bg="theme"]) .message details,:root:not([data-bg="theme"]) .day{background:#fffffff0;color:#3d3b51;border-radius:6px;padding:4px 7px;width:fit-content}
:root:not([data-bg="theme"])[data-theme="dark"] .message .author,:root:not([data-bg="theme"])[data-theme="dark"] .message .meta,:root:not([data-bg="theme"])[data-theme="dark"] .message details,:root:not([data-bg="theme"])[data-theme="dark"] .day{background:#1d1e2bf2;color:#eeedf6}
:root:not([data-bg="theme"]) .day{margin-left:auto;margin-right:auto}:root:not([data-bg="theme"]) .empty{background:#fffffff0;border-radius:18px;height:auto;min-height:220px;padding:20px;margin-top:30px}:root:not([data-bg="theme"])[data-theme="dark"] .empty{background:#1d1e2bf2}
