/* Colours only: original sizing, typography, spacing and light palette remain intact. */
@layer wf-dark {
@media screen and (prefers-color-scheme: dark) and (forced-colors: none) {
  html[data-wf-dark] { color-scheme: dark; background:#111b26; }
  html[data-wf-dark] [data-wf-palette][style*="--wf-dark-bg"] { background-color:var(--wf-dark-bg) !important; }
  html[data-wf-dark] [data-wf-palette][style*="--wf-dark-ink"] { color:var(--wf-dark-ink) !important; }
  html[data-wf-dark] [style*="--wf-dark-border-top"] { border-top-color:var(--wf-dark-border-top) !important; }
  html[data-wf-dark] [style*="--wf-dark-border-right"] { border-right-color:var(--wf-dark-border-right) !important; }
  html[data-wf-dark] [style*="--wf-dark-border-bottom"] { border-bottom-color:var(--wf-dark-border-bottom) !important; }
  html[data-wf-dark] [style*="--wf-dark-border-left"] { border-left-color:var(--wf-dark-border-left) !important; }
  html[data-wf-dark] [style*="--wf-dark-image"] { background-image:var(--wf-dark-image) !important; }
  html[data-wf-dark] svg [style*="--wf-dark-fill"] { fill:var(--wf-dark-fill) !important; }
  html[data-wf-dark] svg [style*="--wf-dark-stroke"] { stroke:var(--wf-dark-stroke) !important; }
  html[data-wf-dark] tbody tr:hover > td[data-wf-palette] { background-color:#263a4b !important; }
  html[data-wf-dark] button[data-wf-palette]:hover { box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--theme-color-secondaire, #ffc107) 50.2%, transparent) !important; }
  html[data-wf-dark] .btn-close { filter:invert(1) grayscale(1) brightness(2); }
  html[data-wf-dark] .form-select { background-image:var(--bs-form-select-bg-img) !important; --bs-form-select-bg-img:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23dce6ef' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E"); }
  html[data-wf-dark] :is(input,textarea)::placeholder { color:#aabacb !important; opacity:1; }
  html[data-wf-dark] :is(input,textarea,select) { caret-color:#edf3f9; }
  html[data-wf-dark] :is(.ts-dropdown,.flatpickr-calendar,.dropdown-menu,.modal-content) { background-color:#18232f !important; color:#edf3f9 !important; }
  html[data-wf-dark] :is(.ts-dropdown .active,.flatpickr-day:hover,.dropdown-item:hover) { background-color:#30465c !important; color:#fff !important; }
  html[data-wf-dark] :is(.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange) { background-color:var(--theme-color-secondaire, #ffc107) !important; color:#18232f !important; }
  html[data-wf-dark] :is(a,button,input,select,textarea,[tabindex]):focus-visible { outline:2px solid color-mix(in srgb, var(--theme-color-secondaire, #ffc107) 56%, white) !important; outline-offset:3px; }
  html[data-wf-dark] :is(.participant-qr-code,.signature-pad,[data-theme-preserve],canvas) { color-scheme:light; background-color:#fff !important; }
}

}
