@import url('./news-manual-editor.css');
@import url('./news-media-picker.css');
@import url('./news-manual-preview.css');
@import url('./news-view-mode.css');

body:has(.menu-btn.active[data-section="news"]) .content .toolbar,
.content:has(.content-area.news-page-active) .toolbar,
body:has(.menu-btn.active[data-section="news"]) .content .alphabet-wrapper,
.content:has(.content-area.news-page-active) .alphabet-wrapper,
body:has(.menu-btn.active[data-section="news"]) .content .view-toolbar,
.content:has(.content-area.news-page-active) .view-toolbar,
body:has(.menu-btn.active[data-section="news"]) .content > .line-box.left-text,
.content:has(.content-area.news-page-active) > .line-box.left-text {
  display: none !important;
}

body:has(.menu-btn.active[data-section="news"]) .content,
.content:has(.content-area.news-page-active) {
  --content-track-width: 100%;
  --content-grid-width: 100%;
  width: 100%;
  min-width: 0;
}

@media (min-width: 1401px) {
  body:has(.menu-btn.active[data-section="news"]) .content,
  .content:has(.content-area.news-page-active) {
    grid-column: 3 / 5;
  }
}

.content-area.news-page-active,
.content-area.news-page-active * {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body:has(.menu-btn.active[data-section="news"]) .content-area.news-page-active,
.content-area.news-page-active {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-self: stretch;
  align-self: start;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  padding: 16px;
  display: grid;
  grid-template-columns: clamp(260px, 24vw, 320px) minmax(0, 1fr);
  grid-template-areas:
    "nav nav"
    "panel content";
  column-gap: 18px;
  row-gap: 12px;
  align-items: start;
}

.content-area.news-page-active .news-nav-bar {
  grid-area: nav;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
}

.content-area.news-page-active .news-channels-panel {
  grid-area: panel;
  width: 100%;
  max-width: 100%;
  min-width: 260px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(12, 16, 24, 0.68);
  padding: 12px;
  margin: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: stretch;
  max-height: calc(100% + 40px);
  overflow-y: auto;
}

.content-area.news-page-active .news-panel-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-area.news-page-active .news-period-group {
  margin-bottom: 18px;
}

.content-area.news-page-active .news-panel-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 15px;
}

.content-area.news-page-active .news-period-btn,
.content-area.news-page-active .news-channel-btn,
.content-area.news-page-active .news-editorial-btn {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.content-area.news-page-active .news-period-btn,
.content-area.news-page-active .news-editorial-btn,
.content-area.news-page-active .news-admin-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.content-area.news-page-active .news-period-btn.is-active,
.content-area.news-page-active .news-editorial-btn.is-active,
.content-area.news-page-active .news-admin-toggle.is-active,
.content-area.news-page-active .news-manual-post-toggle.is-active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.content-area.news-page-active .news-filter-label,
.content-area.news-page-active .news-editorial-label {
  min-width: 0;
}

.content-area.news-page-active .news-filter-count,
.content-area.news-page-active .news-editorial-count {
  flex: 0 0 auto;
  min-width: 20px;
  text-align: right;
  opacity: 0.7;
}

.content-area.news-page-active .news-sources-group {
  padding-top: 4px;
}

.content-area.news-page-active .news-editorial-group {
  padding-top: 4px;
  gap: 10px;
}

.content-area.news-page-active .news-admin-toggle {
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.content-area.news-page-active .news-manual-post-toggle {
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.content-area.news-page-active .news-admin-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
}

.content-area.news-page-active .news-manual-post-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
}

.content-area.news-page-active .news-admin-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(72, 50, 28, 0.32);
  border-radius: 12px;

  /* Единый непрозрачный фон окна. Он же используется для верхней и нижней маски. */
  background: rgb(202, 178, 138) !important;

  padding: 12px 8px 12px 12px;
  max-height: calc(100% - 455px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.content-area.news-page-active .news-admin-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) rgba(0, 0, 0, 0.18);
}

.content-area.news-page-active .news-admin-panel::-webkit-scrollbar {
  width: 8px;
}

.content-area.news-page-active .news-admin-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

.content-area.news-page-active .news-admin-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.content-area.news-page-active .news-admin-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

.content-area.news-page-active .news-admin-title {
  position: sticky;
  top: 0;
  z-index: 50;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;

  /*
    Невидимая верхняя маска.
    Цвет один в один как у .news-admin-panel, поэтому прямоугольник не должен выделяться.
  */
  background: rgb(202, 178, 138) !important;

  margin: 0 -8px 0 -12px;
  padding: 0 8px 16px 12px;

  border-bottom: none !important;
  box-shadow: none !important;
}

.content-area.news-page-active .news-admin-title::after {
  content: none;
  display: none;
}

.content-area.news-page-active .news-admin-hint {
  display: none !important;
}

.content-area.news-page-active .news-admin-status {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
  font-size: 13px;
  opacity: 0.86;
}

.content-area.news-page-active .news-source-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 9px 10px;
}

.content-area.news-page-active .news-source-option input[type="checkbox"] {
  flex: 0 0 auto;
  accent-color: rgba(216, 234, 255, 0.9);
  opacity: 0.72;
  cursor: pointer;
}

.content-area.news-page-active .news-source-title {
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
}

.content-area.news-page-active .news-admin-save-controls {
  position: sticky;
  bottom: 0;
  z-index: 50;

  display: flex;
  align-items: center;
  gap: 10px;
  align-self: stretch;

  width: auto;
  max-width: none;

  /*
    Невидимая нижняя маска.
    Цвет один в один как у .news-admin-panel.
  */
  background: rgb(202, 178, 138) !important;

  margin: 10px -8px 0 -12px;
  padding: 16px 8px 0 12px;

  border: none !important;
  box-shadow: none !important;
}

.content-area.news-page-active .news-admin-save {
  position: relative;
  z-index: 31;

  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  padding: 9px 14px;
  cursor: pointer;
}

.content-area.news-page-active .news-admin-save:hover {
  background: rgba(255, 255, 255, 0.14);
}

.content-area.news-page-active .news-admin-save:disabled {
  opacity: 0.6;
  cursor: wait;
  background: rgba(255, 255, 255, 0.05);
}

.content-area.news-page-active .news-admin-save-status {
  min-height: 20px;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.82;
}

.content-area.news-page-active .news-admin-save-status[data-state="success"] {
  color: rgba(194, 246, 207, 0.95);
}

.content-area.news-page-active .news-admin-save-status[data-state="error"] {
  color: rgba(255, 198, 198, 0.95);
}

.content-area.news-page-active .news-period-btn:hover,
.content-area.news-page-active .news-channel-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.content-area.news-page-active .news-channels-panel .news-empty {
  min-height: auto;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
  justify-content: flex-start;
}

body:has(.menu-btn.active[data-section="news"]) .content-area.news-page-active > .media-scroll,
.content-area.news-page-active > .media-scroll {
  grid-area: content;
  justify-self: stretch;
  align-self: start;
  width: auto;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 0;
  overflow: hidden;
  overflow-y: auto;
  border-radius: 16px;
  background: transparent;
  margin-top: 0;
  padding-top: 0;
  padding: 0;
  margin: 0;
}

body:has(.menu-btn.active[data-section="news"]) .content-area.news-page-active > .media-scroll > #media-grid,
.content-area.news-page-active > .media-scroll > #media-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
}

body:has(.menu-btn.active[data-section="news"]) .content-area.news-page-active > .media-scroll > #media-grid .empty-state-wrapper,
.content-area.news-page-active > .media-scroll > #media-grid .empty-state-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0;
  padding: 0;
}

body:has(.menu-btn.active[data-section="news"]) .content-area.news-page-active > .media-scroll > #media-grid .media-empty,
.content-area.news-page-active > .media-scroll > #media-grid .media-empty {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;

  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;

  overflow: visible;
  margin: 0;
  text-align: center;

  display: flex;
  justify-content: center;
  align-items: center;

  min-height: 64px;
  padding: 12px 24px;

  color: rgba(220, 225, 232, 0.78);
}

