/* Shared theme styles are loaded before the page can paint. */
:root {
  color-scheme: dark;
  --site-bg: #111827;
  --site-text: #e2e8f0;
  --site-muted: #94a3b8;
  --site-panel: rgba(31, 41, 55, 0.82);
  --site-panel-strong: rgba(17, 24, 39, 0.86);
  --site-border: rgba(55, 65, 81, 0.95);
  --site-footer-bg: #17212b;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 820ms;
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  animation-fill-mode: both;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  animation-name: theme-view-fade-out;
}
::view-transition-new(root) {
  animation-name: theme-view-fade-in;
}
@keyframes theme-view-fade-out {
  from {
    opacity: 1;
    filter: saturate(1);
  }
  to {
    opacity: 0;
    filter: saturate(0.92);
  }
}
@keyframes theme-view-fade-in {
  from {
    opacity: 0;
    filter: saturate(1.08);
  }
  to {
    opacity: 1;
    filter: saturate(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}
html[data-theme="day"] {
  color-scheme: light;
  --site-bg: #f6f8fb;
  --site-text: #0f172a;
  --site-muted: #475569;
  --site-soft: #e8edf5;
  --site-panel: rgba(255, 255, 255, 0.94);
  --site-panel-strong: rgba(248, 250, 252, 0.98);
  --site-border: rgba(148, 163, 184, 0.72);
  --site-footer-bg: #e2e8ed;
}
html[data-theme="day"] body {
  background-color: var(--commerce-bg, var(--site-bg)) !important;
  color: var(--commerce-ink, var(--site-text)) !important;
}
html[data-theme="day"] nav {
  background-color: var(--commerce-bg, #f5f4f8) !important;
  border-color: var(--commerce-line) !important;
}
footer.site-footer,
html[data-theme="day"] footer.site-footer {
  background-color: var(--site-footer-bg) !important;
  border-color: var(--commerce-line, var(--site-border)) !important;
}
html[data-theme="day"] .site-footer nav {
  background-color: transparent !important;
}
html[data-theme="day"] .bg-black,
html[data-theme="day"] .bg-black\/90,
html[data-theme="day"] .bg-neutral-950,
html[data-theme="day"] .bg-neutral-900 {
  background-color: var(--commerce-bg, #f5f4f8) !important;
}
html[data-theme="day"] .bg-white\/5 {
  background-color: rgba(15, 23, 42, 0.04) !important;
}
html[data-theme="day"] .border-white\/10,
html[data-theme="day"] .border-white\/15,
html[data-theme="day"] .hover\:border-white\/35:hover {
  border-color: rgba(15, 23, 42, 0.16) !important;
}
html[data-theme="day"] .bg-gray-900 {
  background-color: #f8fafc !important;
}
html[data-theme="day"] .bg-gray-800 {
  background-color: var(--site-soft) !important;
}
html[data-theme="day"] .bg-slate-900,
html[data-theme="day"] .bg-slate-950,
html[data-theme="day"] .bg-gray-900\/80,
html[data-theme="day"] .bg-gray-900\/75,
html[data-theme="day"] .bg-gray-900\/70,
html[data-theme="day"] .bg-slate-900\/80,
html[data-theme="day"] .bg-slate-900\/70,
html[data-theme="day"] .bg-slate-950\/60 {
  background-color: var(--site-panel-strong) !important;
}
html[data-theme="day"] .bg-gray-800\/80,
html[data-theme="day"] .bg-gray-800\/70,
html[data-theme="day"] .bg-gray-800\/60,
html[data-theme="day"] .bg-gray-700\/60,
html[data-theme="day"] .bg-slate-800\/80 {
  background-color: var(--site-panel) !important;
}
html[data-theme="day"] .bg-gray-700\/60,
html[data-theme="day"] .bg-slate-800\/80 {
  background-color: #eef2f7 !important;
}
html[data-theme="day"] .text-white,
html[data-theme="day"] .text-white\/80,
html[data-theme="day"] .text-white\/75,
html[data-theme="day"] .text-white\/70,
html[data-theme="day"] .text-white\/60,
html[data-theme="day"] .text-white\/45,
html[data-theme="day"] .text-white\/40,
html[data-theme="day"] .text-gray-100,
html[data-theme="day"] .text-gray-200,
html[data-theme="day"] .text-gray-300,
html[data-theme="day"] .text-slate-400 {
  color: #111827 !important;
}
html[data-theme="day"] .text-gray-400,
html[data-theme="day"] .text-gray-500,
html[data-theme="day"] .text-slate-400 {
  color: var(--site-muted) !important;
}
html[data-theme="day"] .hover\:text-white:hover {
  color: #111827 !important;
}
.brand-name {
  color: var(--commerce-ink, #f7f4ed) !important;
}
html[data-theme="day"] .brand-name {
  color: var(--commerce-ink, #111111) !important;
}
html[data-theme="day"] .bg-indigo-600,
html[data-theme="day"] .hover\:bg-indigo-700:hover {
  background-color: var(--commerce-action) !important;
}
html[data-theme="day"] .bg-indigo-600.text-white,
html[data-theme="day"] .bg-indigo-600 .text-white,
html[data-theme="day"] a.bg-indigo-600,
html[data-theme="day"] button.bg-indigo-600,
html[data-theme="day"] .h-10.w-10.bg-indigo-600,
html[data-theme="day"] .h-12.w-12.bg-indigo-600 {
  color: var(--commerce-action-ink) !important;
}
html[data-theme="day"] .text-indigo-400,
html[data-theme="day"] .text-indigo-300,
html[data-theme="day"] .text-indigo-200 {
  color: var(--commerce-accent) !important;
}
html[data-theme="day"] .bg-gradient-to-r.from-indigo-400.to-purple-500 {
  background-image: linear-gradient(to right, #cbd5e1, #64748b) !important;
}
html[data-theme="day"] .border-gray-800,
html[data-theme="day"] .border-gray-700,
html[data-theme="day"] .border-slate-700,
html[data-theme="day"] .border-slate-700\/80,
html[data-theme="day"] .border-slate-600 {
  border-color: var(--site-border) !important;
}
html[data-theme="day"] input,
html[data-theme="day"] textarea,
html[data-theme="day"] select {
  background-color: rgba(255, 255, 255, 0.94) !important;
  color: #111827 !important;
}
html[data-theme="day"] input::placeholder,
html[data-theme="day"] textarea::placeholder {
  color: #64748b !important;
}
html[data-theme="day"] .tooltip-content {
  background-color: #111827 !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(15, 23, 42, 0.18);
}
html[data-theme="day"] .tooltip-content .text-gray-200,
html[data-theme="day"] .tooltip-content .text-gray-300,
html[data-theme="day"] .tooltip-content .text-gray-400 {
  color: #e5e7eb !important;
}
html[data-theme="day"] .shadow-indigo-900\/40 {
  box-shadow: 0 14px 32px rgba(100, 148, 181, 0.18) !important;
}
html[data-theme="day"] .shadow-xl,
html[data-theme="day"] .shadow-2xl {
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08) !important;
}
html[data-theme="day"] .commerce-page .commerce-btn-dark,
html[data-theme="day"] .commerce-page .filter-button[aria-pressed="true"] {
  background-color: var(--commerce-ink) !important;
  border-color: var(--commerce-ink) !important;
  color: var(--commerce-bg) !important;
}
html[data-theme="day"] .commerce-page .commerce-btn-dark *,
html[data-theme="day"] .commerce-page .filter-button[aria-pressed="true"] * {
  color: var(--commerce-bg) !important;
}
.commerce-page a.bg-white,
.commerce-page button.bg-white,
.commerce-page .bg-white {
  background-color: #f7f4ed !important;
  color: #070707 !important;
}
.commerce-page a.bg-white *,
.commerce-page button.bg-white *,
.commerce-page .bg-white * {
  color: #070707 !important;
}

/* Shared action colors remain readable in both themes, including icon children. */
html[data-theme="day"] .commerce-page .commerce-btn-primary,
html[data-theme="day"] .legacy-commerce .bg-indigo-600,
html[data-theme="day"] .legacy-commerce .hover\:bg-indigo-700:hover {
  background-color: var(--commerce-action) !important;
  border-color: var(--commerce-action) !important;
  color: var(--commerce-action-ink) !important;
}
html[data-theme="day"] .commerce-page .commerce-btn-primary *,
html[data-theme="day"] .legacy-commerce .bg-indigo-600 *,
html[data-theme="day"] .legacy-commerce .hover\:bg-indigo-700:hover * {
  color: var(--commerce-action-ink) !important;
}
