/* =========================================================
   &#127807; LIVE-БОКС (зелёная версия, без тёмной темы)
   ========================================================= */

/* Основной контейнер */
#live-box {
  background: #f4f9f3;
  border: 1px solid #cdddc8;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 10px;
  font-size: 12px;
  color: #2e4a33;
  max-height: 400px;
  overflow-y: auto;
}

/* Сообщения */
.live-message {
  border-bottom: 1px solid #dfe8dc;
  padding: 6px 0;
}

.live-message:last-child {
  border-bottom: none;
}

.live-message .author {
  font-weight: bold;
  color: #2e4a33;
}

.live-message .time {
  float: right;
  font-size: 11px;
  color: #5b7a5d;
}

.live-message .text {
  display: block;
  margin-top: 3px;
  line-height: 1.4;
  color: #334d35;
}

/* Подсветка новых сообщений */
.live-message.new {
  background: #e7f6e7;
  transition: background 1s ease;
}
.live-message.new.fade {
  background: transparent;
}

/* Кнопка обновления/паузы */
#live-refresh {
  display: inline-block;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: filter 0.2s ease, transform 0.1s ease;
}

#live-refresh:hover {
  filter: brightness(0.95);
}

#live-refresh:active {
  transform: scale(0.97);
}

/* Индикатор статуса */
#live-status {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  color: #2e7d32;
}

/* Скроллбар */
#live-box::-webkit-scrollbar {
  width: 8px;
}
#live-box::-webkit-scrollbar-thumb {
  background: #a9d5a9;
  border-radius: 4px;
}
#live-box::-webkit-scrollbar-thumb:hover {
  background: #8bc48b;
}

/* =========================================================
   &#9881;&#65039; АККОРДЕОН НАСТРОЕК LIVE-БОКСА (зелёная версия)
   ========================================================= */

.live-settings-accordion {
  margin: 20px 0;
  border: 1px solid #cdddc8;
  border-radius: 8px;
  background: #f4f9f3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  color: #2e4a33;
  font-size: 12px;
}

.live-settings-accordion[style*="display: inline-block"] {
  display: inline-block !important;
}

/* Заголовок аккордеона */
.live-settings-header {
  padding: 14px 16px;
  background: linear-gradient(135deg, #4CAF50, #45a049); /* &#128154; зелёный градиент */
  color: white;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.2s ease;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.live-settings-header:hover {
  box-shadow: 0 0 6px rgba(72, 160, 79, 0.5);
}

/* Стрелка-иконка */
.live-settings-toggle {
  transition: transform 0.3s ease;
  font-size: 18px;
}

/* Контент аккордеона */
.live-settings-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: #f8fcf7;
}

/* При открытии */
.live-settings-accordion.open .live-settings-content {
  max-height: 640px;
  padding: 20px 16px;
}

.live-settings-accordion.open .live-settings-toggle {
  transform: rotate(90deg);
}

/* Внутренний блок */
.live-settings-inner {
  padding: 0;
}

.live-settings-accordion label {
  display: block;
  margin: 10px 0;
  color: #2e4a33;
}

/* Поля ввода */
.live-settings-accordion input[type="number"] {
  width: 80px;
  margin-left: 8px;
  padding: 4px;
  border: 1px solid #cfd9c6;
  border-radius: 4px;
  background: white;
  color: #2e4a33;
  font-size: 12px;
}

.live-settings-accordion input[type="checkbox"] {
  accent-color: #4CAF50;
}

/* Кнопка сохранения */
.live-settings-accordion .button {
  background: #4CAF50;
  color: white;
  border: 1px solid #cfd9c6;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  width: 100%;
  transition: filter 0.2s ease, transform 0.1s ease;
  font-size: 12px;
}

.live-settings-accordion .button:hover {
  filter: brightness(0.95);
}

.live-settings-accordion .button:active {
  transform: scale(0.98);
}

/* Статус сохранения */
#live-settings-status {
  margin-top: 12px;
  color: #2e7d32;
  text-align: center;
  min-height: 20px;
  font-size: 12px;
}