@media (min-width: 1600px) {
  body:has(.menu-btn.active[data-section="news"]) .content-area.news-page-active,
  .content-area.news-page-active {
    padding: 20px;
  }

  .content-area.news-page-active .news-nav-bar {
    padding: 12px 16px;
  }

  .content-area.news-page-active .media-scroll {
    padding: 6px;
  }
}

@media (max-width: 1365px) {
  body:has(.menu-btn.active[data-section="news"]) .content-area.news-page-active,
  .content-area.news-page-active {
    padding: 14px;
    grid-template-columns: clamp(260px, 30vw, 300px) minmax(0, 1fr);
  }

  .content-area.news-page-active .news-channels-panel {
    width: 100%;
  }

  .content-area.news-page-active .news-nav-bar {
    padding: 10px 12px;
  }
}

@media (max-width: 980px) {
  .content-area.news-page-active {
    padding: 12px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "nav"
      "panel"
      "content";
  }

  .content-area.news-page-active .news-nav-bar,
  .content-area.news-page-active .news-channels-panel,
  .content-area.news-page-active .media-scroll,
  .content-area.news-page-active #media-grid .media-empty {
    width: 100%;
  }
}

/* =========================================================
   NEWS PAGE — manual layout refinement
   Цель:
   - главное окно новостей почти до низа экрана;
   - левая панель без лишней карточной рамки;
   - кнопки периода/источников без рамок;
   - лента прокручивается внутри контейнера.
   ========================================================= */

/* Главное окно раздела Новости */
body:has(.menu-btn.active[data-section="news"]) .content-area.news-page-active,
.content-area.news-page-active {
  /* ВАЖНО: оставляем существующую grid-структуру, не ломаем JS */
  width: min(1660px, 100%) !important;
  max-width: 1660px !important;
  min-width: 860px !important;
  justify-self: start !important;

  /* Высота почти до низа экрана.
     Если будет слишком низко/высоко — регулируй число 220px. */
  height: calc(100vh - 163px) !important;
  min-height: 560px !important;

  position: relative !important;
  overflow: hidden !important;

  /* Внешний вид главного окна */
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)) !important;
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;

  padding: 18px !important;

  /* Слева панель, ниже заголовка периода — служебная зона и контент */
  display: grid !important;
  grid-template-columns: 260px clamp(460px, 30vw, 490px) minmax(0, 1fr) !important;
  grid-template-rows: 29px minmax(0, 1fr) !important;
  grid-template-areas:
    "panel . ."
    "panel editorial-space content" !important;
  column-gap: 16px !important;
  row-gap: 0 !important;
  align-items: stretch !important;
}

.content-area.news-page-active:has(> .media-scroll > #media-grid .media-empty)::before {
  content: none !important;
  display: none !important;
}

.content-area.news-page-active:has(.news-manual-preview-mount)::before {
  content: none !important;
  display: none !important;
}

/* Если старая верхняя nav-панель есть, не даём ей занимать отдельную строку */
.content-area.news-page-active .news-nav-bar {
  display: none !important;
}

/* Левая панель: больше не отдельная маленькая карточка с рамкой */
.content-area.news-page-active .news-channels-panel {
  grid-area: panel !important;

  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;

  align-self: stretch !important;
  overflow: visible !important;

  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;

  padding: 0 6px 0 0 !important;
  margin: 0 !important;

  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

/* Заголовки групп: "ПЕРИОД" просто текстом, без ощущения отдельного окна */
.content-area.news-page-active .news-panel-title {
  margin: 0 0 10px 0 !important;
  padding: 0 2px !important;

  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;

  color: rgba(230, 235, 245, 0.74) !important;
  opacity: 1 !important;
}

/* Группы внутри левой панели */
.content-area.news-page-active .news-panel-group {
  gap: 6px !important;
}

.content-area.news-page-active .news-editorial-group {
  gap: 10px !important;
}

.content-area.news-page-active .news-editorial-group + .news-admin-toggle,
.content-area.news-page-active .news-admin-toggle + .news-manual-post-toggle {
  margin-top: -4px !important;
  margin-bottom: 0 !important;
}

/* Убираем отдельный большой отступ после периода */
.content-area.news-page-active .news-period-group {
  margin-bottom: 8px !important;
}

/* Кнопки периода и источников — без рамок, как чистые пункты меню */
.content-area.news-page-active .news-period-btn,
.content-area.news-page-active .news-channel-btn,
.content-area.news-page-active .news-editorial-btn,
.content-area.news-page-active .news-admin-toggle,
.content-area.news-page-active .news-manual-post-toggle {
  width: 100% !important;
  box-sizing: border-box !important;

  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;

  color: rgba(225, 231, 240, 0.82) !important;

  padding: 7px 8px !important;
  margin: 0 !important;

  font-size: 12px !important;
  line-height: 1.25 !important;
  text-align: left !important;

  cursor: pointer !important;
}

/* Активный период — мягкая подсветка без рамки */
.content-area.news-page-active .news-period-btn.is-active,
.content-area.news-page-active .news-editorial-btn.is-active,
.content-area.news-page-active .news-admin-toggle.is-active,
.content-area.news-page-active .news-manual-post-toggle.is-active {
  border-color: transparent !important;
  background: rgba(255, 255, 255, 0.075) !important;
  color: rgba(255, 255, 255, 0.94) !important;
}

/* Наведение */
.content-area.news-page-active .news-period-btn:hover,
.content-area.news-page-active .news-channel-btn:hover,
.content-area.news-page-active .news-editorial-btn:hover,
.content-area.news-page-active .news-admin-toggle:hover,
.content-area.news-page-active .news-manual-post-toggle:hover {
  border-color: transparent !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

.content-area.news-page-active .news-manual-post-toggle[aria-expanded="true"] {
  border-radius: 8px !important;
}

/* Числа справа у "Все / Сегодня / За неделю" */
.content-area.news-page-active .news-filter-count,
.content-area.news-page-active .news-editorial-count {
  opacity: 0.55 !important;
  font-size: 11px !important;
}

/* Правая область — именно внутренняя лента/контент */
body:has(.menu-btn.active[data-section="news"]) .content-area.news-page-active > .media-scroll,
.content-area.news-page-active > .media-scroll {
  grid-area: content !important;

  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;

  overflow-y: auto !important;
  overflow-x: hidden !important;

  border-radius: 14px !important;
  background: rgba(0, 0, 0, 0.06) !important;

  padding: 0 !important;
  margin: 0 !important;
}

/* Сетка/пустое состояние внутри правой области */
.content-area.news-page-active > .media-scroll > #media-grid {
  min-height: 100% !important;
}

/* Текст "Выберите период..." держим внутри правого блока */
.content-area.news-page-active > .media-scroll > #media-grid .empty-state-wrapper,
.content-area.news-page-active > .media-scroll > #media-grid .media-empty {
  min-height: 100% !important;
}

/* Чуть аккуратнее пустой текст */
.content-area.news-page-active > .media-scroll > #media-grid .media-empty {
  font-size: 0 !important;
  line-height: 1.45 !important;
  color: transparent !important;
}

.content-area.news-page-active > .news-manual-editor-mount {
  grid-area: editorial-space;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  align-self: stretch;
  justify-self: stretch;
  margin-top: 0;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content-area.news-page-active > .news-manual-editor-mount:empty {
  display: none;
}

.content-area.news-page-active .news-channels-panel > .news-manual-tools-mount {
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-height: min(46vh, 430px);
  margin-top: -6px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 10px;
}

.content-area.news-page-active .news-channels-panel > .news-manual-tools-mount:empty {
  display: none;
}

.content-area.news-page-active .news-editorial-board-mount {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 100%;
  box-sizing: border-box;
  justify-self: stretch;
  align-self: stretch;
}

.content-area.news-page-active .news-editorial-board {
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  color: rgba(34, 23, 12, 0.94);
}

.content-area.news-page-active .news-editorial-board__header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
}

.content-area.news-page-active .news-editorial-board__title {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
}

.content-area.news-page-active .news-editorial-board__quick-return {
  align-self: flex-start;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: rgba(70, 48, 27, 0.78);
  padding: 0;
  margin: 0 0 -4px;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.35;
  cursor: pointer;
}

.content-area.news-page-active .news-editorial-board__quick-return:hover {
  color: rgba(34, 23, 12, 0.94);
  text-decoration: underline;
}

