/* One root theme and semantic tokens. No image filters or document inversion. */
html[data-theme=light]{color-scheme:light}
html[data-theme=dark]{color-scheme:dark;--it-page:#101522;--it-surface:#192131;--it-surface-muted:#232e41;--it-text:#eef2f7;--it-text-soft:#c0ccdc;--it-muted:#a3b1c5;--it-border:#43516a;--it-primary:#0e7490;--it-primary-hover:#67d7e8;--it-accent:#a5b4fc;--it-input-text:#c0ccdc;--it-input-placeholder:#a3b1c5;--it-shadow:0 18px 48px rgb(0 0 0 / .35)}
html[data-theme=dark] .it-button--primary:hover:not(:disabled){background:#0c6076}
html[data-theme=dark] :is(.it-sidebar,.it-topbar,.it-card,.it-modal-panel,.it-account-panel,.it-notification-panel,.it-details-drawer,.it-context-menu,.it-row-menu,.it-explorer-menu,.it-data-table-wrap,.it-hours-toolbar,.it-builder-palette,.it-builder-properties,.it-builder-toolbar,.it-builder-topbar,.it-form-builder-panel,.it-confirm-popup,.swal2-popup){background:var(--it-surface)!important;color:var(--it-text-soft);border-color:var(--it-border)!important}
html[data-theme=dark] :is(.it-account-copy strong,.it-account-display-heading h2,.it-account-motion strong,.it-card-title,.it-builder-panel-title,.swal2-title){color:var(--it-text)}
html[data-theme=dark] :is(.it-account-action,.it-account-copy>span,.it-account-help,.it-account-motion span,.it-account-toggle,.it-account-back,.it-sidebar-link,.it-table th,.it-hours-bar-label,.it-hours-stats dt){color:var(--it-text-soft)}
html[data-theme=dark] :is(.it-account-actions,.it-account-logout,.it-sidebar-brand,.it-topbar,.it-table td,.it-table th,table td,table th){border-color:var(--it-border)}
html[data-theme=dark] :is(.it-account-action,.it-account-identity,.it-account-back,.it-account-toggle,.it-sidebar-link):hover{background:var(--it-surface-muted)}
html[data-theme=dark] .it-account-toggle[aria-expanded=true]{background:var(--it-surface-muted)}
/* Responding and receipts use application surfaces, not a white document canvas. */
html[data-theme=dark] .it-respondent-form{background:var(--it-surface);color:var(--it-text-soft);border-color:var(--it-border)}
html[data-theme=dark] :is(.it-respondent-form__header,.it-form-section,.it-form-preview-action){border-color:var(--it-border)}
html[data-theme=dark] :is(.it-respondent-form__header h1,.it-form-section h2,.it-form-question__label){color:var(--it-text)}
html[data-theme=dark] :is(.it-respondent-form__header>p,.it-form-option){color:var(--it-text-soft)}
html[data-theme=dark] :is(.it-form-section p,.it-form-question__number,.it-form-help,.it-form-preview-action p){color:var(--it-muted)}
html[data-theme=dark] :is(.it-form-required,.it-form-error){color:#fda4af}
html[data-theme=dark] .it-form-question.has-error .it-input{border-color:#fb7185}
html[data-theme=dark] .it-form-validation-summary.is-invalid{background:#452332;color:#fda4af;border-color:#8c425d}
html[data-theme=dark] .it-form-validation-summary.is-valid{background:#123c30;color:#86efac;border-color:#367761}
html[data-theme=dark] .it-respondent-shell .text-cyan-700{color:var(--it-primary-hover)}
html[data-theme=dark] .it-respondent-shell .bg-emerald-50{background:#123c30}
html[data-theme=dark] .it-respondent-shell .text-emerald-700{color:#86efac}
html[data-theme=dark] :is(.it-sidebar-link[aria-current=page],.it-sidebar-link.has-active-child){background:#153947;color:#8be5f2;border-color:#317384}
html[data-theme=dark] :is(.it-button--secondary,.it-button--ghost,.it-input,.it-select,.it-textarea,.swal2-input){background:var(--it-surface-muted);color:var(--it-text-soft);border-color:var(--it-border)}
html[data-theme=dark] :is(input,select,textarea):not([type=checkbox],[type=radio],[type=range],[type=submit],[type=button]):not(.it-builder-page *, .it-doc-page *){background-color:var(--it-surface-muted)!important;color:var(--it-input-text)!important;border-color:var(--it-border)}
html[data-theme=dark] :is(input,textarea)::placeholder{color:var(--it-input-placeholder)}
html[data-theme=dark] :is(input,select,textarea):focus:not([aria-invalid=true]):not(.it-builder-page *, .it-doc-page *){border-color:var(--it-primary-hover);outline-color:var(--it-primary-hover)}
html[data-theme=dark] :is(input,textarea)[readonly],html[data-theme=dark] :is(input,select,textarea):disabled{background-color:var(--it-page)!important;color:var(--it-muted)!important}
html[data-theme=dark] .it-field-error{color:#fda4af}html[data-theme=dark] [aria-invalid=true]{border-color:#fb7185!important}
html[data-theme=dark] .it-status--success{background:#123c30;border-color:#367761;color:#86efac}
html[data-theme=dark] .it-status--warning{background:#423316;border-color:#8b6a2a;color:#fde68a}
html[data-theme=dark] .it-status--danger{background:#452332;border-color:#8c425d;color:#fda4af}
html[data-theme=dark] .it-status--info{background:#12394b;border-color:#317384;color:#8be5f2}
html[data-theme=dark] .it-status--confirmed{background:#2e3057;border-color:#62699c;color:#c7d2fe}
html[data-theme=dark] .it-status--neutral{background:var(--it-surface-muted);border-color:var(--it-border);color:var(--it-text-soft)}
html[data-theme=dark] :is(.it-alert--danger,.it-alert--error){background:#452332;color:#fda4af;border-color:#8c425d}
html[data-theme=dark] .it-alert--success{background:#123c30;color:#86efac;border-color:#367761}
html[data-theme=dark] .it-alert--warning{background:#423316;color:#fde68a;border-color:#8b6a2a}
html[data-theme=dark] .it-alert--info{background:#12394b;color:#8be5f2;border-color:#317384}
html[data-theme=dark] .it-config-tab[aria-current=page]{color:var(--it-primary-hover);border-color:var(--it-primary-hover)}
html[data-theme=dark] .it-dashboard-attention{background:#292518;border-color:#8b6a2a}
html[data-theme=dark] .toastify.it-toast{background:var(--it-surface)!important;color:var(--it-text)}
html[data-theme=dark] :is(.swal2-html-container,.swal2-content,.swal2-input-label){color:var(--it-text-soft)}
html[data-theme=dark] .swal2-validation-message{background:#452332;color:#fda4af}
html[data-theme=dark] :is(.it-hours-track,.it-dashboard-track){background:var(--it-page);border-color:var(--it-muted)}
html[data-theme=dark] .it-hours-stats dd{color:var(--it-text)}
html[data-theme=dark] :is(.it-hours-details,.it-account-profile-label,.it-hours-path a){color:var(--it-primary-hover)}
/* Compatibility bridge for existing Tailwind view chrome; exclude faithful document surfaces. */
html[data-theme=dark] :is(.bg-white,.bg-slate-50,.bg-gray-50,.bg-slate-100):not(.it-builder-page,.it-builder-page *, .it-doc-page,.it-doc-page *, .it-signature-paper){background-color:var(--it-surface)!important}
html[data-theme=dark] :is(.text-slate-900,.text-slate-800,.text-slate-700,.text-gray-900):not(.it-builder-page *, .it-doc-page *){color:var(--it-text)!important}
html[data-theme=dark] :is(.text-slate-600,.text-slate-500,.text-slate-400,.text-gray-600,.text-gray-500):not(.it-builder-page *, .it-doc-page *){color:var(--it-muted)!important}
html[data-theme=dark] :is(.border-slate-100,.border-slate-200,.border-slate-300,.border-gray-200){border-color:var(--it-border)}
html[data-theme=dark] :is(table thead,.dt-container .dt-paging-button,.it-explorer-preview,.it-workspace-toolbar){background:var(--it-surface-muted);color:var(--it-text-soft)}
/* Shared application tables, not the faithful document canvas or calendar.
   DataTables loads its CSS lazily; scoped variables also theme its cell overlays. */
html[data-theme=dark] .it-shell table:not(:where(.it-builder-page *, .it-doc-page *, .fc *)){
    background-color:var(--it-surface);
    color:var(--it-text-soft);
    --dt-row_background-stripe:238,242,247;
    --dt-row_background-hover:238,242,247;
    --dt-column-ordering_background:238,242,247;
    --dt-row_background-selected:21,57,71;
    --dt-row-text_color-selected:238,242,247;
    --dt-row-link_color-selected:139,229,242;
    --dt-header_border:1px solid var(--it-border);
    --dt-body_border:1px solid var(--it-border);
    --dt-footer_border:1px solid var(--it-border);
}
html[data-theme=dark] .it-shell table:not(.it-builder-page *, .it-doc-page *, .fc *) :is(thead,tfoot){background-color:var(--it-surface-muted)!important}
html[data-theme=dark] .it-shell table:not(:where(.it-builder-page *, .it-doc-page *, .fc *)) th{color:var(--it-muted)!important}
html[data-theme=dark] .it-shell table:not(:where(.it-builder-page *, .it-doc-page *, .fc *)) td{color:var(--it-text-soft);border-color:var(--it-border)}
html[data-theme=dark] .it-shell table:not(:where(.it-builder-page *, .it-doc-page *, .fc *)) tbody tr:hover{background-color:var(--it-surface-muted)}
html[data-theme=dark] .it-shell table:not(:where(.it-builder-page *, .it-doc-page *, .fc *)) tbody tr.is-selected{background-color:#153947;box-shadow:inset 3px 0 0 var(--it-primary-hover)}
html[data-theme=dark] .it-shell .dt-container{--dt-control_color:var(--it-text-soft);--dt-paging-button_color-disabled:var(--it-muted)}
html[data-theme=dark] .it-shell .dt-container .dt-paging-button{color:var(--it-text-soft)!important}
html[data-theme=dark] .it-shell .dt-container .dt-paging-button.current{background:#153947!important;color:#8be5f2!important;border-color:#317384!important}
html[data-theme=dark] .it-shell .dt-container .dt-paging-button.disabled{color:var(--it-muted)!important;opacity:.55}
html[data-theme=dark] .it-row-actions-trigger{background:var(--it-surface-muted);color:var(--it-text-soft)}
html[data-theme=dark] .it-row-actions-trigger:is(:hover,[aria-expanded=true]){background:#153947;color:#8be5f2}
html[data-theme=dark] .it-row-actions-menu [role=menuitem]{color:var(--it-text)}
html[data-theme=dark] .it-row-actions-menu [role=menuitem]:is(:hover,:focus-visible){background:var(--it-surface-muted);color:var(--it-text)}
html[data-theme=dark] .it-builder-workspace{background:var(--it-page)}
html[data-theme=dark] .it-builder-page{color-scheme:light;color:#0f172a;background:#fff}
html[data-theme=dark] :is(.it-help,.it-page-description){color:var(--it-muted)}
html[data-theme=dark] .it-explorer{--explorer-border:var(--it-border);--explorer-muted:var(--it-muted)}
html[data-theme=dark] :is(.it-explorer-card,.it-explorer-menu__items,.it-row-actions-menu,.it-drawer-panel){background:var(--it-surface);border-color:var(--it-border);color:var(--it-text-soft)}
html[data-theme=dark] .it-explorer-card.is-selected{background:#153947;border-color:var(--it-primary-hover)}
html[data-theme=dark] :is(.it-explorer-card__open,.it-explorer-menu__items a,.it-explorer-menu__items button,.it-explorer-section-heading){color:var(--it-text)}
html[data-theme=dark] :is(.it-explorer-menu__items a,.it-explorer-menu__items button):hover{background:var(--it-surface-muted)}
html[data-theme=dark] .it-workspace-pill{background:var(--it-surface-muted);color:var(--it-text-soft)}
html[data-theme=dark] .it-workspace-pill--warning{background:#423316;color:#fde68a}
html[data-theme=dark] .it-workspace-pill--success{background:#123c30;color:#86efac}
html[data-theme=dark] .it-workspace-pill--info{background:#12394b;color:#8be5f2}
html[data-theme=dark] .it-workspace-pill--danger{background:#452332;color:#fda4af}
html[data-theme=dark] :is(.it-notification-toggle,.it-notification-icon){color:var(--it-primary-hover)}
html[data-theme=dark] .it-notification-row{background:var(--it-surface);color:var(--it-text-soft)}
html[data-theme=dark] .it-notification-row.is-unread{background:#153947}
html[data-theme=dark] .it-notification-row:hover{background:var(--it-surface-muted)}
html[data-theme=dark] .it-unread-label{background:#153947;color:#8be5f2}
html[data-theme=dark] :is(.it-dashboard-panel,.it-dashboard-scope,.it-readiness-insight,.it-form-builder,.it-form-builder__bar,.it-form-builder__palette,.it-form-builder__settings,.it-form-builder__workspace){background:var(--it-surface);color:var(--it-text-soft);border-color:var(--it-border)}
html[data-theme=dark] :is(.it-dashboard-panel h2,.it-dashboard-scope-copy strong,.it-milestone-label,.it-dashboard-health dd){color:var(--it-text)}
html[data-theme=dark] :is(.it-dashboard-position,.it-dashboard-scope-copy,.it-dashboard-scope-copy small,.it-milestone small,.it-attention-actions small,.it-dashboard-health dt,.it-dashboard-toolbar label){color:var(--it-muted)}
html[data-theme=dark] :is(.it-attention-actions li a,.it-dashboard-cohort,.it-milestone-marker){background:var(--it-surface-muted);border-color:var(--it-border);color:var(--it-text-soft)}
html[data-theme=dark] .it-dashboard-attention h2{color:#fde68a}
html[data-theme=dark] .it-milestone--confirmed .it-milestone-number{color:#c7d2fe}
html[data-theme=dark] .it-milestone--success .it-milestone-number{color:#86efac}
html[data-theme=dark] .it-milestone--info .it-milestone-number{color:#8be5f2}
html[data-theme=dark] .it-document-output__toolbar,html[data-theme=dark] .it-document-output__details{background:var(--it-surface);color:var(--it-text);border-color:var(--it-border)}
html[data-theme=dark] .it-document-output__details :is(h2,dd){color:var(--it-text)}
html[data-theme=dark] :is(.it-document-output__main,.it-document-output__fallback){background:var(--it-surface);color:var(--it-text-soft);border-color:var(--it-border)}
html[data-theme=dark] .it-document-output__toolbar h2{color:var(--it-text)}
html[data-theme=dark] :is(.it-document-output__details dt,.it-dashboard-definitions,.it-donut-center small,.it-dashboard-refresh-status,.it-dashboard-empty,.it-dashboard-unavailable small,.it-dashboard-list p,.it-dashboard-submissions span,.it-hours-overview small,.it-dashboard-stat-pair dt){color:var(--it-muted)}
html[data-theme=dark] :is(.it-dashboard-definitions dt,.it-donut-center strong,.it-dashboard-big-number,.it-dashboard-stat-pair dd,.it-dashboard-list h3){color:var(--it-text)}
html[data-theme=dark] :is(.it-program-list .it-dashboard-drill,.it-program-label,.it-dashboard-unavailable,.it-dashboard-links a,.it-review-load a){color:var(--it-text-soft)}
html[data-theme=dark] :is(.it-dashboard-status--warning,.it-review-load strong){color:#fde68a}
html[data-theme=dark] .it-dashboard-status--confirmed{color:#c7d2fe}html[data-theme=dark] .it-dashboard-status--success{color:#86efac}
html[data-theme=dark] .it-dashboard-status--info{color:#8be5f2}html[data-theme=dark] .it-dashboard-status--danger{color:#fda4af}
html[data-theme=dark] :is(.it-readiness-track,.it-readiness-stack){background:var(--it-surface-muted)}
html[data-theme=dark] [data-dashboard-card][aria-busy=true]::after{background-color:var(--it-surface-muted)}
html[data-theme=dark] #form-builder-canvas .frmb>li.form-field{background:var(--it-surface)!important;color:var(--it-text);border-color:var(--it-border)!important}
html[data-theme=dark] :is(.it-form-palette-heading,.it-form-builder__notice,.it-question-editor,.it-question-preview){background:var(--it-surface-muted);color:var(--it-text-soft);border-color:var(--it-border)}
html[data-theme=dark] .it-form-palette-heading strong,html[data-theme=dark] #form-builder-canvas .frmb-control li{color:var(--it-text-soft)}
html[data-theme=dark] .it-profile-context dd{color:var(--it-text)}
html[data-theme=dark] .it-profile-context dt{color:var(--it-muted)}
html[data-theme=dark] .it-profile-activity li{border-color:var(--it-border)}
html[data-theme=dark] :is(.it-modal-header,.it-modal-actions,.it-drawer-header,.it-drawer-actions){background:var(--it-surface);border-color:var(--it-border)}
html[data-theme=dark] :is(.it-label,.it-explorer-filters label,.it-explorer-pagination){color:var(--it-text-soft)}
html[data-theme=dark] .it-eyebrow{color:var(--it-primary-hover)}
html[data-theme=dark] .it-institution-time{color:var(--it-muted)}
html[data-theme=dark] .it-institution-time strong{color:var(--it-text)}
/* SweetAlert checks computed duration before waiting for animationend. None must
   also have zero duration, not the global reduced-motion 0.01ms fallback. */
html[data-reduce-motion] .swal2-popup{animation:none!important;animation-duration:0s!important;transition:none!important;transition-duration:0s!important}
