/* Dark mode is screen-only: printed reports retain their existing layouts. */
@media screen {
html[data-ribbon-theme="dark"] {color-scheme:dark;--rr-accent:#adc6f7;--rr-on-accent:#12233e;--rr-tint:#151b24;--rr-ink:#edf3fc;--rr-line:#4a5668;--bs-body-bg:#151b24;--bs-body-color:#e5ebf4;--bs-border-color:#4a5668;--bs-secondary-color:#bbc7d7;--bs-tertiary-bg:#252e3c;}
html[data-ribbon-theme="dark"] body {background:#151b24;color:#e5ebf4;}
html[data-ribbon-theme="dark"] :is(h1,h2,h3,h4,h5,h6,.rr-product) {color:#edf3fc;}
html[data-ribbon-theme="dark"] :is(.card,.rr-step,.rr-header,.rr-footer,.rr-setup-return,.rr-home-tile,.rr-home-status,.rr-counters,.rr-counter,.rr-standings,.rr-standing-panel,.rr-workspace,.rb-panel,.rb-bar,.rb-savebar,.sd-bar,.sd-default,.sd-workspace>aside,.sd-workspace>main) {background:#202936;color:#e5ebf4;border-color:#4a5668;}
html[data-ribbon-theme="dark"] :is(.card-header,.rr-shortcuts,.rr-standings-scroll thead th,.rb-field,.rb-column,.rb-preview .rb-group td,.rb-preview .rb-total td) {background:#2a3545;color:#e5ebf4;}
html[data-ribbon-theme="dark"] :is(a,.rr-nav a,.rr-nav button,.rr-shortcuts a) {color:#b8d2ff;}
html[data-ribbon-theme="dark"] :is(.rr-nav a,.rr-nav button,.rr-shortcuts a,.rr-quick-results button) {background:#202936;border-color:#4a5668;}
html[data-ribbon-theme="dark"] :is(.rr-nav a:hover,.rr-shortcuts a:hover) {background:#354259;color:#fff;}
html[data-ribbon-theme="dark"] .rr-nav a[aria-current="page"] {background:#adc6f7;color:#12233e;}
html[data-ribbon-theme="dark"] :is(.muted,.text-muted,.rr-step p,.rr-footer,.rr-quick-results button small,.rr-home-tile span,.rr-home-status,.rb-help,.rb-field small,.rr-standings-scroll small,.rr-counter span) {color:#bbc7d7!important;}
html[data-ribbon-theme="dark"] :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea,.form-control,.form-select,.rr-theme select) {background-color:#19212d;color:#f1f5fb;border-color:#66758c;}
html[data-ribbon-theme="dark"] input::placeholder,html[data-ribbon-theme="dark"] textarea::placeholder {color:#aebdd0;opacity:1;}
html[data-ribbon-theme="dark"] :is(input,select,textarea):disabled {background-color:#2b3544;color:#b9c4d3;opacity:1;}
html[data-ribbon-theme="dark"] :is(.btn-outline-primary,.btn-outline-secondary,.button-secondary) {background:#202936;color:#c6dcff;border-color:#91add7;}
html[data-ribbon-theme="dark"] :is(.btn-primary,.button:not(.button-secondary):not(.button-danger)) {background:#adc6f7;color:#12233e;border-color:#adc6f7;}
html[data-ribbon-theme="dark"] .btn-outline-primary:hover {background:#adc6f7;color:#12233e;}
html[data-ribbon-theme="dark"] .table {--bs-table-bg:#202936;--bs-table-color:#e5ebf4;--bs-table-striped-bg:#2a3545;--bs-table-striped-color:#e5ebf4;--bs-table-hover-bg:#354259;--bs-table-hover-color:#fff;--bs-table-border-color:#4a5668;}
html[data-ribbon-theme="dark"] :is(.notice,.alert-info,.alert-warning) {background:#302e26;color:#fff1ca;border-color:#ab965c;}
html[data-ribbon-theme="dark"] :is(.success,.alert-success) {background:#203a2b;color:#d0f3dc;border-color:#6ea581;}
html[data-ribbon-theme="dark"] :is(.validation-summary-errors,.field-validation-error,.text-danger) {color:#ffb7be!important;}
html[data-ribbon-theme="dark"] :focus-visible {outline:3px solid #b8d2ff!important;outline-offset:3px;}
html[data-ribbon-theme="dark"] :is(.validation,.text-dark,.rr-counter strong,.rr-home-tile strong,.rr-quick-results button,.rb-eyebrow,.rb-grip) {color:#edf3fc!important;}
html[data-ribbon-theme="dark"] :is(.status-open) {background:#203a2b;color:#d0f3dc;border-color:#6ea581;}
html[data-ribbon-theme="dark"] :is(.status-closed) {background:#303a49;color:#e5ebf4;border-color:#8390a4;}
html[data-ribbon-theme="dark"] :is(.status-setup) {background:#302e26;color:#fff1ca;border-color:#ab965c;}
html[data-ribbon-theme="dark"] code {background:#303a49;color:#f0d2ec;}
html[data-ribbon-theme="dark"] :is(button:disabled,.button:disabled) {opacity:.65;cursor:not-allowed;}
html[data-ribbon-theme="dark"] :is(.bg-light,.bg-white) {background-color:#202936!important;color:#e5ebf4;}
html[data-ribbon-theme="dark"] .text-primary {color:#b8d2ff!important;}
html[data-ribbon-theme="dark"] :is(.bg-warning,.bg-info).text-dark {color:#12233e!important;}
html[data-ribbon-theme="dark"] :is(.rr-desk-tools summary,.form-text,.rb-field small) {color:#bbc7d7;}
/* A white logo plate preserves the existing navy lettering and original artwork. */
html[data-ribbon-theme="dark"] .rr-brand img {background:#fff;border-radius:8px;padding:3px;}
/* Design canvases intentionally represent white paper; keep their text dark. */
html[data-ribbon-theme="dark"] :is(#sd-sheet-preview,.sd-sheet-slot) {background:#fff;color:#243348;}
html[data-ribbon-theme="dark"] :is(.rr-gain>span) {color:#9ee3b4;}
html[data-ribbon-theme="dark"] :is(.rr-drop>span) {color:#ffb7be;}
}
