/*
Theme Name: Postobot Widget
Theme URI: https://postobot.org
Author: Dmitry Behterev
Author URI: https://postobot.org
Description: Custom widget theme for Postobot
Version: 1.0
*/

/* ===== БАЗА СТРАНИЦЫ ===== */

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* общий фон страницы, вокруг виджета */
  background: #000000;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  overflow-x: hidden;
}

/* ===== ОСНОВНОЙ БЛОК ВИДЖЕТА ===== */
.widget {
  /* Фиксируем ширину по макету */
  width: 1200px;
  
  /* Используем min-height вместо фиксированной height, чтобы контент мог растягивать блок */
  min-height: auto; 
  height: auto; 

  background: #0E0E0F;
  opacity: 1;

  margin: 40px auto 60px;
  border-radius: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);

  /* PADDING: Важно для внутренних отступов */
  padding: 20px 48px 40px; 
  box-sizing: border-box;

  /* FLEX-LAYOUT: Чтобы прижать футер к низу */
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ===== АДАПТИВНОСТЬ (Добавлено) ===== */
@media (max-width: 1240px) {
  .widget {
    width: calc(100% - 32px); /* отступы по краям */
    margin: 20px 16px;
    padding: 20px 20px 40px;
  }
  
  /* Адаптация внутренних карточек */
  .card, 
  .widget__task-area,
  .widget__ready-posts-header,
  .posts-list-sidebar, 
  .posts-filter-control,
  .post-item,
  .post-media-grid.grid,
  .widget__title {
      width: 100% !important; /* Растягиваем на всю ширину */
      padding-left: 0 !important;
      margin-left: 0 !important;
  }
  
  .widget__title, 
  .widget__ready-posts-header,
  .posts-list-sidebar {
      padding-left: 0 !important;
      text-align: center;
      align-items: center;
  }

  .widget__task-area {
      display: flex;
      flex-direction: column;
  }
  
  .task-area__right {
      width: 100% !important;
  }

  .post-media-grid.grid {
      display: flex;
      flex-direction: column;
  }
  
  .post-media__right.card {
      width: 100% !important;
  }
  
  .post-media__left.card {
      width: 100% !important; 
      margin-bottom: 10px;
  }
}

/* лёгкая адаптивность: на узких экранах блок не вылезает за края */
@media (max-width: 1240px) {
  .widget {
    width: calc(100% - 32px); /* отступы слева/справа по 16px */
    height: auto;             /* даём расти по контенту */
    margin: 24px 16px 40px;
  }
}

.widget-inner {
  width: 750px;
  min-height: 100%;

  margin: 0 auto;        /* центрируем по 1200px */
  padding: 0;            /* без лишних отступов сверху */
  position: relative;
  box-sizing: border-box;
}


/* ===== HEADER ===== */

.widget__header {
  /* УБИРАЕМ НИЖНИЙ ОТСТУП - ОН БУДЕТ У ЛИНИИ */
  margin-bottom: 0;
  position: relative;
}

/* контейнер под кнопку справа */
.widget__header-inner {
  display: flex;
  justify-content: flex-end;   /* кнопка справа */
  align-items: center;
  position: relative;
  /* ЕЩЕ БЛИЖЕ К ВЕРХНЕМУ КРАЮ */
  padding-top: 0;
  min-height: 34px; /* высота логотипа */
}

/* ЛОГОТИП — СТАВИМ ПО ЦЕНТРУ */
.widget__brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);  /* идеально по центру */
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget__logo {
  display: block;
  width: 135px;
  height: 34px;
  object-fit: contain;
}

/* КНОПКА СПРАВА */
.widget__action {
  display: flex;
  align-items: center;
}

/* кнопка */
.btn--create {
  min-width: 149px;
  height: 31px;
  background: #FF8717;
  color: #FFFFFF;
  border-radius: 999px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(255, 135, 23, 0.45);
  transition: box-shadow .15s, transform .06s;
}

.btn--create:hover {
  box-shadow: 0 10px 30px rgba(255, 135, 23, 0.6);
}

.btn--create:active {
  transform: translateY(1px);
}

.widget__sep {
  /* Растягиваем линию на всю ширину виджета 1200px */
  width: calc(100% + 96px); /* 48px padding-left + 48px padding-right */
  margin-left: -48px; /* компенсируем левый padding */
  
  /* ЛИНИЯ ПРЯМО ПОД ХЕДЕРОМ БЕЗ ОТСТУПОВ */
  margin-top: 16px; /* небольшой отступ после кнопки/лого */
  margin-bottom: 28px; /* отступ от линии до следующего контента */
  
  height: 1px;
  background: #303030;
  opacity: 1;
  border: none;
}

/* ЕСЛИ НУЖНО ЕЩЕ БЛИЖЕ - УБРАТЬ ВСЕ ОТСТУПЫ СОВСЕМ */
.widget__tight-header .widget__header-inner {
  min-height: auto;
}

.widget__tight-header .widget__sep {
  margin-top: 8px; /* еще меньше отступ */
}

/* Контейнер секции титульника */
.widget__title {
  margin-top: 10px;      /* вместо 141px — нормальный визуальный отступ */
  padding-left: 50px;    /* отступ слева внутри контейнера */
  box-sizing: border-box;
}

