/* V6.18 — dark-mode contrast guard shared by all embedded and standalone projects. */
html[data-apu-theme="dark"]{
  --apu-readable-ink:#090d15;
  --apu-readable-paper:#f8fafc;
}
html[data-apu-theme="dark"] :where(input,textarea,select){caret-color:currentColor!important}
html[data-apu-theme="dark"] :where(input,textarea)[data-apu-auto-contrast="ink"]::placeholder{color:rgba(9,13,21,.64)!important;opacity:1!important}
html[data-apu-theme="dark"] :where(input,textarea)[data-apu-auto-contrast="paper"]::placeholder{color:rgba(248,250,252,.66)!important;opacity:1!important}
html[data-apu-theme="dark"] :where([class~="bg-white"],[class~="bg-gray-50"],[class~="bg-slate-50"],[class~="bg-zinc-50"],[class~="bg-neutral-50"]){color:var(--apu-readable-ink)!important}
html[data-apu-theme="dark"] :where([class~="bg-black"],[class~="bg-gray-950"],[class~="bg-slate-950"],[class~="bg-zinc-950"],[class~="bg-neutral-950"]){color:var(--apu-readable-paper)!important}
html[data-apu-theme="dark"] [data-apu-auto-contrast="ink"]{color:var(--apu-readable-ink)!important;text-shadow:none!important}
html[data-apu-theme="dark"] [data-apu-auto-contrast="paper"]{color:var(--apu-readable-paper)!important}
html[data-apu-theme="dark"] :where(button,a,input,textarea,select)[data-apu-auto-contrast]{-webkit-text-fill-color:currentColor!important}
