/*
 * CREAM — фоны и текст (локально).
 *
 * ФОН СТРАНИЦЫ — меняйте --cream-fon ниже.
 *
 * ОБВОДКА таблиц → --cream-table-line (#52565C), --cream-table-border-width (0.5px)
 * Стекло карточек → --cream-glass-* ниже (кромка rgba белая)
 */
html[data-theme="cream"] {
  --cream-fon: linear-gradient(to bottom right, #E3E2A0 5%, #e2cfde 55%, #b9dfc4 100%);
  /* жидкое стекло — как на референсе: почти прозрачно + blur + светлая кромка */
  --cream-glass-bg: rgba(255, 255, 255, 0.12);
  --cream-glass-bg-field: rgba(255, 255, 255, 0.2);
  --cream-glass-blur: 28px;
  --cream-glass-saturate: 1.5;
  --cream-glass-rim: rgba(255, 255, 255, 0.38);
  --cream-glass-rim-soft: rgba(255, 255, 255, 0.14);
  --cream-menu-bg: #FAF8F1;
  --cream-glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 12px 40px rgba(0, 0, 0, 0.08);
  --priority-task-card-surface-bg: var(--cream-glass-bg);
  --priority-task-card-surface-border: none;
  --cream-text-graphite: #52565C;
  --cream-tab-rule: rgba(255, 248, 183, 0.68);
  --cream-nav-icon: #1A1A1A;
  --cream-nav-icon-active: #1A1A1A;
  --cream-nav-active-bg: rgba(255, 248, 183, 0.28);
  --cream-nav-active-glow:
    0 0 0 1px rgba(255, 248, 183, 0.85),
    0 0 14px rgba(255, 248, 183, 0.55),
    0 0 26px rgba(255, 248, 183, 0.22);
  --cream-nav-active-glow-press:
    0 0 0 1px rgba(255, 248, 183, 1),
    0 0 18px rgba(255, 248, 183, 0.75),
    0 0 34px rgba(255, 248, 183, 0.38);
  --cream-table-line: #52565C;
  --cream-table-border-width: 0.5px;
  --cream-card-border: none;
  --cream-glass-btn:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 2px 8px rgba(0, 0, 0, 0.06);
  --cream-contact-accent: #A6E2B5;
  --cream-contact-icon: rgba(166, 226, 181, 0.28);
  --cream-contact-icon-hover: rgba(166, 226, 181, 0.42);
  --cream-team-avatar-glow:
    0 0 0 1px rgba(142, 232, 164, 0.75),
    0 0 14px rgba(142, 232, 164, 0.5),
    0 0 24px rgba(142, 232, 164, 0.25);
}

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

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 {
  color: var(--cream-nav-icon-active);
  background: var(--cream-nav-active-bg) !important;
  box-shadow: var(--cream-nav-active-glow);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
}

html[data-theme="cream"] .app-nav-rail__link,
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,
html[data-theme="cream"] .app-nav-rail__niche > .app-nav-rail__link,
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 {
  color: var(--cream-nav-icon) !important;
}

html[data-theme="cream"] .app-nav-rail__link .app-nav-rail__icon {
  color: inherit;
}

html[data-theme="cream"] .app-nav-rail__link--segment-active .app-nav-rail__icon {
  filter: none;
}

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;
}