/* Сам заголовок */
.widget__title-main {
  width: 543px;

  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 22px;     /* 100% */
  color: #FFFFFF;

  white-space: nowrap;   /* одна строка */
  margin: 0;
  padding: 0;
}

/* СУБТИТУЛ */
.widget__subtitle {
  width: 302px;                      /* из фигмы */
  height: 15px;

  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;                 /* 100% по фигме */
  color: #6F6F6F;

  margin: 5px 0 0 0;                 /* 5px от титула */
  padding: 0;

  white-space: nowrap;               /* чтобы было ровно в одну строку */
}

/* ===== CARD (Общий стиль для всех карточек) - ОБНОВЛЕНИЕ ВЫСОТЫ И ОТСТУПОВ */
.card {
  width: 660px;
  /* margin-top оставляем 37px */
  margin: 37px auto 0;
  
  background: #1C1C1C;
  border-radius: 30px;
  border: 1px solid #323232;
  
  /* УБРАЛИ PADDING И БОКС-САЙЗИНГ, ЧТОБЫ УПРАВЛЯТЬ ВЫСОТОЙ НАПРЯМУЮ */
  /* Задаем минимальную высоту, чтобы вместить контент (31px кнопки) + небольшие отступы */
  min-height: 45px; 
  
  /* Добавляем внутренние отступы, но уже через flex-контейнер */
  display: flex; /* Делаем контейнер гибким */
  align-items: center; /* Центрируем содержимое по вертикали */
  
  /* Устанавливаем горизонтальные отступы согласно макету (31px слева, 24px справа) */
  padding: 0 24px 0 31px; 
  box-sizing: border-box; /* Важно, чтобы border не вылез за 660px */
}

/* ===== PROJECT SELECT MENU (Конкретный блок) - УПРОЩЕННЫЙ РЯД ===== */

.project-select__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Ряд должен занимать всю доступную ширину родителя */
  width: 100%; 
  /* Убираем фиксированную высоту 45px и min-height: 45px, 
     т.к. высота теперь контролируется через min-height и padding родителя .card */
  height: auto;
}

/* ... остальные стили (small-title, icon-ellipse и т.д.) без изменений ... */

/* Заголовок/Лейбл "Выбрать проект" */
.small-title {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  color: #FFFFFF;
}

/* Контейнер кнопок справа */
.project-select__controls {
  display: flex;
  gap: 8px; /* Небольшой отступ между кнопками */
  align-items: center;
}

/* Общий стиль для круглых кнопок с иконками */
.icon-ellipse {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
}

.icon-ellipse:hover {
  opacity: 0.85;
}

.icon-ellipse img {
  width: 16px; /* Предположим стандартный размер иконок */
  height: 16px;
  display: block;
}

/* Цвета для конкретных кнопок */
#projBtn1 {
  background: #FF8717;
}
#projBtn2 {
  background: #39923C;
}
#projBtn3 {
  background: #BA3737;
}
/* ==================================== */
/* ===== UTILITIES (Input, Select, Label, Button) ===== */
/* ==================================== */

/* Обновляем базовый класс для всех карточек, чтобы добавить скругление */
.card {
  /* ... другие стили ... */
  border-radius: 30px; /* Устанавливаем скругление 30px */
}

/* Общий стиль для всех кнопок */
.btn {
  /* Базовый сброс */
  border: none;
  cursor: pointer;
  text-decoration: none;
  /* Общие стили для текста */
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: #FFFFFF;
}

/* Основная оранжевая кнопка "Сгенерировать" */
.btn--primary {
  height: 31px;
  background: #FF8717;
  border-radius: 50px; /* Скругление 50px для кнопки */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 135, 23, 0.45);
  transition: box-shadow .15s, transform .06s;
}

.btn--primary:hover {
  box-shadow: 0 10px 30px rgba(255, 135, 23, 0.6);
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--full {
  width: 100%;
}

/* Стили для лейблов */
.label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  color: #6F6F6F; /* Цвет текста как у подзаголовка */
  display: block;
  margin-bottom: 8px; /* Отступ до инпута/селекта */
}

