/* ═══════════════════════════════════════════════════════════════════
   PAGES.CSS — стили конкретных страниц и их уникальных элементов

   Если компонент используется на одной странице — он здесь.
   Если на нескольких — он в components.css.
   ═══════════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════════
   ЭКРАН ВХОДА (AUTH)
   ══════════════════════════════════════════════════════════════════ */

/* ── Затемнённый полноэкранный фон ──────────────────────────────
   position: fixed + inset: 0 — занимает весь экран поверх всего.
   z-index: 1000 — выше любого контента приложения.
   Скрывается через opacity: 0 в auth.js, затем display: none.
── */
#auth-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity .3s; /* плавное исчезновение при входе */
}

/* ── Карточка формы входа ────────────────────────────────────────
   Фиксированная ширина 380px — достаточно для формы.
   На мобильных max-width не нужен, т.к. экран шире 380px.
── */
.auth-card {
  width: 380px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  padding: 36px;
}

/* Логотип и название в шапке карточки */
.auth-logo       { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 6px; }
.auth-icon       { width: 36px; height: 36px; background: var(--accent); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; }
.auth-logo-name  { font-size: 22px; font-weight: 700; color: var(--text); }
.auth-subtitle   { font-size: 13px; color: var(--text3); text-align: center; margin-bottom: 28px; }

/* Поля ввода формы входа — чуть крупнее чем в настройках */
.auth-field  { margin-bottom: 14px; }
.auth-label  { font-size: 12px; font-weight: 500; color: var(--text2); display: block; margin-bottom: 6px; }
.auth-input  {
  width: 100%; padding: 10px 14px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; color: var(--text);
  transition: border-color .15s; outline: none; font-family: var(--font);
}
.auth-input:focus { border-color: var(--accent); }

/* @keyframes shake — анимация тряски при неверном пароле.
   Элемент быстро двигается влево-вправо.
   Вызывается добавлением класса .error на input. */
.auth-input.error { border-color: var(--danger); animation: shake .3s; }
@keyframes shake {
  0%,100% { transform: translateX(0);  }
  20%     { transform: translateX(-6px);}
  40%     { transform: translateX(6px); }
  60%     { transform: translateX(-4px);}
  80%     { transform: translateX(4px); }
}

.auth-error { font-size: 12px; color: var(--danger); margin-top: 6px; display: none; }

/* Кнопка входа — широкая, на всю ширину карточки */
.auth-btn {
  width: 100%; padding: 11px; margin-top: 8px;
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  font-family: var(--font); cursor: pointer; transition: background .12s;
}
.auth-btn:hover { background: var(--accent2); }

/* Подсказка с демо-данными под кнопкой */
.auth-hint      { font-size: 11px; color: var(--text3); text-align: center; margin-top: 14px; }
.auth-hint span { color: var(--accent); font-family: var(--mono); }

/* Обёртка для поля пароля с кнопкой показа/скрытия.
   position: relative — чтобы иконка глаза позиционировалась
   относительно этого контейнера, а не всей страницы. */
.pass-wrap { position: relative; }
.pass-wrap .auth-input { padding-right: 40px; } /* место для иконки */
.pass-eye  {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text3); cursor: pointer; font-size: 16px;
  user-select: none; transition: color .12s;
}
.pass-eye:hover { color: var(--text); }


/* ══════════════════════════════════════════════════════════════════
   МАКЕТ ПРИЛОЖЕНИЯ (shell, sidebar, main)
   ══════════════════════════════════════════════════════════════════ */

/* ── Корневой контейнер ──────────────────────────────────────────
   Скрыт при входе, показывается после авторизации.
   height: 100vh — занимает всю высоту окна браузера.
── */
#app  { display: none; height: 100vh; overflow: hidden; }
.shell { display: flex; height: 100vh; }


