/* Запасные цвета Tabler 1.6.0 для браузеров без light-dark() / oklch(from …) — Safari до 17.5, Chrome до 123.
 * СГЕНЕРИРОВАНО docs/gen_tabler_compat.py из static/vendor (вручную не править): те же цвета, что Tabler
 * показывает в современном браузере, обычными rgb()/rgba(). Современные браузеры этот блок не применяют. */
@supports not (color: light-dark(#000, #fff)) {
  :root, [data-bs-theme="light"], [data-theme="light"] {
    --tblr-primary-text-emphasis: rgb(0, 26, 57);
    --tblr-secondary-text-emphasis: rgb(27, 27, 27);
    --tblr-success-text-emphasis: rgb(6, 47, 12);
    --tblr-info-text-emphasis: rgb(11, 39, 62);
    --tblr-warning-text-emphasis: rgb(68, 41, 0);
    --tblr-danger-text-emphasis: rgb(59, 9, 9);
    --tblr-light-text-emphasis: rgb(64, 64, 64);
    --tblr-dark-text-emphasis: rgb(64, 64, 64);
    --tblr-primary-bg-subtle: rgb(210, 227, 248);
    --tblr-secondary-bg-subtle: rgb(225, 225, 225);
    --tblr-success-bg-subtle: rgb(218, 241, 219);
    --tblr-info-bg-subtle: rgb(219, 235, 250);
    --tblr-warning-bg-subtle: rgb(255, 237, 216);
    --tblr-danger-bg-subtle: rgb(253, 218, 214);
    --tblr-light-bg-subtle: rgb(250, 250, 250);
    --tblr-dark-bg-subtle: rgb(163, 163, 163);
    --tblr-primary-border-subtle: rgb(165, 199, 240);
    --tblr-secondary-border-subtle: rgb(197, 197, 197);
    --tblr-success-border-subtle: rgb(181, 226, 182);
    --tblr-info-border-subtle: rgb(183, 215, 245);
    --tblr-warning-border-subtle: rgb(253, 218, 177);
    --tblr-danger-border-subtle: rgb(247, 181, 174);
    --tblr-light-border-subtle: rgb(229, 229, 229);
    --tblr-dark-border-subtle: rgb(115, 115, 115);
    --tblr-body-color: rgb(64, 64, 64);
    --tblr-body-bg: rgb(250, 250, 250);
    --tblr-emphasis-color: rgb(64, 64, 64);
    --tblr-secondary-color: rgba(64, 64, 64, 0.75);
    --tblr-secondary-bg: rgb(229, 229, 229);
    --tblr-tertiary-color: rgba(64, 64, 64, 0.5);
    --tblr-tertiary-bg: rgb(245, 245, 245);
    --tblr-link-color: rgb(6, 111, 209);
    --tblr-link-hover-color: rgb(3, 81, 155);
    --tblr-code-color: rgb(82, 82, 82);
    --tblr-highlight-color: rgb(38, 38, 38);
    --tblr-highlight-bg: rgb(255, 237, 216);
    --tblr-border-color: rgb(229, 229, 229);
    --tblr-border-color-translucent: rgba(38, 38, 38, 0.119);
    --tblr-focus-ring-color: rgb(141, 182, 233);
    --tblr-form-valid-color: rgb(47, 179, 68);
    --tblr-form-valid-border-color: rgb(47, 179, 68);
    --tblr-form-invalid-color: rgb(214, 57, 57);
    --tblr-form-invalid-border-color: rgb(214, 57, 57);
    --tblr-heading-color: rgb(23, 23, 23);
    --tblr-primary-darken: rgb(0, 92, 189);
    --tblr-secondary-darken: rgb(98, 98, 98);
    --tblr-success-darken: rgb(8, 160, 48);
    --tblr-info-darken: rgb(45, 134, 205);
    --tblr-warning-darken: rgb(225, 140, 0);
    --tblr-danger-darken: rgb(193, 32, 39);
    --tblr-light-darken: rgb(230, 230, 230);
    --tblr-dark-darken: rgb(24, 24, 24);
    --tblr-muted-darken: rgb(98, 98, 98);
    --tblr-blue-darken: rgb(0, 92, 189);
    --tblr-azure-darken: rgb(45, 134, 205);
    --tblr-indigo-darken: rgb(51, 79, 214);
    --tblr-purple-darken: rgb(155, 39, 181);
    --tblr-pink-darken: rgb(193, 23, 91);
    --tblr-red-darken: rgb(193, 32, 39);
    --tblr-orange-darken: rgb(226, 83, 0);
    --tblr-yellow-darken: rgb(225, 140, 0);
    --tblr-lime-darken: rgb(98, 165, 0);
    --tblr-green-darken: rgb(8, 160, 48);
    --tblr-teal-darken: rgb(0, 147, 103);
    --tblr-cyan-darken: rgb(0, 143, 165);
    --tblr-x-darken: rgb(0, 0, 0);
    --tblr-facebook-darken: rgb(0, 81, 234);
    --tblr-twitter-darken: rgb(0, 142, 222);
    --tblr-linkedin-darken: rgb(0, 84, 174);
    --tblr-google-darken: rgb(48, 114, 223);
    --tblr-youtube-darken: rgb(232, 0, 0);
    --tblr-vimeo-darken: rgb(0, 164, 214);
    --tblr-dribbble-darken: rgb(212, 54, 119);
    --tblr-github-darken: rgb(11, 10, 10);
    --tblr-instagram-darken: rgb(232, 0, 88);
    --tblr-pinterest-darken: rgb(168, 0, 3);
    --tblr-vk-darken: rgb(0, 99, 234);
    --tblr-rss-darken: rgb(234, 146, 0);
    --tblr-flickr-darken: rgb(0, 80, 199);
    --tblr-bitbucket-darken: rgb(0, 62, 184);
    --tblr-tabler-darken: rgb(0, 92, 189);
    --tblr-shadow-color: rgba(18, 18, 23, 0.4);
    --tblr-backdrop-bg: rgb(38, 38, 38);
    --tblr-bg-surface: rgb(255, 255, 255);
    --tblr-bg-surface-secondary: rgb(250, 250, 250);
    --tblr-bg-surface-tertiary: rgb(250, 250, 250);
    --tblr-bg-surface-inverted: rgb(23, 23, 23);
    --tblr-bg-forms: rgb(255, 255, 255);
    --tblr-bg-forms-disabled: rgb(250, 250, 250);
    --tblr-text-inverted: rgb(245, 245, 245);
    --tblr-secondary: rgb(115, 115, 115);
    --tblr-border-dark-color: rgb(212, 212, 212);
    --tblr-border-active-color: rgb(163, 163, 163);
    --tblr-active-bg: rgba(6, 111, 209, 0.04);
    --tblr-hover-bg: rgba(64, 64, 64, 0.06);
    --tblr-code-bg: rgb(245, 245, 245);
    --tblr-dark-mode-border-color: rgb(58, 58, 58);
    --tblr-dark-mode-border-active-color: rgb(69, 69, 69);
    --tblr-dark-mode-border-dark-color: rgb(48, 48, 48);
  }
  .blockquote-footer {
    color: rgb(82, 82, 82);
  }
  .form-switch .form-check-input {
    --tblr-form-switch-color: rgb(229, 229, 229);
  }
  .form-floating > .form-control:disabled ~ label, .form-floating > :disabled ~ label {
    color: rgb(82, 82, 82);
  }
  .form-control.is-valid:focus, .was-validated .form-control:valid:focus {
    outline: var(--tblr-focus-ring-width) solid rgb(160, 216, 162);
  }
  .form-select.is-valid:focus, .was-validated .form-select:valid:focus {
    outline: var(--tblr-focus-ring-width) solid rgb(160, 216, 162);
  }
  .form-check-input.is-valid:focus, .was-validated .form-check-input:valid:focus {
    outline: var(--tblr-focus-ring-width) solid rgb(160, 216, 162);
  }
  .form-control.is-invalid:focus, .was-validated .form-control:invalid:focus {
    outline: var(--tblr-focus-ring-width) solid rgb(241, 160, 153);
  }
  .form-select.is-invalid:focus, .was-validated .form-select:invalid:focus {
    outline: var(--tblr-focus-ring-width) solid rgb(241, 160, 153);
  }
  .form-check-input.is-invalid:focus, .was-validated .form-check-input:invalid:focus {
    outline: var(--tblr-focus-ring-width) solid rgb(241, 160, 153);
  }
  .btn-link {
    --tblr-btn-disabled-color: rgb(82, 82, 82);
    color: rgb(34, 127, 226);
  }
  .dropdown-menu {
    --tblr-dropdown-header-color: rgb(82, 82, 82);
  }
  .modal-backdrop {
    --tblr-backdrop-bg: rgb(38, 38, 38);
  }
  .popover {
    --tblr-popover-header-color: rgb(23, 23, 23);
  }
  .offcanvas-backdrop {
    background-color: rgb(38, 38, 38);
  }
  .theme-dark, [data-bs-theme="dark"], [data-theme="dark"], body[data-bs-theme="dark"] [data-bs-theme="light"], body[data-theme="dark"] [data-theme="light"], html[data-bs-navbar-theme="dark"] .page > .navbar, html[data-bs-navbar-theme="dark"] .page > [class*="navbar-expand"] .navbar, html[data-bs-navbar-theme="dark"] .page > [class*="navbar-expand"] body.navbar [data-bs-theme="light"], html[data-bs-navbar-theme="dark"] .page > body.navbar [data-bs-theme="light"], html[data-bs-navbar-theme="primary"] .page > .navbar, html[data-bs-navbar-theme="primary"] .page > [class*="navbar-expand"] .navbar, html[data-bs-navbar-theme="primary"] .page > [class*="navbar-expand"] body.navbar [data-bs-theme="light"], html[data-bs-navbar-theme="primary"] .page > body.navbar [data-bs-theme="light"] {
    --tblr-btn-color: rgb(33, 33, 33);
  }
  .input-group-flat:has(.form-control.is-valid):focus-within, .was-validated .input-group-flat:has(.form-control:valid):focus-within {
    outline-color: rgb(160, 216, 162);
  }
  .input-group-flat:has(.form-control.is-invalid):focus-within, .was-validated .input-group-flat:has(.form-control:invalid):focus-within {
    outline-color: rgb(241, 160, 153);
  }
  .form-switch .form-check-input:disabled:not(:checked) {
    --tblr-form-switch-color: rgb(163, 163, 163);
  }
  .text-selected, ::selection {
    background-color: rgba(6, 111, 209, 0.1);
  }
  .bg-surface-backdrop {
    background-color: rgba(38, 38, 38, 0.32) !important;
  }
  .ts-wrapper.is-valid.focus .ts-control {
    outline-color: rgb(160, 216, 162);
  }
  .ts-wrapper.is-invalid.focus .ts-control {
    outline-color: rgb(241, 160, 153);
  }
  [data-bs-theme="dark"], [data-theme="dark"] {
    --tblr-primary-text-emphasis: rgb(121, 170, 231);
    --tblr-secondary-text-emphasis: rgb(199, 199, 199);
    --tblr-success-text-emphasis: rgb(143, 211, 146);
    --tblr-info-text-emphasis: rgb(146, 194, 239);
    --tblr-warning-text-emphasis: rgb(251, 199, 136);
    --tblr-danger-text-emphasis: rgb(239, 144, 135);
    --tblr-light-text-emphasis: rgb(245, 245, 245);
    --tblr-dark-text-emphasis: rgb(212, 212, 212);
    --tblr-primary-bg-subtle: rgb(0, 4, 16);
    --tblr-secondary-bg-subtle: rgb(10, 10, 10);
    --tblr-success-bg-subtle: rgb(1, 12, 2);
    --tblr-info-bg-subtle: rgb(1, 8, 18);
    --tblr-warning-bg-subtle: rgb(21, 9, 0);
    --tblr-danger-bg-subtle: rgb(16, 1, 1);
    --tblr-light-bg-subtle: rgb(38, 38, 38);
    --tblr-dark-bg-subtle: rgb(8, 8, 8);
    --tblr-primary-border-subtle: rgb(1, 52, 104);
    --tblr-secondary-border-subtle: rgb(79, 79, 79);
    --tblr-success-border-subtle: rgb(18, 88, 29);
    --tblr-info-border-subtle: rgb(28, 74, 112);
    --tblr-warning-border-subtle: rgb(123, 77, 0);
    --tblr-danger-border-subtle: rgb(106, 23, 23);
    --tblr-light-border-subtle: rgb(64, 64, 64);
    --tblr-dark-border-subtle: rgb(38, 38, 38);
    --tblr-body-color: rgb(229, 229, 229);
    --tblr-body-bg: rgb(23, 23, 23);
    --tblr-emphasis-color: rgb(255, 255, 255);
    --tblr-secondary-color: rgba(229, 229, 229, 0.75);
    --tblr-secondary-bg: rgb(38, 38, 38);
    --tblr-tertiary-color: rgba(229, 229, 229, 0.5);
    --tblr-tertiary-bg: rgb(30, 30, 30);
    --tblr-link-color: rgb(121, 170, 231);
    --tblr-link-hover-color: rgb(148, 187, 237);
    --tblr-code-color: rgb(163, 163, 163);
    --tblr-highlight-color: rgb(229, 229, 229);
    --tblr-highlight-bg: rgb(68, 41, 0);
    --tblr-border-color: rgb(64, 64, 64);
    --tblr-border-color-translucent: rgba(128, 150, 172, 0.2);
    --tblr-focus-ring-color: rgb(25, 88, 158);
    --tblr-form-valid-color: rgb(143, 211, 146);
    --tblr-form-valid-border-color: rgb(143, 211, 146);
    --tblr-form-invalid-color: rgb(239, 144, 135);
    --tblr-form-invalid-border-color: rgb(239, 144, 135);
    --tblr-heading-color: initial;
    --tblr-secondary-darken: rgb(145, 145, 145);
    --tblr-shadow-color: rgb(0, 0, 0);
    --tblr-backdrop-bg: rgb(0, 0, 0);
    --tblr-bg-surface: rgb(38, 38, 38);
    --tblr-bg-surface-secondary: rgb(23, 23, 23);
    --tblr-bg-surface-tertiary: rgb(38, 38, 38);
    --tblr-bg-surface-inverted: rgb(245, 245, 245);
    --tblr-bg-forms: rgb(23, 23, 23);
    --tblr-bg-forms-disabled: rgb(38, 38, 38);
    --tblr-text-inverted: rgb(38, 38, 38);
    --tblr-secondary: rgb(163, 163, 163);
    --tblr-border-dark-color: rgb(48, 48, 48);
    --tblr-border-active-color: rgb(69, 69, 69);
    --tblr-active-bg: rgba(6, 111, 209, 0.12);
    --tblr-hover-bg: rgba(229, 229, 229, 0.08);
    --tblr-code-bg: rgb(23, 23, 23);
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .blockquote-footer {
    color: rgb(163, 163, 163);
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .form-switch .form-check-input {
    --tblr-form-switch-color: rgba(255, 255, 255, 0.25);
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .form-floating > .form-control:disabled ~ label, :where([data-bs-theme="dark"], [data-theme="dark"]) .form-floating > :disabled ~ label {
    color: rgb(163, 163, 163);
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .form-control.is-valid:focus, :where([data-bs-theme="dark"], [data-theme="dark"]) .was-validated .form-control:valid:focus {
    outline: var(--tblr-focus-ring-width) solid rgb(48, 136, 59);
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .form-select.is-valid:focus, :where([data-bs-theme="dark"], [data-theme="dark"]) .was-validated .form-select:valid:focus {
    outline: var(--tblr-focus-ring-width) solid rgb(48, 136, 59);
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .form-check-input.is-valid:focus, :where([data-bs-theme="dark"], [data-theme="dark"]) .was-validated .form-check-input:valid:focus {
    outline: var(--tblr-focus-ring-width) solid rgb(48, 136, 59);
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .form-control.is-invalid:focus, :where([data-bs-theme="dark"], [data-theme="dark"]) .was-validated .form-control:invalid:focus {
    outline: var(--tblr-focus-ring-width) solid rgb(162, 53, 50);
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .form-select.is-invalid:focus, :where([data-bs-theme="dark"], [data-theme="dark"]) .was-validated .form-select:invalid:focus {
    outline: var(--tblr-focus-ring-width) solid rgb(162, 53, 50);
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .form-check-input.is-invalid:focus, :where([data-bs-theme="dark"], [data-theme="dark"]) .was-validated .form-check-input:invalid:focus {
    outline: var(--tblr-focus-ring-width) solid rgb(162, 53, 50);
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .btn-link {
    --tblr-btn-disabled-color: rgb(163, 163, 163);
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .dropdown-menu {
    --tblr-dropdown-header-color: rgb(163, 163, 163);
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .modal-backdrop {
    --tblr-backdrop-bg: rgb(0, 0, 0);
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .popover {
    --tblr-popover-header-color: rgb(255, 255, 255);
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .offcanvas-backdrop {
    background-color: rgb(0, 0, 0);
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .input-group-flat:has(.form-control.is-valid):focus-within, :where([data-bs-theme="dark"], [data-theme="dark"]) .was-validated .input-group-flat:has(.form-control:valid):focus-within {
    outline-color: rgb(48, 136, 59);
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .input-group-flat:has(.form-control.is-invalid):focus-within, :where([data-bs-theme="dark"], [data-theme="dark"]) .was-validated .input-group-flat:has(.form-control:invalid):focus-within {
    outline-color: rgb(162, 53, 50);
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .form-switch .form-check-input:disabled:not(:checked) {
    --tblr-form-switch-color: rgb(82, 82, 82);
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .text-selected, :where([data-bs-theme="dark"], [data-theme="dark"]) ::selection {
    background-color: rgba(6, 111, 209, 0.4);
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .bg-surface-backdrop {
    background-color: rgba(0, 0, 0, 0.32) !important;
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .ts-wrapper.is-valid.focus .ts-control {
    outline-color: rgb(48, 136, 59);
  }
  :where([data-bs-theme="dark"], [data-theme="dark"]) .ts-wrapper.is-invalid.focus .ts-control {
    outline-color: rgb(162, 53, 50);
  }
}
