/*
 * Teryvo CRM — complete dark theme.
 * Loaded after app.css so all legacy and custom components share one palette.
 */

html[data-resolved-theme="dark"] {
  color-scheme: dark;

  --app-bg: #0c1421;
  --app-surface: #141e2d;
  --app-surface-2: #182538;
  --app-surface-3: #0f1928;
  --app-surface-hover: #1c2b40;
  --app-text: #edf3fc;
  --app-muted: #9eacc1;
  --app-line: #2b394d;
  --app-border-strong: #3a4a61;
  --app-primary: #6488f2;
  --app-primary-dark: #7898f7;
  --app-primary-soft: rgba(100, 136, 242, .17);
  --app-danger-soft: rgba(239, 96, 112, .14);
  --app-shadow: 0 14px 34px rgba(0, 0, 0, .26);

  --dark-bg: #0c1421;
  --dark-surface: #141e2d;
  --dark-raised: #182538;
  --dark-inset: #0f1928;
  --dark-hover: #1c2b40;
  --dark-line: #2b394d;
  --dark-line-strong: #3a4a61;
  --dark-text: #edf3fc;
  --dark-heading: #f7faff;
  --dark-muted: #9eacc1;
  --dark-muted-2: #8292aa;
  --dark-accent: #7f9df5;
  --dark-accent-soft: rgba(100, 136, 242, .16);
  --dark-focus: rgba(100, 136, 242, .25);
  --dark-success: #72d59a;
  --dark-warning: #f1c66f;
  --dark-danger: #ff8794;
  --dark-info: #77c5ef;

  --bs-body-color: var(--dark-text);
  --bs-body-bg: var(--dark-bg);
  --bs-secondary-color: var(--dark-muted);
  --bs-secondary-bg: var(--dark-raised);
  --bs-tertiary-color: var(--dark-muted-2);
  --bs-tertiary-bg: var(--dark-inset);
  --bs-emphasis-color: #ffffff;
  --bs-border-color: var(--dark-line);
  --bs-border-color-translucent: rgba(255, 255, 255, .10);
  --bs-link-color: #8faafd;
  --bs-link-hover-color: #b0c2ff;
  --bs-code-color: #e995c4;
}

html[data-resolved-theme="dark"] body,
html[data-resolved-theme="dark"] .app-body,
html[data-resolved-theme="dark"] .app-main {
  background: var(--dark-bg);
  color: var(--dark-text);
}

html[data-resolved-theme="dark"] h1,
html[data-resolved-theme="dark"] h2,
html[data-resolved-theme="dark"] h3,
html[data-resolved-theme="dark"] h4,
html[data-resolved-theme="dark"] h5,
html[data-resolved-theme="dark"] h6,
html[data-resolved-theme="dark"] .h1,
html[data-resolved-theme="dark"] .h2,
html[data-resolved-theme="dark"] .h3,
html[data-resolved-theme="dark"] .h4,
html[data-resolved-theme="dark"] .h5,
html[data-resolved-theme="dark"] .h6,
html[data-resolved-theme="dark"] strong,
html[data-resolved-theme="dark"] dt {
  color: var(--dark-heading);
}

html[data-resolved-theme="dark"] a:not(.btn):not(.app-nav__link):not(.app-mobile-header__brand) {
  color: var(--bs-link-color);
}

html[data-resolved-theme="dark"] a:not(.btn):not(.app-nav__link):not(.app-mobile-header__brand):hover {
  color: var(--bs-link-hover-color);
}

html[data-resolved-theme="dark"] .text-muted,
html[data-resolved-theme="dark"] .text-secondary,
html[data-resolved-theme="dark"] .form-text,
html[data-resolved-theme="dark"] small,
html[data-resolved-theme="dark"] .small.text-muted {
  color: var(--dark-muted) !important;
}

html[data-resolved-theme="dark"] .text-dark,
html[data-resolved-theme="dark"] .text-black,
html[data-resolved-theme="dark"] .text-body,
html[data-resolved-theme="dark"] .text-body-emphasis {
  color: var(--dark-text) !important;
}

html[data-resolved-theme="dark"] hr {
  color: var(--dark-line-strong);
  opacity: .72;
}

/* Main surfaces */
html[data-resolved-theme="dark"] :is(
  .card,
  .modal-content,
  .offcanvas,
  .dropdown-menu,
  .list-group-item,
  .accordion-item,
  .accordion-button,
  .table-responsive,
  .permission-group,
  .support-thread,
  .support-reply-box,
  .support-chat,
  .ticket-view,
  .ticket-list,
  .knowledge-section,
  .catalog-cost-list,
  .role-summary-card,
  .interaction-attachment,
  .app-toast,
  .captcha-card,
  .client-profile-field,
  .client-history-details,
  .client-history-change,
  .installment-plan-summary
) {
  background-color: var(--dark-surface) !important;
  color: var(--dark-text);
  border-color: var(--dark-line) !important;
}

html[data-resolved-theme="dark"] :is(
  .card-header,
  .card-footer,
  .modal-header,
  .modal-footer,
  .offcanvas-header,
  .support-thread__header,
  .support-reply-box__header,
  .kanban-column__header
) {
  background: var(--dark-raised) !important;
  color: var(--dark-heading);
  border-color: var(--dark-line) !important;
}