/* ── Боковое меню (Sidebar) ──────────────────────────────────────
   flex-shrink: 0 — сайдбар не сжимается когда контент широкий.
   Высота = 100vh, overflow-y: auto — если пунктов много,
   появляется прокрутка только внутри меню.
── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Логотип в верху сайдбара */
.brand      { padding: 20px 16px 16px; border-bottom: 1px solid var(--border); }
.brand-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.brand-icon { width: 28px; height: 28px; background: var(--accent); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: #fff; flex-shrink: 0; }
.brand-name { font-size: 15px; font-weight: 700; color: var(--text); }
.brand-sub  { font-size: 11px; color: var(--text3); padding-left: 37px; } /* отступ = ширина иконки + gap */

/* Навигационное меню */
.nav { padding: 10px 8px; flex: 1; overflow-y: auto; }
.nav-section {
  font-size: 10px; font-weight: 600; color: var(--text3);
  padding: 12px 10px 5px;
  letter-spacing: .1em; text-transform: uppercase;
}

/* Пункт меню.
   position: relative — нужен для ::before (вертикальная полоска активного пункта).
   user-select: none — текст не выделяется при клике.
── */
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: var(--radius);
  cursor: pointer; margin-bottom: 1px;
  font-size: 13px; color: var(--text2);
  transition: all .12s; user-select: none; position: relative;
}
.nav-item:hover  { background: var(--bg3); color: var(--text); }
.nav-item.active { background: var(--bg3); color: var(--accent); font-weight: 500; }

/* Зелёная полоска слева у активного пункта */
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-item i { font-size: 16px; width: 18px; flex-shrink: 0; }

