:root {
    color-scheme: light;
    --site-bg: #f9fafb;
    --site-card: #ffffff;
    --site-text: #111827;
    --site-muted: #6b7280;
    --site-border: #e5e7eb;
    --site-panel: #f3f4f6;
    --site-panel-strong: #e5e7eb;
    --site-highlight: #fef3c7;
    --site-highlight-border: #f59e0b;
}

html.theme-dark {
    color-scheme: dark;
    --site-bg: #0b1120;
    --site-card: #0f172a;
    --site-text: #e5e7eb;
    --site-muted: #94a3b8;
    --site-border: #1f2937;
    --site-panel: #111827;
    --site-panel-strong: #1f2937;
    --site-highlight: #312106;
    --site-highlight-border: #fbbf24;
}

body {
    background-color: var(--site-bg) !important;
    color: var(--site-text) !important;
}

html.theme-dark .bg-gray-50 {
    background-color: var(--site-bg) !important;
}

html.theme-dark .bg-white {
    background-color: var(--site-card) !important;
}

html.theme-dark .bg-gray-100 {
    background-color: var(--site-panel) !important;
}

html.theme-dark .bg-gray-200 {
    background-color: var(--site-panel-strong) !important;
}

html.theme-dark .border-gray-200,
html.theme-dark .border-gray-300 {
    border-color: var(--site-border) !important;
}

html.theme-dark .text-gray-900,
html.theme-dark .text-gray-800,
html.theme-dark .text-gray-700 {
    color: var(--site-text) !important;
}

html.theme-dark .text-gray-600,
html.theme-dark .text-gray-500 {
    color: var(--site-muted) !important;
}

html.theme-dark .bg-yellow-50 {
    background-color: #3b2f14 !important;
}

html.theme-dark .text-yellow-900 {
    color: #fcd34d !important;
}

html.theme-dark .bg-yellow-100 {
    background-color: #3b2f14 !important;
}

html.theme-dark .text-yellow-800 {
    color: #fcd34d !important;
}

html.theme-dark .bg-blue-50 {
    background-color: #0b1f3a !important;
}

html.theme-dark .border-blue-200 {
    border-color: #1e3a8a !important;
}

html.theme-dark .kitchen-step-active {
    background: var(--site-highlight) !important;
    border-left-color: var(--site-highlight-border) !important;
}

html.theme-dark .markdown-preview,
html.theme-dark .kitchen-instructions {
    color: var(--site-text) !important;
}

html.theme-dark input,
html.theme-dark textarea,
html.theme-dark select {
    background-color: var(--site-card) !important;
    color: var(--site-text) !important;
    border-color: var(--site-border) !important;
}

html.theme-dark input::placeholder,
html.theme-dark textarea::placeholder {
    color: var(--site-muted) !important;
}