html[data-resolved-theme="dark"] .card-stat {
  background: linear-gradient(145deg, #18263a, #131e2e) !important;
}

html[data-resolved-theme="dark"] :is(.bg-white, .bg-light, .bg-light-subtle, .bg-body-tertiary, .alert-light) {
  background-color: var(--dark-raised) !important;
  color: var(--dark-text) !important;
  border-color: var(--dark-line) !important;
}

html[data-resolved-theme="dark"] :is(.border, .border-top, .border-end, .border-bottom, .border-start) {
  border-color: var(--dark-line) !important;
}

html[data-resolved-theme="dark"] .shadow-sm {
  box-shadow: 0 10px 26px rgba(0, 0, 0, .24) !important;
}

/* Header, compact controls and mobile navigation */
html[data-resolved-theme="dark"] .app-topbar {
  color: var(--dark-text);
}

html[data-resolved-theme="dark"] :is(.app-company-pill, .app-user-chip, .notification-bell, .app-mobile-header) {
  background: rgba(20, 30, 45, .94) !important;
  color: var(--dark-text) !important;
  border-color: var(--dark-line) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

html[data-resolved-theme="dark"] .app-mobile-header__brand {
  color: var(--dark-heading);
}

html[data-resolved-theme="dark"] .offcanvas .app-nav__link {
  color: #c5d0e2;
}

html[data-resolved-theme="dark"] .offcanvas .app-nav__link:hover,
html[data-resolved-theme="dark"] .offcanvas .app-nav__link.is-active {
  color: #ffffff;
  background: var(--dark-accent-soft);
  box-shadow: inset 3px 0 0 var(--dark-accent);
}

html[data-resolved-theme="dark"] .offcanvas :is(.app-nav__caption, .app-nav__company) {
  color: var(--dark-muted);
}

html[data-resolved-theme="dark"] .offcanvas .app-nav__company {
  background: var(--dark-inset);
  border-color: var(--dark-line);
}

/* Form controls */
html[data-resolved-theme="dark"] .form-label,
html[data-resolved-theme="dark"] .form-check-label,
html[data-resolved-theme="dark"] .permission-group__title,
html[data-resolved-theme="dark"] .permission-group__checks .form-check-label {
  color: #cbd6e8;
}

html[data-resolved-theme="dark"] :is(
  .form-control,
  .form-select,
  .input-group-text,
  textarea,
  select,
  .multi-autocomplete__quantity
) {
  background-color: var(--dark-inset) !important;
  color: var(--dark-text) !important;
  border-color: var(--dark-line-strong) !important;
}

html[data-resolved-theme="dark"] :is(.form-control, .form-select, textarea, select):focus,
html[data-resolved-theme="dark"] .multi-autocomplete__quantity:focus {
  background-color: #111d2e !important;
  color: #ffffff !important;
  border-color: var(--dark-accent) !important;
  box-shadow: 0 0 0 .2rem var(--dark-focus) !important;
}

html[data-resolved-theme="dark"] :is(.form-control, .form-select):disabled,
html[data-resolved-theme="dark"] .form-control[readonly],
html[data-resolved-theme="dark"] .related-object-selector .form-select:disabled {
  background-color: #172131 !important;
  color: #788aa5 !important;
  border-color: #28364a !important;
  opacity: 1;
}

html[data-resolved-theme="dark"] :is(.form-control, textarea)::placeholder,
html[data-resolved-theme="dark"] .multi-autocomplete__input::placeholder {
  color: #788aa5 !important;
  opacity: 1;
}

html[data-resolved-theme="dark"] select option {
  background: var(--dark-inset);
  color: var(--dark-text);
}

html[data-resolved-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
html[data-resolved-theme="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
html[data-resolved-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(82%) sepia(10%) saturate(451%) hue-rotate(178deg) brightness(102%);
  opacity: .9;
}

html[data-resolved-theme="dark"] .form-check-input {
  background-color: var(--dark-inset);
  border-color: var(--dark-line-strong);
}

html[data-resolved-theme="dark"] .form-check-input:checked {
  background-color: var(--app-primary);
  border-color: var(--app-primary);
}

html[data-resolved-theme="dark"] .form-range::-webkit-slider-runnable-track,
html[data-resolved-theme="dark"] .form-range::-moz-range-track {
  background: #26364c;
}

/* Buttons and menus */
html[data-resolved-theme="dark"] .btn-primary {
  background: #587be4;
  border-color: #587be4;
  color: #ffffff;
}

html[data-resolved-theme="dark"] .btn-primary:hover,
html[data-resolved-theme="dark"] .btn-primary:focus {
  background: #6d8bed;
  border-color: #6d8bed;
  color: #ffffff;
}

html[data-resolved-theme="dark"] :is(.btn-light, .btn-outline-secondary, .btn-outline-primary, .btn-outline-danger) {
  background: var(--dark-raised);
  color: #dce5f4;
  border-color: var(--dark-line-strong);
}

html[data-resolved-theme="dark"] :is(.btn-light, .btn-outline-secondary, .btn-outline-primary):hover,
html[data-resolved-theme="dark"] :is(.btn-light, .btn-outline-secondary, .btn-outline-primary):focus {
  background: var(--dark-hover);
  color: #ffffff;
  border-color: #536985;
}

html[data-resolved-theme="dark"] .btn-outline-danger {
  color: #ff9aa5;
  border-color: rgba(255, 135, 148, .52);
}

html[data-resolved-theme="dark"] .btn-outline-danger:hover,
html[data-resolved-theme="dark"] .btn-outline-danger:focus {
  background: rgba(224, 73, 91, .18);
  color: #ffd8dc;
  border-color: #ff8794;
}

html[data-resolved-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(190%);
  opacity: .72;
}

html[data-resolved-theme="dark"] .btn-close:hover {
  background-color: rgba(255, 255, 255, .07);
  opacity: 1;
}

html[data-resolved-theme="dark"] :is(
  .app-actions-trigger,
  .finance-icon-button,
  .icon-button,
  .view-toggle,
  .segmented-control,
  .notification-bell,
  .captcha-card__refresh,
  .kanban-scroll-control,
  .kanban-scroll-control__button,
  .client-autocomplete__clear,
  .multi-autocomplete__clear
) {
  background: var(--dark-raised) !important;
  color: #c7d3e6 !important;
  border-color: var(--dark-line) !important;
}

html[data-resolved-theme="dark"] :is(
  .app-actions-trigger,
  .finance-icon-button,
  .icon-button,
  .kanban-scroll-control__button,
  .client-autocomplete__clear,
  .multi-autocomplete__clear
):hover {
  background: var(--dark-hover) !important;
  color: #ffffff !important;
  border-color: var(--dark-line-strong) !important;
}

html[data-resolved-theme="dark"] :is(.dropdown-item, .client-page-actions__menu .dropdown-item) {
  color: #d9e3f2;
}

html[data-resolved-theme="dark"] :is(.dropdown-item, .client-page-actions__menu .dropdown-item):hover,
html[data-resolved-theme="dark"] :is(.dropdown-item, .client-page-actions__menu .dropdown-item):focus {
  background: var(--dark-accent-soft);
  color: #ffffff;
}

html[data-resolved-theme="dark"] .dropdown-divider {
  border-color: var(--dark-line);
}

/* Tables */
html[data-resolved-theme="dark"] .table {
  --bs-table-color: var(--dark-text);
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--dark-line);
  --bs-table-striped-color: var(--dark-text);
  --bs-table-striped-bg: rgba(255, 255, 255, .018);
  --bs-table-hover-color: #ffffff;
  --bs-table-hover-bg: rgba(100, 136, 242, .08);
  color: var(--dark-text);
}

html[data-resolved-theme="dark"] .table thead th,
html[data-resolved-theme="dark"] .client-list-table thead th {
  background: var(--dark-raised) !important;
  color: #aab8cc !important;
  border-bottom-color: var(--dark-line-strong) !important;
  box-shadow: 0 1px 0 var(--dark-line);
}

html[data-resolved-theme="dark"] .table > :not(caption) > * > * {
  background-color: transparent !important;
  color: inherit;
  border-bottom-color: var(--dark-line) !important;
}

html[data-resolved-theme="dark"] :is(.table-hover > tbody > tr:hover > *, .client-list-table__row:hover) {
  background-color: rgba(100, 136, 242, .075) !important;
}

html[data-resolved-theme="dark"] .client-list-table__sortable > a:hover,
html[data-resolved-theme="dark"] .client-list-table__sortable.is-sorted > a {
  background: var(--dark-accent-soft);
}

/* Tabs, switches and filters */
html[data-resolved-theme="dark"] :is(.nav-tabs, .settings-tabs, .finance-tabs, .pipeline-tabs) {
  background: #101a2a !important;
  border: 1px solid var(--dark-line) !important;
}

html[data-resolved-theme="dark"] :is(
  .nav-tabs .nav-link,
  .settings-tabs__item,
  .settings-tabs .nav-link,
  .finance-tabs .nav-link,
  .pipeline-tab,
  .view-toggle__button,
  .segmented-control__item
) {
  color: #aab8cc;
  background: transparent;
  border-color: transparent;
}

html[data-resolved-theme="dark"] :is(
  .nav-tabs .nav-link,
  .settings-tabs__item,
  .settings-tabs .nav-link,
  .finance-tabs .nav-link,
  .pipeline-tab,
  .view-toggle__button,
  .segmented-control__item
):hover {
  color: #ffffff;
  background: rgba(255, 255, 255, .055);
}

html[data-resolved-theme="dark"] :is(
  .nav-tabs .nav-link.active,
  .settings-tabs__item.is-active,
  .settings-tabs .nav-link.active,
  .finance-tabs .nav-link.active,
  .pipeline-tab.is-active,
  .view-toggle__button.is-active,
  .segmented-control__item.is-active
) {
  color: #ffffff !important;
  background: var(--dark-accent-soft) !important;
  border-color: rgba(127, 157, 245, .30) !important;
  box-shadow: inset 0 0 0 1px rgba(127, 157, 245, .12);
}

html[data-resolved-theme="dark"] .pipeline-tab.is-active .pipeline-tab__budget {
  color: #d9e4f5;
  background: rgba(255, 255, 255, .08);
}

/* Badges, alerts and statuses */
html[data-resolved-theme="dark"] :is(.badge.bg-light, .badge.text-bg-light, .text-bg-light) {
  background: rgba(255, 255, 255, .085) !important;
  color: #dce6f5 !important;
  border-color: var(--dark-line-strong) !important;
}

html[data-resolved-theme="dark"] .text-bg-primary {
  background: rgba(100, 136, 242, .20) !important;
  color: #dfe7ff !important;
}

html[data-resolved-theme="dark"] .text-bg-secondary {
  background: rgba(158, 172, 193, .16) !important;
  color: #dce4ef !important;
}

html[data-resolved-theme="dark"] .alert-success {
  background: rgba(62, 166, 107, .14);
  color: #b9f0cd;
  border-color: rgba(114, 213, 154, .28);
}

html[data-resolved-theme="dark"] .alert-danger {
  background: rgba(224, 73, 91, .14);
  color: #ffd1d6;
  border-color: rgba(255, 135, 148, .30);
}

html[data-resolved-theme="dark"] .alert-warning {
  background: rgba(209, 154, 49, .15);
  color: #ffe0a3;
  border-color: rgba(241, 198, 111, .31);
}

html[data-resolved-theme="dark"] .alert-info {
  background: rgba(52, 151, 204, .15);
  color: #c7edff;
  border-color: rgba(119, 197, 239, .30);
}

html[data-resolved-theme="dark"] .status-select--danger {
  color: #ffadb6 !important;
  border-color: rgba(255, 135, 148, .46) !important;
  background-color: rgba(224, 73, 91, .11) !important;
}

html[data-resolved-theme="dark"] .status-select--success {
  color: #a8e9bf !important;
  border-color: rgba(114, 213, 154, .43) !important;
  background-color: rgba(62, 166, 107, .11) !important;
}

/* Empty states and loading */
html[data-resolved-theme="dark"] .empty-state {
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .012));
  border-color: var(--dark-line-strong);
  color: var(--dark-muted);
}

html[data-resolved-theme="dark"] .empty-state__icon,
html[data-resolved-theme="dark"] .empty-state .empty-state__icon {
  color: #90a8db;
  background: rgba(100, 136, 242, .10);
}

html[data-resolved-theme="dark"] :is(.skeleton, .htmx-indicator .skeleton-line) {
  background: linear-gradient(90deg, #1b283a 25%, #26364a 50%, #1b283a 75%) !important;
  background-size: 200% 100% !important;
}

/* Kanban */
html[data-resolved-theme="dark"] .kanban-column {
  background: #101a29 !important;
  border-color: var(--dark-line) !important;
}

html[data-resolved-theme="dark"] .kanban-column__header {
  color: #dbe5f4;
}

html[data-resolved-theme="dark"] .kanban-card {
  background: var(--dark-surface) !important;
  color: var(--dark-text);
  border-color: var(--dark-line) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .20);
}

html[data-resolved-theme="dark"] .kanban-card:hover {
  box-shadow: 0 12px 26px rgba(0, 0, 0, .30);
  border-color: #40536d !important;
}

html[data-resolved-theme="dark"] .kanban-column.is-drop-target,
html[data-resolved-theme="dark"] .kanban-column.is-drop-target .kanban-column__header {
  background: rgba(100, 136, 242, .12) !important;
  border-color: rgba(127, 157, 245, .50) !important;
}

html[data-resolved-theme="dark"] :is(.kanban-drag-handle, .kanban-stage-drag-handle) {
  background: #1b293c;
  color: #9fb0c8;
  border-color: var(--dark-line);
}

html[data-resolved-theme="dark"] :is(.kanban-stage-description, .kanban-stage-budget, .kanban-scroll-hint) {
  color: var(--dark-muted);
}

/* Calendar */
html[data-resolved-theme="dark"] .calendar-shell {
  background: var(--dark-surface) !important;
  border-color: var(--dark-line) !important;
}

html[data-resolved-theme="dark"] :is(.calendar-time-axis, .calendar-day__header, .calendar-month__weekday) {
  background: var(--dark-raised) !important;
  color: #aab8cc;
  border-color: var(--dark-line) !important;
}

html[data-resolved-theme="dark"] .calendar-range-title {
  color: #dce6f5;
}

html[data-resolved-theme="dark"] :is(.calendar-day, .calendar-month__day) {
  border-color: var(--dark-line) !important;
}

html[data-resolved-theme="dark"] .calendar-day__body {
  background-color: var(--dark-inset) !important;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 59px,
    #263448 59px,
    #263448 60px
  ) !important;
}

