:root { color-scheme: light; }
body,
body header,
body footer,
body article,
body .rows,
body .panel-card,
body input,
body textarea,
body select {
  transition: background-color .24s ease, color .24s ease, border-color .24s ease;
}
body[data-theme="dark"] {
  color-scheme: dark;
  background-color: #101d1a;
  background-image: radial-gradient(#b6d7c116 .6px, transparent .8px);
  color: #e8f1e6;
}
body[data-theme="dark"] header,
body[data-theme="dark"] footer,
body[data-theme="dark"] article,
body[data-theme="dark"] .rows,
body[data-theme="dark"] .account-art,
body[data-theme="dark"] .panel-card,
body[data-theme="dark"] .metric-grid > div,
body[data-theme="dark"] .studio-section-editor,
body[data-theme="dark"] .composed-section.tone-paper,
body[data-theme="dark"] .about-hero,
body[data-theme="dark"] .about-scene,
body[data-theme="dark"] #language-choice {
  background-color: #182a26;
  color: #e8f1e6;
  border-color: #49685b;
}
body[data-theme="dark"] a { color: #a8dfc0; }
body[data-theme="dark"] header .brand,
body[data-theme="dark"] footer b { color: #f5d38b; }
body[data-theme="dark"] input,
body[data-theme="dark"] textarea,
body[data-theme="dark"] select {
  background: #10201c;
  color: #edf6ea;
  border-color: #527367;
}
body[data-theme="dark"] .voice,
body[data-theme="dark"] .assistant-preview,
body[data-theme="dark"] .builder-preview,
body[data-theme="dark"] .composed-section.tone-sage {
  background: #203a32;
  color: #e8f1e6;
}
body[data-theme="dark"] .about-story-scene,
body[data-theme="dark"] .about-connect-scene,
body[data-theme="dark"] .workspace aside,
body[data-theme="dark"] .admin-nav { background: #092c25; }
body[data-theme="dark"] .about-hero-copy h1,
body[data-theme="dark"] .about-scene h2,
body[data-theme="dark"] .about-timeline h3,
body[data-theme="dark"] .credits-grid h3,
body[data-theme="dark"] .about-signal-grid strong { color: #d9eee0; }
body[data-theme="dark"] .about-deck,
body[data-theme="dark"] .about-scene > p,
body[data-theme="dark"] .about-timeline p,
body[data-theme="dark"] .credits-grid p,
body[data-theme="dark"] .about-signal-grid small { color: #c0d5c8; }
body[data-theme="dark"] .about-signal-grid div,
body[data-theme="dark"] .credits-grid > div,
body[data-theme="dark"] .vision-list span { background: #203a32; border-color: #49685b; }
body[data-theme="dark"] .founder-tags span { color: #b8e2c7; background: #203a32; border-color: #527367; }
body[data-theme="dark"] .vision-copy { color: #cfe5d6 !important; }
body[data-theme="dark"] .image-assistant-result { background: #203a32; color: #e8f1e6; }
body[data-theme="dark"] .image-assistant-library { border-color: #49685b; }
body[data-theme="dark"] .image-assistant-library small { color: #c0d5c8; }
body[data-theme="dark"] .assistant-result-meta { color: #b8d9c2; }
body[data-theme="dark"] .overview-live-controls [role="status"] { color:#b8d9c2; }
body[data-theme="dark"] .assistant-result-status,
body[data-theme="dark"] .assistant-result-detail { color: #b8d9c2; }
body[data-theme="dark"] .integration-status-grid span,
body[data-theme="dark"] .integration-status-grid small { color: #b8d9c2; }
body[data-theme="dark"] .coffee-support { background: linear-gradient(135deg,#263d32,#203129); border-color:#8a744b; box-shadow:0 18px 34px -30px #07130f; }
body[data-theme="dark"] .coffee-support-copy h2,
body[data-theme="dark"] .coffee-support-copy h3 { color:#f1d899; }
body[data-theme="dark"] .coffee-support-copy p { color:#c0d5c8; }
body[data-theme="dark"] .coffee-support-link { background:#f1d899; color:#17382f; }
body[data-theme="dark"] .coffee-support-link:hover,
body[data-theme="dark"] .coffee-support-link:focus-visible { background:#ffe9a8; color:#17382f; }
body[data-theme="dark"] .credit-coffee-card { background:#293a2e!important; border-color:#8a744b!important; }
body[data-theme="dark"] .coffee-inline-link { color:#f1d899!important; }
body[data-theme="dark"] .coffee-thanks { color:#f1d899!important; }
@media (prefers-color-scheme: dark) {
  body[data-theme="system"] { background-color: #101d1a; color: #e8f1e6; }
}
@media (prefers-reduced-motion: reduce) {
  body,
  body header,
  body footer,
  body article,
  body .rows,
  body .panel-card,
  body input,
  body textarea,
  body select { transition: none; }
}
