/* Global gray theme */
:root {
    --theme-bg: #d1d5db;
    --theme-surface: #f3f4f6;
    --theme-text: #111827;
    color-scheme: light;
}

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

.card {
    background: var(--theme-surface) !important;
}

/* Force light form controls across the site */
input,
select,
textarea {
    background: #ffffff !important;
    color: #111827 !important;
    color-scheme: light;
}

input::placeholder,
textarea::placeholder {
    color: #6b7280;
}

/* Keep autofill text readable */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: #111827;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
}

/* Extra safety against dark-mode/extension overrides */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
select,
textarea {
    box-shadow: 0 0 0 1000px #ffffff inset !important;
}
