/* Applies synchronously as the existing appearance boot resolves the mode. */
html:is([data-appearance="cream"],[data-website-appearance="woodland"]) {
  --heddy-start-surface: #f2e7d7;
  --heddy-start-ink: #302219;
}
html[data-appearance="light"] {
  --heddy-start-surface: #fff;
  --heddy-start-ink: #171717;
}
@media (prefers-color-scheme: light) {
  html[data-appearance="system"] {
    --heddy-start-surface: #fff;
    --heddy-start-ink: #171717;
  }
}
html:is([data-appearance="cream"],[data-appearance="light"],[data-website-appearance="woodland"]),
html:is([data-appearance="cream"],[data-appearance="light"],[data-website-appearance="woodland"]) :is(body,#root):has(#root:empty,.initial-seo-fallback),
html:is([data-appearance="cream"],[data-appearance="light"],[data-website-appearance="woodland"]) :is(#root:empty,main[aria-busy="true"][aria-live="polite"]) {
  background-color: var(--heddy-start-surface) !important;
}
@media (prefers-color-scheme: light) {
  html[data-appearance="system"],html[data-appearance="system"] :is(body:has(#root:empty),#root:empty,#root:has(.initial-seo-fallback),main[aria-busy="true"][aria-live="polite"]) {
    background-color: var(--heddy-start-surface) !important;
  }
}
html:is([data-appearance="cream"],[data-website-appearance="woodland"]) .hedwig-loader-spin circle {stroke: #74472e}
@layer waldeule-auswahl {
  html[data-appearance="cream"]:root body .nest-identity > .nest-tab-row,
  html[data-appearance="cream"]:root body .nest-identity > .nest-tab-row .nest-tabs.n2-tabs {
    background: transparent !important;
  }
  html[data-appearance="cream"]:root body .nest-identity .nest-tab-row .nest-tabs > .nav-link.active {
    box-shadow: inset 0 0 0 1px var(--wahl-kante) !important;
  }
}

/* The static public shell may contain whitespace before React mounts. */
html[data-website-appearance="woodland"] body #root:not(:has(> *)),
html[data-website-appearance="woodland"] body #root:has(> [data-seo-fallback]) {
  background-color: #f2e7d7 !important;
}
html[data-website-appearance="woodland"] #faq summary .tabular-nums {color:#675240 !important}

html:is([data-website-appearance="dark"],[data-appearance="dark"]) :is(button,a,[data-slot="badge"]).bg-primary,
html[data-website-appearance="dark"] a.tour-start {
  background-color:#c92d3b !important;
  color:#fff !important;
}
@media (hover:hover) {
  html:is([data-website-appearance="dark"],[data-appearance="dark"]) :is(button,a).bg-primary:hover,
  html[data-website-appearance="dark"] a.tour-start:hover {background-color:#b72532 !important}
}
html[data-website-appearance="dark"] a.text-primary {color:#ff707b !important}
html[data-website-appearance="dark"] footer [class*="text-muted-foreground/"] {color:#aaa7ac !important}
html[data-appearance="dark"] .pricing-card [class*="text-muted-foreground/"] {color:#b5b1b4 !important}

/* Before the standalone PWA mounts it has no resolved dark class yet. */
html[data-appearance="dark"]:has(#root:empty),
html[data-appearance="dark"] body:has(#root:empty),
html[data-appearance="dark"] #root:empty {background-color:#0f0f10 !important;color-scheme:dark}
@media (prefers-color-scheme: dark) {
  html[data-appearance="system"]:has(#root:empty),
  html[data-appearance="system"] body:has(#root:empty),
  html[data-appearance="system"] #root:empty {background-color:#0f0f10 !important;color-scheme:dark}
}

html[data-appearance="light"],html[data-website-appearance="woodland"] {--readable-primary:#a91f31}
html[data-appearance="dark"],html[data-website-appearance="dark"] {--readable-primary:#ff7781}
html:is([data-appearance="light"],[data-appearance="dark"],[data-website-appearance="dark"])
main :is(p,span,div,button)[class~="text-primary"]:not(.brand-wordmark__crm,.bg-primary),
html:is([data-appearance="light"],[data-appearance="dark"]) .pricing-card [class~="text-primary/85"],
html[data-website-appearance="woodland"] main p.uppercase.text-primary {color:var(--readable-primary) !important}
html:is([data-appearance="light"],[data-appearance="dark"]) main :is(.bg-primary.text-primary-foreground,button.bg-primary,a.bg-primary,.nest-add-content.primary) {
  background-color:#c92d3b !important;color:white !important;
}
@media (hover:hover) {
  html:is([data-appearance="light"],[data-appearance="dark"]) main :is(button.bg-primary,a.bg-primary,.nest-add-content.primary):hover {background-color:#b72532 !important}
}
html[data-appearance="light"] main :is(.text-muted-foreground,[class~="text-muted-foreground/60"],[class~="text-muted-foreground/70"],[class~="text-muted-foreground/90"]) {color:#525c67 !important}
html[data-appearance="light"] main .pricing-card .app-plan-cadence--monthly,
html[data-appearance="light"] main [data-slot="badge"][class*="text-emerald-"] {color:#246341 !important}
html[data-appearance="light"] main pre[class~="bg-black/40"] {background:#f1f2f4 !important;color:#30383f !important}
html[data-appearance="light"] main .text-indigo-300 {color:#474394 !important}
html[data-appearance="light"] main .text-rose-300 {color:#973349 !important}
html[data-appearance="light"] main [data-slot="badge"][class*="text-sky-"] {color:#185579 !important}
html[data-website-appearance="dark"] .dieter-datenschutz a[href] {color:#ff7781 !important}
html[data-appearance="dark"] .hm-tabs button[aria-pressed="true"] {color:#ff8790 !important}
html[data-appearance="dark"] button.hm-plan-action {background-color:#bf2938 !important;color:white !important}
html[data-appearance="light"] button.hm-plan-action {background-color:#bf2938 !important;color:white !important}
html[data-appearance="light"] main h1 > span[style*="rgb(230, 57, 70)"] {color:#a91f31 !important}
