/* 23.11 A1 dark theme fixes (owner: «ночные темы: сливаются шрифты, не видно; логотипы; во всех админках»). Shops follow the visitor's
   OS dark mode; the dark palette inverts navy/steel text but some light surfaces stayed light, and a few dark inks stayed dark.
   Storefront (via _chrome/styles.html) and admin pages (linked in their head). Same rules in the core (BaseLayout, WORKLOG 173). */

/* the header: its ink follows the dark header (a light-header profile left the «× A1EX» mark dark on dark - U-Shop) */
html[data-theme="dark"] { --header-ink: #f1f2f4; --header-muted: #aab4c3; }

/* light surfaces the dark theme kept light while their text turned light */
html[data-theme="dark"] .bg-gold-50 { background-color: rgba(200, 146, 42, .10) !important; border-color: rgba(200, 146, 42, .28) !important; }
html[data-theme="dark"] .bg-gold-100 { background-color: rgba(200, 146, 42, .24) !important; }
html[data-theme="dark"] .bg-gold-50 :is(.text-gold-700, .text-gold-800, .text-gold-900),
html[data-theme="dark"] .bg-gold-100 :is(.text-gold-700, .text-gold-800, .text-gold-900),
html[data-theme="dark"] :is(.bg-gold-50, .bg-gold-100):is(.text-gold-700, .text-gold-800, .text-gold-900) { color: #f0c977 !important; }
html[data-theme="dark"] .text-navy-900, html[data-theme="dark"] .text-navy-950 { color: var(--color-text) !important; }

/* contact page: the shop's accent line and the small labels (accent of a dark brand - navy, wine, plum - vanished on navy) */
html[data-theme="dark"] .sc-k, html[data-theme="dark"] .sc-h span, html[data-theme="dark"] .sc-lbl--gold { color: color-mix(in srgb, var(--h-em, #c8922a) 42%, #f3efe8) !important; }
html[data-theme="dark"] .sc-lbl, html[data-theme="dark"] .sc-mail small, html[data-theme="dark"] .sc-card small { color: #a3abb9 !important; }

/* marque pages (Lux Watch «Omega» …): the section stays light, its text goes back to dark ink */
html[data-theme="dark"] section.mq { color: #0b0d10; }
html[data-theme="dark"] section.mq :is(.text-steel-400, .text-steel-500, .text-steel-600) { color: #5b6472 !important; }
html[data-theme="dark"] section.mq :is(.text-navy-600, .text-navy-700, .text-navy-800, .text-steel-700, .text-steel-800, .text-steel-900) { color: #1b2230 !important; }

/* HotBear home: «What's the mood?» */
html[data-theme="dark"] .dh-play__moods > h2 { color: var(--color-text) !important; }

/* admin: its own cards and the slate text the dark palette did not know */
html[data-theme="dark"] :is(.stat-card, .admin-panel, .an-panel) { background-color: var(--color-bg-card) !important; border-color: var(--color-border) !important; }
html[data-theme="dark"] :is(.text-slate-900, .text-slate-800, .text-slate-700, .text-gray-900, .text-gray-800) { color: var(--color-text) !important; }
html[data-theme="dark"] :is(.text-slate-600, .text-slate-500, .text-gray-600) { color: var(--color-text-muted) !important; }
html[data-theme="dark"] :is(.bg-slate-50, .bg-slate-100, .bg-gray-100) { background-color: var(--color-surface) !important; }
html[data-theme="dark"] .border-slate-200, html[data-theme="dark"] .border-slate-100 { border-color: var(--color-border) !important; }

/* product stories (watch / wine chapters): chapter marks and the chapter menu took the shop's dark accent on the dark story */
html[data-theme="dark"] :is(.pst-kick, .pst-no, .pst-nav a, .pst-nav a span) { color: color-mix(in srgb, var(--color-accent, #c8922a) 55%, #f3efe8) !important; }
html[data-theme="dark"] :is(.pst-facts dt, .pst-src-note) { color: #a3abb9 !important; }

/* dark accent words (gold / green 700-800 of the shop palette are not inverted by the dark theme) */
html[data-theme="dark"] :is(.text-gold-600, .text-gold-700, .text-gold-800) { color: var(--color-accent, #e8a83a) !important; }
html[data-theme="dark"] :is(.text-green-700, .text-emerald-700, .text-green-800) { color: #4ade80 !important; }

/* admin tables stay light (their links and actions are drawn for white): only the grey note under them goes dark-ink */
html[data-theme="dark"] .table-panel :is(.text-steel-400, .text-steel-500, .text-steel-600) { color: #6b7280 !important; }
/* «Столбцы по умолчанию» (inline navy): light over the dark page, navy inside a light table panel */
html[data-theme="dark"] [data-cols-reset] { color: var(--color-text-muted) !important; }
html[data-theme="dark"] .table-panel [data-cols-reset] { color: #1B2B4B !important; }
/* the dashboard's chart box */
html[data-theme="dark"] [class*="bg-[#FBFCFE]"] { background-color: var(--color-surface) !important; }