.content-area.news-page-active .news-editorial-board__empty {
  flex: 0 1 auto;
  width: min(720px, 100%);
  min-width: 0;
  margin-top: 4px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(50, 36, 22, 0.82);
}

.content-area.news-page-active > .media-scroll > #media-grid.news-published-feed {
  width: min(860px, 100%) !important;
  max-width: 860px !important;
  min-width: 0;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-content: stretch;
  align-items: stretch;
  justify-content: flex-start;
  padding: 12px;
}

.content-area.news-page-active > .media-scroll > #media-grid.news-published-feed--detail {
  width: min(960px, 100%);
  max-width: 960px;
  align-items: stretch;
}

.content-area.news-page-active .news-published-empty {
  width: min(720px, 100%);
  min-width: 0;
  box-sizing: border-box;
  color: rgba(54, 38, 22, 0.72);
  font-size: 15px;
  line-height: 1.45;
}

.content-area.news-page-active .news-published-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  border: 1px solid rgba(72, 50, 28, 0.22);
  border-radius: 12px;
  background: rgba(228, 205, 168, 0.46);
  box-shadow: inset 0 1px 0 rgba(245, 230, 198, 0.38);
  padding: 18px;
}

.content-area.news-page-active .news-published-card__cover {
  width: 180px !important;
  min-width: 180px !important;
  height: 120px !important;
  flex: 0 0 180px !important;
  min-height: 0;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px dashed rgba(72, 50, 28, 0.28);
  background: rgba(214, 190, 150, 0.44);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(58, 40, 22, 0.62);
  font-size: 13px;
  line-height: 1.3;
}

.content-area.news-page-active .news-published-card__cover-image {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  flex: 0 0 auto;
}

.content-area.news-page-active .news-published-card__cover--video {
  position: relative;
}

.content-area.news-page-active .news-published-card__cover-video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: rgba(28, 20, 12, 0.46);
}

.content-area.news-page-active .news-published-card__video-play {
  position: absolute;
  left: 8px;
  bottom: 8px;
  border-radius: 9px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 248, 232, 0.85);
  background: rgba(255, 248, 232, 0.12);
  color: rgba(255, 248, 232, 0.95);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
}

.content-area.news-page-active .news-published-card__video-play-icon {
  width: 21px;
  height: 21px;
  display: block;
  overflow: visible;
  transform: translateX(1px);
}

