/* Hand-tuned dark exceptions. Everything else comes from the generated /static/dark.css (superagent/theme.py). */
:root[data-theme=dark] img,:root[data-theme=dark] video{color-scheme:light}

/* Canvas: Claude-like ivory in light, its #262624 in dark (lightness inversion of ivory lands darker than the sidebar). */
:root[data-theme=dark]{--paper:#262624}

/* Assistant cards keep their action contrast instead of inverting the light primary button. */
:root[data-theme=dark] #assistant-center{background:linear-gradient(160deg,#17272b,#1d242c);border-color:#33464b}
:root[data-theme=dark] #assistant-center .assistant-card{background:#202d32;border-color:#3a5159}
:root[data-theme=dark] #assistant-center .assistant-card[data-selected=true]{background:#233e3b;border-color:#568f83}
:root[data-theme=dark] #assistant-center :is(.assistant-center-head>button,.assistant-tools>button,.assistant-topics>button,.assistant-card-actions>button){background:#243236;border-color:#3c555b;color:#d7e6ec}
:root[data-theme=dark] #assistant-center button.assistant-primary{background:#296962;border-color:#43887f;color:#f0fdf9}
:root[data-theme=dark] #assistant-center button.assistant-primary:hover:not(:disabled){background:#327b73}
:root[data-theme=dark] #assistant-center :is(.assistant-tabs,.assistant-topics) [aria-pressed=true]{background:#234743;color:#ccf2e9}