/* Домик: квадрат, без подложки, обводка #FFF8B7 как у иконки */
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 {
  color: var(--cream-nav-icon-active);
  background: transparent !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 .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-task-card {
  color: #0A0A0A;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor.tasks-editor--word {
  --word-canvas: rgba(255, 255, 255, 0.10);
  --word-ribbon-bg: rgba(255, 255, 255, 0.18);
  --word-ribbon-border: var(--cream-glass-rim-soft);
  --word-page-bg: rgba(255, 255, 255, 0.34);
  --word-glass-blur: var(--cream-glass-blur);
  color: #0A0A0A;
  background: var(--cream-glass-bg) !important;
  border: none !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));
}

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__head-row,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__ribbon {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: var(--cream-glass-rim-soft) !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__title {
  color: rgba(0, 0, 0, 0.72) !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__field {
  border: 1px solid var(--cream-glass-rim-soft) !important;
  background: var(--cream-glass-bg-field) !important;
  border-radius: 10px !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: rgba(255, 255, 255, 0.36) !important;
  border: 1px solid var(--cream-glass-rim-soft) !important;
  border-radius: 10px !important;
  box-shadow: none !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"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__title-input,
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: rgba(255, 255, 255, 0.18) !important;
  color: rgba(0, 0, 0, 0.62) !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: rgba(255, 255, 255, 0.28) !important;
  color: #0A0A0A !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__side-mode-btn.is-pinned::after {
  background: currentColor !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: rgba(82, 86, 92, 0.38) !important;
  opacity: 1 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__description-rule {
  border-top-color: rgba(82, 86, 92, 0.28) !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-speaker-input::placeholder {
  color: rgba(82, 86, 92, 0.48) !important;
  opacity: 1 !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-comment-input::placeholder {
  color: rgba(82, 86, 92, 0.38) !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: rgba(0, 0, 0, 0.5) !important;
}

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

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-action {
  color: rgba(0, 0, 0, 0.72) !important;
}

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

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-comment-rule {
  border-top-color: rgba(82, 86, 92, 0.34) !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-remove {
  color: rgba(82, 86, 92, 0.45) !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-remove:hover:not(:disabled) {
  background: rgba(255, 68, 68, 0.12) !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: rgba(82, 86, 92, 0.45) !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__factura-responsible-btn:hover:not(:disabled) {
  background: rgba(82, 86, 92, 0.08) !important;
  color: rgba(0, 0, 0, 0.62) !important;
}

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

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__icon,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__select-caret,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__tool {
  color: #323130 !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: rgba(255, 255, 255, 0.20) !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor--word .tasks-editor__tool:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.26) !important;
  border-color: var(--cream-glass-rim-soft) !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__title-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__field,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor__dropzone {
  border: 1px solid var(--cream-glass-rim-soft) !important;
  background: var(--cream-glass-bg-field) !important;
  border-radius: 10px;
}

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

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor__title-input::placeholder,
html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor__body-input::placeholder {
  color: rgba(82, 86, 92, 0.78);
}

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

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor__select-menu {
  border: 1px solid rgba(0, 0, 0, 0.08) !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;
  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: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .tasks-editor__select-item.is-active {
  background: rgba(255, 255, 255, 0.85) !important;
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .priority-tasks__add {
  border: none;
  background: transparent;
  color: rgba(82, 86, 92, 0.78);
}

html[data-theme="cream"] .workspace-tasks-hub-wrap .priority-tasks__add:hover {
  background: rgba(255, 255, 255, 0.18);
  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 .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: #B39562 !important;
  border: 1px solid #B39562 !important;
  color: #FFFEF9 !important;
  box-shadow: none !important;
}

html[data-theme="cream"] .btn-icon:hover,
html[data-theme="cream"] .btn.accent:hover {
  background: #E8BD62 !important;
  border-color: #E8BD62 !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);
  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: #B39562;
}

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: rgba(255, 255, 255, 0.10);
  --word-ribbon-bg: rgba(255, 255, 255, 0.18);
  --word-page-bg: rgba(255, 255, 255, 0.34);
  --word-glass-blur: var(--cream-glass-blur);
  background: var(--cream-glass-bg) !important;
  border: none !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));
}

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: rgba(255, 255, 255, 0.36) !important;
  border: 1px solid var(--cream-glass-rim-soft) !important;
  border-radius: 10px !important;
  box-shadow: none !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"] .tasks-editor--word .tasks-editor__title,
html[data-theme="cream"] .tasks-editor--word .tasks-editor__head-row,
html[data-theme="cream"] .tasks-editor--word .tasks-editor__ribbon,
html[data-theme="cream"] .tasks-editor--word .tasks-editor__field {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: var(--cream-glass-rim-soft) !important;
}

html[data-theme="cream"] .tasks-editor--word .tasks-editor__title {
  color: rgba(0, 0, 0, 0.72) !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: none !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 .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,
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: none !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"] .tasks-editor__field,
html[data-theme="cream"] .tasks-editor__dropzone {
  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__icon {
  border: none !important;
  background: transparent !important;
  color: #0A0A0A;
}

html[data-theme="cream"] .tasks-editor__select-menu {
  border: 1px solid rgba(0, 0, 0, 0.08) !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"] .priority-task-card__color {
  border: 1px solid var(--cream-glass-rim-soft) !important;
  background: transparent !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-size: 32px;
  font-weight: 700;
  margin: 0;
  color: #0A0A0A;
}

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-size: 24px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #0A0A0A;
}

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: #B39562 !important;
  border: 1px solid #B39562 !important;
  color: #FFFEF9 !important;
  box-shadow: none !important;
}

html[data-theme="cream"] .access-codes-page .btn-primary:hover {
  background: #E8BD62 !important;
  border-color: #E8BD62 !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 rgba(82, 86, 92, 0.22) !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: rgba(82, 86, 92, 0.36) !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: #B39562 !important;
  border-color: #B39562 !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: #E8BD62 !important;
  border-color: #E8BD62 !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-text-graphite) !important;
}

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

html[data-theme="cream"] .now-block-compare__card--important .compare-important__heading {
  color: #0A0A0A !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  margin-top: var(--tasks-tab-padding-y, 12px) !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;
  border-bottom: var(--cream-table-border-width) solid var(--cream-table-line) !important;
  padding: 8px 14px 12px !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 .empty-card-text {
  color: #0A0A0A !important;
  text-wrap: balance;
  line-height: 1.4;
  max-width: 11em;
  margin: 0 0 8px 0 !important;
  font-size: 17px !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: #B39562 !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,
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 rgba(82, 86, 92, 0.22) !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: rgba(82, 86, 92, 0.38) !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__description-box {
  background: var(--cream-glass-bg-field) !important;
  border: 1px solid rgba(82, 86, 92, 0.22) !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;
  font-size: 12pt !important;
  line-height: 1.5 !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: rgba(82, 86, 92, 0.28) !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: #B39562 !important;
  border-color: #B39562 !important;
  color: #FFFEF9 !important;
  box-shadow: none !important;
}

html[data-theme="cream"] #priorityTaskAddModal .priority-task-modal__actions .btn-primary:hover {
  background: #E8BD62 !important;
  border-color: #E8BD62 !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__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: #B39562 !important;
  border-color: #B39562 !important;
  color: #FFFEF9 !important;
  box-shadow: none !important;
}

html[data-theme="cream"] #priorityTaskDocModal .priority-doc__actions .btn-primary:hover {
  background: #E8BD62 !important;
  border-color: #E8BD62 !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: #B39562 !important;
  border-color: #B39562 !important;
  color: #FFFEF9 !important;
}

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