html[data-resolved-theme="dark"] .calendar-month__day {
  background: var(--dark-inset) !important;
}

html[data-resolved-theme="dark"] .calendar-month__day:hover {
  background: var(--dark-hover) !important;
}

html[data-resolved-theme="dark"] .calendar-month__day.is-outside {
  background: #0c1522 !important;
  color: #65768f;
}

html[data-resolved-theme="dark"] :is(.calendar-event, .calendar-month-event) {
  color: #b8caff;
  background: rgba(73, 111, 222, .20);
  border-color: #6f91f0;
}

html[data-resolved-theme="dark"] :is(.calendar-event--call, .calendar-month-event--call) {
  color: #ffd58a;
  background: rgba(181, 119, 24, .20);
  border-color: #d9a34e;
}

html[data-resolved-theme="dark"] :is(.calendar-event--meeting, .calendar-month-event--meeting) {
  color: #a8e8bf;
  background: rgba(52, 147, 91, .20);
  border-color: #63bd87;
}

html[data-resolved-theme="dark"] :is(.calendar-event--reminder, .calendar-month-event--reminder) {
  color: #d9b9f5;
  background: rgba(129, 76, 174, .22);
  border-color: #b178dc;
}

html[data-resolved-theme="dark"] :is(.calendar-event--task, .calendar-month-event--task) {
  color: #c8c7ff;
  background: rgba(91, 90, 190, .22);
  border-color: #8e8de6;
}

