[data-theme=dark] {
  color-scheme: dark;
  --canvas: #142129; --surface: #1f3039; --surface-raised: #273b45; --surface-soft: #253741; --surface-inset: #182831;
  --text: #e6eff2; --muted: #abbec8; --border: #3d535f; --border-strong: #566e7b;
  --teal: #77d5c1; --teal-hover: #9be4d3; --teal-soft: #263f43; --teal-border: #4f867e;
  --ring: #8be0cb; --danger: #f3a695; --warning-bg: #3a3529; --warning-border: #6e6043; --warning-text: #e2cc9a;
  --shadow: 0 8px 28px #00000014;
}
[data-theme=dark] button.primary { color: #102f30; }
[data-theme=dark] .sidebar { background: #101e26; border-color: #354c56; }
[data-theme=dark] .nav-item.active { background: #294a50; border-color: #47716f; }
[data-theme=dark] .sidebar-note { background: linear-gradient(135deg, #234244, #172b35); }
[data-theme=dark] .art-done, [data-theme=dark] .upload-badge { color: #163a39; }
[data-theme=dark] .mode-card:has(input:checked) { border-color: #68b7a9; }
[data-theme=dark] .dropzone { background: radial-gradient(ellipse at 50% 22%, #6bd8be10, transparent 66%), var(--surface-inset); }
[data-theme=dark] .dropzone:hover, [data-theme=dark] .dropzone.drag { background: var(--teal-soft); }
.theme-toggle { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; min-height: 38px; padding: 9px; border-radius: 10px; background: var(--surface-soft); color: var(--text); border-color: var(--border-strong); }
.theme-toggle .icon-sun { display: none; }
[data-theme=dark] .theme-toggle .icon-moon { display: none; }
[data-theme=dark] .theme-toggle .icon-sun { display: block; }
.login-theme { position: absolute; top: 28px; right: 30px; }
@media (max-width: 620px) { .login-theme { top: 15px; right: 20px; width: 33px; height: 33px; min-height: 33px; padding: 7px; } }
