/* SCOFMP V94: additive, non-layout-breaking design tokens and contrast. */
:root{--sco-gold:#c9ac6b;--sco-navy:#172c39;--sco-forest:#205144;--sco-border:#d6dfe2;--sco-surface:#fff;--sco-muted:#52636d;--sco-focus:#287a9b}
html{accent-color:var(--sco-forest)}
:where(button,input,select,textarea,a){font-family:inherit}
:where(button,a,input,select,textarea):focus-visible{outline:3px solid var(--sco-focus);outline-offset:2px}
:where(.card,.panel,.admin-card,.tool-card){border-radius:10px}
:where(button,.btn,input[type=submit],input[type=button]){transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}
:where(.under-bar){background:var(--sco-gold)}
:where(.under-bar .tab-link.active){background:var(--sco-navy);color:#fff}
/* Only the dark palette changes; avoid resizing existing page layouts or logos. */
html[data-scofmp-theme=dark]{--sco-gold:#bfa363;--sco-navy:#203947;--sco-forest:#43836b;--sco-border:#4b606c;--sco-surface:#1c2d38;--sco-muted:#b8cbd5;--sco-focus:#9dd5ee;color-scheme:dark}
html[data-scofmp-theme=dark] :where(.card,.panel,.admin-card,.tool-card){border-color:var(--sco-border)}
html[data-scofmp-theme=dark] :where(input:not([type=checkbox]):not([type=radio]),select,textarea){background-color:#243b48;color:#f2f7fa;border-color:#6e8996}
html[data-scofmp-theme=dark] :where(input,textarea)::placeholder{color:#bfd0d9}
html[data-scofmp-theme=dark] :where(.btn-secondary,button.secondary){background:#344e5d;color:#fff;border-color:#728997}
html[data-scofmp-theme=dark] :where(.under-bar){background:var(--sco-gold)}
html[data-scofmp-theme=dark] :where(.under-bar .tab-link){color:#14222c}
html[data-scofmp-theme=dark] :where(.under-bar .tab-link.active){color:#fff}
.scofmp-theme-toggle{min-height:42px;min-width:110px;white-space:nowrap}
@media(max-width:650px){.scofmp-theme-toggle{bottom:calc(10px + env(safe-area-inset-bottom,0px));right:10px;min-width:44px;min-height:44px} :where(.admin-card,.tool-card){max-width:100%}}
