@layer live-preview {
  html[data-preview-theme="dark"],
  html[data-preview-theme="dark"] body,
  html[data-preview-theme="dark"] .auth-landing-shell,
  html[data-preview-theme="dark"] .cl-home {
    background: #292928 !important;
    color: #ebebeb !important;
    color-scheme: dark;
  }

  html[data-preview-theme="dark"] .cl-home :is(.cl-header,.cl-hero,.cl-section,.cl-footer,.cl-prompt) {
    background: #292928 !important;
    color: #ebebeb !important;
    border-color: #494948 !important;
  }

  html[data-preview-theme="dark"] .cl-home .cl-prompt {
    box-shadow: none !important;
  }

  html[data-preview-theme="dark"] .cl-home :is(h1,h2,h3,h4,p,.cl-description,.cl-word-item,.cl-brand,.cl-brand strong,.cl-footer a,.cl-tile-label,.cl-media-label,button,a,label) {
    color: #ebebeb !important;
    -webkit-text-fill-color: #ebebeb !important;
  }

  html[data-preview-theme="dark"] .cl-home :is(.cl-brand,.cl-brand strong) {
    background: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html[data-preview-theme="dark"] .cl-home :is(.cl-brand,.cl-brand strong)::before,
  html[data-preview-theme="dark"] .cl-home :is(.cl-brand,.cl-brand strong)::after {
    background: none !important;
    box-shadow: none !important;
  }

  html[data-preview-theme="dark"] .cl-home .cl-prompt :is(input,textarea),
  html[data-preview-theme="dark"] .cl-home .cl-prompt :is(input,textarea)::placeholder {
    color: #ebebeb !important;
    -webkit-text-fill-color: #ebebeb !important;
    opacity: 1 !important;
  }

  html[data-preview-theme="dark"] .cl-home .cl-showcase-marquee {
    --cl-marquee-edge: #292928;
  }

  html[data-preview-theme="dark"] .cl-home .cl-showcase-marquee::before,
  html[data-preview-theme="dark"] .cl-home .cl-showcase-row::before {
    background-image: linear-gradient(90deg,#292928,transparent) !important;
  }

  html[data-preview-theme="dark"] .cl-home .cl-showcase-marquee::after,
  html[data-preview-theme="dark"] .cl-home .cl-showcase-row::after {
    background-image: linear-gradient(270deg,#292928,transparent) !important;
  }

  html[data-preview-theme="dark"] body.workspace-readable .app-shell {
    color: #ebebeb !important;
  }

  html[data-preview-theme="dark"] body.workspace-readable .app-shell :where(.lime-workbench,.lime-inner,.studio-stage,.topbar,.workspace-global-search,.workspace-global-search input,.output-zone,.output-panel,.empty-state,.workspace-image-carousel,.workspace-carousel-slide,.workspace-carousel-dots,.dashboard-recent,.design-records,.design-record-strip,.design-record-empty,.dashboard-scenes,.dashboard-featured,.template-card,.dashboard-scene-copy,.dashboard-membership,.dashboard-prompt-surface,.dashboard-prompt-box,.result-card,.task-row,.task-center-card,.task-center-toolbar,.desktop-account-popover,.dropdown-panel,textarea,select) {
    background-color: #292928 !important;
    color: #ebebeb !important;
    border-color: #494948 !important;
    box-shadow: none !important;
  }

  html[data-preview-theme="dark"] body.workspace-readable .app-shell :where(.lime-workbench,.studio-stage,.topbar,.workspace-global-search,.dashboard-recent,.dashboard-scenes,.dashboard-membership,.dashboard-scene-copy,.dashboard-prompt-surface,.dashboard-prompt-box) {
    background-image: none !important;
  }

  html[data-preview-theme="dark"] body.workspace-readable .app-shell :where(h1,h2,h3,h4,p,a,button,span,strong,b,small,label,time,em,input,textarea,select) {
    color: #ebebeb !important;
    -webkit-text-fill-color: currentColor !important;
  }

  html[data-preview-theme="dark"] body.workspace-readable .app-shell :where(input,textarea)::placeholder {
    color: #ebebeb !important;
    opacity: 1 !important;
  }

  html[data-preview-theme="dark"] body.workspace-readable .app-shell :where(#workspaceHomeLink,#brandMark) {
    background: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html[data-preview-theme="dark"] body.workspace-readable .app-shell :where(.design-record-card.completed .design-record-copy em) {
    background: #1c392f !important;
  }

  html[data-preview-theme="dark"] body.workspace-readable .app-shell :where(.design-record-card.failed .design-record-copy em) {
    background: #602331 !important;
  }

  html[data-preview-theme="dark"] body.workspace-readable .app-shell :where(.design-record-card:not(.completed,.failed) .design-record-copy em) {
    background: #213b5b !important;
  }

  html[data-preview-theme="dark"] body.workspace-readable #brandMark img {
    filter: brightness(0) invert(1) !important;
  }

  html[data-preview-theme="dark"] body.workspace-readable #openAllTasksBtn {
    background: #292928 !important;
    border-color: #565656 !important;
    box-shadow: none !important;
  }

  html[data-preview-theme="dark"] body.workspace-readable .workspace-global-search svg {
    color: #ebebeb !important;
  }

}