/* Стили для полей ввода (input, select, textarea) */
.input,
.select,
.textarea {
  width: 100%;
  box-sizing: border-box;
  background: #0E0E0F; /* Фоновый цвет виджета */
  border: 1px solid #323232;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.5; 
  
  /* Убираем стандартные стили браузеров для кастомного оформления */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Стили для всех маленьких инпутов и селектов */
.input,
.select {
  padding: 8px 16px;
  height: 31px; /* Фиксируем высоту как у кнопок */
  border-radius: 20px; 
}

/* Стили для большого текстового поля */
.textarea {
  min-height: 150px;
  resize: vertical;
  padding: 12px 16px; 
  border-radius: 20px; 
}

.input::placeholder,
.textarea::placeholder {
  color: #6F6F6F;
  opacity: 1;
}

/* Стили для селектов с иконкой */
.control-inline {
  position: relative;
  display: flex;
  align-items: center;
}

.control-icon {
  position: absolute;
  left: 10px;
  width: 14px;
  height: 14px;
  z-index: 10;
}

.control-inline .select {
  padding-left: 30px; /* Отступ, чтобы текст не наезжал на иконку */
}

/* ===== TASK / PROMPT CONTAINER (GRID) ===== */

.widget__task-area {
  width: 660px;
  margin: 10px auto 0;

  display: grid;
  /* Левая (Промпт) 427px | Отступ 10px | Правая (Контролы) 223px */
  grid-template-columns: 427px 223px;
  gap: 10px;
}

/* Внутри .widget__task-area карточки занимают ширину своей колонки */
.widget__task-area .card {
  width: 100%;
  margin: 0; /* убираем auto, чтобы не центрировались */
  box-sizing: border-box;
}

/* ===== ЛЕВАЯ КАРТОЧКА: ПРОМПТ ПО ПРОЕКТУ ===== */

.task-area__left {
  display: flex;
  flex-direction: column;
  align-items: stretch;

  padding: 24px 24px 24px 31px;
  min-height: 247px; /* как в макете */
}

/* выбранный проект в левой карточке */
.selected-project__title .project-label {
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: 18px;      /* подгони, если в фигме другое значение */
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Лейбл над textarea — одна строка, без переноса */
label[for="taskTextarea"].label.hidden {
  display: block;

  white-space: nowrap;      /* ← ключевое: запрещаем переносы */

  margin-top: 12px;         /* расстояние от project-label */
  margin-bottom: 10px;      /* ← отступ между лейблом и textarea */

  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  color: #ffffff;
}

/* textarea подгоняем под лейбл */
#taskTextarea {
  width: 100%;
  height: 175px;
  min-height: 175px;

  padding: 10px 12px;
  box-sizing: border-box;

  border-radius: 16px;
  border: 1px solid #333333;
  background: #0E0E0F;
  color: #ffffff;

  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.3;
  resize: none;
}

/* ===== ПРАВАЯ КАРТОЧКА: КОНТРОЛЫ ===== */

.task-area__right {
  width: 223px;        /* по фигме */
  min-height: 206px;
  border-radius: 30px;

  padding: 27px 31px 24px 31px; /* 223 - 2*31 = 161 для инпутов */
  background: #151515;

  display: flex;
  flex-direction: column;
  gap: 18px;
  box-sizing: border-box;
}

/* блоки: "Кол-во постов", "Тип контента", "Сгенерировать" */
.task-area__right .control-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Тексты лейблов: "Кол-во постов:", "Тип контента:" */
.task-area__right .label {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  color: #ffffff;
}

/* Первая строка (Кол-во постов) — сверху, 2-я — с небольшим отступом */
.task-area__right .control-block:nth-child(2) {
  margin-top: 16px;
}

/* Кнопку "Сгенерировать" прижимаем к низу карточки */
.task-area__right .control-block:nth-child(3) {
  margin-top: auto;
  padding-top: 22px;
}

/* Иконка + селект в одну линию */
.task-area__right .control-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-area__right .control-icon {
  width: 16px;
  height: 16px;
}

/* Селекты (Кол-во постов / Тип контента) */
.task-area__right .select {
  width: 161px;
  height: 31px;
  border-radius: 50px;

  padding: 0 16px;
  box-sizing: border-box;

  border: none;
  background: #0E0E0F;
  color: #ffffff;

  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;

  appearance: none; /* убираем системную стрелку */
}

/* Кнопка "Сгенерировать" */
#btnGenerate.btn.btn--primary.btn--full {
  width: 100%;        /* = 223px по карточке */
  height: 31px;
  border-radius: 50px;

  border: none;
  background: #FF8717;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  color: #ffffff;

  padding: 0 24px;
  box-sizing: border-box;
  cursor: pointer;
}

#btnGenerate:hover {
  filter: brightness(1.05);
}

/* ===== DROPDOWN С ПРОЕКТАМИ ПОД КНОПКОЙ projBtn1 ===== */

.widget__project-select {
  position: relative;
}

.project-select__dropdown {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 100%;
  margin-top: 8px;

  padding: 8px;
  border-radius: 999px;

  background: #141414;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);

  display: none;     /* по умолчанию скрыт */
  gap: 8px;
  justify-content: flex-start;
}

.project-select__dropdown.is-open {
  display: flex;
}

