.eden-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
  vertical-align: middle;
}
.brand {
  gap: 12px;
}
.account-shell .brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.eden-theme-toggle {
  font: inherit;
  font-size: 12px !important;
  line-height: 1.5;
  padding: 9px 12px !important;
  border: 1px solid #cbd9cc !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #315d46 !important;
  min-height: 40px;
  white-space: nowrap;
}
.account-shell .eden-theme-toggle {
  margin-left: auto;
}
html[data-theme="dark"] .eden-category-enter {
  color: #abd5b1;
}
html[data-theme="dark"] button {
  transition: none;
}
/* Deliberately no filter or iframe document injection: artwork remains unchanged. */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e5eae4;
  --muted: #a7b6aa;
  --green: #6ba88a;
  --green-soft: #243c31;
  --line: #3b4a40;
  --paper: #151d19;
  --warm: #1d2922;
  --white: #202d25;
  --shadow: none;
  background: #151d19;
  color: #e5eae4;
}
html[data-theme="dark"] body {
  background: #151d19;
  color: #e5eae4;
}
html[data-theme="dark"]
  :is(
    .header,
    .rail,
    .topbar,
    .card,
    .editor-card,
    .eden-bottom-nav,
    .mode-tabs button,
    .phone-stage,
    .note-card,
    .account-shell,
    .stat,
    .eden-bar,
    .eden-work,
    .profile-shortcuts,
    .tag-group,
    .example-card,
    .eden-category-card,
    .eden-category-toolbar,
    .rail-bottom,
    .output-toolbar,
    .mobile-jumps,
    dialog,
    .dialog-head,
    .dialog-body,
    .dialog-footer,
    .image-context,
    .image-comparison > div
  ) {
  background: #202d25 !important;
  color: #e5eae4 !important;
  border-color: #3b4a40 !important;
  box-shadow: none !important;
}
html[data-theme="dark"]
  :is(
    input,
    textarea,
    select,
    pre,
    #artifactEditor,
    #promptText,
    .resource-url,
    .rule-note,
    .validation-report,
    .notice
  ) {
  background: #17221b !important;
  color: #e2eae2 !important;
  border-color: #415345 !important;
}
html[data-theme="dark"]
  :is(
    button,
    a.button,
    .chip,
    .secondary,
    .compact-btn,
    .api-button,
    .eden-theme-toggle
  ) {
  background: #2a3c30 !important;
  color: #e4eee3 !important;
  border-color: #465b49 !important;
}
html[data-theme="dark"] :is(.primary, .fixed-download) {
  background: #467c5f !important;
  color: #fff !important;
}
html[data-theme="dark"]
  :is(button.active, button.selected, .eden-bottom-nav [aria-current="page"]) {
  background: #33523f !important;
  color: #e7f9e8 !important;
  border-color: #72a682 !important;
}
html[data-theme="dark"] :is(a, .brand, h1, h2, h3, label, .stat b) {
  color: #e1eddf;
}
html[data-theme="dark"]
  :is(
    .muted,
    small,
    .section-help,
    .page-heading p,
    .eyebrow,
    .preview-caption,
    .tag-mode-hint,
    .rail-bottom p,
    .brief-foot,
    .eden-profile,
    .eden-price,
    .eden-category-card p
  ) {
  color: #a9bcaa !important;
}
html[data-theme="dark"]
  :is(.profile-identity, #points, .pills, .selected-tag-tray) {
  background: #243c2e !important;
  color: #deeddc !important;
}
html[data-theme="dark"] :is(.danger, .notice.error, .error) {
  color: #ffb8a9 !important;
}
html[data-theme="dark"] :is(th, td, .header, .nav) {
  border-color: #415345;
}
html[data-theme="dark"] iframe {
  color-scheme: light;
  background: #fff;
}