.content-area.news-page-active .news-published-card__video-play-triangle {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.content-area.news-page-active .news-published-card__cover-placeholder {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-area.news-page-active .news-published-card__body {
  flex: 1 1 auto;
  min-width: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.content-area.news-page-active .news-published-card__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.28;
  font-weight: 700;
  color: rgba(32, 22, 12, 0.94);
}

.content-area.news-page-active .news-published-card__meta {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(58, 40, 22, 0.66);
}

.content-area.news-page-active .news-published-card__summary {
  max-width: 100%;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.42;
  color: rgba(48, 34, 20, 0.82);
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.content-area.news-page-active .news-published-card__summary--body {
  white-space: pre-wrap;
}

.content-area.news-page-active .news-published-card__actions {
  align-self: flex-start;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.content-area.news-page-active .news-published-card__open {
  align-self: flex-start;
  box-sizing: border-box;
  border: 1px solid rgba(72, 50, 28, 0.22);
  border-radius: 8px;
  background: rgba(218, 190, 145, 0.54);
  color: rgba(34, 23, 12, 0.92);
  padding: 7px 11px;
  margin: 0;
  font: inherit;
  font-size: 12.75px;
  line-height: 1.2;
  cursor: pointer;
}

.content-area.news-page-active .news-published-card__open:hover {
  border-color: rgba(72, 50, 28, 0.3);
  background: rgba(224, 198, 156, 0.66);
}

.content-area.news-page-active .news-published-detail {
  width: min(940px, 100%);
  max-width: 940px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: rgba(34, 23, 12, 0.92);
}

.content-area.news-page-active .news-published-detail__back {
  align-self: flex-start;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: rgba(64, 43, 22, 0.78);
  padding: 0 0 2px;
  margin: 0 0 4px;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}

.content-area.news-page-active .news-published-detail__back:hover {
  color: rgba(32, 22, 12, 0.94);
}

.content-area.news-page-active .news-published-detail__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 700;
  color: rgba(28, 19, 10, 0.96);
}

.content-area.news-page-active .news-published-detail__meta {
  margin-top: -8px;
  font-size: 13.5px;
  line-height: 1.35;
  color: rgba(58, 40, 22, 0.66);
}

.content-area.news-page-active .news-published-detail__actions {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: -6px;
}

.content-area.news-page-active .news-published-detail__action {
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 1px solid rgba(72, 50, 28, 0.24);
  border-radius: 8px;
  background: rgba(218, 190, 145, 0.58);
  color: rgba(34, 23, 12, 0.94);
  padding: 8px 12px;
  margin: 0;
  font: inherit;
  font-size: 12.75px;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

.content-area.news-page-active .news-published-detail__action:hover {
  border-color: rgba(72, 50, 28, 0.3);
  background: rgba(224, 198, 156, 0.66);
}

.content-area.news-page-active .news-published-detail__cover {
  width: 100%;
  max-width: 100%;
  min-height: 220px;
  max-height: 420px;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px dashed rgba(72, 50, 28, 0.28);
  background: rgba(214, 190, 150, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(58, 40, 22, 0.58);
  font-size: 15px;
  line-height: 1.35;
}

.content-area.news-page-active .news-published-detail__cover-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  display: block;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
}

.content-area.news-page-active .news-published-detail__cover-placeholder {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-area.news-page-active .news-published-detail__summary,
.content-area.news-page-active .news-published-detail__text {
  width: min(820px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  color: rgba(44, 31, 18, 0.84);
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.content-area.news-page-active .news-published-detail__summary {
  font-size: 18px;
  line-height: 1.58;
  font-weight: 600;
}

.content-area.news-page-active .news-published-detail__text {
  font-size: 16px;
  line-height: 1.7;
  white-space: normal;
}

.content-area.news-page-active .news-published-detail__cover + .news-published-detail__summary,
.content-area.news-page-active .news-published-detail__cover + .news-published-detail__text,
.content-area.news-page-active .news-published-detail__cover + .news-published-detail__blocks {
  margin-top: 10px;
}

.content-area.news-page-active .news-published-detail__summary + .news-published-detail__text,
.content-area.news-page-active .news-published-detail__summary + .news-published-detail__blocks {
  margin-top: 8px;
}

.content-area.news-page-active .news-published-detail__blocks {
  width: min(820px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.content-area.news-page-active .news-published-detail__block {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.content-area.news-page-active .news-published-detail__block--styled {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.content-area.news-page-active .news-published-detail__block--subheading + .news-published-detail__block--text {
  margin-top: 6px;
}

.content-area.news-page-active .news-published-detail__block--text + .news-published-detail__block--subheading,
.content-area.news-page-active .news-published-detail__block--list + .news-published-detail__block--subheading,
.content-area.news-page-active .news-published-detail__block--text + .news-published-detail__block--source,
.content-area.news-page-active .news-published-detail__block--list + .news-published-detail__block--source {
  margin-top: 12px;
}

.content-area.news-page-active .news-published-detail__block--heading {
  font-size: 24px;
  line-height: 1.16;
  font-weight: 700;
  color: rgba(28, 19, 10, 0.96);
}

.content-area.news-page-active .news-published-detail__block--subheading {
  font-size: 18px;
  line-height: 1.58;
  font-weight: 600;
  color: rgba(44, 31, 18, 0.88);
}

.content-area.news-page-active .news-published-detail__block--text,
.content-area.news-page-active .news-published-detail__block--note,
.content-area.news-page-active .news-published-detail__block--date,
.content-area.news-page-active .news-published-detail__block--quote,
.content-area.news-page-active .news-published-detail__block--linkButton,
.content-area.news-page-active .news-published-detail__block--list,
.content-area.news-page-active .news-published-detail__block--source {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(44, 31, 18, 0.84);
}

.content-area.news-page-active .news-published-detail__block--date,
.content-area.news-page-active .news-published-detail__block--source {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(58, 40, 22, 0.66);
}

.content-area.news-page-active .news-published-detail__block--quote {
  border-left: 3px solid rgba(72, 50, 28, 0.22);
  padding-left: 16px;
}

.content-area.news-page-active .news-published-detail__block--note {
  color: rgba(56, 39, 22, 0.78);
}

.content-area.news-page-active .news-published-detail__block--spacer {
  height: var(--news-published-detail-spacer-height, 0px);
  min-height: var(--news-published-detail-spacer-height, 0px);
  flex: 0 0 auto;
}

.content-area.news-page-active .news-published-detail__block-text-content {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.content-area.news-page-active .news-published-detail__block-text-content--paragraphs {
  white-space: normal;
}

.content-area.news-page-active .news-published-detail__paragraph {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.content-area.news-page-active .news-published-detail__paragraph + .news-published-detail__paragraph {
  margin-top: 14px;
}

.content-area.news-page-active .news-published-detail__text-motion {
  --news-text-position: 0;
  display: inline-block;
  position: relative;
  left: calc(var(--news-text-position) * 1%);
  transform: translateX(calc(var(--news-text-position) * -1%));
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: inherit;
  overflow-wrap: inherit;
  word-break: inherit;
}

.content-area.news-page-active .news-published-detail__block-list {
  margin: 0;
  padding: 0 0 0 22px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.content-area.news-page-active .news-published-detail__block-list li {
  margin: 0;
}

.content-area.news-page-active .news-published-detail__block-list li + li {
  margin-top: 6px;
}

.content-area.news-page-active .news-published-detail__block-media {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(214, 190, 150, 0.34);
}

.content-area.news-page-active .news-published-detail__block-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.content-area.news-page-active .news-published-detail__block-fallback {
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(58, 40, 22, 0.66);
}

.content-area.news-page-active .news-published-detail__block-link {
  color: rgba(34, 23, 12, 0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.content-area.news-page-active .news-published-detail__video {
  padding: 0;
  background: transparent;
}

.content-area.news-page-active .news-published-detail__video-player {
  height: auto;
  width: 100%;
  max-width: 100%;
  display: block;
  background: transparent;
  object-fit: contain;
}

.content-area.news-page-active .news-published-detail__video-link {
  display: block;
  padding: 14px 16px;
}

.content-area.news-page-active .news-published-detail__source-content,
.content-area.news-page-active .news-published-detail__source-row,
.content-area.news-page-active .news-published-detail__source-label,
.content-area.news-page-active .news-published-detail__source-text,
.content-area.news-page-active .news-published-detail__source-url,
.content-area.news-page-active .news-published-detail__source-link {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.content-area.news-page-active .news-published-detail__source-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.content-area.news-page-active .news-published-detail__source-link {
  color: rgba(34, 23, 12, 0.92);
}

.content-area.news-page-active .news-published-detail__source-link:hover {
  color: rgba(22, 14, 6, 0.98);
}

.content-area.news-page-active .news-published-detail__block-link--button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid rgba(72, 50, 28, 0.24);
  border-radius: 8px;
  background: rgba(218, 190, 145, 0.46);
  padding: 8px 12px;
  text-decoration: none;
}

.content-area.news-page-active .news-editorial-status-notice {
  width: min(720px, 100%);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid rgba(72, 50, 28, 0.18);
  border-radius: 10px;
  background: rgba(228, 205, 168, 0.34);
  padding: 10px 12px;
  color: rgba(42, 29, 16, 0.86);
}

.content-area.news-page-active .news-editorial-status-notice__text {
  min-width: 0;
  flex: 1 1 280px;
  font-size: 13.5px;
  line-height: 1.45;
}

.content-area.news-page-active .news-editorial-status-notice__action {
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 1px solid rgba(72, 50, 28, 0.22);
  border-radius: 8px;
  background: rgba(218, 190, 145, 0.5);
  color: rgba(34, 23, 12, 0.9);
  padding: 7px 10px;
  margin: 0;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.2;
  cursor: pointer;
}

.content-area.news-page-active .news-editorial-demo-card {
  width: min(860px, 100%);
  max-width: 860px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  border: 1px solid rgba(72, 50, 28, 0.22);
  border-radius: 12px;
  background: rgba(228, 205, 168, 0.46);
  box-shadow: inset 0 1px 0 rgba(245, 230, 198, 0.38);
  padding: 18px;
  cursor: pointer;
}

.content-area.news-page-active .news-editorial-demo-card:hover {
  border-color: rgba(72, 50, 28, 0.3);
  background: rgba(232, 210, 174, 0.56);
}

.content-area.news-page-active .news-editorial-demo-card--highlighted {
  border-color: rgba(86, 117, 70, 0.46);
  background: rgba(230, 218, 184, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(248, 238, 208, 0.52),
    0 10px 24px rgba(86, 117, 70, 0.12);
}

.content-area.news-page-active .news-editorial-demo-card:focus-visible {
  outline: 2px solid rgba(92, 62, 28, 0.42);
  outline-offset: 3px;
}

.content-area.news-page-active .news-editorial-demo-card__thumb {
  width: 180px;
  min-width: 180px;
  height: 120px;
  flex: 0 0 180px;
  min-height: 0;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px dashed rgba(72, 50, 28, 0.28);
  background: rgba(214, 190, 150, 0.44);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(58, 40, 22, 0.62);
  font-size: 13px;
  line-height: 1.3;
}

.content-area.news-page-active .news-editorial-demo-card__thumb-image {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 160px;
  display: block;
  object-fit: cover;
  object-position: center;
  flex: 0 0 auto;
}

.content-area.news-page-active .news-editorial-demo-card__thumb-video {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 160px;
  display: block;
  object-fit: cover;
  object-position: center;
  flex: 0 0 auto;
  background: rgba(28, 20, 12, 0.18);
}

.content-area.news-page-active .news-editorial-demo-card__thumb-placeholder {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-editorial-demo-card__media {
  width: 180px;
  min-width: 180px;
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-editorial-demo-card__thumb {
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  height: auto;
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-editorial-demo-card__thumb-image {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: rgba(214, 190, 150, 0.26);
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-editorial-demo-card__body {
  gap: 6px;
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-editorial-demo-card__title,
.content-area.news-page-active .news-editorial-demo-card--auto .news-editorial-demo-card__description {
  margin: 0;
}

.content-area.news-page-active .news-editorial-demo-card__body {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: stretch;
}

.content-area.news-page-active .news-editorial-demo-card__title {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  color: rgba(32, 22, 12, 0.94);
}

.content-area.news-page-active .news-editorial-demo-card__description {
  max-width: none;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(48, 34, 20, 0.82);
}

.content-area.news-page-active .news-editorial-demo-card__meta {
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(58, 40, 22, 0.66);
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-editorial-demo-card__meta--youtube,
.content-area.news-page-active .news-editorial-demo-card--auto .news-editorial-demo-card__youtube-link {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-auto-ai-progress {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 0 2px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11.5px;
  line-height: 1.25;
  color: rgba(42, 30, 16, 0.76);
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-auto-ai-progress__title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(32, 22, 12, 0.68);
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-auto-ai-progress__step {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  animation: newsAutoAiProgressStepIn 180ms ease-out both;
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-auto-ai-progress__icon {
  width: 15px;
  flex: 0 0 15px;
  text-align: center;
  font-weight: 700;
  transition: color 160ms ease;
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-auto-ai-progress__label {
  min-width: 0;
  overflow-wrap: anywhere;
  transition: color 160ms ease;
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-auto-ai-progress__step--done {
  color: rgba(46, 92, 48, 0.94);
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-auto-ai-progress__step--processing {
  color: rgba(92, 63, 22, 0.94);
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-auto-ai-progress__step--error {
  color: rgba(128, 36, 30, 0.94);
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-auto-ai-progress__step--waiting {
  color: rgba(58, 40, 22, 0.58);
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-auto-ai-progress__error {
  padding-top: 1px;
  font-size: 11px;
  line-height: 1.28;
  color: rgba(128, 36, 30, 0.9);
  overflow-wrap: anywhere;
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-auto-ai-creation-status {
  box-sizing: border-box;
  width: 100%;
  margin-top: 6px;
  padding: 0 1px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-auto-ai-creation-status__title {
  margin-bottom: 9px;
  font-size: 14px;
  line-height: 1.18;
  font-weight: 750;
  color: rgba(34, 28, 20, 0.86);
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-auto-ai-creation-status__row {
  min-width: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.18;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-auto-ai-creation-status__row--done {
  color: #197a2e;
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-auto-ai-creation-status__row--processing {
  color: #e46f00;
  animation: newsAutoAiCreationProcessingPulse 1200ms ease-in-out infinite;
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-auto-ai-creation-status__row--error {
  color: #c62828;
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-auto-ai-creation-status__row--final {
  margin-top: 2px;
  font-weight: 800;
}

@keyframes newsAutoAiProgressStepIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes newsAutoAiCreationProcessingPulse {
  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 0 rgba(228, 111, 0, 0);
  }

  50% {
    opacity: 0.5;
    text-shadow: 0 0 7px rgba(228, 111, 0, 0.42);
  }
}

.content-area.news-page-active .news-media-picker__entry.is-selected {
  border-color: rgba(93, 112, 64, 0.48);
  background: rgba(238, 244, 222, 0.92);
  box-shadow: inset 0 0 0 1px rgba(93, 112, 64, 0.28);
}

.content-area.news-page-active .news-media-picker__entry.is-selected .news-media-picker__badge {
  background: rgba(80, 110, 68, 0.16);
  color: rgba(46, 78, 42, 0.92);
}

.content-area.news-page-active .news-editorial-demo-card__badge {
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(86, 117, 70, 0.34);
  border-radius: 999px;
  background: rgba(240, 231, 199, 0.82);
  color: rgba(50, 70, 40, 0.92);
  padding: 5px 9px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
}

.content-area.news-page-active .news-editorial-demo-card__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: auto;
}

.content-area.news-page-active .news-editorial-demo-card__action {
  flex: 0 1 auto;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(72, 50, 28, 0.24);
  border-radius: 8px;
  background: rgba(218, 190, 145, 0.58);
  color: rgba(34, 23, 12, 0.94);
  padding: 7px 8px;
  margin: 0;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: default;
  white-space: nowrap;
}

.content-area.news-page-active .news-editorial-demo-card__action--preview {
  cursor: pointer;
}

.content-area.news-page-active .news-editorial-demo-card--auto .news-editorial-demo-card__action:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.content-area.news-page-active .news-editorial-demo-detail {
  width: min(960px, 100%);
  max-width: 960px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: rgba(34, 23, 12, 0.92);
}

.content-area.news-page-active .news-editorial-demo-detail__back {
  align-self: flex-start;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: rgba(64, 43, 22, 0.78);
  padding: 0 0 2px;
  margin: 0 0 4px;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}

.content-area.news-page-active .news-editorial-demo-detail__back:hover {
  color: rgba(32, 22, 12, 0.94);
}

.content-area.news-page-active .news-editorial-demo-detail__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 700;
  color: rgba(28, 19, 10, 0.96);
}

.content-area.news-page-active .news-editorial-demo-detail__meta {
  margin-top: -8px;
  font-size: 13.5px;
  line-height: 1.35;
  color: rgba(58, 40, 22, 0.66);
}

.content-area.news-page-active .news-editorial-demo-detail__cover {
  width: 100%;
  max-width: 100%;
  min-height: 220px;
  max-height: 420px;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px dashed rgba(72, 50, 28, 0.28);
  background: rgba(214, 190, 150, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(58, 40, 22, 0.58);
  font-size: 15px;
  line-height: 1.35;
}

.content-area.news-page-active .news-editorial-demo-detail__cover-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  display: block;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
}

.content-area.news-page-active .news-editorial-demo-detail__cover-video {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  display: block;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  background: rgba(28, 20, 12, 0.12);
}

.content-area.news-page-active .news-editorial-demo-detail__cover-placeholder {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-area.news-page-active .news-editorial-demo-detail__text {
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(44, 31, 18, 0.84);
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.content-area.news-page-active .news-editorial-demo-detail__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  margin-top: 6px;
  max-width: 100%;
  box-sizing: border-box;
}

.content-area.news-page-active .news-editorial-demo-detail__action {
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 1px solid rgba(72, 50, 28, 0.24);
  border-radius: 8px;
  background: rgba(218, 190, 145, 0.58);
  color: rgba(34, 23, 12, 0.94);
  padding: 8px 9px;
  margin: 0;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: default;
  white-space: nowrap;
}

.content-area.news-page-active .news-editorial-demo-detail__action--preview {
  cursor: pointer;
}

.content-area.news-page-active .news-editorial-demo-detail__action--edit {
  cursor: pointer;
}

.content-area.news-page-active .news-editorial-demo-preview {
  width: min(900px, 100%);
  max-width: 900px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: rgba(32, 24, 16, 0.9);
}

.content-area.news-page-active .news-editorial-demo-preview__back {
  align-self: flex-start;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: rgba(64, 43, 22, 0.72);
  padding: 0 0 2px;
  margin: 0 0 6px;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}

.content-area.news-page-active .news-editorial-demo-preview__publish,
.content-area.news-page-active .news-editorial-demo-preview__action {
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 1px solid rgba(72, 50, 28, 0.24);
  border-radius: 8px;
  background: rgba(218, 190, 145, 0.58);
  color: rgba(34, 23, 12, 0.94);
  padding: 8px 12px;
  margin: 0;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.2;
  cursor: pointer;
}

.content-area.news-page-active .news-editorial-demo-preview__cover-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 -6px;
}

.content-area.news-page-active .news-editorial-demo-preview__back:hover {
  color: rgba(28, 19, 10, 0.92);
}

.content-area.news-page-active .news-editorial-demo-preview__title {
  margin: 0;
  max-width: 780px;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 700;
  color: rgba(24, 18, 12, 0.96);
}

.content-area.news-page-active .news-editorial-demo-preview__meta {
  margin-top: -8px;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(58, 40, 22, 0.62);
}


.content-area.news-page-active .news-editorial-demo-preview__cover {
  width: 100%;
  max-width: 100%;
  min-height: 220px;
  max-height: 420px;
  box-sizing: border-box;
  border-radius: 14px;
  background: rgba(214, 190, 150, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(58, 40, 22, 0.54);
  font-size: 15px;
  line-height: 1.35;
}

.content-area.news-page-active .news-editorial-demo-preview__cover-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  display: block;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
}

.content-area.news-page-active .news-editorial-demo-preview__cover-video {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  display: block;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  background: rgba(28, 20, 12, 0.12);
}

.content-area.news-page-active .news-editorial-demo-preview__cover-placeholder {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-area.news-page-active.news-view-visitor .news-published-card__cover,
.content-area.news-page-active.news-view-visitor .news-published-detail__cover,
.content-area.news-page-active.news-view-visitor .news-editorial-demo-card__thumb,
.content-area.news-page-active.news-view-visitor .news-editorial-demo-detail__cover,
.content-area.news-page-active.news-view-visitor .news-editorial-demo-preview__cover {
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  background-color: transparent;
  padding: 0;
}

.content-area.news-page-active.news-view-visitor .news-published-card__cover-placeholder,
.content-area.news-page-active.news-view-visitor .news-published-detail__cover-placeholder,
.content-area.news-page-active.news-view-visitor .news-editorial-demo-card__thumb-placeholder,
.content-area.news-page-active.news-view-visitor .news-editorial-demo-detail__cover-placeholder,
.content-area.news-page-active.news-view-visitor .news-editorial-demo-preview__cover-placeholder {
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  background-color: transparent;
  padding: 0;
}

.content-area.news-page-active.news-view-visitor .news-published-card__cover-image,
.content-area.news-page-active.news-view-visitor .news-published-detail__cover-image,
.content-area.news-page-active.news-view-visitor .news-editorial-demo-card__thumb-image,
.content-area.news-page-active.news-view-visitor .news-editorial-demo-card__thumb-video,
.content-area.news-page-active.news-view-visitor .news-editorial-demo-detail__cover-image,
.content-area.news-page-active.news-view-visitor .news-editorial-demo-detail__cover-video,
.content-area.news-page-active.news-view-visitor .news-editorial-demo-preview__cover-image,
.content-area.news-page-active.news-view-visitor .news-editorial-demo-preview__cover-video {
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  background-color: transparent;
}

.content-area.news-page-active .news-editorial-demo-preview__text {
  width: min(820px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  font-size: 17px;
  line-height: 1.72;
  color: rgba(38, 28, 18, 0.84);
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  white-space: normal;
}

.content-area.news-page-active .news-editorial-demo-preview__cover + .news-editorial-demo-preview__text,
.content-area.news-page-active .news-editorial-demo-preview__cover + .news-editorial-demo-preview__blocks {
  margin-top: 10px;
}

.content-area.news-page-active .news-editorial-demo-preview__blocks {
  width: min(820px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.content-area.news-page-active .news-editorial-demo-preview__block {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.content-area.news-page-active .news-editorial-demo-preview__block--styled {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.content-area.news-page-active .news-editorial-demo-preview__block--subheading + .news-editorial-demo-preview__block--text {
  margin-top: 6px;
}

.content-area.news-page-active .news-editorial-demo-preview__block--text + .news-editorial-demo-preview__block--subheading,
.content-area.news-page-active .news-editorial-demo-preview__block--list + .news-editorial-demo-preview__block--subheading,
.content-area.news-page-active .news-editorial-demo-preview__block--text + .news-editorial-demo-preview__block--source,
.content-area.news-page-active .news-editorial-demo-preview__block--list + .news-editorial-demo-preview__block--source {
  margin-top: 12px;
}

.content-area.news-page-active .news-editorial-demo-preview__block--heading {
  font-size: 24px;
  line-height: 1.12;
  font-weight: 700;
  color: rgba(24, 18, 12, 0.96);
}

.content-area.news-page-active .news-editorial-demo-preview__block--subheading {
  font-size: 18px;
  line-height: 1.58;
  font-weight: 600;
  color: rgba(44, 31, 18, 0.88);
}

.content-area.news-page-active .news-editorial-demo-preview__block--text,
.content-area.news-page-active .news-editorial-demo-preview__block--note,
.content-area.news-page-active .news-editorial-demo-preview__block--date,
.content-area.news-page-active .news-editorial-demo-preview__block--quote,
.content-area.news-page-active .news-editorial-demo-preview__block--linkButton,
.content-area.news-page-active .news-editorial-demo-preview__block--list,
.content-area.news-page-active .news-editorial-demo-preview__block--source {
  font-size: 17px;
  line-height: 1.68;
  color: rgba(38, 28, 18, 0.84);
}

.content-area.news-page-active .news-editorial-demo-preview__block--date,
.content-area.news-page-active .news-editorial-demo-preview__block--source {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(58, 40, 22, 0.66);
}

.content-area.news-page-active .news-editorial-demo-preview__block--quote {
  border-left: 3px solid rgba(72, 50, 28, 0.22);
  padding-left: 16px;
}

.content-area.news-page-active .news-editorial-demo-preview__block--note {
  color: rgba(56, 39, 22, 0.78);
}

.content-area.news-page-active .news-editorial-demo-preview__block--spacer {
  height: var(--news-editorial-preview-spacer-height, 0px);
  min-height: var(--news-editorial-preview-spacer-height, 0px);
  flex: 0 0 auto;
}

.content-area.news-page-active .news-editorial-demo-preview__block-text-content {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.content-area.news-page-active .news-editorial-demo-preview__block-text-content--paragraphs {
  white-space: normal;
}

.content-area.news-page-active .news-editorial-demo-preview__paragraph {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.content-area.news-page-active .news-editorial-demo-preview__paragraph + .news-editorial-demo-preview__paragraph {
  margin-top: 14px;
}

.content-area.news-page-active .news-editorial-demo-preview__text-motion {
  --news-text-position: 0;
  display: inline-block;
  position: relative;
  left: calc(var(--news-text-position) * 1%);
  transform: translateX(calc(var(--news-text-position) * -1%));
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: inherit;
  overflow-wrap: inherit;
  word-break: inherit;
}

.content-area.news-page-active .news-editorial-demo-preview__block-list {
  margin: 0;
  padding: 0 0 0 22px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.content-area.news-page-active .news-editorial-demo-preview__block-list li {
  margin: 0;
}

.content-area.news-page-active .news-editorial-demo-preview__block-list li + li {
  margin-top: 6px;
}

.content-area.news-page-active .news-editorial-demo-preview__block-media {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(214, 190, 150, 0.34);
}

.content-area.news-page-active .news-editorial-demo-preview__block-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.content-area.news-page-active .news-editorial-demo-preview__block-video-player {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  background: transparent;
  object-fit: contain;
}

.content-area.news-page-active .news-editorial-demo-preview__block-fallback {
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(58, 40, 22, 0.66);
}

.content-area.news-page-active .news-editorial-demo-preview__block-link {
  color: rgba(34, 23, 12, 0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.content-area.news-page-active .news-editorial-demo-preview__source-content,
.content-area.news-page-active .news-editorial-demo-preview__source-row,
.content-area.news-page-active .news-editorial-demo-preview__source-label,
.content-area.news-page-active .news-editorial-demo-preview__source-text,
.content-area.news-page-active .news-editorial-demo-preview__source-url,
.content-area.news-page-active .news-editorial-demo-preview__source-link {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.content-area.news-page-active .news-editorial-demo-preview__source-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.content-area.news-page-active .news-editorial-demo-preview__source-link {
  color: rgba(34, 23, 12, 0.92);
}

.content-area.news-page-active .news-editorial-demo-preview__source-link:hover {
  color: rgba(22, 14, 6, 0.98);
}

.content-area.news-page-active .news-editorial-demo-preview__block-link--button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid rgba(72, 50, 28, 0.24);
  border-radius: 8px;
  background: rgba(218, 190, 145, 0.46);
  padding: 8px 12px;
  text-decoration: none;
}

.content-area.news-page-active .news-editorial-demo-editor {
  width: min(900px, 100%);
  max-width: 900px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: rgba(34, 23, 12, 0.92);
}

.content-area.news-page-active .news-editorial-demo-editor__back {
  align-self: flex-start;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: rgba(64, 43, 22, 0.78);
  padding: 0 0 2px;
  margin: 0 0 4px;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}

.content-area.news-page-active .news-editorial-demo-editor__back:hover {
  color: rgba(32, 22, 12, 0.94);
}

.content-area.news-page-active .news-editorial-demo-editor__title {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  color: rgba(28, 19, 10, 0.96);
}

.content-area.news-page-active .news-editorial-demo-editor__form {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-area.news-page-active .news-editorial-demo-editor__field {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-area.news-page-active .news-editorial-demo-editor__label {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  color: rgba(46, 31, 16, 0.78);
}

.content-area.news-page-active .news-editorial-demo-editor__control {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(72, 50, 28, 0.24);
  border-radius: 10px;
  background: rgba(246, 232, 204, 0.64);
  color: rgba(30, 21, 12, 0.94);
  padding: 11px 12px;
  margin: 0;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}

.content-area.news-page-active textarea.news-editorial-demo-editor__control {
  min-height: 190px;
  resize: vertical;
}

.content-area.news-page-active .news-editorial-demo-editor__cover-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.content-area.news-page-active .news-editorial-demo-editor__cover {
  width: min(320px, 100%);
  height: 170px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px dashed rgba(72, 50, 28, 0.28);
  background: rgba(214, 190, 150, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(58, 40, 22, 0.58);
  font-size: 14px;
  line-height: 1.35;
}

.content-area.news-page-active .news-editorial-demo-editor__secondary,
.content-area.news-page-active .news-editorial-demo-editor__action {
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 1px solid rgba(72, 50, 28, 0.24);
  border-radius: 8px;
  background: rgba(218, 190, 145, 0.58);
  color: rgba(34, 23, 12, 0.94);
  padding: 10px 14px;
  margin: 0;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.2;
  cursor: pointer;
}

.content-area.news-page-active .news-editorial-demo-editor__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.content-area.news-page-active .news-editorial-demo-editor__status {
  min-height: 18px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(46, 86, 42, 0.86);
}

@media (max-width: 980px) {
  .content-area.news-page-active .news-published-card {
    flex-direction: column;
  }

  .content-area.news-page-active .news-published-card__cover {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
  }

  .content-area.news-page-active .news-editorial-demo-detail__actions {
    flex-wrap: wrap;
  }

  .content-area.news-page-active .news-editorial-demo-card {
    flex-direction: column;
  }

  .content-area.news-page-active .news-editorial-demo-card__actions {
    flex-wrap: wrap;
  }

  .content-area.news-page-active .news-editorial-demo-card__thumb {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
  }
}








/* =========================================================
   TEMP NEWS LIGHT WORK MODE
   ВРЕМЕННО: светлая рабочая тема для настройки раздела "Новости".
   Потом этот блок закомментировать или удалить.
   Цветовая версия: приглушённый тёплый бежевый, не яркий.
   ========================================================= */

body:has(.menu-btn.active[data-section="news"]) .content-area.news-page-active,
.content-area.news-page-active {
  background:
    linear-gradient(180deg, rgba(190, 171, 138, 0.96), rgba(162, 140, 104, 0.94)) !important;
  border-color: rgba(64, 45, 25, 0.42) !important;
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(245, 232, 202, 0.48) !important;
  color: rgba(42, 31, 20, 0.94) !important;
}

/* Левая колонка */
.content-area.news-page-active .news-channels-panel {
  color: rgba(42, 31, 20, 0.94) !important;
}

/* Заголовки: ПЕРИОД, ИСТОЧНИКИ и т.п. */
.content-area.news-page-active .news-panel-title,
.content-area.news-page-active .news-admin-title,
.content-area.news-page-active .news-manual-editor__title,
.content-area.news-page-active .news-manual-preview__title {
  color: rgba(34, 24, 14, 0.96) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Обычный текст и подсказки */
.content-area.news-page-active .news-admin-hint,
.content-area.news-page-active .news-admin-status,
.content-area.news-page-active .news-source-title,
.content-area.news-page-active .news-manual-editor__hint,
.content-area.news-page-active .news-manual-editor__block-text,
.content-area.news-page-active .news-manual-preview__empty,
.content-area.news-page-active .news-manual-preview__placeholder {
  color: rgba(50, 36, 22, 0.86) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Кнопки слева */
.content-area.news-page-active .news-period-btn,
.content-area.news-page-active .news-channel-btn,
.content-area.news-page-active .news-editorial-btn,
.content-area.news-page-active .news-admin-toggle,
.content-area.news-page-active .news-manual-post-toggle {
  background: rgba(210, 185, 145, 0.36) !important;
  border: 1px solid rgba(78, 54, 30, 0.22) !important;
  color: rgba(36, 25, 14, 0.94) !important;
  box-shadow:
    inset 0 1px 0 rgba(244, 228, 190, 0.34) !important;
}

/* Hover и активное состояние кнопок */
.content-area.news-page-active .news-period-btn:hover,
.content-area.news-page-active .news-channel-btn:hover,
.content-area.news-page-active .news-editorial-btn:hover,
.content-area.news-page-active .news-admin-toggle:hover,
.content-area.news-page-active .news-manual-post-toggle:hover {
  background: rgba(224, 190, 130, 0.58) !important;
  color: rgba(24, 16, 8, 0.98) !important;
  border-color: rgba(74, 48, 24, 0.3) !important;
}

.content-area.news-page-active .news-period-btn.is-active,
.content-area.news-page-active .news-editorial-btn.is-active,
.content-area.news-page-active .news-admin-toggle.is-active,
.content-area.news-page-active .news-manual-post-toggle.is-active {
  background: rgba(210, 165, 92, 0.62) !important;
  border-color: rgba(78, 50, 22, 0.38) !important;
  color: rgba(22, 14, 6, 0.98) !important;
}

/* Числа справа у "Все / Сегодня / За неделю" */
.content-area.news-page-active .news-filter-count,
.content-area.news-page-active .news-editorial-count {
  color: rgba(54, 37, 20, 0.68) !important;
  opacity: 1 !important;
}

/* Раскрытое окно "Источники новостей" */
.content-area.news-page-active .news-admin-panel {
  background: rgba(202, 178, 138, 0.82) !important;
  border-color: rgba(72, 50, 28, 0.32) !important;
  color: rgba(39, 28, 17, 0.94) !important;
  box-shadow:
  inset 0 1px 0 rgba(242, 223, 184, 0.48) !important;
}

/* Строки источников */
.content-area.news-page-active .news-source-option {
  background: rgba(225, 200, 160, 0.42) !important;
  border-color: rgba(76, 52, 30, 0.22) !important;
  color: rgba(36, 25, 15, 0.94) !important;
}

/* Чекбоксы источников */
.content-area.news-page-active .news-source-option input[type="checkbox"] {
  accent-color: rgba(94, 65, 34, 0.9) !important;
  opacity: 0.9 !important;
}

/* Правая область */
body:has(.menu-btn.active[data-section="news"]) .content-area.news-page-active > .media-scroll,
.content-area.news-page-active > .media-scroll {
  background: rgba(214, 190, 150, 0.34) !important;
  border: 1px solid rgba(72, 50, 28, 0.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(240, 224, 190, 0.34) !important;
}

/* Пустое состояние справа */
.content-area.news-page-active > .media-scroll > #media-grid .media-empty {
  color: transparent !important;
}

/* Редактор ручной публикации */
.content-area.news-page-active .news-manual-editor:not(.news-manual-editor--tools),
.content-area.news-page-active .news-manual-editor__block {
  background: rgba(202, 178, 138, 0.72) !important;
  border-color: rgba(72, 50, 28, 0.28) !important;
  color: rgba(39, 28, 17, 0.94) !important;
}

/* Поля ввода */
.content-area.news-page-active .news-manual-editor__text-control,
.content-area.news-page-active .news-manual-editor__heading-input {
  background: rgba(230, 207, 170, 0.72) !important;
  border-color: rgba(72, 50, 28, 0.28) !important;
  color: rgba(30, 20, 10, 0.96) !important;
}

.content-area.news-page-active .news-manual-editor__text-control::placeholder,
.content-area.news-page-active .news-manual-editor__heading-input::placeholder {
  color: rgba(62, 43, 25, 0.56) !important;
}

.content-area.news-page-active .news-manual-editor__text-control:focus,
.content-area.news-page-active .news-manual-editor__heading-input:focus {
  border-color: rgba(66, 42, 18, 0.46) !important;
  background: rgba(236, 214, 176, 0.78) !important;
  box-shadow: 0 0 0 3px rgba(70, 45, 20, 0.14) !important;
}

/* Кнопки редактора */
.content-area.news-page-active .news-create-from-video-btn {
  align-self: stretch;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 10px 0 !important;
  border: 1px solid rgba(72, 50, 28, 0.28) !important;
  border-radius: 10px;
  background: rgba(218, 190, 145, 0.58) !important;
  color: rgba(34, 23, 12, 0.94) !important;
  padding: 8px 10px;
  cursor: pointer;
}

.content-area.news-page-active .news-manual-editor__add-btn,
.content-area.news-page-active .news-manual-editor__format-btn,
.content-area.news-page-active .news-create-from-video-btn,
.content-area.news-page-active .news-admin-save {
  background: rgba(218, 190, 145, 0.58) !important;
  border-color: rgba(72, 50, 28, 0.28) !important;
  color: rgba(34, 23, 12, 0.94) !important;
}

.content-area.news-page-active .news-manual-editor__add-btn:hover,
.content-area.news-page-active .news-manual-editor__format-btn:hover,
.content-area.news-page-active .news-create-from-video-btn:hover,
.content-area.news-page-active .news-admin-save:hover {
  background: rgba(226, 194, 136, 0.68) !important;
  color: rgba(22, 14, 6, 0.98) !important;
}

/* Кнопка удаления блока */
.content-area.news-page-active .news-manual-editor__remove-btn {
  color: rgba(70, 46, 24, 0.66) !important;
}

.content-area.news-page-active .news-manual-editor__remove-btn:hover {
  color: rgba(120, 30, 20, 0.9) !important;
}

/* Предпросмотр */
.content-area.news-page-active .news-manual-preview,
.content-area.news-page-active .news-manual-preview__heading {
  color: rgba(34, 23, 12, 0.94) !important;
}

.content-area.news-page-active .news-manual-preview__frame,
.content-area.news-page-active .news-manual-preview__canvas {
  display: flex !important;
  background: rgba(202, 178, 138, 0.66) !important;
  border-color: rgba(72, 50, 28, 0.28) !important;
}

/* Плейсхолдеры предпросмотра */
.content-area.news-page-active .news-manual-preview__placeholder {
  background: rgba(214, 190, 150, 0.36) !important;
  border-color: rgba(72, 50, 28, 0.24) !important;
  color: rgba(48, 34, 20, 0.82) !important;
}

/* Разделители */
.content-area.news-page-active .news-manual-editor__divider,
.content-area.news-page-active .news-manual-preview__divider {
  background: rgba(68, 46, 24, 0.3) !important;
}

/* Скроллбар в светлой временной теме */
.content-area.news-page-active .news-admin-panel,
.content-area.news-page-active .news-manual-editor__blocks,
.content-area.news-page-active .news-manual-preview__viewport,
.content-area.news-page-active > .media-scroll {
  scrollbar-color: rgba(82, 55, 28, 0.42) rgba(218, 195, 155, 0.28) !important;
}

.content-area.news-page-active .news-admin-panel::-webkit-scrollbar-track,
.content-area.news-page-active .news-manual-editor__blocks::-webkit-scrollbar-track,
.content-area.news-page-active .news-manual-preview__viewport::-webkit-scrollbar-track,
.content-area.news-page-active > .media-scroll::-webkit-scrollbar-track {
  background: rgba(218, 195, 155, 0.28) !important;
}

.content-area.news-page-active .news-admin-panel::-webkit-scrollbar-thumb,
.content-area.news-page-active .news-manual-editor__blocks::-webkit-scrollbar-thumb,
.content-area.news-page-active .news-manual-preview__viewport::-webkit-scrollbar-thumb,
.content-area.news-page-active > .media-scroll::-webkit-scrollbar-thumb {
  background: rgba(82, 55, 28, 0.38) !important;
  border-radius: 999px !important;
  border: 2px solid transparent !important;
  background-clip: padding-box !important;
}

.content-area.news-page-active .news-admin-panel::-webkit-scrollbar-thumb:hover,
.content-area.news-page-active .news-manual-editor__blocks::-webkit-scrollbar-thumb:hover,
.content-area.news-page-active .news-manual-preview__viewport::-webkit-scrollbar-thumb:hover,
.content-area.news-page-active > .media-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(68, 44, 22, 0.54) !important;
}

/* =========================================================
   EMERGENCY RESTORE — NEWS ADMIN PANEL
   Возврат рабочего состояния после неудачной .news-source-list правки.
   JS снова кладёт .news-source-option прямо в .news-admin-panel,
   поэтому скролл должен быть снова на .news-admin-panel.
   ========================================================= */

.content-area.news-page-active .news-admin-panel {
  position: relative !important;

  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;

  max-height: none !important;
  min-height: 220px !important;

  overflow-y: auto !important;
  overflow-x: hidden !important;

  padding: 0 8px 0 12px !important;

  background: rgb(202, 178, 138) !important;
  border: 1px solid rgba(72, 50, 28, 0.32) !important;
  border-radius: 12px !important;

  scrollbar-gutter: stable !important;
}

/* Возвращаем верхнюю липкую маску */
.content-area.news-page-active .news-admin-title {
  position: sticky !important;
  top: 0 !important;
  z-index: 80 !important;

  margin: 0 -8px 0 -12px !important;
  padding: 12px 8px 18px 12px !important;

  background: rgb(202, 178, 138) !important;

  border: none !important;
  box-shadow: none !important;

  color: rgba(34, 24, 14, 0.96) !important;
}

/* Подсказка под заголовком */
.content-area.news-page-active .news-admin-title::after {
  content: none !important;
  display: none !important;
}

/* Старую отдельную подсказку скрываем, чтобы не было дубля */
.content-area.news-page-active .news-admin-hint {
  display: none !important;
}

/* Возвращаем нижнюю липкую маску с кнопкой "Сохранить" */
.content-area.news-page-active .news-admin-save-controls {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 80 !important;

  margin: 0 -8px 0 -12px !important;
  padding: 18px 8px 12px 12px !important;

  background: rgb(202, 178, 138) !important;

  border: none !important;
  box-shadow: none !important;

  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Строки источников снова рассчитаны на прямое нахождение внутри .news-admin-panel */
.content-area.news-page-active .news-admin-panel > .news-source-option {
  position: relative !important;
  z-index: 1 !important;

  flex: 0 0 auto !important;

  background: rgba(225, 200, 160, 0.42) !important;
  border: 1px solid rgba(76, 52, 30, 0.22) !important;
  border-radius: 10px !important;

  color: rgba(36, 25, 15, 0.94) !important;
}

/* Отступы, чтобы источники не липли к маскам */
.content-area.news-page-active .news-admin-title + .news-source-option,
.content-area.news-page-active .news-admin-title + .news-admin-status {
  margin-top: 8px !important;
}

.content-area.news-page-active .news-admin-panel > .news-source-option:last-of-type {
  margin-bottom: 12px !important;
}

/* Кнопка "Сохранить" поверх уходящих элементов */
.content-area.news-page-active .news-admin-save {
  position: relative !important;
  z-index: 90 !important;
}

/* =========================================================
   NEWS SOURCES SAVE BUTTON STATE
   Кнопка "Сохранить":
   - бледная и неактивная, когда изменений нет;
   - активная после выбора/снятия источника.
   ========================================================= */

.content-area.news-page-active .news-admin-save:disabled {
  opacity: 0.42 !important;
  cursor: default !important;
  filter: saturate(0.65) !important;
  box-shadow: none !important;
}

.content-area.news-page-active .news-admin-save:not(:disabled) {
  opacity: 1 !important;
  cursor: pointer !important;
  filter: none !important;
}

/* =========================================================
   NEWS SOURCES PANEL — fixed header/save, scrolling source list
   ========================================================= */

.content-area.news-page-active .news-channels-panel:has(> .news-admin-panel) {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.content-area.news-page-active .news-channels-panel:has(> .news-admin-panel) > :not(.news-admin-panel) {
  flex: 0 0 auto !important;
}

.content-area.news-page-active .news-admin-panel {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
  max-height: none !important;

  overflow: hidden !important;
  overflow-y: hidden !important;
  overflow-x: hidden !important;
}

.content-area.news-page-active .news-admin-title {
  position: relative !important;
  top: auto !important;
  flex: 0 0 auto !important;
}

.content-area.news-page-active .news-admin-panel > .news-create-from-video-btn {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.content-area.news-page-active .news-source-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-gutter: stable !important;

  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;

  padding: 8px 0 12px 0 !important;
}

.content-area.news-page-active .news-source-list > .news-source-option {
  flex: 0 0 auto !important;
}

.content-area.news-page-active .news-source-list > .news-source-option:last-child {
  margin-bottom: 0 !important;
}

.content-area.news-page-active .news-admin-save-controls {
  position: relative !important;
  bottom: auto !important;
  flex: 0 0 auto !important;
}

.content-area.news-page-active .news-source-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(82, 55, 28, 0.42) rgba(218, 195, 155, 0.28);
}

.content-area.news-page-active .news-source-list::-webkit-scrollbar {
  width: 8px;
}

.content-area.news-page-active .news-source-list::-webkit-scrollbar-track {
  background: rgba(218, 195, 155, 0.28) !important;
  border-radius: 999px !important;
}

.content-area.news-page-active .news-source-list::-webkit-scrollbar-thumb {
  background: rgba(82, 55, 28, 0.38) !important;
  border: 2px solid transparent !important;
  border-radius: 999px !important;
  background-clip: padding-box !important;
}

.content-area.news-page-active .news-source-list::-webkit-scrollbar-thumb:hover {
  background: rgba(68, 44, 22, 0.54) !important;
}

/* NEWS PUBLISHED FEED — hidden scrollbar */
.content-area.news-page-active > .media-scroll {
  overflow-y: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.content-area.news-page-active > .media-scroll::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}