/* Dashboard and analytics */
html[data-resolved-theme="dark"] :is(.dashboard-layout-editor__tile, .dashboard-layout-editor__group) {
  background: var(--dark-surface) !important;
  color: var(--dark-text);
  border-color: var(--dark-line) !important;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .18);
}

html[data-resolved-theme="dark"] :is(
  .dashboard-layout-editor__title,
  .dashboard-layout-editor__group h3,
  .dashboard-layout-editor__tile-content strong,
  .analytics-kpi__value,
  .admin-dynamic-card__value
) {
  color: var(--dark-heading);
}

html[data-resolved-theme="dark"] :is(.dashboard-layout-editor__hint, .revenue-chart__value) {
  color: var(--dark-muted);
}

html[data-resolved-theme="dark"] .analytics-bars__track,
html[data-resolved-theme="dark"] :is(.admin-usage-progress, .company-usage__progress) {
  background: #263448;
}

html[data-resolved-theme="dark"] .problem-zone:hover {
  background: var(--dark-hover);
}

html[data-resolved-theme="dark"] .analytics-kpi__change--up {
  color: #9ce2b6;
  background: rgba(62, 166, 107, .15);
}

html[data-resolved-theme="dark"] .analytics-kpi__change--down {
  color: #ffb0b9;
  background: rgba(224, 73, 91, .15);
}

html[data-resolved-theme="dark"] .analytics-kpi__change--flat {
  color: #bdc8d9;
  background: rgba(158, 172, 193, .13);
}

/* Client forms, field-layout editor and profile */
html[data-resolved-theme="dark"] .client-form-actions,
html[data-resolved-theme="dark"] .client-list-scrollbar {
  background: rgba(20, 30, 45, .96) !important;
  border-color: var(--dark-line) !important;
  box-shadow: 0 -9px 24px rgba(0, 0, 0, .24);
}

html[data-resolved-theme="dark"] :is(
  .client-form-field-row,
  .client-form-field-row--ghost,
  .client-columns-editor__row,
  .client-columns-editor__row.is-visible
) {
  background: var(--dark-surface) !important;
  color: var(--dark-text);
  border-color: var(--dark-line) !important;
}

html[data-resolved-theme="dark"] .client-form-fields.is-order-editing .client-form-field-row {
  background: #152132 !important;
}

html[data-resolved-theme="dark"] .client-form-fields.is-order-editing .client-form-field-row:hover,
html[data-resolved-theme="dark"] .client-form-field-row.is-drag-target,
html[data-resolved-theme="dark"] .client-columns-editor__row.is-drag-target,
html[data-resolved-theme="dark"] .client-form-layout-row.is-drop-row-active .client-form-field-row:not(.is-dragging) {
  background: rgba(100, 136, 242, .12) !important;
  border-color: rgba(127, 157, 245, .55) !important;
}

html[data-resolved-theme="dark"] :is(.client-form-drop-zone, .client-form-field-row__handle) {
  background: #1b2a3e !important;
  color: #9bb0d2 !important;
  border-color: #3a4d68 !important;
}

html[data-resolved-theme="dark"] .client-form-drop-zone.is-drop-zone-active,
html[data-resolved-theme="dark"] .client-form-fields.is-dragging-layout .client-form-drop-zone--aside.is-drop-zone-active {
  background: rgba(100, 136, 242, .19) !important;
  color: #cdd8ff !important;
  border-color: #7798f5 !important;
}

html[data-resolved-theme="dark"] :is(
  .client-form-section__title,
  .client-form-field-row__label label,
  .client-form-fields.is-order-editing .client-form-field-row__label label,
  .client-columns-editor__name strong,
  .client-history-entry__description,
  .client-profile-field strong
) {
  color: #dbe5f4 !important;
}

html[data-resolved-theme="dark"] :is(.client-form-layout-toolbar, .client-form-layout-toolbar span) {
  color: var(--dark-muted);
}

