/* Shared screen palette, including late-loaded report styles and select enhancement. */
@media screen and (prefers-color-scheme:dark){
.monthly-closure{background:#172535!important;color:#e7eff7!important;border-color:#3f566a!important}
.monthly-closure .closure-heading h2{color:#e7eff7!important}
.monthly-closure .closure-heading .muted{color:#b1c4d4!important}
.closure-filters button{background:#1d2f41!important;color:#e7eff7!important;border-color:#3f566a!important}
.closure-filters button.active,.closure-filters button[aria-pressed=true]{background:#0e68a5!important;color:#fff!important;border-color:#378ac1!important}
.closure-record-link{color:#80c9f9!important}
select[data-cf-select],.toolbar select{background-color:#122131!important;color:#e7eff7!important;border-color:#3f566a!important;color-scheme:dark}
.cf-unified-heading,.cf-unified-status,.cf-unified-empty,.cf-unified-group{color:#b1c4d4!important}
.cf-unified-close{background:#1d2f41!important;color:#e7eff7!important}
.cf-unified-dropdown,.cf-unified-search{border-color:#3f566a!important}
}
@media screen and (prefers-color-scheme:dark){
/* Runtime fleet tiles and forms inject a separate white palette. */
.app-content .cf-fleet-assets [data-slot=card],.cf-fleet-assets>form{background:#172535!important;color:#e7eff7!important;border-color:#3f566a!important}
.app-content .cf-fleet-assets [data-slot=card-title],.cf-fleet-assets form label{color:#e7eff7!important}
.app-content .cf-fleet-assets :is([data-slot=card-description],[data-slot=card-content],.cf-asset-note,.cf-asset-assignment){color:#b1c4d4!important}
.cf-fleet-assets :is(input:not([type=checkbox]),textarea,select){background:#122131!important;color:#e7eff7!important;border-color:#3f566a!important}
.cf-fleet-assets nav[aria-label='Vozový park'] button:not([aria-pressed=true]),.cf-fleet-assets form button[type=button],.cf-fleet-assets [data-slot=card-content] button:not([aria-label^='Vymazať']){background:#1d2f41!important;color:#e7eff7!important;border-color:#3f566a!important}
.cf-fleet-assets .cf-asset-state{background:#203c30!important;color:#b7edc8!important;border-color:#496d57!important}
.cf-fleet-assets .cf-asset-state[data-active=false]{background:#1d2f41!important;color:#b1c4d4!important;border-color:#3f566a!important}
/* The service panel has inline styles rather than stylesheet declarations. */
.cf-service-panel{background:#172535!important;color:#e7eff7!important;border-color:#3f566a!important}
.cf-service-panel p,.cf-service-panel span[style*='color']{color:#b1c4d4!important}
.cf-service-panel [role=status]{background:#1d2f41!important}
.cf-service-panel .cf-service-row{border-color:#3f566a!important}
.cf-service-panel input{background:#122131!important;color:#e7eff7!important;border-color:#3f566a!important}
.cf-service-panel span[style*='rgb(180, 35, 24)']{color:#ffa3a9!important}
.cf-service-panel span[style*='rgb(145, 96, 0)']{color:#f6cc74!important}
.app-content aside:has(>a[href='/servis-a-terminy']){background:#1d2f41!important;color:#b1d7f2!important;border-color:#3f566a!important}
[data-slot=button].bg-background,.cf-archive-attention [data-slot=button]{background:#172535!important;color:#e7eff7!important;border-color:#3f566a!important}
}
@media screen and (prefers-color-scheme:dark){
/* Trusted help markup inserts its own CSS at render time. */
.cf-helper-grid,.cf-helper-grid :is(h3,li,strong,summary){color:#e7eff7!important}
.cf-helper-grid :is(p,small){color:#b1c4d4!important}
.cf-helper-mobile-card,.cf-helper-back{background:#172535!important;color:#e7eff7!important;border-color:#3f566a!important}
.cf-helper-text-guide,.cf-helper-text-guide[open]>summary,.cf-helper-grid details{border-color:#3f566a!important}
.cf-helper-expanded video,.cf-helper-videos video{background-color:#122131!important}
/* The game selection window follows the app; game canvases keep their artwork. */
.cargo-hub-picker,.cargo-hub-card,.cargo-hub-card-body{background:#172535!important;color:#e7eff7!important;border-color:#3f566a!important}
.cargo-hub-header h2,.cargo-hub-card-body h3{color:#e7eff7!important}
.cargo-hub-header p,.cargo-hub-note,.cargo-hub-card-body p{color:#b1c4d4!important}
.cargo-hub-card-body>span{background:#203c30!important;color:#b7edc8!important;border-color:#496d57!important}
}
@media screen and (prefers-color-scheme:dark){.cargo-hub-picker button[aria-label^='Zavrieť']{background:#1d2f41!important;color:#e7eff7!important;border-color:#3f566a!important}}
/* Secondary copy remains readable in the light palette too. */
@media screen and (prefers-color-scheme:light){
.app-header .text-slate-400,.cf-work-queue summary span,.cf-work-grid small,.cf-fuel-sources>p,.cargo-hub-header p,.day-row .missing,.hint,.cf-service-panel span[style*='rgb(100, 123, 137)']{color:#526c7f!important}
}
@media screen{
.cf-archive-attention [data-slot=button]{transition:none!important}
}
@media screen and (prefers-color-scheme:light){input::placeholder,textarea::placeholder{color:#526c7f!important;opacity:1}}
@media screen{
/* Colour changes follow the system immediately; hover motion and shadows remain. */
.app-shell :is(button,input,select,textarea),[data-slot=dialog-content] :is(button,input,select,textarea),#app :is(button,input,select,textarea),.day-editor :is(button,input,select,textarea),.cf-unified-dropdown :is(button,input){transition-property:transform,box-shadow,opacity!important}
}
@media screen and (prefers-color-scheme:light){select[data-cf-select]{background-color:#fff!important;color:#24465a!important}}
@media screen and (prefers-color-scheme:light){.app-content .text-slate-400,[data-slot=dialog-content] .text-slate-400{color:#526c7f!important}}
@media screen{[data-slot=badge]{transition-property:transform,box-shadow,opacity!important}}
