I have an APEX app (v24.2) with a custom theme, where border colors of items are set with a var override (custom CSS):
:root {
--a-field-input-border-color: #f2d985;
}
Theme Global colors → Focus outline is set to d0a661.
So border is light yellow, focus on items is slighly darker yellow.
In Chrome and Edge this works fine. But Firefox overrules the focus color with a dark blue


I have tested this on our own premise and on oracleapex.com. Both with same result.
Seems like a bug in UT for Firefox.