html[data-resolved-theme="dark"] .client-form-layout-toolbar {
  background: linear-gradient(135deg, #17253a 0%, #121e2f 100%);
  border-color: #344a69;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

html[data-resolved-theme="dark"] .client-form-layout-toolbar strong {
  color: var(--dark-heading);
}

html[data-resolved-theme="dark"] .client-form-layout-toolbar__legend {
  color: #aebee0 !important;
}

html[data-resolved-theme="dark"] .client-form-layout-toolbar .btn-light {
  background: #223149;
  color: #dbe5f4;
  border-color: #405573;
}

html[data-resolved-theme="dark"] .client-form-layout-toolbar .btn-light:hover {
  background: #2a3b56;
  color: #ffffff;
  border-color: #536c91;
}

html[data-resolved-theme="dark"] .client-history-details .client-history-change {
  background: var(--dark-inset) !important;
  border-color: var(--dark-line) !important;
}

html[data-resolved-theme="dark"] .client-history-change__old {
  color: #ffb4bd;
  background: rgba(224, 73, 91, .11);
}

html[data-resolved-theme="dark"] .client-profile-field--medical {
  background: rgba(177, 119, 25, .10) !important;
  border-color: rgba(241, 198, 111, .32) !important;
}

html[data-resolved-theme="dark"] .medical-field-info {
  color: var(--dark-warning);
}

html[data-resolved-theme="dark"] .medical-field-warning {
  color: #f5d28d;
  background: rgba(177, 119, 25, .13);
  border-left-color: #d9a34e;
}

/* Autocomplete and suggestion panels */
html[data-resolved-theme="dark"] :is(
  .client-autocomplete__menu,
  .multi-autocomplete__menu,
  .mention-suggestions,
  .client-page-actions__menu,
  .floating-action-menu,
  .admin-action-menu
) {
  background: var(--dark-raised) !important;
  color: var(--dark-text);
  border-color: var(--dark-line-strong) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .34);
}

html[data-resolved-theme="dark"] .multi-autocomplete__control {
  background: var(--dark-inset) !important;
  border-color: var(--dark-line-strong) !important;
}

html[data-resolved-theme="dark"] .multi-autocomplete__control:focus-within {
  border-color: var(--dark-accent) !important;
  box-shadow: 0 0 0 .2rem var(--dark-focus);
}

html[data-resolved-theme="dark"] .multi-autocomplete__input {
  color: var(--dark-text);
}

html[data-resolved-theme="dark"] .multi-autocomplete__chip {
  color: #dce5ff;
  background: rgba(100, 136, 242, .18);
}

html[data-resolved-theme="dark"] .multi-autocomplete__chip button {
  color: #b3c1df;
}

html[data-resolved-theme="dark"] :is(.client-autocomplete__option, .multi-autocomplete__option, .mention-suggestions__item) {
  color: #d8e2f1;
}

html[data-resolved-theme="dark"] :is(.client-autocomplete__option, .multi-autocomplete__option, .mention-suggestions__item):hover,
html[data-resolved-theme="dark"] :is(.client-autocomplete__option, .multi-autocomplete__option, .mention-suggestions__item):focus-visible {
  color: #ffffff;
  background: var(--dark-accent-soft);
}

html[data-resolved-theme="dark"] :is(.client-autocomplete__option small, .multi-autocomplete__option small, .multi-autocomplete__empty) {
  color: var(--dark-muted);
}

/* Notifications and support */
html[data-resolved-theme="dark"] .notification-item--unread,
html[data-resolved-theme="dark"] .notification-item__open:hover,
html[data-resolved-theme="dark"] .notification-item__open:focus-visible,
html[data-resolved-theme="dark"] .notification-item:hover,
html[data-resolved-theme="dark"] .audit-log-row:hover {
  background: rgba(100, 136, 242, .075) !important;
}

html[data-resolved-theme="dark"] .support-message__bubble {
  background: var(--dark-inset);
  color: var(--dark-text);
  border-color: var(--dark-line);
}

html[data-resolved-theme="dark"] .support-message--staff .support-message__bubble {
  background: rgba(100, 136, 242, .16);
  border-color: rgba(127, 157, 245, .28);
}

html[data-resolved-theme="dark"] :is(.support-ticket-list__meta, .support-thread__meta, .support-message__meta) {
  color: var(--dark-muted);
}

html[data-resolved-theme="dark"] .support-ticket-list__item {
  background: transparent;
  border-color: var(--dark-line);
}

html[data-resolved-theme="dark"] .support-ticket-list__item:hover,
html[data-resolved-theme="dark"] .support-ticket-list__item.active {
  background: var(--dark-accent-soft);
}

/* Admin, plans and subscriptions */
html[data-resolved-theme="dark"] :is(.attention-card, .plan-option-card, .plan-card) {
  background: var(--dark-surface) !important;
  color: var(--dark-text) !important;
  border-color: var(--dark-line) !important;
}

html[data-resolved-theme="dark"] :is(
  .attention-card,
  .admin-dynamic-card__value,
  .admin-summary-card > strong,
  .plan-card__price,
  .plan-option-card__title,
  .subscription-lock h1,
  .admin-company-link
) {
  color: var(--dark-heading) !important;
}

html[data-resolved-theme="dark"] :is(
  .admin-company-link span,
  .admin-summary-card > span,
  .plan-card__description,
  .plan-card__usage,
  .plan-option-card__hint,
  .subscription-lock > p
) {
  color: var(--dark-muted) !important;
}

html[data-resolved-theme="dark"] .plan-card__limit {
  color: #c5d1e4;
  background: #1b293d;
}

html[data-resolved-theme="dark"] .admin-all-clear {
  color: #a9e8bf;
  background: rgba(62, 166, 107, .11);
  border-color: rgba(114, 213, 154, .25);
}

html[data-resolved-theme="dark"] .admin-all-clear small {
  color: #86bd9a !important;
}


html[data-resolved-theme="dark"] .admin-attention {
  background: linear-gradient(145deg, rgba(14, 28, 56, .96), rgba(10, 20, 40, .98));
  border-color: var(--dark-line);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .26);
}

html[data-resolved-theme="dark"] .admin-attention :is(h2, #attentionHeading) {
  color: var(--dark-heading);
}

html[data-resolved-theme="dark"] .admin-attention .text-muted,
html[data-resolved-theme="dark"] .admin-attention p.small {
  color: var(--dark-muted) !important;
}

