/* Filled primary actions share the active navigation blue in both themes.
   Text accents and vehicle/alert status colors retain their semantic palettes. */
:root { --ag-action-blue: #2f6df6; --ag-action-hover: #245bd2; }
html:root body.ag-navixy :is(
  .hz-vc-actions button.primary, .btnP, .rw-action-primary, .rs-primary,
  .dp-save, .cc-primary, .core-submit, .sms-btn-primary,
  .zone-builder-primary, .zone-add-button, .sim-save, .mt-primary,
  .rp-export-primary, .hp-action.primary
):not(#login *):not(.danger):not(.btnDanger) {
  background: var(--ag-action-blue) !important;
  border-color: var(--ag-action-blue) !important;
  color: #fff !important;
  box-shadow: none !important;
}
html:root body.ag-navixy :is(
  .hz-vc-actions button.primary, .btnP, .rw-action-primary, .rs-primary,
  .dp-save, .cc-primary, .core-submit, .sms-btn-primary,
  .zone-builder-primary, .zone-add-button, .sim-save, .mt-primary,
  .rp-export-primary, .hp-action.primary
):not(#login *):not(.danger):not(.btnDanger):not(:disabled):hover {
  background: var(--ag-action-hover) !important;
  border-color: var(--ag-action-hover) !important;
}
html:root body.ag-navixy :is(
  .hz-vc-actions button.primary, .btnP, .rw-action-primary, .rs-primary,
  .dp-save, .cc-primary, .core-submit, .sms-btn-primary,
  .zone-builder-primary, .zone-add-button, .sim-save, .mt-primary,
  .rp-export-primary, .hp-action.primary
):not(#login *):not(.danger):not(.btnDanger):disabled {
  opacity: .45 !important;
  cursor: not-allowed !important;
}

/* Accessible history actions in dark mode. */
html:root[data-theme="dark"][data-horizon="v1"] body.ag-navixy #historyPremiumRoot#historyPremiumRoot#historyPremiumRoot :is(.hp-period-pill,.hp-selection-bar button,.hp-footer-back,.hp-back,.hp-close,.hp-icon-btn,.hp-player-speeds button) {background:#263445!important;color:#edf2f8!important;border:1px solid #53677f!important;box-shadow:none!important;}
html:root[data-theme="dark"][data-horizon="v1"] body.ag-navixy #historyPremiumRoot#historyPremiumRoot#historyPremiumRoot :is(.hp-period-pill,.hp-selection-bar button,.hp-footer-back,.hp-back,.hp-close,.hp-icon-btn,.hp-player-speeds button):not(:disabled):hover {background:#34465d!important;border-color:#8298b3!important;color:#fff!important;}
html:root[data-theme="dark"][data-horizon="v1"] body.ag-navixy #historyPremiumRoot#historyPremiumRoot#historyPremiumRoot :is(.hp-player-start,.hp-trip-play,.hp-period-pill.active,.hp-player-rate[aria-pressed="true"],.hp-player-speed.active,.hp-player-speeds button[aria-pressed="true"]) {background:#2f6df6!important;border-color:#2f6df6!important;color:#fff!important;box-shadow:none!important;font-weight:650;}
html:root[data-theme="dark"][data-horizon="v1"] body.ag-navixy #historyPremiumRoot#historyPremiumRoot#historyPremiumRoot :is(.hp-player-start,.hp-trip-play,.hp-period-pill.active,.hp-player-rate[aria-pressed="true"],.hp-player-speed.active,.hp-player-speeds button[aria-pressed="true"]):not(:disabled):hover {background:#245bd2!important;border-color:#245bd2!important;color:#fff!important;}
html:root[data-theme="dark"][data-horizon="v1"] body.ag-navixy #historyPremiumRoot#historyPremiumRoot#historyPremiumRoot .hp-footer .hp-footer-clear {background:#44252e!important;border-color:#b56578!important;color:#ffc3cc!important;}
html:root[data-theme="dark"][data-horizon="v1"] body.ag-navixy #historyPremiumRoot#historyPremiumRoot#historyPremiumRoot .hp-footer .hp-footer-clear:hover {background:#5b2c39!important;border-color:#e18ba0!important;color:#ffe3e8!important;}
html:root[data-theme="dark"][data-horizon="v1"] body.ag-navixy #historyPremiumRoot#historyPremiumRoot#historyPremiumRoot button:focus-visible {outline:2px solid #b6d0ff!important;outline-offset:3px;}
html:root[data-theme="dark"][data-horizon="v1"] body.ag-navixy #historyPremiumRoot#historyPremiumRoot#historyPremiumRoot#historyPremiumRoot button:disabled,html:root[data-theme="dark"][data-horizon="v1"] body.ag-navixy #historyPremiumRoot#historyPremiumRoot#historyPremiumRoot#historyPremiumRoot button[aria-disabled="true"] {background:#202a37!important;border-color:#344153!important;color:#8492a5!important;opacity:.55!important;cursor:not-allowed!important;box-shadow:none!important;}