.project-option {
  border: none;
  padding: 6px 18px;
  border-radius: 999px;

  background: #262626;
  color: #ffffff;

  font-size: 14px;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.project-option:hover {
  background: #333333;
}

/* Контейнер заголовка блока "Готовые посты по проекту" */
.widget__ready-posts-header {
  padding-left: 50px;     /* как у других заголовков */
  margin-top: 10px;       /* ← ТВОЙ ОТСТУП */
  box-sizing: border-box;
}

/* Заголовок: "Готовые посты по проекту:" */
.widget__ready-posts-title {
  width: 294px;
  height: 27px;

  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 22px;      /* 100% */
  letter-spacing: 0;

  color: #FFFFFF;
  margin: 0;
  white-space: nowrap;    /* одна строка */
}

/* Подзаголовок */
.widget__ready-posts-subtitle {
  width: 298px;
  height: 15px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;
  color: #6F6F6F;
  margin-top: 5px;       /* расстояние от заголовка */
  margin-bottom: 0;
  white-space: nowrap;
}

/* Блок "Поиск определенного поста" */
.posts-filter-control {
  width: 660px;
  height: 45px;

  /* ← вот тут регулируешь расстояние от субтитла вниз */
  margin-top: 20px; /* УВЕЛИЧИВАЕШЬ/УМЕНЬШАЕШЬ ОТСТУП ЗДЕСЬ */


  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 7px 0 16px;
  background: #1C1C1C;
  border: 1px solid #323232;
  border-radius: 30px;
}

/* Текст "Поиск определенного поста" внутри селекта */
.posts-filter-select {
  flex: 1;
  height: 31px; /* чтобы текст сидел по центру по вертикали */
  border: none;
  outline: none;
  background: transparent;

  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;
  color: #6F6F6F;

  padding: 0;
  appearance: none; /* убираем системную стрелку, если что */
}

/* Контейнер для кнопки(кнопок) справа */
.posts-filter-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Кнопка поиска с иконкой (круглая, 31×31, оранжевая) */
.posts-filter-btn {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: none;
  padding: 0;

  background: #FF8717;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

/* ===== СПИСОК ПОСТОВ СЛЕВА ===== */

/* ВЕСЬ ЛЕВЫЙ СТОЛБЕЦ "ГОТОВЫЕ ПОСТЫ" */
.posts-list-sidebar {
  display: flex;
  flex-direction: column;

  /* ← общий отступ слева (как у заголовков) */
  margin-left: 50px;

  /* ширина столбца = ширина пилюли */
  width: 660px;
}

/* контейнер, куда JS рендерит article.post-item */
#postsList {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;              /* расстояние между строками постов */
}

/* ОДНА СТРОКА ПОСТА (пилюля) */
.post-item {
  position: relative;

  width: 660px;
  height: 45px;
  box-sizing: border-box;

  background: #1C1C1C;
  border-radius: 30px;

  display: flex;
  align-items: center;

  /* отступ слева внутри пилюли (под текст),
     с запасом под чекбокс, который торчит наружу */
  padding: 0 18px 0 40px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #FFFFFF;
}

/* активный пост (раскрытый) */
.post-item--active {
  background: #232323;
}

/* ===== ЧЕКБОКС СЛЕВА ОТ ПИЛЮЛИ ===== */

.post-checkbox {
  position: absolute;

  /* ← здесь регулируешь, насколько чекбокс вылезает влево от пилюли */
  left: -38px;

  width: 23px;
  height: 23px;

  border-radius: 9px;
  border: 1px solid #323232;
  background: transparent;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
}

/* состояние checked: белый кружок с галкой */
.post-checkbox:checked {
  background: #ffffff;
  border-color: #ffffff;
}

.post-checkbox:checked::after {
  content: "✓";
  display: block;
  text-align: center;
  line-height: 23px;
  font-size: 14px;
  color: #000000;
}

/* ===== НОМЕР + ТИТУЛЬНИК ===== */

.post-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;                     /* занимает всё пространство между чекбоксом и правой частью */
  overflow: hidden;
}

.post-id {
  color: #FF8717;              /* (09) */
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;
}