html[data-resolved-theme="dark"] .admin-attention .badge.text-bg-danger {
  color: #fff3f5;
  background: linear-gradient(145deg, #d9415b, #b72d49) !important;
  box-shadow: 0 8px 18px rgba(183, 45, 73, .28);
}

html[data-resolved-theme="dark"] .attention-card {
  background: linear-gradient(145deg, rgba(17, 33, 63, .94), rgba(13, 25, 47, .98)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02), 0 12px 24px rgba(0,0,0,.18);
}

html[data-resolved-theme="dark"] .attention-card:hover {
  border-color: rgba(108, 139, 214, .38) !important;
  box-shadow: 0 16px 28px rgba(0, 0, 0, .24);
}

html[data-resolved-theme="dark"] .attention-card__body small,
html[data-resolved-theme="dark"] .attention-card__arrow {
  color: var(--dark-muted) !important;
}


html[data-resolved-theme="dark"] .subscription-lock__icon {
  color: #ffd17d;
  background: rgba(209, 154, 49, .16);
}

html[data-resolved-theme="dark"] :is(.admin-summary-card, .admin-filter-card, .admin-payments-table-card) {
  background: var(--dark-raised) !important;
  color: var(--dark-text) !important;
  border-color: var(--dark-line) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

html[data-resolved-theme="dark"] .admin-summary-card > span {
  color: var(--dark-muted) !important;
}

html[data-resolved-theme="dark"] .admin-summary-card > strong {
  color: var(--dark-heading) !important;
}

html[data-resolved-theme="dark"] .admin-summary-card--success {
  background: linear-gradient(145deg, rgba(44, 116, 80, .24), rgba(21, 43, 34, .92)) !important;
  border-color: rgba(90, 168, 127, .28) !important;
}

html[data-resolved-theme="dark"] .admin-summary-card--success > strong {
  color: #b9efcb !important;
}

html[data-resolved-theme="dark"] .admin-summary-card--warning {
  background: linear-gradient(145deg, rgba(123, 88, 28, .24), rgba(45, 33, 14, .92)) !important;
  border-color: rgba(201, 154, 73, .30) !important;
}

html[data-resolved-theme="dark"] .admin-summary-card--warning > strong {
  color: #ffd89a !important;
}

html[data-resolved-theme="dark"] .admin-summary-card--danger {
  background: linear-gradient(145deg, rgba(118, 48, 62, .24), rgba(45, 20, 28, .92)) !important;
  border-color: rgba(194, 105, 124, .28) !important;
}

html[data-resolved-theme="dark"] .admin-summary-card--danger > strong {
  color: #ffb9c7 !important;
}

html[data-resolved-theme="dark"] .admin-payments-table-card .table-responsive {
  background: transparent;
}

html[data-resolved-theme="dark"] .app-topbar__context:empty {
  display: none;
}

/* Captcha, registration and miscellaneous custom blocks */
html[data-resolved-theme="dark"] .captcha-card__image-wrap {
  background: #f3f5f8;
  border-color: var(--dark-line-strong);
}

html[data-resolved-theme="dark"] :is(.captcha-card__heading strong, .captcha-card__field-wrap .form-label, .captcha-card__field .form-label) {
  color: #dbe5f4;
}

html[data-resolved-theme="dark"] :is(.captcha-card__heading small, .captcha-card__field-wrap .form-text, .captcha-card__field .form-text) {
  color: var(--dark-muted) !important;
}

html[data-resolved-theme="dark"] .registration-consents {
  background: var(--dark-inset);
  border-color: var(--dark-line);
}

html[data-resolved-theme="dark"] .role-access-switch.form-check,
html[data-resolved-theme="dark"] .related-object-selector,
html[data-resolved-theme="dark"] .catalog-cost-list__row,
html[data-resolved-theme="dark"] .payment-product-row,
html[data-resolved-theme="dark"] .product-sale-row {
  background: var(--dark-inset) !important;
  color: var(--dark-text);
  border-color: var(--dark-line) !important;
}

html[data-resolved-theme="dark"] .role-summary-card__locked {
  color: var(--dark-muted);
  background: var(--dark-inset);
}

html[data-resolved-theme="dark"] .pagination .page-link {
  background: var(--dark-inset);
  color: #dce5f4;
  border-color: var(--dark-line);
}

html[data-resolved-theme="dark"] .pagination .page-link:hover,
html[data-resolved-theme="dark"] .pagination .page-link:focus {
  background: var(--dark-accent-soft);
  color: #ffffff;
}

html[data-resolved-theme="dark"] .pagination .page-item.active .page-link {
  background: #587be4;
  border-color: #587be4;
  color: #ffffff;
}

html[data-resolved-theme="dark"] .progress {
  background: #263448;
}

html[data-resolved-theme="dark"] ::selection {
  color: #ffffff;
  background: rgba(100, 136, 242, .55);
}

html[data-resolved-theme="dark"] :focus-visible {
  outline-color: #8faafd;
}

@media (max-width: 767.98px) {
  html[data-resolved-theme="dark"] .client-list-table tr {
    background: var(--dark-surface) !important;
    border-color: var(--dark-line) !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .18);
  }

  html[data-resolved-theme="dark"] .client-list-table td::before {
    color: var(--dark-muted);
  }
}

/* Authentication screens inherit the last selected user theme. */
html[data-resolved-theme="dark"] .auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 8%, rgba(70, 111, 220, .13), transparent 34%),
    radial-gradient(circle at 12% 92%, rgba(45, 126, 191, .10), transparent 31%),
    var(--dark-bg);
  color: var(--dark-text);
}

html[data-resolved-theme="dark"] .auth-page__brand {
  color: var(--dark-heading);
}

html[data-resolved-theme="dark"] .auth-page .card {
  box-shadow: 0 22px 55px rgba(0, 0, 0, .36);
}

/* Semantic icon tiles keep their meaning without using glaring light fills. */
html[data-resolved-theme="dark"] :is(.company-identity__logo, .profile-settings__avatar) {
  background: var(--dark-raised) !important;
  border-color: var(--dark-line) !important;
}

html[data-resolved-theme="dark"] .profile-settings__avatar {
  color: #b9caff;
}

html[data-resolved-theme="dark"] :is(.notification-kind--task, .problem-zone__count) {
  color: #a8e8bf;
  background: rgba(62, 166, 107, .16);
}

html[data-resolved-theme="dark"] :is(.notification-kind--calendar, .notification-kind--mention) {
  color: #dec0f7;
  background: rgba(129, 76, 174, .18);
}

