/* Field text follows the surface: dark in the workspace, light on public pages. */
:root {
    --field-label-color: #eef6ff;
    --field-placeholder-color: #91a4b7;
}

.app-shell,
.workshop,
.parts-stock-editor {
    --field-label-color: #111827;
    --field-placeholder-color: #64748b;
}

body label,
body legend {
    color: var(--field-label-color) !important;
    font-weight: 700;
}

body .app-shell .app-main :is(label, legend),
body .workshop :is(label, legend),
body .parts-stock-editor :is(label, legend) {
    color: #111827 !important;
    font-weight: 700;
}

body label > :is(span, strong, b),
body legend > :is(span, strong, b) {
    color: var(--field-label-color) !important;
}

body input::placeholder,
body textarea::placeholder {
    color: var(--field-placeholder-color) !important;
    opacity: 1;
}