/* Низ сайдбара: пилюля клиники + кнопка выхода */
.sidebar-bottom { padding: 10px 8px 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.clinic-pill {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: var(--radius);
  background: var(--bg3); border: 1px solid var(--border);
  cursor: pointer; transition: all .12s;
}
.clinic-pill:hover { border-color: var(--border2); }
.clinic-dot   { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.clinic-label { font-size: 12px; color: var(--text2); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* text-overflow: ellipsis — длинное название обрезается с «...» */

.logout-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 11px; border-radius: var(--radius);
  background: none; border: none; color: var(--text3);
  font-size: 12px; cursor: pointer; transition: all .12s;
  width: 100%; font-family: var(--font);
}
.logout-btn:hover { background: var(--danger-bg); color: var(--danger); }


/* ── Главная область контента ────────────────────────────────────
   flex: 1 — занимает всё пространство правее сайдбара.
   overflow: hidden — скролл только внутри .content, не снаружи.
── */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* Верхняя панель с заголовком и кнопкой действия */
.topbar {
  height: var(--topbar-h);
  padding: 0 24px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; /* не сжимается — всегда видна */
}
.page-title   { font-size: 15px; font-weight: 600; color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 8px; }

/* Зона контента — единственная прокручиваемая область */
.content { flex: 1; overflow-y: auto; padding: 24px; }

/* Переключение страниц — JS добавляет/убирает .active */
.page        { display: none; }
.page.active { display: block; }


/* ══════════════════════════════════════════════════════════════════
   СТРАНИЦА: СТАТИСТИКА (Dashboard)
   ══════════════════════════════════════════════════════════════════ */

/* ── Сетка карточек статистики (4 колонки) ───────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 18px;
}
.stat-label { font-size: 11px; font-weight: 500; color: var(--text3); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.stat-val   { font-size: 26px; font-weight: 600; color: var(--text); }
.stat-sub   { font-size: 11px; margin-top: 4px; }
.stat-up    { color: var(--accent); } /* зелёный — рост */
.stat-down  { color: var(--warn);   } /* жёлтый — снижение */

/* ── Мини-гистограмма активности ────────────────────────────────
   7 столбцов по дням недели.
   Высота каждого столбца задаётся inline style="height:70%".
   .bar.today — текущий день подсвечивается акцентным цветом.
── */
.mini-bar { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.bar      { flex: 1; background: var(--accent-bg); border-radius: 3px 3px 0 0; min-width: 6px; transition: background .12s; }
.bar:hover, .bar.today { background: var(--accent); }
.bar-days { display: flex; justify-content: space-between; margin-top: 5px; font-size: 10px; color: var(--text3); }

/* ── Лента активности ────────────────────────────────────────────
   Список последних событий с точкой-цветом и временем.
── */
.act-item  { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text2); }
.act-item:last-child { border-bottom: none; }
.act-dot   { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.act-time  { margin-left: auto; color: var(--text3); font-size: 11px; white-space: nowrap; }

/* Пульсирующая точка статуса бота */
.bot-status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }


/* ══════════════════════════════════════════════════════════════════
   СТРАНИЦА: РАСПИСАНИЕ
   ══════════════════════════════════════════════════════════════════ */

/* ── Топ-бар расписания ──────────────────────────────────────────
   Название месяца + статус Google Calendar.
── */
.sched-topbar     { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sched-month-label { font-size: 18px; font-weight: 700; color: var(--text); }

/* ── Полоска дней (Day strip) — как на фото ──────────────────────
   Горизонтальный скроллируемый ряд с кнопками навигации по краям.
   Каждый день — .day-cell с именем, числом и точками-событиями.
── */
.day-strip-wrap  { display: flex; align-items: center; gap: 4px; padding: 10px 8px; overflow: hidden; }
.day-strip       { display: flex; flex: 1; justify-content: space-around; }
.day-strip-arrow { background: none; border: none; color: var(--text3); font-size: 18px; cursor: pointer; padding: 4px 6px; border-radius: var(--radius); transition: all .12s; flex-shrink: 0; }
.day-strip-arrow:hover { background: var(--bg3); color: var(--text); }

.day-cell {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 8px; border-radius: var(--radius-lg);
  cursor: pointer; transition: background .12s; min-width: 44px;
}
.day-cell:hover          { background: var(--bg3); }
.day-cell-selected       { background: var(--bg3); }

.day-cell-name { font-size: 11px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; }

/* Числовой кружок.
   .day-num-today — зелёный круг для текущего дня (как в iOS Calendar).
   box-shadow — лёгкое свечение вокруг зелёного кружка.
── */
.day-cell-num   { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: var(--text2); transition: all .15s; }
.day-num-today  { background: var(--accent); color: #fff; box-shadow: 0 2px 8px var(--accent-bg2); }
.day-num-selected { background: var(--bg4); color: var(--text); }

/* Цветные точки под числом = количество записей в этот день */
.day-cell-dots { display: flex; gap: 3px; height: 6px; align-items: center; }
.day-dot       { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

/* ── Вкладки врачей ──────────────────────────────────────────────
   Горизонтальный ряд кнопок-фильтров.
   .doctor-tab.active — выбранный врач подсвечен зелёным.
   .doctor-tab-dot — цветной кружок с инициалами врача.
── */
.doctor-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.doctor-tab  {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 500;
  border: 1px solid var(--border); background: transparent; color: var(--text2);
  cursor: pointer; transition: all .12s; font-family: var(--font); white-space: nowrap;
}
.doctor-tab:hover  { background: var(--bg3); color: var(--text); }
.doctor-tab.active { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); }
.doctor-tab i      { font-size: 14px; }
.doctor-tab-dot    { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: #fff; flex-shrink: 0; }

/* ── Тайм-лайн (непрерывная временная шкала) ────────────────────
   Ключевое отличие от сетки со слотами:
   каждая запись занимает высоту ПРОПОРЦИОНАЛЬНО своей длительности.
   30-минутная консультация = 54px, 90-минутное лечение = 162px.
   (1.8px на минуту — константа в schedule.js)

   .tl-container — горизонтальный flex с осью времени слева.
   .tl-axis      — вертикальная шкала с метками времени.
   .tl-day-col   — колонка одного дня.
   .tl-appt      — карточка записи внутри колонки.
── */

/* Заголовок тайм-лайна: названия дней */
.tl-header-row { display: flex; border-bottom: 1px solid var(--border); background: var(--bg3); position: sticky; top: 0; z-index: 10; }
.tl-axis-header { width: 56px; flex-shrink: 0; }
.tl-day-header { flex: 1; text-align: center; padding: 10px 6px; font-size: 11px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; border-left: 1px solid var(--border); }
.tl-today-header { color: var(--accent); background: var(--accent-bg); }
.tl-day-num   { font-size: 20px; font-weight: 700; display: block; line-height: 1.1; }
.tl-day-name  { font-size: 10px; }

/* Тело тайм-лайна */
.tl-container { display: flex; position: relative; }
.tl-axis { width: 56px; flex-shrink: 0; position: relative; }
.tl-hour-label { position: absolute; right: 8px; font-size: 10px; color: var(--text3); transform: translateY(-50%); white-space: nowrap; user-select: none; }

/* Колонка дня.
   position: relative — нужен для position: absolute у .tl-appt.
   cursor: crosshair — намекает что можно кликнуть для создания записи.
── */
.tl-day-col   { flex: 1; position: relative; border-left: 1px solid var(--border); min-width: 0; cursor: crosshair; }
.tl-today     { background: var(--accent-bg); }

/* Разделительные линии по часам и получасам */
.tl-grid-line { position: absolute; left: 0; right: 0; height: 1px; background: var(--border); pointer-events: none; }
.tl-half-line { position: absolute; left: 0; right: 0; height: 1px; background: var(--border); opacity: .35; pointer-events: none; }
/* pointer-events: none — линии не перехватывают клики мыши */

/* Карточка записи.
   position: absolute — позиционируется по вычисленному top и height.
   border-left-width: 3px — цветная полоска слева = цвет услуги.
   z-index: 2 — поверх линий сетки.
── */
.tl-appt {
  position: absolute; left: 3px; right: 3px;
  border-radius: 5px; border: 1px solid transparent; border-left-width: 3px;
  padding: 4px 6px; overflow: hidden; cursor: pointer;
  transition: filter .12s; z-index: 2;
}
.tl-appt:hover { filter: brightness(1.1); } /* чуть светлее при наведении */
.tl-appt-name { font-size: 11px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-appt-svc  { font-size: 10px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.tl-appt-time { font-size: 10px; color: var(--text3); margin-top: 2px; font-family: var(--mono); }

/* Google Calendar статус */
.gcal-status       { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius); font-size: 12px; }
.gcal-connected    { background: var(--accent-bg); color: var(--accent); }
.gcal-disconnected { background: var(--bg4); color: var(--text3); }

/* Свободные окна — панель с доступными слотами */
.free-window-item  { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; gap: 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color .12s; }
.free-window-item:hover { border-color: var(--accent); }
.free-window-time  { font-size: 13px; font-weight: 600; color: var(--text); }
.free-window-dur   { font-size: 11px; color: var(--text3); }

/* Мини-карточка услуги в панели расписания */
.svc-mini       { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg3); border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 8px; }
.svc-mini-dot   { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.svc-mini-name  { font-size: 13px; font-weight: 500; color: var(--text); flex: 1; }
.svc-mini-sub   { font-size: 11px; color: var(--text3); }
.svc-mini-price { font-size: 13px; font-weight: 600; color: var(--accent); }


/* ══════════════════════════════════════════════════════════════════
   СТРАНИЦА: КЛИЕНТЫ
   ══════════════════════════════════════════════════════════════════ */

/* Сетка карточек клиентов — 3 колонки */
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.client-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; cursor: pointer; transition: border-color .12s; }
.client-card:hover { border-color: var(--border2); }
.client-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.client-tg   { color: var(--accent); font-size: 11px; margin-bottom: 4px; }
.client-meta { font-size: 11px; color: var(--text3); margin-bottom: 9px; }

/* Тег под карточкой клиента (услуга, статус VIP) */
.client-tag        { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 10px; font-weight: 500; background: var(--bg4); color: var(--text3); margin-right: 4px; margin-bottom: 3px; }
.client-tag.accent { background: var(--accent-bg); color: var(--accent); }


/* ══════════════════════════════════════════════════════════════════
   СТРАНИЦА: УСЛУГИ
   ══════════════════════════════════════════════════════════════════ */

/* Сетка карточек услуг — 2 колонки */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* Карточка услуги */
.service-page-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; transition: border-color .12s; }
.service-page-card:hover { border-color: var(--border2); }
.service-card-top   { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.service-card-name  { font-size: 14px; font-weight: 600; color: var(--text); }
.service-card-price { font-size: 16px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.service-card-price.free { color: var(--teal); } /* бесплатные услуги — бирюзовые */
.service-card-meta  { display: flex; gap: 12px; font-size: 12px; color: var(--text3); }
.service-card-meta span { display: flex; align-items: center; gap: 4px; }
.service-card-desc  { font-size: 12px; color: var(--text2); margin-top: 8px; line-height: 1.5; }
.service-cat-badge  { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 10px; font-weight: 500; margin-top: 8px; background: var(--bg4); color: var(--text3); }

/* Кнопки действий появляются при наведении на карточку.
   opacity: 0 → 1 при :hover на родителе — плавное появление. */
.service-card-footer { display: flex; gap: 6px; margin-top: 12px; opacity: 0; transition: opacity .12s; }
.service-page-card:hover .service-card-footer { opacity: 1; }

/* Карточка «Добавить услугу» со штриховой рамкой */
.add-service-card {
  background: var(--bg3);
  border: 1.5px dashed var(--border2);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; min-height: 160px;
  transition: border-color .15s;
}
.add-service-card:hover { border-color: var(--accent); }
.add-service-inner { text-align: center; color: var(--text3); }
.add-service-inner i    { font-size: 28px; display: block; margin-bottom: 8px; }
.add-service-inner span { font-size: 13px; }


/* ══════════════════════════════════════════════════════════════════
   СТРАНИЦА: ЧАСТЫЕ ВОПРОСЫ (FAQ)
   ══════════════════════════════════════════════════════════════════ */

/* ── Аккордеон ───────────────────────────────────────────────────
   Каждый вопрос — раскрывающийся блок.
   .faq-body { display: none } → .faq-body.open { display: block }
   Переключается через JS: body.classList.toggle('open').

   .faq-chevron — стрелка, поворачивается на 180° при открытии:
   .faq-chevron.open { transform: rotate(180deg) }
   Переход задаётся через transition: transform .2s.
── */
.faq-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 8px; overflow: hidden; transition: border-color .12s; }
.faq-item:hover { border-color: var(--border2); }

.faq-header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.faq-num    { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-bg); color: var(--accent); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.faq-q      { font-size: 13px; font-weight: 500; color: var(--text); flex: 1; }

/* Кнопки редактирования/удаления появляются при наведении */
.faq-actions { display: flex; gap: 6px; opacity: 0; transition: opacity .12s; }
.faq-item:hover .faq-actions { opacity: 1; }
.faq-action-btn { width: 28px; height: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: transparent; color: var(--text3); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .12s; font-size: 14px; }
.faq-action-btn:hover     { background: var(--bg3); color: var(--text); }
.faq-action-btn.del:hover { background: var(--danger-bg); color: var(--danger); border-color: transparent; }

/* Стрелка-шеврон поворачивается при открытии */
.faq-chevron      { font-size: 16px; color: var(--text3); transition: transform .2s; flex-shrink: 0; }
.faq-chevron.open { transform: rotate(180deg); }

/* Тело вопроса (ответ) — скрыто по умолчанию */
.faq-body      { padding: 0 16px 14px 52px; font-size: 13px; color: var(--text2); line-height: 1.6; display: none; }
.faq-body.open { display: block; }
/* padding-left: 52px = ширина .faq-num (24px) + gap (12px) + padding (16px) — выравниваем под текст вопроса */

.faq-cat-badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 10px; font-weight: 500; background: var(--accent-bg); color: var(--accent); margin-bottom: 6px; }


/* ══════════════════════════════════════════════════════════════════
   СТРАНИЦА: AI ЛОГИ
   ══════════════════════════════════════════════════════════════════ */

/* ── Пузыри диалога ──────────────────────────────────────────────
   Структура каждого сообщения:
     .log-item → flex-контейнер
       .log-avatar → круглая иконка (пользователь или бот)
       .log-bubble → «пузырь» с текстом

   .log-user — синий (пользователь)
   .log-ai   — зелёный (AI-бот)
── */
.log-item   { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.log-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.log-user   { background: var(--info-bg);    color: var(--info);   }
.log-ai     { background: var(--accent-bg2); color: var(--accent); }

.log-bubble { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; flex: 1; }
.log-meta   { font-size: 11px; color: var(--text3); margin-bottom: 5px; }
.log-meta .faq-tag { color: var(--accent); margin-left: 4px; }
/* .faq-tag показывает что ответ взят из FAQ, а не сгенерирован GPT */

.log-text   { font-size: 13px; color: var(--text); line-height: 1.55; }

/* Блок с JSON — результат который бот отправил на сервер */
.log-json   { font-family: var(--mono); font-size: 11px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 12px; margin-top: 8px; color: var(--accent); line-height: 1.6; }

/* Панели логов с прокруткой */
.log-list-panel { max-height: 520px; overflow-y: auto; }
.log-chat-panel { max-height: 520px; overflow-y: auto; padding: 14px; }