html[data-resolved-theme="dark"] :is(.notification-kind--support, .problem-zone__count--contact, .attention-card__count) {
  color: #b8ceff;
  background: rgba(73, 111, 222, .18);
}

html[data-resolved-theme="dark"] :is(.notification-kind--admin, .notification-kind--warning, .problem-zone__count--service, .attention-card--warning .attention-card__count) {
  color: #ffd58a;
  background: rgba(181, 119, 24, .18);
}

html[data-resolved-theme="dark"] .attention-card--danger .attention-card__count {
  color: #ffb1ba;
  background: rgba(224, 73, 91, .17);
}

html[data-resolved-theme="dark"] .attention-card--info .attention-card__count {
  color: #bce8ff;
  background: rgba(52, 151, 204, .17);
}

/* v1.15.4 — тёмная палитра Wiki. */
html[data-resolved-theme="dark"] .knowledge-hero {
  border-color: var(--dark-line);
  background: linear-gradient(135deg, #172439 0%, #111d2e 58%, #172337 100%);
}
html[data-resolved-theme="dark"] .knowledge-hero::before { background: rgba(100, 136, 242, .13); }
html[data-resolved-theme="dark"] .knowledge-hero::after { background: rgba(83, 191, 174, .08); }
html[data-resolved-theme="dark"] .knowledge-hero__copy > p,
html[data-resolved-theme="dark"] .knowledge-search-hints,
html[data-resolved-theme="dark"] .knowledge-article__heading p,
html[data-resolved-theme="dark"] .wiki-section__heading p,
html[data-resolved-theme="dark"] .wiki-steps p,
html[data-resolved-theme="dark"] .wiki-bullets li,
html[data-resolved-theme="dark"] .knowledge-help-card p {
  color: var(--dark-muted);
}
html[data-resolved-theme="dark"] .knowledge-hero__support { background: rgba(20, 30, 45, .72); }
html[data-resolved-theme="dark"] .knowledge-search {
  border-color: var(--dark-line-strong);
  background: var(--dark-inset);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}
html[data-resolved-theme="dark"] .knowledge-search:focus-within { border-color: var(--dark-accent); box-shadow: 0 0 0 .22rem var(--dark-focus); }
html[data-resolved-theme="dark"] .knowledge-search__input { color: var(--dark-text); }
html[data-resolved-theme="dark"] .knowledge-search__input::placeholder { color: var(--dark-muted-2); }
html[data-resolved-theme="dark"] .knowledge-search__icon { color: var(--dark-muted); }
html[data-resolved-theme="dark"] .knowledge-search__clear { color: var(--dark-muted); background: var(--dark-raised); }
html[data-resolved-theme="dark"] .knowledge-search__clear:hover { color: var(--dark-text); background: var(--dark-hover); }
html[data-resolved-theme="dark"] .knowledge-search-hints button { color: #a8bafa; border-color: #61739b; }
html[data-resolved-theme="dark"] .knowledge-search-results,
html[data-resolved-theme="dark"] .knowledge-sidebar__inner,
html[data-resolved-theme="dark"] .knowledge-article,
html[data-resolved-theme="dark"] .knowledge-help-card {
  border-color: var(--dark-line);
  background: var(--dark-surface);
}
html[data-resolved-theme="dark"] .knowledge-search-result:hover { border-color: var(--dark-line-strong); background: var(--dark-hover); }
html[data-resolved-theme="dark"] .knowledge-search-result__badge { color: #aec0ff; background: var(--dark-accent-soft); }
html[data-resolved-theme="dark"] .knowledge-search-result strong,
html[data-resolved-theme="dark"] .knowledge-sidebar__title,
html[data-resolved-theme="dark"] .knowledge-toc__title,
html[data-resolved-theme="dark"] .knowledge-help-card strong,
html[data-resolved-theme="dark"] .knowledge-related-card strong,
html[data-resolved-theme="dark"] .knowledge-pager__link strong {
  color: var(--dark-heading);
}
html[data-resolved-theme="dark"] .knowledge-search-result small,
html[data-resolved-theme="dark"] .knowledge-search-result p,
html[data-resolved-theme="dark"] .knowledge-search-results__empty,
html[data-resolved-theme="dark"] .knowledge-breadcrumbs,
html[data-resolved-theme="dark"] .knowledge-article__meta,
html[data-resolved-theme="dark"] .knowledge-related-card small,
html[data-resolved-theme="dark"] .knowledge-pager__link span {
  color: var(--dark-muted);
}
html[data-resolved-theme="dark"] .knowledge-nav-group + .knowledge-nav-group,
html[data-resolved-theme="dark"] .knowledge-search-results__header,
html[data-resolved-theme="dark"] .wiki-section,
html[data-resolved-theme="dark"] .knowledge-article__header,
html[data-resolved-theme="dark"] .knowledge-pager {
  border-color: var(--dark-line);
}
html[data-resolved-theme="dark"] .knowledge-nav-group h2 { color: var(--dark-muted-2); }
html[data-resolved-theme="dark"] .knowledge-nav-link { color: var(--dark-muted); }
html[data-resolved-theme="dark"] .knowledge-nav-link:hover { color: #b5c5ff; background: var(--dark-hover); }
html[data-resolved-theme="dark"] .knowledge-nav-link.is-active { color: #c7d3ff; background: var(--dark-accent-soft); }
html[data-resolved-theme="dark"] .knowledge-nav-link__index,
html[data-resolved-theme="dark"] .knowledge-nav-link.is-active .knowledge-nav-link__index {
  border-color: var(--dark-line-strong);
  color: var(--dark-muted);
  background: var(--dark-inset);
}
html[data-resolved-theme="dark"] .knowledge-nav-link.is-active .knowledge-nav-link__index { color: #aebfff; }
html[data-resolved-theme="dark"] .knowledge-article__header { background: linear-gradient(180deg, var(--dark-raised), var(--dark-surface)); }
html[data-resolved-theme="dark"] .knowledge-breadcrumbs a { color: #a3b5df; }
html[data-resolved-theme="dark"] .knowledge-article__number,
html[data-resolved-theme="dark"] .wiki-section__heading > span {
  border-color: #42577a;
  color: #b5c5ff;
  background: var(--dark-accent-soft);
}
html[data-resolved-theme="dark"] .knowledge-mobile-toc { border-color: var(--dark-line); background: var(--dark-inset); }
html[data-resolved-theme="dark"] .knowledge-mobile-toc summary { color: var(--dark-text); }
html[data-resolved-theme="dark"] .knowledge-mobile-toc a { color: var(--dark-muted); }
html[data-resolved-theme="dark"] .wiki-steps li { border-color: var(--dark-line); background: var(--dark-inset); }
html[data-resolved-theme="dark"] .wiki-steps__number { color: #fff; background: #607fdc; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
html[data-resolved-theme="dark"] .wiki-steps h4 { color: var(--dark-heading); }
html[data-resolved-theme="dark"] .wiki-bullets li::before { border-color: #829cf0; background: var(--dark-surface); box-shadow: 0 0 0 3px var(--dark-accent-soft); }
html[data-resolved-theme="dark"] .wiki-callout { border-color: #40577b; background: rgba(100, 136, 242, .10); }
html[data-resolved-theme="dark"] .wiki-callout__icon { color: #b9c7ff; background: rgba(100, 136, 242, .19); }
html[data-resolved-theme="dark"] .wiki-callout strong { color: #cfdaff; }
html[data-resolved-theme="dark"] .wiki-callout p { color: var(--dark-muted); }
html[data-resolved-theme="dark"] .wiki-callout--warning { border-color: #695b39; background: rgba(241, 198, 111, .08); }
html[data-resolved-theme="dark"] .wiki-callout--warning .wiki-callout__icon { color: #f3cf84; background: rgba(241, 198, 111, .15); }
html[data-resolved-theme="dark"] .wiki-callout--warning strong { color: #f0cf8b; }
html[data-resolved-theme="dark"] .wiki-callout--success { border-color: #365f4b; background: rgba(114, 213, 154, .07); }
html[data-resolved-theme="dark"] .wiki-callout--success .wiki-callout__icon { color: #93dfb1; background: rgba(114, 213, 154, .14); }
html[data-resolved-theme="dark"] .wiki-callout--success strong { color: #a5e4bd; }
html[data-resolved-theme="dark"] .knowledge-related { border-color: var(--dark-line); background: var(--dark-inset); }
html[data-resolved-theme="dark"] .knowledge-related-card { border-color: var(--dark-line); background: var(--dark-surface); }
html[data-resolved-theme="dark"] .knowledge-related-card:hover { border-color: var(--dark-line-strong); background: var(--dark-hover); }
html[data-resolved-theme="dark"] .knowledge-related-card > span { color: #b8c7ff; background: var(--dark-accent-soft); }
html[data-resolved-theme="dark"] .knowledge-pager { background: var(--dark-line); }
html[data-resolved-theme="dark"] .knowledge-pager__link { background: var(--dark-surface); }
html[data-resolved-theme="dark"] .knowledge-pager__link:hover { background: var(--dark-hover); }
html[data-resolved-theme="dark"] .knowledge-toc nav { border-color: var(--dark-line); }
html[data-resolved-theme="dark"] .knowledge-toc nav a { color: var(--dark-muted); }
html[data-resolved-theme="dark"] .knowledge-toc nav a:hover { color: #b7c6f4; }
html[data-resolved-theme="dark"] .knowledge-toc nav a.is-active { color: #aabfff; border-left-color: var(--dark-accent); }


html[data-resolved-theme="dark"] .user-listing__name,
html[data-resolved-theme="dark"] .team-chat-message__meta strong {
  color: var(--dark-heading);
}

html[data-resolved-theme="dark"] .team-chat-message__avatar {
  background: var(--dark-raised);
  color: #dbe5f4;
  border: 1px solid var(--dark-line);
}

html[data-resolved-theme="dark"] .team-chat-message__meta span {
  color: var(--dark-muted);
}

html[data-resolved-theme="dark"] .team-chat-message__bubble {
  background: var(--dark-surface);
  color: var(--dark-text);
  border-color: var(--dark-line);
}


html[data-resolved-theme="dark"] :is(.interaction-upload-item, .interaction-file) {
  background: var(--dark-surface);
  border-color: var(--dark-line);
}
html[data-resolved-theme="dark"] :is(.interaction-upload-item__name, .interaction-file__name) { color: var(--dark-heading); }
html[data-resolved-theme="dark"] :is(.interaction-upload-item__body small, .interaction-file__body small) { color: var(--dark-muted); }
html[data-resolved-theme="dark"] :is(.interaction-upload-item--image .interaction-upload-item__icon, .interaction-file--image .interaction-file__icon) { color: #a9caff; background: rgba(70, 122, 196, .18); }
html[data-resolved-theme="dark"] :is(.interaction-upload-item--video .interaction-upload-item__icon, .interaction-file--video .interaction-file__icon) { color: #d0b4ff; background: rgba(126, 79, 180, .20); }
html[data-resolved-theme="dark"] :is(.interaction-upload-item--audio .interaction-upload-item__icon, .interaction-file--audio .interaction-file__icon) { color: #ffd591; background: rgba(159, 105, 28, .18); }
html[data-resolved-theme="dark"] :is(.interaction-upload-item--document .interaction-upload-item__icon, .interaction-file--document .interaction-file__icon) { color: #c1d5e8; background: rgba(75, 103, 130, .22); }


html[data-resolved-theme="dark"] .interaction-upload {
  background: rgba(14, 28, 56, .72);
  border-color: rgba(93, 118, 170, .34);
}
html[data-resolved-theme="dark"] .interaction-entry__chip--muted {
  background: rgba(255, 255, 255, .06);
  color: var(--dark-muted);
}
html[data-resolved-theme="dark"] .interaction-entry__next-step {
  background: rgba(255, 255, 255, .03);
  border-color: var(--dark-line);
}
html[data-resolved-theme="dark"] .interaction-entry__next-step strong,
html[data-resolved-theme="dark"] .interaction-upload-item__name,
html[data-resolved-theme="dark"] .interaction-file__name {
  color: var(--dark-heading);
}
html[data-resolved-theme="dark"] .interaction-entry__body,
html[data-resolved-theme="dark"] .interaction-entry__footer,
html[data-resolved-theme="dark"] .interaction-upload-item__body small,
html[data-resolved-theme="dark"] .interaction-file__body small {
  color: var(--dark-muted);
}
html[data-resolved-theme="dark"] .interaction-upload-item,
html[data-resolved-theme="dark"] .interaction-file {
  background: var(--dark-raised);
  border-color: var(--dark-line);
}
