/* Dark surfaces and readable foregrounds, active only in dark mode. */
html.speedy-dark {color-scheme:dark;background:#0f172a!important}
html.speedy-dark body,html.speedy-dark #root {background:#0f172a!important;color:#e2e8f0!important}
html.speedy-dark #root :is(h1,h2,h3,h4,h5,h6,p,span,a,li,label,small,strong,div,button,input,textarea,select,summary,td,th){color:#e2e8f0!important}
html.speedy-dark #root :is(h1,h2,h3,h4,h5,h6,strong){color:#f8fafc!important}
html.speedy-dark #root :is(header,footer,main,section,article){background-color:#0f172a!important;border-color:#334155!important}
html.speedy-dark #root :is(.bg-white,.bg-gray-50,.bg-gray-100,.bg-slate-50,.bg-slate-100,.card,[style*="background: rgb(255, 255, 255)"],[style*="background: rgb(241, 245, 249)"],[style*="background: rgb(226, 232, 240)"],[style*="background-color: rgb(255, 255, 255)"],[style*="background:#fff"],[style*="background: #fff"]){background-color:#1e293b!important;border-color:#334155!important;box-shadow:none!important}
html.speedy-dark #root :is([class*="border-gray"],[style*="border:"]){border-color:#334155!important}
html.speedy-dark #root :is(input,textarea,select){background:#1e293b!important;color:#f1f5f9!important;border-color:#475569!important}
html.speedy-dark #root ::placeholder{color:#94a3b8!important;opacity:1}
html.speedy-dark #root header :is(button,a[href="/cart"],a[href="/login"]){background:transparent!important;color:#e2e8f0!important;border-color:transparent!important;box-shadow:none!important}
html.speedy-dark #root header svg{color:#e2e8f0!important}
html.speedy-dark #root :is(a,button,input,select,textarea):focus-visible{outline:2px solid #93c5fd!important;outline-offset:3px}
/* Plain navigation links must not inherit hero button backgrounds. */
html #root a[href="/products"]:not([style*="min-height"]){background:transparent!important;border-color:transparent!important;box-shadow:none!important;color:#334155!important}
html.speedy-dark #root a[href="/products"]:not([style*="min-height"]){color:#e2e8f0!important}


html.speedy-dark #root [style*="background: rgb(255, 241, 242)"]{background:#334155!important;color:#e2e8f0!important}

html.speedy-dark #root header a.block.py-2{background:#273449!important;color:#f1f5f9!important;border:1px solid #475569!important;text-shadow:none!important}html.speedy-dark #root header a.block.py-2:hover,html.speedy-dark #root header a.block.py-2:focus-visible{background:#334155!important;color:#fff!important}

/* Keep the signed-in header account control on the header surface. */
html #root header button:has(svg.lucide-user),html #root header button:has(svg.lucide-user) span{background:transparent!important;border-color:transparent!important;box-shadow:none!important}

/* Keep checkout's internal reference panels on the dark surface. */
html.speedy-dark #root main [class*="bg-white"],
html.speedy-dark #root main [class*="bg-gray-50"],
html.speedy-dark #root main [class*="bg-gray-100"],
html.speedy-dark #root main [class*="bg-slate-50"],
html.speedy-dark #root main [class*="bg-slate-100"],
html.speedy-dark #root main [class*="bg-red-50"],
html.speedy-dark #root main [class*="bg-rose-50"]{background-color:#1e293b!important;color:#e2e8f0!important;border-color:#334155!important;box-shadow:none!important}

/* Selected / validation panels use pale red utilities outside the main wrapper. */
html.speedy-dark #root [class*="bg-red-50"],
html.speedy-dark #root [class*="bg-red-100"],
html.speedy-dark #root [class*="bg-rose-50"],
html.speedy-dark #root [class*="bg-rose-100"],
html.speedy-dark #root [style*="background-color: rgb(254, 242, 242)"],
html.speedy-dark #root [style*="background: rgb(254, 242, 242)"]{background-color:#1e293b!important;color:#e2e8f0!important}