.post-text-snippet {
  color: #FFFFFF;              /* текст «Сколько стоит сантехника?» */
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Правая часть: TG/VK/INS/дата */
.post-dates {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;

  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 9px;
  line-height: 9px;
  color: #6F6F6F;
  white-space: nowrap;
  flex-shrink: 0;
 /* ↓ ОСВОБОЖДАЕМ МЕСТО ПОД ИКОНКУ ОТКРЫТИЯ (регулируй число) */
margin-right: 40px; /* ← тут крутить */

}

/* отдельные метки времени соцсетей */
.post-time-tag {
  display: inline-block;
}

/* дата публикации */
.post-date-full {
  display: inline-block;
}

/* блок с точкой-статусом – У САМОГО ПРАВОГО КРАЯ */
.post-meta-icons {
  order: 3;
  margin-left: 8px;
  flex-shrink: 0;
}

.post-status-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* опубликован / запланирован */
.post-status-icon--published {
  background: #42BB34;
}
.post-status-icon--scheduled {
  background: #99510E;
}

/* КНОПКА-ИКОНКА ОТКРЫТИЯ (стрелка) */
.post-toggle {
  order: 2;                 /* стоит рядом с post-dates */
  width: 18px;
  height: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-left: 6px;         /* ← отступ от дат (крутить) */
  cursor: pointer;

  border: none;
  background: transparent;
  padding: 0;

  flex-shrink: 0;
}

.post-toggle img {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

/* если пост активен — переворачиваем иконку */
.post-item--active .post-toggle img {
  transform: rotate(180deg);
}
/* ===== РЕДАКТОР ПОСТА: ПО УМОЛЧАНИЮ СКРЫТ ===== */
.post-editor-container {
  display: none;
}

/* показываем только когда открыт */
.post-editor-container.is-open {
  display: block;
}

/* ===== POST ACTIONS: ВСЕГДА ПОВЕРХ И ВИДНО ===== */
.post-editor-container{
  position: relative;
  z-index: 5; /* общий слой редактора */
}

.post-actions{
  position: relative;
  z-index: 50;            /* ← выше, чем любой card/фон */
  display: flex;
  gap: 12px;
  margin: 14px 0;         /* ← расстояние от постов/контента (можешь менять) */
  width: 100%;
}

/* если где-то родитель режет (overflow:hidden) — это спасает */
.post-editor-container,
.widget-inner,
.widget__content-area,
.grid-posts-editor{
  overflow: visible !important;
}
/* ====== BIG BUTTONS (post-actions) ====== */
.post-actions {
  display: flex;
  gap: 24px;
  margin: 18px 0 16px;
}

/* базовая плитка-кнопка */
.post-action {
  width: 120px;
  height: 120px;
  border-radius: 30px;
  border: 0;
  background: #171717;            /* тёмный фон как на макете */
  cursor: pointer;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  padding: 18px 10px 14px;

  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

/* активная (первая, “Редактирование поста”) */
.post-action--active {
  background: #38291D;
}

/* КРУГ С ИКОНКОЙ */
.post-action__icon {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #FF8717;            /* дефолт – оранжевый круг */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;

  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #FFFFFF;
}

/* ТЕКСТ ПОД ИКОНКОЙ */
.post-action__text {
  width: 98px;

  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 14px;
  text-align: center;
  color: #FFFFFF;
}

/* лёгкий hover */
.post-action:hover {
  filter: brightness(1.03);
}

/* ===== STACK ICONS (VK/TG/INS) — кнопка "Время и сети" ===== */
.post-action__icon--stack {
  position: relative;
  width: 100%;
  height: 34px;
  margin-bottom: 8px;
  background: none;              /* убираем круг */
}

/* отдельный эллипс */
.stack-ico {
  position: absolute;
  top: 0;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* позиции трёх эллипсов */
.stack-ico--vk {
  left: calc(50% - 31px);
  background: #146DB6;
}

.stack-ico--tg {
  left: calc(50% - 15px);
  background: #0095FF;
}

.stack-ico--ins {
  left: calc(50% + 1px);
  background: #A93C9A;
}

/* SVG-иконки внутри — оставляем как есть */
.stack-ico img {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  height: auto;
  pointer-events: none;
}

/* на всякий случай убираем псевдоэлементы */
.post-action__icon--stack::before,
.post-action__icon--stack::after {
  content: none !important;
}

/* ===== ПЕР-КНОПКИ ===== */

/* Aa — использует дефолтный оранжевый круг, ничего не трогаем */

/* “Сгенерить заново” — круг оранжевый, молния синяя */
.post-action__icon--flash {
  background: #1C8BDB;
  color: #FFFFFF;
}

/* “Расширенные настройки” — зелёный круг */
.post-action__icon--gear {
  background: #42BB34;
}

/* “Удалить пост” — красный круг */
.post-action__icon--trash {
  background: #E94242;
}

/* ===== EDIT: оранжевые лейблы ===== */
label.label{
  color: #FF8717 !important;
  display: block;
}

/* "Текст поста:" тоже оранжевым + небольшой отступ сверху */
label.label.post-text-label{
  color: #FF8717 !important;
  margin-top: 6px !important; /* ← тут регулируй */
}

/* "Длина: ..." тоже оранжевым */
label.label.post-text-label .text-length-count,
label.label.post-text-label .post-length{
  color: #FF8717 !important;
}

/* ===== Кнопка "Сохранить" (у тебя btn-save-post) ===== */
button.btn-save-post{
  width: 116px !important;
  height: 31px !important;
  border-radius: 50px !important;
  background: #FF8717 !important;
  border: 0 !important;

  font-family: "Inter", sans-serif !important;
  font-weight: 400 !important;
  font-size: 12px !important;
  line-height: 100% !important;
  letter-spacing: 0% !important;
  color: #FFFFFF !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  box-shadow: none !important;
}


/* =========================
   LEFT MEDIA CARD — EMPTY (Figma)
========================= */

.post-media__left.card{
  width: 225px;
  height: 225px;
  border-radius: 30px;
  background: #1C1C1C;

  position: relative;
  overflow: hidden;
  box-sizing: border-box;

  /* важно: чтобы глобальная .card не ломала */
  display: block;
  padding: 0;
}

/* слой empty занимает всю карточку */
.post-media__left.card .post-media--empty[data-state="empty"]{
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;

  /* чтобы сверху было место как в макете */
  padding-top: 34px;
  text-align: center;
  box-sizing: border-box;
}

/* иконка сверху по центру */
.post-media__left.card .post-media__empty-icon{
  width: 42px;
  height: 42px;

  background: url("img/icon-image.svg") center / contain no-repeat;
  margin: 0 0 14px 0;
}

/* "Щелкните / Перетащите / Вставьте" */
.post-media__left.card .post-media__empty-title{
  width: 190px;
  height: 13px;

  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 11px; /* line-height 100% */
  letter-spacing: 0;
  text-align: center;

  color: #FF8717;
  margin: 0 0 8px 0;
}

/* описание серым */
.post-media__left.card .post-media__empty-sub{
  width: 152px;
  height: 33px;

  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 9px;
  line-height: 9px; /* line-height 100% */
  letter-spacing: 0;
  text-align: center;

  color: #6F6F6F;
  margin: 0;
}

/* нижняя панель: текст + 2 эллипса */
.post-media__left.card .post-media__empty-actions{
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;

  height: 31px;
  display: flex;
  align-items: center;
  gap: 10px;

  box-sizing: border-box;
}

/* "Загрузить файл" — как текст-кнопка */
.post-media__left.card .post-media__btn--file{
  width: 69px;
  height: 11px;

  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;

  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 9px;
  line-height: 9px;
  letter-spacing: 0;

  color: #6F6F6F;
  cursor: pointer;
  white-space: nowrap;
}

/* контейнер кружков */
.post-media__left.card .post-media__empty-circles{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* сами кружки */
.post-media__left.card .post-media__circle{
  width: 31px;
  height: 31px;

  border-radius: 50%;
  border: 0;
  padding: 0;

  display: grid;
  place-items: center;

  cursor: pointer;
}

/* зелёный upload */
.post-media__left.card .post-media__circle--green{
  background: #42BB34;
}

/* синий lightning */
.post-media__left.card .post-media__circle--blue{
  background: #1C8BDB;
}

/* иконки внутри кружков — через background svg */
.post-media__left.card .post-media__circle--green .post-media__ico{
  width: 16px;
  height: 16px;
  background: url("img/prime_upload.svg") center / contain no-repeat;
}

.post-media__left.card .post-media__circle--blue .post-media__ico{
  width: 16px;
  height: 16px;
  background: url("img/molnia.svg") center / contain no-repeat;
}

/* если где-то остались символьные псевдо-иконки — глушим */
.post-media__left.card .post-media__ico::before{
  content: none;
}

/* =========================
   LEFT MEDIA CARD — FILLED (viewer)
========================= */

.post-media__left.card .post-media--filled[data-state="filled"]{
  position: absolute;
  inset: 0;
  border-radius: 30px;
  overflow: hidden;
}

/* viewer занимает всю карточку */
.post-media__left.card .post-media__viewer{
  position: absolute;
  inset: 0;
}

/* картинка должна заполнять контейнер */
.post-media__left.card .post-media__img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;   /* ключевое: чтобы не обрезало криво */
}

/* верхняя плашка "Изображение №1" */
.post-media__left.card .post-media__index{
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;

  background: rgba(0,0,0,0.55);
  color: #fff;

  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 14px;
  font-weight: 400;

  pointer-events: none;
}

/* стрелки */
.post-media__left.card .post-media__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  padding: 0;

  display: grid;
  place-items: center;

  background: #FF8717;
  cursor: pointer;
  z-index: 2;
}

.post-media__left.card .post-media__nav--left{ left: 12px; }
.post-media__left.card .post-media__nav--right{ right: 12px; }

.post-media__left.card .post-media__nav span{
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

/* нижние 4 кнопки */
.post-media__left.card .post-media__actions{
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 2;
}

/* круги (общие) */
.post-media__left.card .post-media__actions .post-media__circle{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* цвета */
.post-media__left.card .post-media__circle--green{ background:#42BB34; }
.post-media__left.card .post-media__circle--blue{ background:#1C8BDB; }
.post-media__left.card .post-media__circle--green2{ background:#42BB34; }
.post-media__left.card .post-media__circle--red{ background:#D64040; }

/* иконки (если файлы есть — будут, если нет — просто пусто) */
.post-media__left.card .post-media__ico{
  width: 14px;
  height: 14px;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* подставь нужные svg если названия отличаются */
.post-media__left.card .post-media__ico--download{ background-image: url("img/prime_upload.svg"); }
.post-media__left.card .post-media__ico--bolt{ background-image: url("img/molnia.svg"); }
.post-media__left.card .post-media__ico--plus{ background-image: url("img/icon-plus.svg"); }
.post-media__left.card .post-media__ico--trash{ background-image: url("img/icon-trash.svg"); }





/* оверлей дропа поверх картинки (когда добавляем) */
.post-media__left.card .post-media__drop-overlay{
  position:absolute;
  inset:0;
  display:none;
  place-items:center;
  text-align:center;
  padding:18px;
  background: rgba(0,0,0,0.55);
  z-index:5;
}

.post-media__left.card .post-media__drop-overlay.is-open{
  display:grid;
}

.post-media__left.card .post-media__drop-box{
  width:100%;
  max-width: 320px;
  border:1px dashed rgba(255,255,255,0.35);
  border-radius:18px;
  padding:16px 14px;
  background: rgba(0,0,0,0.35);
  color:#fff;
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

.post-media__left.card .post-media__drop-hint{
  opacity:0.85;
  margin-top:6px;
  font-size:12px;
}

.post-media__left.card .post-media__uploading-badge{
  position:absolute;
  right:12px;
  top:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(0,0,0,0.55);
  color:#fff;
  font: 12px/12px Inter, sans-serif;
  z-index:6;
  display:none;
}

.post-media__left.card .post-media__uploading-badge.is-show{
  display:block;
}



/* =========================
   RIGHT MEDIA CARD — PROMPT (FIGMA)
========================= */

.post-media__right.card{
  width: 420px;
  height: 225px;
  border-radius: 30px;
  background: #1C1C1C;

  position: relative;
  overflow: hidden;
  box-sizing: border-box;

  /* изоляция от глобального .card */
  display: block;
  padding: 0;
}

/* ===== HEADER: текст + кнопка AI ===== */
.post-media__right-head{
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 24px 24px 0 31px;
  box-sizing: border-box;
}

/* "Промт для изображения поста:" */
.post-media__right-head .label{
  width: 186px;
  height: 15px;

  margin: 0;

  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px; /* 100% */
  letter-spacing: 0;

  color: #6F6F6F;
  white-space: nowrap;
}

/* ===== КНОПКА "Сгенерить AI" ===== */
.post-ai-generate{
  width: 114px;
  height: 31px;
  border-radius: 50px;

  background: transparent;
  border: 1px solid #323232;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 8px 0 12px;
  box-sizing: border-box;
  cursor: pointer;
}

/* текст кнопки */
.post-ai-generate::before{
  content: "Сгенерить AI";
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;
  color: #6F6F6F;
}

/* эллипс справа 31×31 */
.post-ai-generate img{
  width: 31px;
  height: 31px;
  border-radius: 50%;

  background: #1C8BDB;
  padding: 7px;
  box-sizing: border-box;

  content: url("img/molnia.svg");
}

/* ===== TEXTAREA ===== */
.post-image-prompt{
  width: 331px;
  height: 60px;

  margin: 18px 0 0 31px;

  background: transparent;
  border: none;
  outline: none;

  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 0;

  color: #DCDCDC;
  resize: none;
}

/* ===== НИЖНИЕ КНОПКИ ===== */
.post-media__right-actions{
  position: absolute;
  left: 31px;
  bottom: 18px;

  display: flex;
  gap: 11px;
}

/* Кнопка 1 — Сохранить */
.post-media__right-actions .post-image-save{
  width: 116px;
  height: 31px;
  border-radius: 50px;

  background: #FF8717;
  border: none;

  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;

  color: #FFFFFF;
  cursor: pointer;
}

/* Кнопка 2 — Без изображения */
.post-media__right-actions .post-image-none{
  width: 149px;
  height: 31px;
  border-radius: 50px;

  background: #313131;
  border: none;

  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;

  color: #FFFFFF;
  cursor: pointer;
}
/* =====================================
   POST MEDIA GRID — HORIZONTAL LAYOUT
===================================== */

.post-media-grid.grid{
  display: grid;
  grid-template-columns: 225px 420px; /* левая + правая */
  column-gap: 15px;

  align-items: start;
  justify-content: start;

  width: 660px; /* 225 + 420 + 15 */
  margin-top: 1px; /* отступ от кнопки "Сохранить" */
}
/* =====================================
   FIX: REMOVE CARD MARGIN INSIDE MEDIA GRID
===================================== */

.post-media-grid.grid > .card{
  margin: 10px !important;
}

/* =========================
   WIDGET FOOTER
========================= */

/* ===== FOOTER ===== */
.widget__footer {
  margin-top: auto; /* Прижимает футер к низу контейнера widget */
  width: 100%;
  padding-bottom: 0;
}

.widget-footer__line {
  height: 1px;
  background: #303030;
  width: 100%;
  margin-bottom: 20px;
}

.widget-footer__logo {
  display: flex;
  justify-content: center;
}

.widget-footer__logo img{
  height: 24px; /* если в фигме другой — скажи */
  opacity: 0.6; /* аккуратно, не орёт */
}
.widget{
  min-height: 100vh;          /* на всю высоту экрана */
  display: flex;
  flex-direction: column;
}
.widget__footer{
  margin-top: auto;           /* ← КЛЮЧЕВАЯ СТРОКА */
}

/* ===== MODAL WRAPPER ===== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  z-index: 9999;
}

.modal.is-open { display: grid; }
.project-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 9999;
}

.modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 15, 36, 0.72);
  backdrop-filter: blur(10px);
}

/* ===== PANEL ===== */
.modal__panel {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  max-height: min(80vh, 720px);
  overflow: auto;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
}

/* ===== HEADER / BODY / FOOTER ===== */
.modal__header,
.modal__footer {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal__header {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  justify-content: space-between;
}

.modal__header h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  color: #141414;
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal__close:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.modal__body {
  padding: 18px 20px 8px;
}

.modal__footer {
  border-top: 1px solid rgba(0,0,0,0.08);
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ===== FORM ELEMENTS (match your existing .label/.input if they exist) ===== */
.modal .label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(20,20,20,0.82);
}

.modal .input {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  outline: none;
  font-size: 14px;
}

.modal .input:focus {
  border-color: rgba(144, 50, 163, 0.55);
  box-shadow: 0 0 0 4px rgba(144, 50, 163, 0.15);
}

/* textarea support if you add it later */
.modal textarea.input {
  height: auto;
  min-height: 96px;
  resize: vertical;
}

/* ===== FIX: modal inputs text color ===== */
.modal .input,
.modal .select,
.modal .textarea,
.modal input,
.modal textarea,
.modal select {
  color: #141414;           /* текст в полях */
  caret-color: #141414;     /* курсор */
}

/* плейсхолдер в модалке */
.modal .input::placeholder,
.modal .textarea::placeholder,
.modal input::placeholder,
.modal textarea::placeholder {
  color: rgba(20, 20, 20, 0.45);
  opacity: 1;
}

/* Chrome autofill (чтобы не становилось белым/жёлтым и не ломало цвет текста) */
.modal input:-webkit-autofill,
.modal textarea:-webkit-autofill,
.modal select:-webkit-autofill {
  -webkit-text-fill-color: #141414 !important;
  box-shadow: 0 0 0px 1000px #ffffff inset !important;
  transition: background-color 9999s ease-out 0s;
}


/* ===== NETWORKS ===== */
.modal-networks {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.net {
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 12px;
  background: #fafafa;
}

.net__toggle {
  width: 100%;
  justify-content: center;
}

.net__fields {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(0,0,0,0.14);
}

/* ===== BUTTONS (using your palette) ===== */
.modal .btn {
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.modal .btn--primary {
  background: #9032A3;
  color: #fff;
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 10px 24px rgba(144, 50, 163, 0.25);
}

.modal .btn--primary:hover {
  box-shadow: 0 14px 34px rgba(144, 50, 163, 0.32);
}

.modal .btn--ghost {
  background: #fff;
  color: #1b1b1b;
  border-color: rgba(0,0,0,0.14);
}

.modal .btn--ghost:hover {
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* Responsive */
@media (max-width: 420px) {
  .modal { padding: 14px; }
  .modal__panel { border-radius: 14px; }
  .modal__header, .modal__footer, .modal__body { padding-left: 14px; padding-right: 14px; }
}
/* FIX: вернуть скролл (иначе колесо не двигает страницу) */
html, body {
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
}

/* FIX: модалка должна быть поверх всего */
.hidden { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.modal__panel{
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
}


/* ===== WP wrappers reset for this page ===== */
body.postobot-page,
body.postobot-page #page,
body.postobot-page .site,
body.postobot-page .site-content,
body.postobot-page .content-area,
body.postobot-page .site-main,
body.postobot-page .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* если тема добавляет контейнеры типа .container/.wrap */
body.postobot-page .container,
body.postobot-page .wrap {
  max-width: none !important;
  width: 100% !important;
}

/* сам виджет */
body.postobot-page main.widget {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  box-sizing: border-box;
}

/* на всякий случай убираем горизонтальный вынос */
body.postobot-page {
  overflow-x: hidden;
}


/* ===============================
   TIME & NETWORKS (FULL CSS)
   =============================== */

/* Карточка */
.time-net__card{
  width: 660px;
  height: 350px;
  border-radius: 30px;
  background: #1C1C1C;
  padding: 28px 32px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

/* Заголовок слева сверху */
.time-net__title{
  width: 100%;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 100%;
  color: #6F6F6F;
  margin: 0 0 22px 0;
  text-align: left;
}

/* 3 колонки */
.time-net__grid{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

/* Колонка */
.time-net__col{
  position: relative; /* важно для абсолютных чекбоксов */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  user-select: none;
}

/* Чекбокс (реальный, невидимый, кликабельный) */
.time-net__check{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 23px;
  height: 23px;
  opacity: 0;
  z-index: 3;
  cursor: pointer;
  pointer-events: auto;
}

/* Рисованный чекбокс */
.time-net__check-ui{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 23px;
  height: 23px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.45);
  background: transparent;
  box-sizing: border-box;
  z-index: 2;
}

/* выбранная сеть */
.time-net__col.is-selected .time-net__check-ui{
  background: #43C56A;
  border-color: #43C56A;
}

/* эллипс */
.time-net__icon{
  margin-top: 35px; /* чтобы чекбокс был сверху */
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* цвета эллипсов */
.time-net__icon--vk,
.time-net__icon--tg{
  background: #146DB6;
}
.time-net__icon--ins{
  background: #A93C9A;
}

/* svg внутри эллипса */
.time-net__icon img{
  width: 34px;
  height: 34px;
  display: block;
}

/* подпись сети */
.time-net__name{
  margin-top: 14px;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  color: #FFFFFF;
  text-align: center;
}

/* поля дата/время */
.time-net__fields{
  margin-top: 14px;
  width: 100%;
  display: grid;
  gap: 10px;
}

/* input date/time — делаем “как капсулы” */
.time-net__input{
  width: 100%;
  height: 34px;
  border-radius: 999px;
  background: #0F0F0F;
  border: 1px solid rgba(255,255,255,0.12);
  color: #FFFFFF;

  font-family: Inter, sans-serif;
  font-size: 12px;

  padding: 0 14px;
  outline: none;
  box-sizing: border-box;
}

/* индикатор календаря/часов */
.time-net__input::-webkit-calendar-picker-indicator{
  opacity: 0.7;
  cursor: pointer;
}

/* чтобы placeholder-like выглядел аккуратно (в некоторых браузерах) */
.time-net__input:invalid{
  color: rgba(255,255,255,0.65);
}

/* Кнопка сохранить под каждым столбцом */
.time-net__save{
  margin-top: 12px;
  width: 100%;
  height: 34px;
  border-radius: 999px;
}

/* Тускнение остальных при выборе */
.time-net__grid.has-selection .time-net__col{
  opacity: 0.35;
  filter: grayscale(0.15);
}
.time-net__grid.has-selection .time-net__col.is-selected{
  opacity: 1;
  filter: none;
}