/*
 * CREAM — палитра. Меняйте только блок html[data-theme="cream"] ниже.
 *
 * ФОН СТРАНИЦЫ  → --cream-fon
 * ФОН КАРТОЧЕК  → --cream-card-bg        (хаб, редактор, приоритеты)
 * ФОН ГЛАВНОЙ    → --cream-dashboard-card-bg  («Важно», «Что происходит»)
 * ФОН ПОЛЕЙ      → --cream-field-bg       (инпуты)
 *
 * ОБВОДКА        → --cream-border-color   (цвет линии)
 *   у карточек:   --cream-card-border      → none  или  1px solid var(--cream-border-color)
 *   на главной:   --cream-dashboard-card-border  → то же
 *
 * АКЦЕНТ         → --cream-accent, --cream-accent-hover
 * ЗАГОЛОВКИ      → --cream-heading, --cream-heading-size-*
 * САЙДБАР        → --cream-nav-active-bg
 * HUB (/hub)     → --hub-block-stack-gap (дата↔карточки и карточки↔редактор)
 * РЕДАКТОР CHROME → --word-chrome-* в блоке .tasks-editor.tasks-editor--word (hub)
 * ТАБЛИЦЫ        → --cream-table-line
 */
html[data-theme="cream"] {
  --cream-fon: linear-gradient(to bottom right, #F6F1E8);

  --cream-card-bg: #EDE7DB;
  --cream-field-bg: #F5F1E9;
  --cream-border-color: #D6CDC0;

  /* обводка: none — без рамки | 1px solid var(--cream-border-color) — с рамкой */
  --cream-card-border: none;
  --cream-dashboard-card-border: none;

  /* старые имена — не трогайте, на них ссылается остальной CSS */
  --cream-glass-bg: var(--cream-card-bg);
  --cream-glass-bg-field: var(--cream-field-bg);
  --cream-glass-rim: var(--cream-border-color);
  --cream-glass-rim-soft: var(--cream-border-color);
  --cream-glass-blur: 0px;
  --cream-glass-saturate: 0;
  --cream-glass-shadow: none;
  --cream-menu-bg: #ffffff;
  --priority-task-card-surface-bg: var(--cream-card-bg);
  --priority-task-card-surface-border: var(--cream-card-border);
  --cream-text-graphite: #52565C;
  --cream-heading: #162723;
  --cream-heading-size-page: 42px;
  --cream-heading-size-section: 20px;
  --cream-heading-size-sub: 26px;
  --cream-heading-size-display: 38px;
  --cream-dashboard-content-gap: 32px;
  --cream-dashboard-tabs-content-gap: 8px;
  --cream-dashboard-card-bg: #EDE7DB;
  --cream-dashboard-card-pad: 28px;
  --hub-block-stack-gap: 32px;
  --cream-tab-rule: #EAC351;
  --cream-nav-icon: #1A1A1A;
  --cream-nav-icon-active: #010100;
  --cream-nav-icon-idle-opacity: 0.34;
  --cream-nav-icon-hover-opacity: 0.78;
  --cream-nav-icon-idle-scale: 0.76;
  --cream-nav-icon-hover-scale: 0.94;
  --cream-nav-icon-active-scale: 1;
  --cream-nav-active-bg: #F0E8D7;
  --cream-nav-active-glow: none;
  --cream-nav-active-glow-press: none;
  --cream-table-line: #52565C;
  --cream-table-border-width: 0.5px;
  --cream-glass-btn: none;
  --cream-accent: #B39562;
  --cream-accent-hover: #E8BD62;
  --cream-accent-text: #FFFEF9;
  /* все var(--acc) в cream-теме → акцентные кнопки */
  --acc: var(--cream-accent);
  --cream-contact-accent: #A6E2B5;
  --cream-contact-icon: #D8EEDF;
  --cream-contact-icon-hover: #CAE8D4;
  --cream-team-avatar-glow: none;
}

/* Акцентные кнопки: один стиль для всех .btn-primary и .header-btn-primary */
html[data-theme="cream"] .btn-primary,
html[data-theme="cream"] .header-btn-primary {
  background: var(--cream-accent) !important;
  border-color: var(--cream-accent) !important;
  color: var(--cream-accent-text) !important;
  box-shadow: none !important;
}

html[data-theme="cream"] .btn-primary:hover,
html[data-theme="cream"] .header-btn-primary:hover,
html[data-theme="cream"] .btn-primary:focus-visible,
html[data-theme="cream"] .header-btn-primary:focus-visible {
  background: var(--cream-accent-hover) !important;
  border-color: var(--cream-accent-hover) !important;
  color: var(--cream-accent-text) !important;
  transform: none;
}

/* Декоративные тени отключены — только фон, кромка и blur */
html[data-theme="cream"] *,
html[data-theme="cream"] *::before,
html[data-theme="cream"] *::after {
  box-shadow: none !important;
  text-shadow: none !important;
}

html[data-theme="cream"],
html[data-theme="cream"] body {
  background: var(--cream-fon) fixed !important;
  color: #0A0A0A;
}

html[data-theme="cream"] h1,
html[data-theme="cream"] h2,
html[data-theme="cream"] h3,
html[data-theme="cream"] h4,
html[data-theme="cream"] .tasks-editor__title,
html[data-theme="cream"] .priority-tasks-hub__title,
html[data-theme="cream"] .tasks-editor-section-modal__title,
html[data-theme="cream"] .contact-database-heading__title,
html[data-theme="cream"] .tasks-board__tab-label,
html[data-theme="cream"] .compare-important__heading,
html[data-theme="cream"] .access-codes-page__title,
html[data-theme="cream"] .access-codes-card__title,
html[data-theme="cream"] .priority-task-modal__title,
html[data-theme="cream"] .tasks-alt-summary__title,
html[data-theme="cream"] .now-block-compare__card-title {
  color: var(--cream-heading) !important;
}

html[data-theme="cream"] .now-block-compare__title,
html[data-theme="cream"] h1 {
  font-size: var(--cream-heading-size-page) !important;
}

html[data-theme="cream"] .contact-database-heading__title,
html[data-theme="cream"] .tasks-editor__title,
html[data-theme="cream"] .priority-tasks-hub__title,
html[data-theme="cream"] .access-codes-card__title,
html[data-theme="cream"] h2 {
  font-size: var(--cream-heading-size-sub) !important;
}

html[data-theme="cream"] .access-codes-page__title {
  font-size: var(--cream-heading-size-display) !important;
}

html[data-theme="cream"] h3,
html[data-theme="cream"] h4,
html[data-theme="cream"] .tasks-editor-section-modal__title,
html[data-theme="cream"] .tasks-board__tab,
html[data-theme="cream"] .tasks-board__tab-label,
html[data-theme="cream"] .compare-important__heading,
html[data-theme="cream"] .priority-task-modal__title,
html[data-theme="cream"] .tasks-alt-summary__title,
html[data-theme="cream"] .now-block-compare__card-title {
  font-size: var(--cream-heading-size-section) !important;
}

html[data-theme="cream"] .now-block-wrap--compare {
  --cal-title-size: var(--cream-heading-size-sub);
}

html[data-theme="cream"] .app--layout-compare-wrap,
html[data-theme="cream"] .workspace-tasks-hub-wrap,
html[data-theme="cream"] .workspace-tasks-hub-inner,
html[data-theme="cream"] .workspace-calendar-hub-wrap {
  background: transparent !important;
}

html[data-theme="cream"] .app-nav-rail,
html[data-theme="cream"] .app-nav-rail::before {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

html[data-theme="cream"] .app-nav-rail__link {
  color: var(--cream-nav-icon);
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 12px;
  box-sizing: border-box;
  transition: color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

html[data-theme="cream"] .app-nav-rail__top {
  align-items: center;
}

html[data-theme="cream"] .app-nav-rail__top > .app-nav-rail__link {
  width: 44px;
  height: 44px;
  min-height: 44px;
  align-self: center;
}

html[data-theme="cream"] .app-nav-rail__bottom {
  align-items: center;
}

html[data-theme="cream"] .app-nav-rail__link--small {
  width: 44px;
  height: 44px;
}

html[data-theme="cream"] .app-nav-rail__link--segment-active,
html[data-theme="cream"] .app-nav-rail__link--segment-active:hover,
html[data-theme="cream"] .app-nav-rail__link--segment-active:active {
  color: var(--cream-nav-icon-active) !important;
  background: var(--cream-nav-active-bg) !important;
  box-shadow: var(--cream-nav-active-glow);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="cream"] .app-nav-rail__link,
html[data-theme="cream"] .app-nav-rail__link--disabled,
html[data-theme="cream"] .app-nav-rail__niche > .app-nav-rail__link:not(.app-nav-rail__link--segment-active) {
  color: var(--cream-nav-icon) !important;
}

html[data-theme="cream"] .app-nav-rail__link .app-nav-rail__icon {
  color: inherit;
  display: block;
  transform-origin: center center;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    color 0.22s ease;
}

html[data-theme="cream"] .app-nav-rail__link:not(.app-nav-rail__link--segment-active):not(.app-nav-rail__link--disabled) .app-nav-rail__icon {
  opacity: var(--cream-nav-icon-idle-opacity);
  transform: scale(var(--cream-nav-icon-idle-scale));
}

html[data-theme="cream"] .app-nav-rail__link--segment-active .app-nav-rail__icon {
  opacity: 1;
  transform: scale(var(--cream-nav-icon-active-scale));
  filter: none;
}

html[data-theme="cream"] .app-nav-rail__link:hover:not(.app-nav-rail__link--segment-active):not(.app-nav-rail__link--disabled) .app-nav-rail__icon {
  opacity: var(--cream-nav-icon-hover-opacity);
  transform: scale(var(--cream-nav-icon-hover-scale));
}

html[data-theme="cream"] .app-nav-rail__link--segment-active:active {
  box-shadow: var(--cream-nav-active-glow-press);
}

html[data-theme="cream"] .app-nav-rail__link:hover:not(.app-nav-rail__link--segment-active):not(.app-nav-rail__link--disabled) {
  color: var(--cream-nav-icon);
  background: transparent !important;
  box-shadow: none;
}

html[data-theme="cream"] .app-nav-rail__link--segment-active:hover .app-nav-rail__icon,
html[data-theme="cream"] .app-nav-rail__link--segment-active:active .app-nav-rail__icon {
  opacity: 1;
  transform: scale(var(--cream-nav-icon-active-scale));
}

/* Домик: тот же активный фон, что и у остальных иконок */
html[data-theme="cream"] .app-nav-rail__niche {
  display: flex;
  justify-content: center;
}

html[data-theme="cream"] .app-nav-rail__niche > .app-nav-rail__link {
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 12px;
}

html[data-theme="cream"] .app-nav-rail__niche > .app-nav-rail__link--segment-active,
html[data-theme="cream"] .app-nav-rail__niche > .app-nav-rail__link--segment-active:hover,
html[data-theme="cream"] .app-nav-rail__niche > .app-nav-rail__link--segment-active:active {
  color: var(--cream-nav-icon-active) !important;
  background: var(--cream-nav-active-bg) !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: var(--cream-nav-active-glow);
}

html[data-theme="cream"] .app-nav-rail__niche > .app-nav-rail__link--segment-active:active {
  box-shadow: var(--cream-nav-active-glow-press);
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .workspace-tasks-hub-inner {
  gap: var(--hub-block-stack-gap) !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap > .now-block-wrap--compare.now-block-wrap--header-only,
html[data-theme="cream"] .workspace-calendar-hub-wrap > .now-block-wrap--compare.now-block-wrap--header-only {
  margin-bottom: var(--hub-block-stack-gap) !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .priority-tasks-hub,
html[data-theme="cream"] .workspace-tasks-hub-wrap .priority-tasks.priority-tasks--bare {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .priority-tasks-hub__title {
  color: var(--cream-heading) !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .priority-task-card {
  color: #0A0A0A;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor.tasks-editor--word {
  --word-canvas: transparent;
  --word-ribbon-bg: #FFFFFF;
  --word-ribbon-border: var(--cream-glass-rim-soft);
  --word-field-bg: var(--cream-glass-bg-field);
  --word-field-border: var(--cream-glass-rim-soft);
  --word-tab-bg: #FFFFFF;
  --word-tab-bg-active: #F5F4F0;
  --word-hover-bg: #F5F4F0;
  --word-page-bg: #FFFFFF;
  --word-glass-blur: 0px;
  /* --- Chrome: каждый элемент отдельно (поле, вкладки, B I U…) --- */
  --word-chrome-heading-color: var(--cream-heading);
  --word-chrome-heading-size: 20px;
  --word-chrome-heading-weight: 500;
  --word-chrome-head-pad-bottom: 16px;
  --word-chrome-field-bg: var(--cream-field-bg);
  --word-chrome-field-border: 1px solid var(--cream-border-color);
  --word-chrome-field-radius: 10px;
  --word-chrome-task-input-color: #0A0A0A;
  --word-chrome-task-input-size: 14px;
  --word-chrome-caret-color: #0A0A0A;
  --word-chrome-row-gap: 8px 20px;
  --word-chrome-row-pad: 0 0 10px;
  --word-chrome-tabs-gap: 8px;
  --word-chrome-tab-bg: #FFFFFF;
  --word-chrome-tab-color: var(--cream-text-graphite);
  --word-chrome-tab-border: 1px solid var(--cream-border-color);
  --word-chrome-tab-bg-hover: #F5F4F0;
  --word-chrome-tab-border-hover: 1px solid var(--cream-border-color);
  --word-chrome-tab-color-hover: #0A0A0A;
  --word-chrome-tab-bg-active: #F5F4F0;
  --word-chrome-tab-border-active: 1px solid var(--cream-border-color);
  --word-chrome-tab-color-active: #0A0A0A;
  /* вкладки по отдельности — пример: только «Описание» */
  --word-chrome-tab-desc-bg: var(--word-chrome-tab-bg);
  --word-chrome-tab-desc-color: var(--word-chrome-tab-color);
  --word-chrome-tab-desc-border: var(--word-chrome-tab-border);
  --word-chrome-tab-factura-bg: var(--word-chrome-tab-bg);
  --word-chrome-tab-factura-color: var(--word-chrome-tab-color);
  --word-chrome-tab-factura-border: var(--word-chrome-tab-border);
  --word-chrome-tab-ai-bg: var(--word-chrome-tab-bg);
  --word-chrome-tab-ai-color: var(--word-chrome-tab-color);
  --word-chrome-tab-ai-border: var(--word-chrome-tab-border);
  --word-chrome-tool-color: #323130;
  --word-chrome-tool-bold-color: var(--word-chrome-tool-color);
  --word-chrome-tool-italic-color: var(--word-chrome-tool-color);
  --word-chrome-tool-underline-color: var(--word-chrome-tool-color);
  --word-chrome-tool-strike-color: var(--word-chrome-tool-color);
  --word-chrome-tool-list-color: var(--word-chrome-tool-color);
  --word-chrome-tool-undo-color: var(--word-chrome-tool-color);
  --word-chrome-tool-redo-color: var(--word-chrome-tool-color);
  --word-chrome-tool-bg-hover: #F5F4F0;
  --word-chrome-tool-border-hover: 1px solid var(--cream-border-color);
  --word-chrome-sep-color: var(--cream-border-color);
  color: #0A0A0A;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__title,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__ribbon {
  background: transparent !important;
  border-color: transparent !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--doc-panes.tasks-editor--word .tasks-editor__doc-head-row {
  background: #FFFFFF !important;
  border: 1px solid var(--cream-glass-rim-soft) !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__doc-head-row {
  background: transparent !important;
  border-color: transparent !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__dropzone {
  border: none !important;
  background: transparent !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__document-page {
  background: #FFFFFF !important;
  border: 1px solid var(--cream-glass-rim-soft) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__body-input,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__side-input,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__side-view {
  color: #0A0A0A !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__side-mode-btn {
  border-color: var(--cream-glass-rim-soft) !important;
  background: #FFFFFF !important;
  color: var(--cream-text-graphite) !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__side-mode-btn:hover:not(:disabled),
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__side-mode-btn.is-active {
  background: #F5F4F0 !important;
  color: #0A0A0A !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__doc-pane-tab {
  border-color: var(--cream-glass-rim-soft) !important;
  color: #909499 !important;
  background: transparent !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__doc-pane-tab:hover:not(:disabled) {
  border-color: #C8CBCF !important;
  color: #5A5E66 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__doc-pane-tab.is-active {
  border-color: #C8CBCF !important;
  color: #494949 !important;
  background: #FFFFFF !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__doc-intro .tasks-editor__doc-rule {
  border-top-color: var(--cream-glass-rim-soft) !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--doc-panes.tasks-editor--word .tasks-editor__body-lead:empty::before {
  color: #B3B6B9 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--doc-panes.tasks-editor--word .tasks-editor__body-lead:not(:empty) {
  color: #0A0A0A !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--doc-panes.tasks-editor--word .tasks-editor__body-rule {
  border-top-color: var(--cream-glass-rim-soft) !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--doc-panes.tasks-editor--word .tasks-editor__doc-pane[data-doc-pane="factura"] .tasks-editor__factura-speaker-input:not(:empty) {
  font-weight: 600 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--doc-panes.tasks-editor--word .tasks-editor__doc-pane[data-doc-pane="factura"] .tasks-editor__factura-speaker-input:empty::before {
  font-family: "Times New Roman", Times, serif !important;
  font-size: 12pt !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  color: #B3B6B9 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--doc-panes.tasks-editor--word .tasks-editor__doc-pane[data-doc-pane="factura"] .tasks-editor__factura-comment-input,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--doc-panes.tasks-editor--word .tasks-editor__doc-pane[data-doc-pane="factura"] .tasks-editor__factura-comment-input *,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--doc-panes.tasks-editor--word .tasks-editor__doc-pane[data-doc-pane="factura"] .tasks-editor__factura-comment-input b,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--doc-panes.tasks-editor--word .tasks-editor__doc-pane[data-doc-pane="factura"] .tasks-editor__factura-comment-input strong {
  font-family: "Times New Roman", Times, serif !important;
  font-size: 12pt !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-speaker-input:empty::before,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-comment-input:empty::before {
  color: #B3B6B9 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-rule,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-comment-rule {
  border-top-color: var(--cream-glass-rim-soft) !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--doc-panes.tasks-editor--word .tasks-editor__factura-block {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__description-lead,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__description-lead *,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__description-input,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__description-input * {
  font-family: "Times New Roman", Times, serif !important;
  font-size: 12pt !important;
  line-height: 1.5 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__description-lead,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__description-input,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-speaker-input,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-comment-input {
  color: #0A0A0A !important;
  background: transparent !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__description-lead,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__description-lead * {
  font-size: 14pt !important;
  line-height: 1.45 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__description-input,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__description-input * {
  font-size: 12pt !important;
  line-height: 1.5 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__description-lead:empty::before,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__description-input:empty::before {
  color: #B3B6B9 !important;
  opacity: 1 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__description-rule {
  border-top-color: var(--cream-glass-rim-soft) !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-speaker-input::placeholder {
  color: #909499 !important;
  opacity: 1 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-comment-input::placeholder {
  color: #B3B6B9 !important;
  opacity: 1 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-add {
  border-color: var(--cream-glass-rim-soft) !important;
  color: #808080 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-add:hover:not(:disabled) {
  background: #F5F4F0 !important;
  color: #0A0A0A !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-action {
  color: #494949 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-action:hover:not(:disabled) {
  background: #F5F4F0 !important;
  color: #0A0A0A !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-comment-rule {
  border-top-color: var(--cream-glass-rim-soft) !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-remove {
  color: #A2A5AA !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-remove:hover:not(:disabled) {
  background: #FFEBEE !important;
  color: #C62828 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-responsible-btn {
  background: transparent !important;
  border: none !important;
  color: #A2A5AA !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-responsible-btn:hover:not(:disabled) {
  background: #EEEEF0 !important;
  color: #5A5E66 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-responsible-menu {
  background: #fff !important;
  border-color: var(--cream-glass-rim-soft) !important;
}

html[data-theme="cream"] #priorityTaskFacturaModal .priority-task-factura-modal__task-name {
  color: #5A5E66 !important;
}

html[data-theme="cream"] #priorityTaskFacturaModal .tasks-editor__factura-speaker-input,
html[data-theme="cream"] #priorityTaskFacturaModal .tasks-editor__factura-comment-input {
  color: #0A0A0A !important;
  background: transparent !important;
}

html[data-theme="cream"] #priorityTaskFacturaModal .tasks-editor__factura-comment-input:empty::before {
  color: #B3B6B9 !important;
  opacity: 1 !important;
}

html[data-theme="cream"] #priorityTaskFacturaModal .tasks-editor__factura-add {
  border-color: var(--cream-glass-rim-soft) !important;
  color: #808080 !important;
}

html[data-theme="cream"] #priorityTaskFacturaModal .tasks-editor__factura-add:hover:not(:disabled) {
  background: #F5F4F0 !important;
  color: #0A0A0A !important;
}

html[data-theme="cream"] #priorityTaskFacturaModal .priority-task-factura-modal__actions {
  border-top-color: var(--cream-glass-rim-soft) !important;
}

html[data-theme="cream"] #priorityTaskFacturaModal .priority-task-factura-modal__actions .btn-secondary {
  background: #fff !important;
  border: 1px solid var(--cream-glass-rim-soft) !important;
  color: #5A5E66 !important;
}

html[data-theme="cream"] #priorityTaskFacturaModal .priority-task-factura-modal__actions .btn-secondary:hover {
  background: #F5F4F0 !important;
}

html[data-theme="cream"] #priorityTaskFacturaModal .priority-task-factura-modal__actions .btn-primary {
  background: var(--cream-accent) !important;
  border-color: var(--cream-accent) !important;
  color: #fff !important;
}

html[data-theme="cream"] #priorityTaskFacturaModal .priority-task-factura-modal__actions .btn-primary:hover {
  background: var(--cream-accent-hover) !important;
  border-color: var(--cream-accent-hover) !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__icon {
  border: 1px solid var(--cream-glass-rim-soft) !important;
  background: #FFFFFF !important;
  color: #323130 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__responsible-avatar {
  border-color: var(--cream-glass-rim-soft) !important;
  background: var(--cream-glass-bg-field) !important;
  color: #0A0A0A;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor__body-input,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor__panel {
  border: none !important;
  background: transparent !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor__dropzone {
  border: none !important;
  background: transparent !important;
  border-radius: 0;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor__body-input {
  color: #0A0A0A;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor__body-input::placeholder {
  color: var(--cream-text-graphite);
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor__select-menu {
  border: 1px solid var(--cream-glass-rim-soft) !important;
  background: var(--cream-menu-bg) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  z-index: 100;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor__select-item:hover,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor__select-item:focus-visible {
  background: #F5F4F0 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor__select-item.is-active {
  background: #EEECE6 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .priority-tasks__add {
  border: 1px dashed var(--cream-glass-rim-soft);
  background: transparent;
  color: var(--cream-text-graphite);
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .priority-tasks__add:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: var(--cream-border-color);
  color: #0A0A0A;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-alt,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-alt-summary,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-alt__item {
  color: #0A0A0A;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-alt-layout,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-alt-layout__right {
  background: transparent !important;
  border: none !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .workspace-hub-themes-database,
html[data-theme="cream"] .workspace-tasks-hub-wrap #workspaceHubThemesBoard.tasks-board--hub-themes {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap #workspaceHubThemesBoard .hub-themes-add-ghost {
  color: var(--cream-accent);
}

html[data-theme="cream"] .workspace-tasks-hub-wrap #workspaceHubThemesBoard .hub-themes-add-ghost:hover,
html[data-theme="cream"] .workspace-tasks-hub-wrap #workspaceHubThemesBoard .hub-themes-add-ghost:focus-visible {
  color: var(--cream-accent-hover);
  background: color-mix(in srgb, var(--cream-accent) 14%, transparent);
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .now-block-wrap--compare .now-block-compare__card {
  box-shadow: none !important;
}

html[data-theme="cream"] .btn-icon,
html[data-theme="cream"] .btn.accent {
  background: var(--cream-accent) !important;
  border: 1px solid var(--cream-accent) !important;
  color: #FFFEF9 !important;
  box-shadow: none !important;
}

html[data-theme="cream"] .btn-icon:hover,
html[data-theme="cream"] .btn.accent:hover {
  background: var(--cream-accent-hover) !important;
  border-color: var(--cream-accent-hover) !important;
}

html[data-theme="cream"] .tasks-board__tab.active .tasks-board__tab-rule {
  background: var(--cream-tab-rule) !important;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--tasks-tab-rule-radius, 999px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 2px 8px rgba(0, 0, 0, 0.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
}

html[data-theme="cream"] .link {
  color: var(--cream-accent);
}

html[data-theme="cream"] .panel,
html[data-theme="cream"] .modal__dialog,
html[data-theme="cream"] .tasks-board,
html[data-theme="cream"] .btn {
  box-shadow: none !important;
}

/* ─── Жидкое стекло: карточки ─── */

html[data-theme="cream"] .tasks-editor.tasks-editor--word {
  --word-canvas: transparent;
  --word-ribbon-bg: #FFFFFF;
  --word-page-bg: #FFFFFF;
  --word-glass-blur: 0px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="cream"] .tasks-editor--word .tasks-editor__dropzone {
  background: transparent !important;
  border: none !important;
}

html[data-theme="cream"] .tasks-editor--word .tasks-editor__document-page {
  background: #FFFFFF !important;
  border: 1px solid var(--cream-glass-rim-soft) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="cream"] .tasks-editor--word .tasks-editor__title,
html[data-theme="cream"] .tasks-editor--word .tasks-editor__ribbon {
  background: transparent !important;
}

html[data-theme="cream"] .tasks-editor--doc-panes.tasks-editor--word .tasks-editor__doc-head-row {
  background: #FFFFFF !important;
  border: 1px solid var(--cream-glass-rim-soft) !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

html[data-theme="cream"] .tasks-editor--word .tasks-editor__doc-head-row {
  background: transparent !important;
  border-color: transparent !important;
}

html[data-theme="cream"] .tasks-editor--word .tasks-editor__title {
  color: var(--cream-heading) !important;
}

html[data-theme="cream"] .priority-task-card,
html[data-theme="cream"] .tasks-editor:not(.tasks-editor--word),
html[data-theme="cream"] .now-block-wrap--compare .compare-week-cal__col {
  background: var(--cream-glass-bg) !important;
  border: var(--cream-card-border) !important;
  -webkit-backdrop-filter: blur(var(--cream-glass-blur)) saturate(var(--cream-glass-saturate));
  backdrop-filter: blur(var(--cream-glass-blur)) saturate(var(--cream-glass-saturate));
  box-shadow: var(--cream-glass-shadow) !important;
}

html[data-theme="cream"] .app--layout-compare-wrap .now-block-wrap--compare .now-block-compare__card,
html[data-theme="cream"] .app--layout-compare-wrap .tasks-alt-layout__left .tasks-alt,
html[data-theme="cream"] .tasks-alt-summary,
html[data-theme="cream"] .tasks-alt,
html[data-theme="cream"] .tasks-alt__item {
  background: var(--cream-glass-bg) !important;
  border: var(--cream-card-border) !important;
  -webkit-backdrop-filter: blur(var(--cream-glass-blur)) saturate(var(--cream-glass-saturate));
  backdrop-filter: blur(var(--cream-glass-blur)) saturate(var(--cream-glass-saturate));
  box-shadow: var(--cream-glass-shadow) !important;
}

/* Главная: блоки «Важно сегодня» и «Что происходит» */
html[data-theme="cream"] .app--layout-compare-wrap .now-block-wrap--compare .now-block-compare__card--important,
html[data-theme="cream"] .app--layout-compare-wrap .now-block-wrap--compare .now-block-compare__card--tabs {
  background: var(--cream-dashboard-card-bg) !important;
  border: var(--cream-dashboard-card-border) !important;
  border-radius: var(--priority-task-card-surface-radius) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: var(--cream-dashboard-card-pad) !important;
  box-sizing: border-box;
}

@media (min-width: 901px) {
  html[data-theme="cream"] .app--layout-compare-wrap .now-block-compare__card--important,
  html[data-theme="cream"] .app--layout-compare-wrap .now-block-compare__card--tabs {
    padding-bottom: 0 !important;
  }
}

html[data-theme="cream"] .app--layout-compare-wrap .now-block-compare__card--important .compare-important__heading {
  margin: 0 0 var(--cream-dashboard-content-gap) 0 !important;
}

/* Табы внутри блока: полоска по левому краю подписи */
html[data-theme="cream"] .app--layout-compare-wrap .now-block-compare__card--tabs .tasks-board__tabs {
  margin-left: 0;
  margin-bottom: calc(var(--cream-dashboard-tabs-content-gap) + var(--tasks-tab-strip) / 2) !important;
  overflow: visible !important;
}

html[data-theme="cream"] .app--layout-compare-wrap .now-block-compare__card--tabs .tasks-board__tab {
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: var(--tasks-tab-padding-x, 28px) !important;
  padding-bottom: var(--tasks-tab-padding-y, 12px) !important;
  overflow: visible !important;
}

html[data-theme="cream"] .app--layout-compare-wrap .now-block-compare__card--tabs .tasks-board__tab-inner {
  overflow: visible !important;
}

html[data-theme="cream"] .app--layout-compare-wrap .now-block-compare__card--tabs .tasks-board__tab .tasks-board__tab-rule {
  margin-inline: 0 !important;
  width: 100% !important;
  justify-self: stretch !important;
}

html[data-theme="cream"] .app--layout-compare-wrap .now-block-compare__card--tabs .tasks-board__tab.active .tasks-board__tab-rule {
  border-radius: var(--tasks-tab-rule-radius, 999px) !important;
  overflow: visible !important;
}

/* Клиппинг только у контента — иначе режется левый радиус «таблетки» таба */
html[data-theme="cream"] .app--layout-compare-wrap .now-block-compare__card--tabs .tasks-board--layout-compare {
  overflow: visible !important;
}

html[data-theme="cream"] .app--layout-compare-wrap .now-block-compare__card--tabs .tasks-board--layout-compare .tasks-board__content {
  overflow-x: hidden !important;
}

html[data-theme="cream"] .app--layout-compare-wrap .now-block-compare__card--tabs:has(.tasks-board--layout-compare) {
  overflow: visible !important;
}

html[data-theme="cream"] .app--layout-compare-wrap .now-block-compare__card--tabs .tasks-board,
html[data-theme="cream"] .app--layout-compare-wrap .now-block-compare__card--tabs .tasks-board__content,
html[data-theme="cream"] .app--layout-compare-wrap .now-block-compare__card--tabs .tasks-board__panel,
html[data-theme="cream"] .app--layout-compare-wrap .now-block-compare__card--tabs .tasks-board__panel.active .office-board,
html[data-theme="cream"] .app--layout-compare-wrap .now-block-compare__card--tabs .tasks-board__panel.active .office-board__content {
  background: transparent !important;
}

html[data-theme="cream"] .tasks-editor__field {
  background: var(--cream-glass-bg-field) !important;
  border: 1px solid var(--cream-glass-rim-soft) !important;
  -webkit-backdrop-filter: blur(calc(var(--cream-glass-blur) * 0.75)) saturate(var(--cream-glass-saturate));
  backdrop-filter: blur(calc(var(--cream-glass-blur) * 0.75)) saturate(var(--cream-glass-saturate));
}

html[data-theme="cream"] .tasks-editor--word .tasks-editor__doc-head-row .tasks-editor__field {
  background: transparent !important;
  border: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="cream"] .tasks-editor--word .tasks-editor__doc-head-row .tasks-editor__title-input,
html[data-theme="cream"] .tasks-editor--word .tasks-editor__doc-head-row .tasks-editor__title-input:disabled {
  color: var(--cream-heading) !important;
  -webkit-text-fill-color: var(--cream-heading);
}

html[data-theme="cream"] .tasks-editor--doc-panes.tasks-editor--word .tasks-editor__doc-head-row .tasks-editor__title-input,
html[data-theme="cream"] .tasks-editor--doc-panes.tasks-editor--word .tasks-editor__doc-head-row .tasks-editor__title-input:disabled {
  color: #5A5E66 !important;
  -webkit-text-fill-color: #5A5E66;
  font-weight: 400 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

html[data-theme="cream"] .tasks-editor--word .tasks-editor__dropzone {
  background: transparent !important;
  border: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="cream"] .tasks-editor__icon {
  border: none !important;
  background: transparent !important;
  color: #0A0A0A;
}

html[data-theme="cream"] .tasks-editor__select-menu {
  border: 1px solid var(--cream-glass-rim-soft) !important;
  background: var(--cream-menu-bg) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12) !important;
}

html[data-theme="cream"] .now-block__team-avatars {
  --now-team-avatar-surface: transparent;
  --now-team-avatar-border-default: transparent;
}

html[data-theme="cream"] .now-block__team-avatar {
  border: none !important;
  background: transparent !important;
  background-image: none !important;
  color: #1A1A1A !important;
  box-shadow: none;
  margin-left: -8px;
}

html[data-theme="cream"] .now-block__team-avatar:first-child {
  margin-left: 0 !important;
}

html[data-theme="cream"] .now-block__team-avatar.now-block__team-avatar--ring-accent {
  border: none !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: var(--cream-team-avatar-glow);
  color: #0A0A0A !important;
}

html[data-theme="cream"] .now-block__team-avatar--more {
  background: transparent !important;
  border: none !important;
  color: rgba(26, 26, 26, 0.62) !important;
}

html[data-theme="cream"] .now-block-wrap--compare .compare-calendar-card {
  -webkit-backdrop-filter: blur(var(--cream-glass-blur)) saturate(var(--cream-glass-saturate));
  backdrop-filter: blur(var(--cream-glass-blur)) saturate(var(--cream-glass-saturate));
  box-shadow: var(--cream-glass-shadow) !important;
}

html[data-theme="cream"] .now-block-wrap--compare .compare-calendar-card--v1 { background: rgba(201, 241, 228, 0.52) !important; }
html[data-theme="cream"] .now-block-wrap--compare .compare-calendar-card--v2 { background: rgba(158, 196, 228, 0.52) !important; }
html[data-theme="cream"] .now-block-wrap--compare .compare-calendar-card--v3 { background: rgba(231, 210, 247, 0.52) !important; }
html[data-theme="cream"] .now-block-wrap--compare .compare-calendar-card--v4 { background: rgba(191, 239, 223, 0.52) !important; }
html[data-theme="cream"] .now-block-wrap--compare .compare-calendar-card:not([class*="--v"]) {
  background: var(--cream-glass-bg) !important;
}

/* «Мысли на потом» — только подчёркивание */
html[data-theme="cream"] .later-thoughts__input {
  color: #0A0A0A;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: var(--cream-table-border-width) solid var(--cream-table-line) !important;
  padding: 10px 0 12px !important;
}

html[data-theme="cream"] .later-thoughts__input:focus {
  border-bottom-color: #1A1A1A !important;
  outline: none;
}

html[data-theme="cream"] .later-thoughts__input::placeholder {
  color: rgba(82, 86, 92, 0.78);
  opacity: 1;
}

html[data-theme="cream"] .now-block-wrap--compare .now-block-compare__card--later-thoughts .later-thoughts__input {
  background: transparent !important;
}

/* ─── База контактов / сотрудники: поиск, таблица, кнопка + ─── */

html[data-theme="cream"] .app--layout-compare-wrap .contact-database-compare-wrap .toolbar .search-line {
  border-bottom: var(--cream-table-border-width) solid var(--cream-table-line) !important;
}

html[data-theme="cream"] .app--layout-compare-wrap .contact-database-compare-wrap .toolbar .search-line:hover,
html[data-theme="cream"] .app--layout-compare-wrap .contact-database-compare-wrap .toolbar .search-line:focus-within {
  border-bottom-color: var(--cream-table-line) !important;
}

html[data-theme="cream"] .app--layout-compare-wrap .contact-database-compare-wrap .table-card,
html[data-theme="cream"] .app--layout-compare-wrap #workspaceHubThemesBoard .table-card {
  padding: 0 !important;
  border: var(--cream-table-border-width) solid var(--cream-table-line) !important;
  border-radius: 14px !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  background: transparent !important;
}

html[data-theme="cream"] .app--layout-compare-wrap .contact-database-compare-wrap .table-card .list-table,
html[data-theme="cream"] .app--layout-compare-wrap #workspaceHubThemesBoard .table-card .list-table {
  border: none !important;
  border-collapse: collapse !important;
  border-radius: 0 !important;
}

html[data-theme="cream"] .app--layout-compare-wrap .contact-database-compare-wrap .table-card .list-table th,
html[data-theme="cream"] .app--layout-compare-wrap .contact-database-compare-wrap .table-card .list-table td,
html[data-theme="cream"] .app--layout-compare-wrap #workspaceHubThemesBoard .table-card .list-table th,
html[data-theme="cream"] .app--layout-compare-wrap #workspaceHubThemesBoard .table-card .list-table td {
  border-top: none !important;
  border-left: none !important;
  border-bottom: var(--cream-table-border-width) solid var(--cream-table-line) !important;
  border-right: var(--cream-table-border-width) solid var(--cream-table-line) !important;
}

html[data-theme="cream"] .app--layout-compare-wrap .contact-database-compare-wrap .table-card .list-table th:last-child,
html[data-theme="cream"] .app--layout-compare-wrap .contact-database-compare-wrap .table-card .list-table td:last-child,
html[data-theme="cream"] .app--layout-compare-wrap #workspaceHubThemesBoard .table-card .list-table th:last-child,
html[data-theme="cream"] .app--layout-compare-wrap #workspaceHubThemesBoard .table-card .list-table td:last-child {
  border-right: none !important;
}

html[data-theme="cream"] .app--layout-compare-wrap .contact-database-compare-wrap .table-card .list-table tr:last-child td,
html[data-theme="cream"] .app--layout-compare-wrap #workspaceHubThemesBoard .table-card .list-table tr:last-child td {
  border-bottom: none !important;
}

/* Таблица «Темы / Предложения» на hub — границы как у остальных таблиц */
html[data-theme="cream"] .workspace-tasks-hub-wrap #workspaceHubThemesBoard .table-card,
html[data-theme="cream"] .workspace-tasks-hub-wrap .workspace-hub-themes-database .table-card {
  padding: 0 !important;
  border: var(--cream-table-border-width) solid var(--cream-table-line) !important;
  border-radius: 14px !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap #workspaceHubThemesBoard .table-card .list-table,
html[data-theme="cream"] .workspace-tasks-hub-wrap #workspaceHubThemesBoard .list-table.list-table--themes-hub-fixed {
  border: none !important;
  border-collapse: collapse !important;
  border-radius: 0 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap #workspaceHubThemesBoard .table-card .list-table th,
html[data-theme="cream"] .workspace-tasks-hub-wrap #workspaceHubThemesBoard .table-card .list-table td,
html[data-theme="cream"] .workspace-tasks-hub-wrap #workspaceHubThemesBoard .list-table.list-table--themes-hub-fixed th,
html[data-theme="cream"] .workspace-tasks-hub-wrap #workspaceHubThemesBoard .list-table.list-table--themes-hub-fixed td {
  border-top: none !important;
  border-left: none !important;
  border-bottom: var(--cream-table-border-width) solid var(--cream-table-line) !important;
  border-right: var(--cream-table-border-width) solid var(--cream-table-line) !important;
  background: transparent !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap #workspaceHubThemesBoard .table-card .list-table th:last-child,
html[data-theme="cream"] .workspace-tasks-hub-wrap #workspaceHubThemesBoard .table-card .list-table td:last-child,
html[data-theme="cream"] .workspace-tasks-hub-wrap #workspaceHubThemesBoard .list-table.list-table--themes-hub-fixed th:last-child,
html[data-theme="cream"] .workspace-tasks-hub-wrap #workspaceHubThemesBoard .list-table.list-table--themes-hub-fixed td:last-child {
  border-right: none !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap #workspaceHubThemesBoard .table-card .list-table tr:last-child td,
html[data-theme="cream"] .workspace-tasks-hub-wrap #workspaceHubThemesBoard .list-table.list-table--themes-hub-fixed tr:last-child td {
  border-bottom: none !important;
}

html[data-theme="cream"] .app--layout-compare-wrap .contact-database-compare-wrap .toolbar .btn-icon {
  background: var(--cream-tab-rule) !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  color: var(--cream-nav-icon) !important;
  border-radius: 12px !important;
  box-shadow: var(--cream-glass-btn) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
}

html[data-theme="cream"] .app--layout-compare-wrap .contact-database-compare-wrap .toolbar .btn-icon:hover {
  background: rgba(255, 248, 183, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  color: var(--cream-nav-icon) !important;
  transform: none;
  opacity: 1;
}

/* Иконка контакта — мини-карточка (стекло #A6E2B5, второй слой + тень) */
html[data-theme="cream"] .list-table[data-table-key="contact-db-speakers"] .contact-speaker-name-cell {
  --cream-speaker-name-inset: 12px;
  padding-left: var(--cream-speaker-name-inset) !important;
}

html[data-theme="cream"] .list-table[data-table-key="contact-db-speakers"] .contact-speaker-name-wrap {
  gap: calc(var(--cream-speaker-name-inset) + 1px);
}

html[data-theme="cream"] .list-table[data-table-key="contact-db-speakers"] .contact-speaker-card-toggle {
  position: relative;
  isolation: isolate;
  overflow: visible;
  width: 16px !important;
  height: 20px !important;
  background: linear-gradient(
    165deg,
    rgba(166, 226, 181, 0.48) 0%,
    rgba(166, 226, 181, 0.16) 100%
  ) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 3px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 4px 10px rgba(82, 86, 92, 0.16),
    0 1px 3px rgba(0, 0, 0, 0.07) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.35);
  backdrop-filter: blur(10px) saturate(1.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* задняя карточка в стопке */
html[data-theme="cream"] .list-table[data-table-key="contact-db-speakers"] .contact-speaker-card-toggle::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 3px;
  top: 3px;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  background: rgba(166, 226, 181, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  backdrop-filter: blur(8px) saturate(1.2);
  pointer-events: none;
}

/* две строки «текста» на карточке */
html[data-theme="cream"] .list-table[data-table-key="contact-db-speakers"] .contact-speaker-card-toggle::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 7px;
  height: 1px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.34);
  pointer-events: none;
}

html[data-theme="cream"] .list-table[data-table-key="contact-db-speakers"] .contact-speaker-card-toggle:hover {
  transform: translateY(-1px);
  background: linear-gradient(
    165deg,
    rgba(166, 226, 181, 0.58) 0%,
    rgba(166, 226, 181, 0.22) 100%
  ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 14px rgba(82, 86, 92, 0.2),
    0 2px 5px rgba(0, 0, 0, 0.08) !important;
}

/* Ресайз колонок — цвет мини-карточки (#A6E2B5), без стекла */
html[data-theme="cream"] .column-resizer:hover {
  background: var(--cream-contact-icon-hover) !important;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="cream"] .column-resizer:active,
html[data-theme="cream"] .list-table.is-resizing .column-resizer {
  background: rgba(166, 226, 181, 0.55) !important;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ─── Кабинет владельца: коды доступа ─── */

html[data-theme="cream"] .access-codes-page,
html[data-theme="cream"] .access-codes-page .wrap {
  background: transparent !important;
}

html[data-theme="cream"] .access-codes-page__inner {
  max-width: 1200px;
  margin: 0 auto;
}

html[data-theme="cream"] .access-codes-page__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

html[data-theme="cream"] .access-codes-page__title {
  font-weight: 700;
  margin: 0;
  color: var(--cream-heading);
}

html[data-theme="cream"] .access-codes-page__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

html[data-theme="cream"] .access-codes-page__logout {
  display: inline;
  margin: 0;
}

html[data-theme="cream"] .access-codes-card {
  background: var(--cream-glass-bg) !important;
  -webkit-backdrop-filter: blur(var(--cream-glass-blur)) saturate(var(--cream-glass-saturate));
  backdrop-filter: blur(var(--cream-glass-blur)) saturate(var(--cream-glass-saturate));
  border: 1px solid var(--cream-glass-rim);
  border-radius: 16px;
  box-shadow: var(--cream-glass-shadow) !important;
  padding: 30px;
  margin-bottom: 30px;
  color: #0A0A0A;
}

html[data-theme="cream"] .access-codes-card:last-child {
  margin-bottom: 0;
}

html[data-theme="cream"] .access-codes-card__title {
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--cream-heading);
}

html[data-theme="cream"] .access-codes-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

@media (max-width: 1024px) {
  html[data-theme="cream"] .access-codes-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  html[data-theme="cream"] .access-codes-page__header {
    flex-direction: column;
    align-items: flex-start;
  }

  html[data-theme="cream"] .access-codes-form-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="cream"] .access-codes-page .form-group {
  margin-bottom: 0;
}

html[data-theme="cream"] .access-codes-page .form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #0A0A0A;
  font-size: 14px;
}

html[data-theme="cream"] .access-codes-page .form-group input,
html[data-theme="cream"] .access-codes-page .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--cream-glass-rim);
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
  background: var(--cream-glass-bg-field) !important;
  color: #0A0A0A;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="cream"] .access-codes-page .form-group input:hover:not(:disabled):not(:focus),
html[data-theme="cream"] .access-codes-page .form-group select:hover:not(:disabled):not(:focus) {
  border-color: rgba(255, 255, 255, 0.55);
}

html[data-theme="cream"] .access-codes-page .form-group input:focus,
html[data-theme="cream"] .access-codes-page .form-group select:focus {
  outline: none;
  border-color: rgba(255, 248, 183, 0.85);
  box-shadow: 0 0 0 2px rgba(255, 248, 183, 0.28);
}

html[data-theme="cream"] .access-codes-required {
  color: #c62828;
}

html[data-theme="cream"] .access-codes-hint {
  display: block;
  margin-top: 5px;
  color: rgba(82, 86, 92, 0.78);
  font-size: 12px;
}

html[data-theme="cream"] .access-codes-page .btn-primary {
  background: var(--cream-accent) !important;
  border: 1px solid var(--cream-accent) !important;
  color: #FFFEF9 !important;
  box-shadow: none !important;
}

html[data-theme="cream"] .access-codes-page .btn-primary:hover {
  background: var(--cream-accent-hover) !important;
  border-color: var(--cream-accent-hover) !important;
  transform: none;
}

html[data-theme="cream"] .access-codes-page .btn-secondary {
  background: var(--cream-glass-bg-field) !important;
  border: 1px solid var(--cream-glass-rim) !important;
  color: #0A0A0A !important;
  box-shadow: none !important;
}

html[data-theme="cream"] .access-codes-page .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
}

html[data-theme="cream"] .access-codes-table-wrap {
  border: var(--cream-table-border-width) solid var(--cream-table-line);
  border-radius: 14px;
  overflow: hidden;
}

html[data-theme="cream"] .access-codes-table {
  width: 100%;
  border: none !important;
  border-collapse: collapse !important;
  border-radius: 0 !important;
  background: transparent !important;
}

html[data-theme="cream"] .access-codes-table th,
html[data-theme="cream"] .access-codes-table td {
  border-top: none !important;
  border-left: none !important;
  border-bottom: var(--cream-table-border-width) solid var(--cream-table-line) !important;
  border-right: var(--cream-table-border-width) solid var(--cream-table-line) !important;
  color: #0A0A0A;
}

html[data-theme="cream"] .access-codes-table th:last-child,
html[data-theme="cream"] .access-codes-table td:last-child {
  border-right: none !important;
}

html[data-theme="cream"] .access-codes-table tr:last-child td {
  border-bottom: none !important;
}

html[data-theme="cream"] .access-codes-table th:last-child,
html[data-theme="cream"] .access-codes-table td.row-actions {
  text-align: right;
  overflow: visible;
  white-space: normal;
  vertical-align: middle;
  padding: 12px;
  min-width: 72px;
}

html[data-theme="cream"] .access-codes-table td.row-actions .btn-icon-small {
  width: 28px;
  height: 28px;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  border: var(--cream-table-border-width) solid var(--cream-table-line);
  border-radius: 8px;
  background: var(--cream-glass-bg-field);
  color: rgba(82, 86, 92, 0.78);
}

html[data-theme="cream"] .access-codes-table td.row-actions .btn-icon-small:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #0A0A0A;
}

html[data-theme="cream"] .access-codes-table td.row-actions .btn-icon-small.danger {
  color: #c62828;
  border-color: rgba(198, 40, 40, 0.35);
}

html[data-theme="cream"] .access-codes-table td.row-actions .btn-icon-small.danger:hover {
  background: rgba(255, 235, 238, 0.72);
  border-color: rgba(198, 40, 40, 0.45);
  color: #c62828;
}

html[data-theme="cream"] .access-codes-code-value {
  font-size: 18px;
  letter-spacing: 2px;
}

html[data-theme="cream"] .access-codes-page .badge-success {
  background: rgba(166, 226, 181, 0.45);
  color: #2e6b45;
}

html[data-theme="cream"] .access-codes-page .badge-danger {
  background: rgba(255, 235, 238, 0.72);
  color: #c62828;
}

html[data-theme="cream"] .access-codes-page .badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

html[data-theme="cream"] .access-codes-empty {
  text-align: center;
  color: rgba(82, 86, 92, 0.78);
  padding: 40px;
  margin: 0;
}

html[data-theme="cream"] .access-codes-page .alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}

html[data-theme="cream"] .access-codes-page .alert-success {
  background: rgba(166, 226, 181, 0.45);
  color: #2e6b45;
  border: 1px solid rgba(166, 226, 181, 0.65);
}

html[data-theme="cream"] .access-codes-page .alert-error {
  background: rgba(255, 235, 238, 0.72);
  color: #c62828;
  border: 1px solid rgba(198, 40, 40, 0.25);
}

/* ─── Главная (лендинг /) — тот же градиент и стекло, что в приложении ─── */

html[data-theme="cream"]:has(body.page-landing) {
  background: var(--cream-fon) fixed !important;
}

html[data-theme="cream"] body.page-landing {
  background: var(--cream-fon) fixed !important;
  min-height: 100vh;
  min-height: 100dvh;
  color: #0A0A0A;
}

html[data-theme="cream"] body.page-landing main.page {
  background: transparent !important;
}

html[data-theme="cream"] body.page-landing .landing-workspace,
html[data-theme="cream"] body.page-landing .hero.hero--workspace {
  background: transparent !important;
  background-image: none !important;
}

html[data-theme="cream"] body.page-landing .landing-site-header.site-header {
  background: transparent !important;
}

html[data-theme="cream"] body.page-landing .landing-brand img {
  filter: brightness(0) saturate(100%);
  opacity: 0.88;
}

html[data-theme="cream"] body.page-landing .hero-workspace-tagline--landing {
  color: #0A0A0A;
  text-shadow: none;
}

html[data-theme="cream"] body.page-landing .landing-site-header .header-expand-icon {
  color: var(--cream-nav-icon);
  background: rgba(82, 86, 92, 0.14) !important;
  border: 1px solid var(--cream-glass-rim-soft) !important;
  border-radius: 12px;
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
}

html[data-theme="cream"] body.page-landing .landing-site-header .header-expand-icon:hover,
html[data-theme="cream"] body.page-landing .landing-site-header .header-expand-icon:focus-visible {
  background: rgba(82, 86, 92, 0.26) !important;
  border-color: var(--cream-glass-rim-soft) !important;
  color: #0A0A0A;
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 14px rgba(0, 0, 0, 0.1);
}

html[data-theme="cream"] body.page-landing .header-btn.header-btn-project-landing,
html[data-theme="cream"] body.page-landing .header-btn.header-btn-secondary,
html[data-theme="cream"] body.page-landing .header-btn.header-btn-primary {
  background: var(--cream-glass-bg) !important;
  border: 1px solid var(--cream-glass-rim) !important;
  color: #0A0A0A !important;
  border-radius: 12px;
  box-shadow: var(--cream-glass-shadow);
  -webkit-backdrop-filter: blur(var(--cream-glass-blur)) saturate(var(--cream-glass-saturate));
  backdrop-filter: blur(var(--cream-glass-blur)) saturate(var(--cream-glass-saturate));
}

html[data-theme="cream"] body.page-landing .header-btn.header-btn-project-landing:hover,
html[data-theme="cream"] body.page-landing .header-btn.header-btn-project-landing:focus-visible,
html[data-theme="cream"] body.page-landing .header-btn.header-btn-secondary:hover,
html[data-theme="cream"] body.page-landing .header-btn.header-btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  color: #0A0A0A !important;
  filter: none;
}

html[data-theme="cream"] body.page-landing .header-btn.header-btn-primary {
  background: var(--cream-accent) !important;
  border-color: var(--cream-accent) !important;
  color: #FFFEF9 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="cream"] body.page-landing .header-btn.header-btn-primary:hover,
html[data-theme="cream"] body.page-landing .header-btn.header-btn-primary:focus-visible {
  background: var(--cream-accent-hover) !important;
  border-color: var(--cream-accent-hover) !important;
  color: #FFFEF9 !important;
}

/* ─── База контактов: внешняя плашка — стекло без тёмной обводки ─── */

html[data-theme="cream"] section.app.app--layout-compare-wrap > .contact-database-compare-wrap,
html[data-theme="cream"] .workspace-tasks-hub-inner > .contact-database-compare-wrap {
  background: var(--cream-glass-bg) !important;
  border: none !important;
  border-radius: var(--priority-task-card-surface-radius);
  box-shadow: var(--cream-glass-shadow) !important;
  -webkit-backdrop-filter: blur(var(--cream-glass-blur)) saturate(var(--cream-glass-saturate));
  backdrop-filter: blur(var(--cream-glass-blur)) saturate(var(--cream-glass-saturate));
}

html[data-theme="cream"] .contact-database-heading__title,
html[data-theme="cream"] .contact-database-compare-wrap .tasks-board__tab-label {
  color: var(--cream-heading) !important;
}

/* ─── «Важно сегодня»: графит + стеклянные поинты ─── */

html[data-theme="cream"] .now-block-compare__card--important .compare-important__heading {
  color: var(--cream-heading) !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  margin: 0 0 var(--cream-dashboard-content-gap) 0 !important;
}

/* Активная задача — пустой круг с тёмной обводкой, текст обычный тёмный */
html[data-theme="cream"] .now-block-compare__card--important .compare-important__item-row:not(.compare-important__item-row--completed) .compare-important__text,
html[data-theme="cream"] .now-block-compare__card--important .compare-important__item-input {
  color: #0A0A0A !important;
  text-decoration: none !important;
}

html[data-theme="cream"] .now-block-compare__card--important .compare-important__item-row:not(.compare-important__item-row--completed) .compare-important__marker--checkbox:not(.compare-important__marker--checkbox-done) {
  border: 1px solid #1A1A1A !important;
  background: transparent !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

/* Выполненная — яркий цветной поинт + зачёркнутый бледный текст */
html[data-theme="cream"] .now-block-compare__card--important .compare-important__item-row--completed .compare-important__text {
  color: rgba(82, 86, 92, 0.42) !important;
  text-decoration: line-through !important;
}

html[data-theme="cream"] .now-block-compare__card--important .compare-important__item-row--completed .compare-important__marker--checkbox-done {
  border: 1px solid #2E9B52 !important;
  background: linear-gradient(145deg, #3DB868 0%, #6BD88A 55%, #8EE8A4 100%) !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 0 0 1px rgba(46, 155, 82, 0.35),
    0 3px 10px rgba(46, 155, 82, 0.42);
}

/* Строка «Добавить» / плейсхолдер — в покое бледнее */
html[data-theme="cream"] .now-block-compare__card--important .compare-important__composer:not(.is-editing) .compare-important__placeholder {
  color: rgba(82, 86, 92, 0.4) !important;
}

html[data-theme="cream"] .now-block-compare__card--important .compare-important__composer:not(.is-editing) .compare-important__marker--plus {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="cream"] .now-block-compare__card--important .compare-important__composer:not(.is-editing) .compare-important__marker--plus::before,
html[data-theme="cream"] .now-block-compare__card--important .compare-important__composer:not(.is-editing) .compare-important__marker--plus::after {
  background: rgba(82, 86, 92, 0.26) !important;
}

html[data-theme="cream"] .now-block-compare__card--important .compare-important__composer:not(.is-editing) .compare-important__marker--plus::before {
  width: 9px !important;
  height: 1.2px !important;
}

html[data-theme="cream"] .now-block-compare__card--important .compare-important__composer:not(.is-editing) .compare-important__marker--plus::after {
  width: 1.2px !important;
  height: 9px !important;
}

/* Ввод новой задачи — чуть ярче */
html[data-theme="cream"] .now-block-compare__card--important .compare-important__composer.is-editing .compare-important__input {
  color: var(--cream-text-graphite) !important;
}

html[data-theme="cream"] .now-block-compare__card--important .compare-important__composer.is-editing .compare-important__marker--plus {
  border-color: rgba(255, 255, 255, 0.42) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="cream"] .now-block-compare__card--important .compare-important__composer.is-editing .compare-important__marker--plus::before,
html[data-theme="cream"] .now-block-compare__card--important .compare-important__composer.is-editing .compare-important__marker--plus::after {
  background: rgba(82, 86, 92, 0.52) !important;
}

html[data-theme="cream"] .now-block-compare__card--important .compare-important__composer.is-editing .compare-important__marker--plus::before {
  width: 9px !important;
  height: 1.2px !important;
}

html[data-theme="cream"] .now-block-compare__card--important .compare-important__composer.is-editing .compare-important__marker--plus::after {
  width: 1.2px !important;
  height: 9px !important;
}

/* ─── Пустая лента статусов ─── */

html[data-theme="cream"] .app--layout-compare-wrap #officeBoardWhatsHappening .empty-office-status-card,
html[data-theme="cream"] .app--layout-compare-wrap #officeBoardWhatsHappening .office-status-feed .empty-office-status-card {
  color: var(--cream-text-graphite) !important;
}

html[data-theme="cream"] .app--layout-compare-wrap #officeBoardWhatsHappening .office-board__content.office-status-feed .empty-office-status-card {
  border: none !important;
  padding: 0 !important;
  height: auto !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
}

html[data-theme="cream"] .app--layout-compare-wrap #officeBoardWhatsHappening .office-board__content.office-status-feed .empty-office-status-card .add-status-hint {
  color: rgba(82, 86, 92, 0.62) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

html[data-theme="cream"] .app--layout-compare-wrap #officeBoardWhatsHappening .office-board__content.office-status-feed {
  padding-top: 0 !important;
}

/* ─── Карточка спикера (модалка) — стекло ─── */

html[data-theme="cream"] .speaker-contact-card-modal__backdrop {
  background: rgba(26, 26, 26, 0.22);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  backdrop-filter: blur(6px) saturate(1.1);
}

html[data-theme="cream"] .speaker-contact-card-modal__dialog {
  background: var(--cream-glass-bg) !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow: var(--cream-glass-shadow) !important;
  -webkit-backdrop-filter: blur(var(--cream-glass-blur)) saturate(var(--cream-glass-saturate));
  backdrop-filter: blur(var(--cream-glass-blur)) saturate(var(--cream-glass-saturate));
  color: #0A0A0A !important;
}

html[data-theme="cream"] .speaker-contact-card-modal__close,
html[data-theme="cream"] .speaker-contact-card-modal__edit {
  color: #52565C !important;
}

html[data-theme="cream"] .speaker-contact-card-modal__close:hover,
html[data-theme="cream"] .speaker-contact-card-modal__edit:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #0A0A0A !important;
}

html[data-theme="cream"] .speaker-contact-card-modal__copy-btn {
  color: #0A0A0A !important;
  border: none !important;
}

html[data-theme="cream"] .speaker-contact-card-modal__copy-btn:hover,
html[data-theme="cream"] .speaker-contact-card-modal__copy-btn.is-copied {
  color: #0A0A0A !important;
  background: rgba(255, 255, 255, 0.22) !important;
}

html[data-theme="cream"] .speaker-contact-card-modal__copy-toast {
  background: var(--cream-glass-bg) !important;
  color: #0A0A0A !important;
  border: 1px solid var(--cream-glass-rim-soft) !important;
  box-shadow: var(--cream-glass-shadow) !important;
  -webkit-backdrop-filter: blur(calc(var(--cream-glass-blur) * 0.85)) saturate(var(--cream-glass-saturate));
  backdrop-filter: blur(calc(var(--cream-glass-blur) * 0.85)) saturate(var(--cream-glass-saturate));
}

html[data-theme="cream"] .speaker-contact-card-modal__name,
html[data-theme="cream"] .speaker-contact-card-modal__subtitle,
html[data-theme="cream"] .speaker-contact-card-modal__label,
html[data-theme="cream"] .speaker-contact-card-modal__value,
html[data-theme="cream"] .speaker-contact-card-modal__line,
html[data-theme="cream"] .speaker-contact-card-modal__labeled {
  color: #0A0A0A !important;
}

html[data-theme="cream"] .speaker-contact-card-modal__label {
  font-weight: 600 !important;
}

html[data-theme="cream"] .speaker-contact-card-modal__value,
html[data-theme="cream"] .speaker-contact-card-modal__line {
  font-weight: 400 !important;
}

html[data-theme="cream"] .speaker-contact-card-modal__line a,
html[data-theme="cream"] .speaker-contact-card-modal__value a {
  color: #0A0A0A !important;
  text-decoration: none;
}

html[data-theme="cream"] .speaker-contact-card-modal__line a:hover,
html[data-theme="cream"] .speaker-contact-card-modal__value a:hover {
  color: var(--cream-accent) !important;
  text-decoration: underline;
}

html[data-theme="cream"] .speaker-contact-card-modal__contacts-block {
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background: var(--cream-glass-bg-field) !important;
  border: 1px solid var(--cream-glass-rim-soft) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
  -webkit-backdrop-filter: blur(calc(var(--cream-glass-blur) * 0.75)) saturate(var(--cream-glass-saturate));
  backdrop-filter: blur(calc(var(--cream-glass-blur) * 0.75)) saturate(var(--cream-glass-saturate));
}

/* ─── Модалка приоритетной задачи — стекло ─── */

html[data-theme="cream"] #priorityTaskAddModal.modal {
  background: rgba(255, 252, 235, 0.22);
  -webkit-backdrop-filter: blur(12px) saturate(1.35);
  backdrop-filter: blur(12px) saturate(1.35);
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__dialog {
  background: var(--cream-glass-bg) !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow: var(--cream-glass-shadow) !important;
  -webkit-backdrop-filter: blur(var(--cream-glass-blur)) saturate(var(--cream-glass-saturate));
  backdrop-filter: blur(var(--cream-glass-blur)) saturate(var(--cream-glass-saturate));
  color: #0A0A0A !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__title {
  color: var(--cream-heading) !important;
}

html[data-theme="cream"] #priorityTaskAddModal .form-group label,
html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__group-label {
  color: rgba(0, 0, 0, 0.72) !important;
}

html[data-theme="cream"] #priorityTaskAddModal .modal__close {
  color: #52565C !important;
}

html[data-theme="cream"] #priorityTaskAddModal .modal__close:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #0A0A0A !important;
}

html[data-theme="cream"] #priorityTaskAddModal .form-group input,
html[data-theme="cream"] #priorityTaskAddModal .form-group textarea,
html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__combobox input[type="text"],
html[data-theme="cream"] #priorityTaskAddModal .speaker-input,
html[data-theme="cream"] #priorityTaskAddModal .factura-textarea {
  background: var(--cream-glass-bg-field) !important;
  border: 1px solid var(--cream-glass-rim-soft) !important;
  color: #0A0A0A !important;
  -webkit-backdrop-filter: blur(calc(var(--cream-glass-blur) * 0.75)) saturate(var(--cream-glass-saturate));
  backdrop-filter: blur(calc(var(--cream-glass-blur) * 0.75)) saturate(var(--cream-glass-saturate));
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__format-bar {
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid var(--cream-glass-rim-soft) !important;
  border-bottom: none !important;
  -webkit-backdrop-filter: blur(calc(var(--cream-glass-blur) * 0.65)) saturate(var(--cream-glass-saturate));
  backdrop-filter: blur(calc(var(--cream-glass-blur) * 0.65)) saturate(var(--cream-glass-saturate));
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__format-tool:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: var(--cream-glass-rim-soft) !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__format-tool.is-active {
  background: rgba(255, 248, 183, 0.28) !important;
  border-color: rgba(255, 248, 183, 0.55) !important;
  color: rgba(82, 86, 92, 0.92) !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__description-editor:focus-within .priority-task-modal__format-bar,
html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__description-editor:focus-within .priority-task-modal__description-box {
  border-color: var(--cream-glass-rim) !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__description-box {
  background: var(--cream-glass-bg-field) !important;
  border: 1px solid var(--cream-glass-rim-soft) !important;
  -webkit-backdrop-filter: blur(calc(var(--cream-glass-blur) * 0.75)) saturate(var(--cream-glass-saturate));
  backdrop-filter: blur(calc(var(--cream-glass-blur) * 0.75)) saturate(var(--cream-glass-saturate));
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__description-box:focus-within {
  box-shadow: 0 0 0 2px rgba(82, 86, 92, 0.12) !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__description-lead,
html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__description-lead * {
  font-family: "Times New Roman", Times, serif !important;
  font-size: 14pt !important;
  line-height: 1.45 !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__description-body,
html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__description-body * {
  font-family: "Times New Roman", Times, serif !important;
  line-height: 1.5 !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__description-body {
  font-size: 12pt !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__description-lead,
html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__description-body {
  background: transparent !important;
  border: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__description-rule {
  border-top-color: var(--cream-glass-rim-soft) !important;
}

html[data-theme="cream"] #priorityTaskAddModal .form-group input:focus,
html[data-theme="cream"] #priorityTaskAddModal .form-group textarea:focus,
html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__combobox input[type="text"]:focus,
html[data-theme="cream"] #priorityTaskAddModal .speaker-input:focus,
html[data-theme="cream"] #priorityTaskAddModal .factura-textarea:focus {
  border-color: rgba(255, 248, 183, 0.85) !important;
  box-shadow: 0 0 0 2px rgba(255, 248, 183, 0.28) !important;
}

html[data-theme="cream"] #priorityTaskAddModal .speaker-factura-row {
  border-top-color: var(--cream-glass-rim-soft) !important;
}

html[data-theme="cream"] #priorityTaskAddModal .speaker-factura-add-btn {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: var(--cream-glass-rim-soft) !important;
  color: rgba(82, 86, 92, 0.88) !important;
  -webkit-backdrop-filter: blur(calc(var(--cream-glass-blur) * 0.65)) saturate(var(--cream-glass-saturate));
  backdrop-filter: blur(calc(var(--cream-glass-blur) * 0.65)) saturate(var(--cream-glass-saturate));
}

html[data-theme="cream"] #priorityTaskAddModal .speaker-factura-add-btn:hover {
  background: rgba(255, 255, 255, 0.24) !important;
  border-color: var(--cream-glass-rim) !important;
  color: #0A0A0A !important;
}

html[data-theme="cream"] #priorityTaskAddModal .speaker-row-remove-btn {
  background: transparent !important;
  color: rgba(82, 86, 92, 0.78) !important;
  box-shadow: none !important;
}

html[data-theme="cream"] #priorityTaskAddModal .speaker-row-remove-btn:hover {
  background: rgba(255, 255, 255, 0.26) !important;
  color: #c62828 !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__actions .btn-secondary {
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid var(--cream-glass-rim-soft) !important;
  color: #0A0A0A !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(calc(var(--cream-glass-blur) * 0.65)) saturate(var(--cream-glass-saturate));
  backdrop-filter: blur(calc(var(--cream-glass-blur) * 0.65)) saturate(var(--cream-glass-saturate));
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.26) !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__actions {
  border-top-color: var(--cream-glass-rim-soft) !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__actions .btn-primary {
  background: var(--cream-accent) !important;
  border-color: var(--cream-accent) !important;
  color: #FFFEF9 !important;
  box-shadow: none !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__actions .btn-primary:hover {
  background: var(--cream-accent-hover) !important;
  border-color: var(--cream-accent-hover) !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__chip {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: var(--cream-glass-rim-soft) !important;
  color: #0A0A0A !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__suggest {
  background: var(--cream-glass-bg) !important;
  border: 1px solid var(--cream-glass-rim-soft) !important;
  box-shadow: var(--cream-glass-shadow) !important;
  -webkit-backdrop-filter: blur(calc(var(--cream-glass-blur) * 0.85)) saturate(var(--cream-glass-saturate));
  backdrop-filter: blur(calc(var(--cream-glass-blur) * 0.85)) saturate(var(--cream-glass-saturate));
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__suggest-item.is-active {
  background: rgba(255, 248, 183, 0.28) !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__hint,
html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__people-loadhint {
  color: rgba(82, 86, 92, 0.78) !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__editor-redirect {
  border-color: rgba(228, 100, 2, 0.32) !important;
  background: rgba(228, 100, 2, 0.1) !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__editor-redirect-text {
  color: rgba(82, 86, 92, 0.88) !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__editor-redirect-text strong {
  color: #0A0A0A !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__people-loadhint {
  border-color: var(--cream-glass-rim-soft) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* ─── Модалка «⋯» приоритетной задачи (название + описание) — стекло ─── */

html[data-theme="cream"] #priorityTaskDocModal.modal {
  background: rgba(255, 252, 235, 0.22);
  -webkit-backdrop-filter: blur(12px) saturate(1.35);
  backdrop-filter: blur(12px) saturate(1.35);
}

html[data-theme="cream"] #priorityTaskDocModal .priority-doc-modal__dialog {
  background: var(--cream-glass-bg) !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow: var(--cream-glass-shadow) !important;
  -webkit-backdrop-filter: blur(var(--cream-glass-blur)) saturate(var(--cream-glass-saturate));
  backdrop-filter: blur(var(--cream-glass-blur)) saturate(var(--cream-glass-saturate));
  color: #0A0A0A !important;
}

html[data-theme="cream"] #priorityTaskDocModal .priority-doc-modal__content {
  background: transparent !important;
}

html[data-theme="cream"] #priorityTaskDocModal .modal__close {
  color: #52565C !important;
}

html[data-theme="cream"] #priorityTaskDocModal .modal__close:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #0A0A0A !important;
}

html[data-theme="cream"] #priorityTaskDocModal .priority-doc__title-input,
html[data-theme="cream"] #priorityTaskDocModal .priority-doc__description-input {
  background: var(--cream-glass-bg-field) !important;
  border: 1px solid var(--cream-glass-rim-soft) !important;
  color: #0A0A0A !important;
  -webkit-backdrop-filter: blur(calc(var(--cream-glass-blur) * 0.75)) saturate(var(--cream-glass-saturate));
  backdrop-filter: blur(calc(var(--cream-glass-blur) * 0.75)) saturate(var(--cream-glass-saturate));
}

html[data-theme="cream"] #priorityTaskDocModal .priority-doc__title-input:focus,
html[data-theme="cream"] #priorityTaskDocModal .priority-doc__description-input:focus {
  border-color: rgba(255, 248, 183, 0.85) !important;
  box-shadow: 0 0 0 2px rgba(255, 248, 183, 0.28) !important;
}

html[data-theme="cream"] #priorityTaskDocModal .priority-doc__description-input::placeholder {
  color: rgba(82, 86, 92, 0.55) !important;
}

html[data-theme="cream"] #priorityTaskDocModal .priority-doc__divider {
  background: var(--cream-glass-rim-soft) !important;
}

html[data-theme="cream"] #priorityTaskDocModal .priority-doc__actions .btn-primary {
  background: var(--cream-accent) !important;
  border-color: var(--cream-accent) !important;
  color: #FFFEF9 !important;
  box-shadow: none !important;
}

html[data-theme="cream"] #priorityTaskDocModal .priority-doc__actions .btn-primary:hover {
  background: var(--cream-accent-hover) !important;
  border-color: var(--cream-accent-hover) !important;
}

/* ─── Модалка добавления мероприятия (недельный календарь) ─── */

html[data-theme="cream"] #compareCalendarAddModal.modal {
  background: rgba(255, 252, 235, 0.22);
  -webkit-backdrop-filter: blur(12px) saturate(1.35);
  backdrop-filter: blur(12px) saturate(1.35);
}

html[data-theme="cream"] #compareCalendarAddModal .modal__dialog {
  background: var(--cream-glass-bg) !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow: var(--cream-glass-shadow) !important;
  -webkit-backdrop-filter: blur(var(--cream-glass-blur)) saturate(var(--cream-glass-saturate));
  backdrop-filter: blur(var(--cream-glass-blur)) saturate(var(--cream-glass-saturate));
  color: #0A0A0A !important;
}

html[data-theme="cream"] #compareCalendarAddModal .form-group input,
html[data-theme="cream"] #compareCalendarAddModal .form-group textarea {
  background: var(--cream-glass-bg-field) !important;
  border: 1px solid var(--cream-glass-rim-soft) !important;
  color: #0A0A0A !important;
}

html[data-theme="cream"] #compareCalendarAddModal .form-group input:focus,
html[data-theme="cream"] #compareCalendarAddModal .form-group textarea:focus {
  border-color: rgba(255, 248, 183, 0.85) !important;
  box-shadow: 0 0 0 2px rgba(255, 248, 183, 0.28) !important;
}

html[data-theme="cream"] #compareCalendarAddModal .btn-primary {
  background: var(--cream-accent) !important;
  border-color: var(--cream-accent) !important;
  color: #FFFEF9 !important;
}

html[data-theme="cream"] #compareCalendarAddModal .btn-primary:hover {
  background: var(--cream-accent-hover) !important;
  border-color: var(--cream-accent-hover) !important;
}
