:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #151e1b;
  --surface: #1d2a25;
  --ink: #e8eee8;
  --muted: #b3c0b7;
  --line: #46584d;
  --accent: #a1d1ba;
  --soft: #2c3e34;
  --error: #ffb6ab;
}
[data-theme-toggle] { border: 1px solid var(--line); border-radius: 50%; width: 44px; height: 44px; padding: 0; font-size: 24px; line-height: 1; display: inline-grid; place-items: center; }
.account-bar { flex-wrap: wrap; }
.login-theme { display: flex; justify-content: flex-end; margin-bottom: 24px; }
#newAudioBtn { margin: 16px 0; }
.custom-audio-form, .custom-audio-sources { display: grid; gap: 12px; }
.custom-audio-form input, .custom-audio-form textarea, .custom-audio-form select { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 16px; }
.custom-audio-form textarea { resize: vertical; }
.custom-audio-form label { font-weight: 600; }
.content-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; }
.content-action { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 10px; color: var(--muted); border-radius: 9px; }
.content-action svg { width: 18px; height: 18px; }
.action-feedback { font-size: 12px; color: var(--muted); }
:root[data-theme="dark"] .brand img { filter: brightness(0) invert(.9); }
:root[data-theme="dark"] .badge { color: var(--ink); }
:root[data-theme="dark"] .new-training,
:root[data-theme="dark"] .message,
:root[data-theme="dark"] .practice-actions button { background: var(--soft); }
:root[data-theme="dark"] .message.user { background: #374c40; }
:root[data-theme="dark"] .notice.error,
:root[data-theme="dark"] .practice-actions button:last-child { background: #49322e; color: #ffcbc2; }
:root[data-theme="dark"] .primary,
:root[data-theme="dark"] .composer .send-button { background: #a1d1ba; color: #15261d; }
:root[data-theme="dark"] .primary:hover:not(:disabled),
:root[data-theme="dark"] .composer .send-button:hover:not(:disabled) { background: #c3e4d3; }
:root[data-theme="dark"] .composer textarea::placeholder { color: var(--muted); }
