/**
 * AI-тренер чат (.atcm).
 * Оверлей без прозрачи — иначе сквозь dimmer видны светлые border/shadow страницы («рамка»).
 * Без vw у ширины — на Windows 100vw даёт лишний пиксель у скроллбара.
 */

#airo-ai-trainer-chat-root.atcm {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 250000;
  margin: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Тот же приём, что у левой панели курса: не плоский #000, а почти чёрный градиент + лёгкая глубина */
  background-color: #0e0e0e;
  background-image: linear-gradient(155deg, #141414 0%, #0a0a0a 45%, #0e0e0e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -40px 80px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-right: max(12px, env(safe-area-inset-right));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  padding-left: max(12px, env(safe-area-inset-left));
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

#airo-ai-trainer-chat-root.atcm[hidden] {
  display: none !important;
}

/* Мобилка: чуть больше «воздуха» слева/справа (+3% к ширине отступа) */
@media (max-width: 768px) {
  #airo-ai-trainer-chat-root.atcm {
    padding-left: calc(max(12px, env(safe-area-inset-left)) + 3%);
    padding-right: calc(max(12px, env(safe-area-inset-right)) + 3%);
  }
}

/* Оболочка без тяжёлого filter — свечение только тонкой линией на .atcm-panel */
#airo-ai-trainer-chat-root.atcm .atcm-panel-aura {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: min(560px, 100%);
  box-sizing: border-box;
  padding: 0;
  border-radius: 0;
  isolation: isolate;
}

#airo-ai-trainer-chat-root.atcm .atcm-panel-aura .atcm-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: min(460px, 68vh);
  max-height: min(460px, 68vh);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  color: #e8f4f8;
  border: 1px solid rgba(0, 0, 0, 0.88);
  border-top: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  /* База как у body.airo-course-panel-page .left_col — «почти чёрный» рельеф, не плоский */
  background:
    linear-gradient(180deg, rgba(160, 225, 243, 0.1) 0%, rgba(160, 225, 243, 0.03) 10%, transparent 20%),
    linear-gradient(155deg, #1a1a1a 0%, #0c0c0c 40%, #101010 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 1px 0 0 rgba(110, 197, 255, 0.12),
    inset -1px 0 0 rgba(0, 0, 0, 0.45),
    inset 2px 2px 5px rgba(255, 255, 255, 0.04),
    inset -3px -4px 14px rgba(0, 0, 0, 0.88),
    inset 0 -14px 26px rgba(0, 0, 0, 0.65),
    inset 0 -3px 8px rgba(0, 0, 0, 0.45),
    0 18px 44px rgba(0, 0, 0, 0.82),
    0 10px 22px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(0, 0, 0, 0.95),
    /* волосковый контур карточки — тонкая линия + едва уловимое неоновое свечение */
    0 0 0 1px rgba(150, 218, 242, 0.38),
    0 0 6px rgba(160, 225, 243, 0.1),
    0 0 1px rgba(160, 225, 243, 0.55);
}

#airo-ai-trainer-chat-root.atcm .atcm-head {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.55);
  background: linear-gradient(180deg, #252a2e 0%, #181c1f 55%, #121518 100%);
  box-shadow:
    inset 0 1px 0 rgba(160, 225, 243, 0.2),
    inset 0 -10px 18px rgba(0, 0, 0, 0.35),
    inset 0 -1px 0 rgba(160, 225, 243, 0.1);
}

/* Неоновое ребро по верху шапки — видно поверх плитки */
#airo-ai-trainer-chat-root.atcm .atcm-head::before {
  content: '';
  position: absolute;
  left: 2%;
  right: 2%;
  top: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(160, 225, 243, 0) 0%,
    rgba(160, 225, 243, 0.65) 42%,
    rgba(220, 245, 255, 0.45) 50%,
    rgba(160, 225, 243, 0.65) 58%,
    rgba(160, 225, 243, 0) 100%
  );
}

#airo-ai-trainer-chat-root.atcm .atcm-title {
  margin: 0;
  font-family: var(--font-headings, 'neuro', system-ui, sans-serif);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a0e1f3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/*
 * Крестик закрытия.
 * iOS Safari рендерит глиф «×» по бэйслайну шрифта — даже с flex-центрированием
 * он визуально сползает вниз (line-box центрируется, а не сам глиф).
 * Поэтому: текст «×» из кнопки скрываем (font-size: 0, color: transparent),
 * а сам крест рисуем двумя CSS-линиями ::before/::after — это геометрически
 * идеальный центр на любом устройстве (iPhone, Android, Chrome, Firefox, DevTools).
 * Также: appearance: none + border-radius: 0 — острые углы и в айфоне.
 * 3D — градиент сверху-вниз + светлая верхняя кромка + тёмная нижняя.
 */
#airo-ai-trainer-chat-root.atcm .atcm-x {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.85);
  border-radius: 0;
  background: linear-gradient(180deg, #2a3036 0%, #1a1f24 55%, #0f1316 100%);
  color: #a0e1f3;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(160, 225, 243, 0.35),
    inset 1px 0 0 rgba(160, 225, 243, 0.18),
    inset -1px 0 0 rgba(0, 0, 0, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.65),
    inset 0 -6px 12px rgba(0, 0, 0, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(160, 225, 243, 0.3);
  transition: box-shadow 0.15s ease, color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Скрываем родной текстовый глиф «×» от <button> — рисуем крест геометрически */
#airo-ai-trainer-chat-root.atcm .atcm-x {
  color: transparent;
  text-indent: -9999px;
  overflow: hidden;
}

/* Две диагональные линии — идеально по центру независимо от шрифта/ОС */
#airo-ai-trainer-chat-root.atcm .atcm-x::before,
#airo-ai-trainer-chat-root.atcm .atcm-x::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  background: #a0e1f3;
  box-shadow: 0 0 6px rgba(160, 225, 243, 0.55);
  transform-origin: center center;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

#airo-ai-trainer-chat-root.atcm .atcm-x::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

#airo-ai-trainer-chat-root.atcm .atcm-x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#airo-ai-trainer-chat-root.atcm .atcm-x:hover {
  background: linear-gradient(180deg, #324049 0%, #1f2830 55%, #11171b 100%);
  box-shadow:
    inset 0 1px 0 rgba(160, 225, 243, 0.55),
    inset 1px 0 0 rgba(160, 225, 243, 0.28),
    inset -1px 0 0 rgba(0, 0, 0, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.65),
    inset 0 -6px 12px rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(160, 225, 243, 0.55),
    0 0 12px rgba(160, 225, 243, 0.35);
}

#airo-ai-trainer-chat-root.atcm .atcm-x:hover::before,
#airo-ai-trainer-chat-root.atcm .atcm-x:hover::after {
  background: #d8f3ff;
  box-shadow: 0 0 8px rgba(160, 225, 243, 0.85);
}

#airo-ai-trainer-chat-root.atcm .atcm-x:active {
  background: linear-gradient(180deg, #14181c 0%, #1a1f24 55%, #232a30 100%);
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.55),
    inset 0 2px 6px rgba(0, 0, 0, 0.6),
    inset 0 -1px 0 rgba(160, 225, 243, 0.18),
    0 0 0 1px rgba(160, 225, 243, 0.4);
}

/* Сетка как у Instagram-ленты (тонкая диагональная mesh) + неон трека скролла */
#airo-ai-trainer-chat-root.atcm .atcm-log {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px;
  background-color: #101010;
  background-image:
    linear-gradient(155deg, rgba(22, 22, 22, 0.98) 0%, rgba(8, 8, 8, 0.99) 42%, rgba(14, 14, 14, 1) 100%),
    linear-gradient(45deg, rgba(160, 225, 243, 0.055) 25%, transparent 25%, transparent 75%, rgba(160, 225, 243, 0.055) 75%, rgba(160, 225, 243, 0.055)),
    linear-gradient(45deg, rgba(160, 225, 243, 0.045) 25%, transparent 25%, transparent 75%, rgba(160, 225, 243, 0.045) 75%, rgba(160, 225, 243, 0.045));
  background-size:
    auto,
    3px 3px,
    3px 3px;
  background-position:
    0 0,
    0 0,
    1px 1px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 1px 0 0 rgba(110, 197, 255, 0.07),
    inset -1px 0 0 rgba(0, 0, 0, 0.4),
    inset 0 4px 14px rgba(0, 0, 0, 0.55),
    inset 0 -6px 18px rgba(0, 0, 0, 0.42);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/*
 * В Chrome 121+ свойство scrollbar-color на этом же элементе заставляет браузер
 * рисовать нативный «капсульный» ползунок и игнорировать ::-webkit-scrollbar — отсюда скругления.
 * Цвета для Firefox — только в @supports ниже, после блока WebKit.
 */
/* Как .instagram .feed .feed-type в profile-instagram-exe.css: Win95 + сетка и неон трека («Мои публикации») */
/* Квадратные углы у серой полосы со стрелками ▲/ползунок/▼ */
#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar,
#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-track,
#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-track-piece,
#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-track-piece:start,
#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-track-piece:end,
#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-thumb,
#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-thumb:vertical,
#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-thumb:horizontal,
#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-button,
#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-corner,
#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-resizer {
  border-radius: 0 !important;
}

#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

/* Трек в тон карточки (.atcm-panel): тёмный фон + едва заметная cyan-сетка, без «инста»-бирюзы */
#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-track {
  background-color: #141618;
  background-image:
    linear-gradient(
      45deg,
      rgba(110, 197, 255, 0.07) 25%,
      transparent 25%,
      transparent 75%,
      rgba(110, 197, 255, 0.07) 75%,
      rgba(110, 197, 255, 0.07)
    ),
    linear-gradient(
      45deg,
      rgba(110, 197, 255, 0.05) 25%,
      transparent 25%,
      transparent 75%,
      rgba(110, 197, 255, 0.05) 75%,
      rgba(110, 197, 255, 0.05)
    );
  background-size: 2px 2px;
  background-position: 0 0, 1px 1px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 1px 0 0 rgba(110, 197, 255, 0.08),
    inset 0 0 14px rgba(0, 0, 0, 0.55);
}

/* Ползунок как металлическая плитка карточки (тот же 3D-язык, что у бейджей / панели) */
#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-thumb {
  box-shadow:
    inset -1px -1px 0 0 #08090a,
    inset 1px 1px 0 0 rgba(160, 225, 243, 0.2),
    inset -2px -2px 0 0 #15191c,
    inset 2px 2px 0 0 rgba(110, 197, 255, 0.12),
    0 0 10px rgba(160, 225, 243, 0.06);
  width: 16px;
  height: 16px;
  background: linear-gradient(155deg, #2d3439 0%, #1a1e22 42%, #121518 100%);
  z-index: 1;
}

#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-corner {
  background: linear-gradient(155deg, #24292e 0%, #15181c 100%);
}

#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-resizer {
  width: 16px;
  height: 16px;
  background: linear-gradient(155deg, #24292e 0%, #15181c 100%);
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAN0lEQVR4Ae3MgQUAMBRDwU5fFF05lb/CARTBw2Ulof0DxPtcwp3hNuEYnjbcEW4TjuFpwx3h9gMWGgZ2Y/PT2gAAAABJRU5ErkJggg==");
  background-position: bottom right;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

/* Стрелки: те же inset + внешняя глубина, что у ползунка; иконка — голубое свечение (drop-shadow по альфе PNG) */
#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-button {
  display: block;
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  box-shadow:
    inset -1px -1px 0 0 #08090a,
    inset 1px 1px 0 0 rgba(160, 225, 243, 0.22),
    inset -2px -2px 0 0 #15191c,
    inset 2px 2px 0 0 rgba(110, 197, 255, 0.14),
    0 0 10px rgba(160, 225, 243, 0.07),
    0 2px 8px rgba(0, 0, 0, 0.55),
    0 0 1px rgba(160, 225, 243, 0.35);
}

#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-button:active {
  background-position: 2px 2px, 0 0 !important;
  border-top: 1px solid #0d1014;
  border-left: 1px solid #0d1014;
  border-bottom: 1px solid #0d1014;
  border-right: 1px solid #0d1014;
  box-shadow:
    inset 2px 2px 6px rgba(0, 0, 0, 0.55),
    inset -1px -1px 0 0 rgba(160, 225, 243, 0.08),
    0 0 6px rgba(160, 225, 243, 0.12);
  filter: drop-shadow(0 0 2px rgba(160, 225, 243, 0.75));
}

#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-button:horizontal:decrement {
  background-image:
    url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAQAAAD8fJRsAAAAHklEQVQY02NgoBT8xyX8H5fwf1zCpOjAYwceV1EEAAO2D/HsQ4vsAAAAAElFTkSuQmCC"),
    linear-gradient(155deg, #323c44 0%, #252b32 45%, #181e24 100%);
  background-position: center, 0 0;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, 100% 100%;
  filter: drop-shadow(0 0 2px rgba(160, 225, 243, 0.95)) drop-shadow(0 0 5px rgba(120, 200, 255, 0.45));
}

#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-button:horizontal:increment {
  background-image:
    url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAQAAAD8fJRsAAAAHUlEQVQY02NgIB/8xy3xH7fEf9wS/0nUQZqrKAYAK44P8ZRmzLQAAAAASUVORK5CYII="),
    linear-gradient(155deg, #323c44 0%, #252b32 45%, #181e24 100%);
  background-position: center, 0 0;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, 100% 100%;
  filter: drop-shadow(0 0 2px rgba(160, 225, 243, 0.95)) drop-shadow(0 0 5px rgba(120, 200, 255, 0.45));
}

#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-button:vertical:decrement {
  background-image:
    url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAGklEQVR4AWMYxuA/SYphmETFhDX9x4mHGQAAcL4P8dQiMq8AAAAASUVORK5CYII="),
    linear-gradient(155deg, #323c44 0%, #252b32 45%, #181e24 100%);
  background-position: 65% center, 0 0;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, 100% 100%;
  filter: drop-shadow(0 0 2px rgba(160, 225, 243, 0.95)) drop-shadow(0 0 5px rgba(120, 200, 255, 0.45));
}

#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-button:vertical:increment {
  background-image:
    url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAQAAAD8fJRsAAAAF0lEQVQY02NgoBf4jwJxSOHQhcNAOgMAWWAP8Rv2U3UAAAAASUVORK5CYII="),
    linear-gradient(155deg, #323c44 0%, #252b32 45%, #181e24 100%);
  background-position: 65% center, 0 0;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, 100% 100%;
  filter: drop-shadow(0 0 2px rgba(160, 225, 243, 0.95)) drop-shadow(0 0 5px rgba(120, 200, 255, 0.45));
}

#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-button:horizontal:increment:start {
  display: none;
}

#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-button:horizontal:decrement:end {
  display: none;
}

#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-button:vertical:increment:start {
  display: none;
}

#airo-ai-trainer-chat-root.atcm .atcm-log::-webkit-scrollbar-button:vertical:decrement:end {
  display: none;
}

@supports not selector(::-webkit-scrollbar) {
  #airo-ai-trainer-chat-root.atcm .atcm-log {
    scrollbar-width: auto;
    scrollbar-color: #252a2e #141618;
  }
}

/* Сообщение пользователя: колонка справа — 3D-бейдж с аватаром, под ним пузырь */
#airo-ai-trainer-chat-root.atcm .atcm-msg--user {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  max-width: min(92%, 100%);
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

/* Ответ AI: колонка — 3D-бейдж «AI», под ним неоновый текст */
#airo-ai-trainer-chat-root.atcm .atcm-msg--ai {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: min(92%, 100%);
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

#airo-ai-trainer-chat-root.atcm .atcm-ai-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  font-family: var(--font-headings, 'neuro', system-ui, sans-serif);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #c5eef8;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.75);
  border-radius: 2px;
  background: linear-gradient(155deg, #2d3840 0%, #141a1e 45%, #0a0e11 100%);
  box-shadow:
    inset 0 1px 0 rgba(160, 225, 243, 0.45),
    inset 0 -3px 6px rgba(0, 0, 0, 0.55),
    inset 1px 0 0 rgba(160, 225, 243, 0.12),
    inset -1px 0 2px rgba(0, 0, 0, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(160, 225, 243, 0.22);
  text-shadow:
    0 0 10px rgba(160, 225, 243, 0.85),
    0 0 20px rgba(100, 190, 240, 0.35);
}

#airo-ai-trainer-chat-root.atcm .atcm-user-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.75);
  border-radius: 2px;
  background: linear-gradient(155deg, #2d3840 0%, #141a1e 45%, #0a0e11 100%);
  box-shadow:
    inset 0 1px 0 rgba(160, 225, 243, 0.45),
    inset 0 -3px 6px rgba(0, 0, 0, 0.55),
    inset 1px 0 0 rgba(160, 225, 243, 0.12),
    inset -1px 0 2px rgba(0, 0, 0, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(160, 225, 243, 0.22);
}

#airo-ai-trainer-chat-root.atcm .atcm-user-badge-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Одна и та же «табличка 3D» для текста юзера и тренера (AI); quiz-вопрос — отдельно ниже */
#airo-ai-trainer-chat-root.atcm .atcm-msg--ai:not(.atcm-msg--quiz) .atcm-msg-text,
#airo-ai-trainer-chat-root.atcm .atcm-msg--user .atcm-msg-text {
  padding: 9px 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid rgba(120, 210, 245, 0.4);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(30, 55, 68, 0.55) 0%, rgba(8, 14, 18, 0.95) 100%);
  color: #bfefff;
  box-shadow:
    inset 0 1px 0 rgba(160, 225, 243, 0.2),
    inset 0 -8px 16px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(100, 200, 255, 0.12),
    0 0 40px rgba(160, 225, 243, 0.08);
  text-shadow:
    0 0 8px rgba(130, 210, 255, 0.45),
    0 0 20px rgba(160, 225, 243, 0.2);
}

#airo-ai-trainer-chat-root.atcm .atcm-msg-text--pending {
  position: relative;
  min-height: 40px;
  min-width: 100px;
  padding-right: 32px;
}

#airo-ai-trainer-chat-root.atcm .atcm-msg--loading .atcm-spin {
  position: absolute;
  right: 10px;
  top: 50%;
  margin-top: -8px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(160, 225, 243, 0.3);
  border-top-color: #a0e1f3;
  border-radius: 50%;
  animation: atcm-spin 0.8s linear infinite;
}

@keyframes atcm-spin {
  to {
    transform: rotate(360deg);
  }
}

/*
 * Форма ввода. align-items: center — кнопка «Отправить» по высоте меньше textarea,
 * но всегда визуально ровно по центру слева от поля ввода (важно для iOS Safari,
 * где stretch на <button> работает нестабильно — низ кнопки уезжал из-под низа textarea).
 */
#airo-ai-trainer-chat-root.atcm .atcm-session-banner {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  color: #a0e1f3;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
  background: rgba(22, 30, 42, 0.94);
  border-top: 1px solid rgba(0, 0, 0, 0.42);
  border-bottom: 1px solid rgba(0, 0, 0, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(155, 170, 192, 0.1),
    0 1px 0 rgba(0, 0, 0, 0.25);
}

#airo-ai-trainer-chat-root.atcm.atcm--session-complete .atcm-ta:disabled,
#airo-ai-trainer-chat-root.atcm.atcm--session-complete .atcm-go:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#airo-ai-trainer-chat-root.atcm .atcm-form {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, #1a1e22 0%, #121518 100%);
  box-shadow:
    inset 0 1px 0 rgba(160, 225, 243, 0.12),
    inset 0 -8px 16px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.25s ease;
}

#airo-ai-trainer-chat-root.atcm .atcm-form:focus-within {
  box-shadow:
    inset 0 1px 0 rgba(160, 225, 243, 0.14),
    inset 0 0 24px rgba(160, 225, 243, 0.06);
}

/*
 * Поле ввода. iOS Safari по умолчанию скругляет <textarea> и красит фон —
 * убираем appearance + явный border-radius: 0, чтобы и в айфоне углы были острыми.
 */
#airo-ai-trainer-chat-root.atcm .atcm-ta {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  max-height: 80px;
  resize: none;
  overflow-y: auto;
  padding: 8px 10px;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(160, 225, 243, 0.35);
  border-radius: 0;
  background:
    linear-gradient(155deg, #151515 0%, #0a0a0a 48%, #0e0e0e 100%);
  color: #e8f4f8;
  font-family: var(--font-main, 'Montserrat', system-ui, sans-serif);
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 1px 1px 3px rgba(255, 255, 255, 0.03),
    inset 0 2px 10px rgba(0, 0, 0, 0.55),
    inset -2px -2px 8px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: #356892 #a0e1f3;
}

#airo-ai-trainer-chat-root.atcm .atcm-ta::-webkit-scrollbar {
  width: 8px;
}

#airo-ai-trainer-chat-root.atcm .atcm-ta::-webkit-scrollbar-track {
  border-radius: 0;
  background-color: #a0e1f3;
  background-image:
    linear-gradient(45deg, #1e90ff 25%, transparent 25%, transparent 75%, #1e90ff 75%, #1e90ff),
    linear-gradient(45deg, #1e90ff 25%, transparent 25%, transparent 75%, #1e90ff 75%, #1e90ff);
  background-size: 2px 2px;
  background-position: 0 0, 1px 1px;
  box-shadow:
    inset 0 0 10px rgba(160, 225, 243, 0.75),
    inset 0 0 18px rgba(160, 225, 243, 0.4);
}

#airo-ai-trainer-chat-root.atcm .atcm-ta::-webkit-scrollbar-thumb {
  border-radius: 0;
  background: linear-gradient(180deg, #356892 0%, #1a3d54 100%);
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 1px 0 rgba(160, 225, 243, 0.28);
}

#airo-ai-trainer-chat-root.atcm .atcm-ta:focus,
#airo-ai-trainer-chat-root.atcm .atcm-ta:focus-visible {
  border-color: #a0e1f3;
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(160, 225, 243, 0.55),
    0 0 16px rgba(160, 225, 243, 0.35),
    0 0 32px rgba(160, 225, 243, 0.18);
}

/*
 * Кнопка «Отправить» / «Send».
 *   - Фиксированная height: 40px — всегда меньше textarea (min 48px / max 80px),
 *     поэтому через align-items: center на .atcm-form кнопка визуально ровно
 *     по середине поля ввода (одинаковый отступ сверху и снизу). Это надёжнее,
 *     чем растягивание по высоте textarea — на iOS Safari stretch у <button>
 *     срабатывал не всегда, и низ кнопки «убегал».
 *   - inline-flex + align-items: center + justify-content: center центрируют
 *     текст «Отправить»/«Send» по обеим осям внутри кнопки (важно для iOS,
 *     где у <button> другой бэйслайн).
 *   - appearance: none + border-radius: 0 = острые углы и в айфоне.
 *   - 3D: вертикальный градиент + светлая верхняя кромка (inset top) + тёмная
 *     нижняя кромка (inset bottom) + внешняя тень = объёмная плитка.
 */
#airo-ai-trainer-chat-root.atcm .atcm-go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 40px;
  padding: 0 14px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.85);
  border-radius: 0;
  background: linear-gradient(180deg, #2a4f5e 0%, #1b3744 50%, #0e1f28 100%);
  color: #d6f3ff;
  font-family: var(--font-main, 'Montserrat', system-ui, sans-serif);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(160, 225, 243, 0.45), 0 1px 0 rgba(0, 0, 0, 0.65);
  cursor: pointer;
  box-sizing: border-box;
  box-shadow:
    inset 0 1px 0 rgba(160, 225, 243, 0.45),
    inset 1px 0 0 rgba(160, 225, 243, 0.22),
    inset -1px 0 0 rgba(0, 0, 0, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7),
    inset 0 -8px 14px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(160, 225, 243, 0.3);
  transition: box-shadow 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.05s ease;
  -webkit-tap-highlight-color: transparent;
}

#airo-ai-trainer-chat-root.atcm .atcm-go:hover {
  color: #ffffff;
  background: linear-gradient(180deg, #356a7d 0%, #1f4252 50%, #112733 100%);
  box-shadow:
    inset 0 1px 0 rgba(160, 225, 243, 0.7),
    inset 1px 0 0 rgba(160, 225, 243, 0.32),
    inset -1px 0 0 rgba(0, 0, 0, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7),
    inset 0 -8px 14px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(160, 225, 243, 0.6),
    0 0 14px rgba(160, 225, 243, 0.4);
}

/* Нажатая кнопка «утопает»: переворачиваем светлую и тёмную кромки */
#airo-ai-trainer-chat-root.atcm .atcm-go:active {
  background: linear-gradient(180deg, #0e1f28 0%, #1b3744 50%, #2a4f5e 100%);
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.6),
    inset 0 2px 6px rgba(0, 0, 0, 0.65),
    inset 0 -1px 0 rgba(160, 225, 243, 0.25),
    0 0 0 1px rgba(160, 225, 243, 0.45);
}

#airo-ai-trainer-chat-root.atcm .atcm-go:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Quiz-блок: вопрос + варианты (layout; цвета — в конце файла). */
#airo-ai-trainer-chat-root.atcm .atcm-quiz-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: min(92%, 100%);
  margin: 2px 0 10px;
  box-sizing: border-box;
}

#airo-ai-trainer-chat-root.atcm .atcm-msg--quiz {
  width: 100%;
  max-width: 100%;
}

/* Кнопки вариантов ответа: вертикальная колонка под quiz-card. */
#airo-ai-trainer-chat-root.atcm .atcm-quiz-options {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 4px 0 6px;
  list-style: none;
}

#airo-ai-trainer-chat-root.atcm .atcm-msg--ai .atcm-quiz-options--in-msg {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  margin-top: 4px;
}

#airo-ai-trainer-chat-root.atcm .atcm-quiz-block .atcm-quiz-options--in-block {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

#airo-ai-trainer-chat-root.atcm .atcm-quiz-opt {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.85);
  border-radius: 0;
  background: linear-gradient(180deg, #2a4f5e 0%, #1b3744 50%, #0e1f28 100%);
  color: #d6f3ff;
  font-family: var(--font-main, 'Montserrat', system-ui, sans-serif);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: left;
  text-shadow: 0 0 6px rgba(160, 225, 243, 0.4), 0 1px 0 rgba(0, 0, 0, 0.6);
  cursor: pointer;
  box-sizing: border-box;
  box-shadow:
    inset 0 1px 0 rgba(160, 225, 243, 0.45),
    inset 1px 0 0 rgba(160, 225, 243, 0.22),
    inset -1px 0 0 rgba(0, 0, 0, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7),
    inset 0 -8px 14px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(160, 225, 243, 0.3);
  transition: box-shadow 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.05s ease;
  -webkit-tap-highlight-color: transparent;
}

#airo-ai-trainer-chat-root.atcm .atcm-quiz-opt:hover:not(:disabled) {
  color: #ffffff;
  background: linear-gradient(180deg, #356a7d 0%, #1f4252 50%, #112733 100%);
  box-shadow:
    inset 0 1px 0 rgba(160, 225, 243, 0.7),
    inset 1px 0 0 rgba(160, 225, 243, 0.32),
    inset -1px 0 0 rgba(0, 0, 0, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7),
    inset 0 -8px 14px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(160, 225, 243, 0.6),
    0 0 14px rgba(160, 225, 243, 0.4);
}

#airo-ai-trainer-chat-root.atcm .atcm-quiz-opt:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(160, 225, 243, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7),
    inset 0 -8px 14px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(160, 225, 243, 0.85),
    0 0 14px rgba(160, 225, 243, 0.55);
}

#airo-ai-trainer-chat-root.atcm .atcm-quiz-opt:active:not(:disabled) {
  background: linear-gradient(180deg, #0e1f28 0%, #1b3744 50%, #2a4f5e 100%);
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.6),
    inset 0 2px 6px rgba(0, 0, 0, 0.65),
    inset 0 -1px 0 rgba(160, 225, 243, 0.25),
    0 0 0 1px rgba(160, 225, 243, 0.45);
}

/* Курсор для disabled и любых заблокированных групп. */
#airo-ai-trainer-chat-root.atcm .atcm-quiz-opt:disabled,
#airo-ai-trainer-chat-root.atcm .atcm-quiz-options--locked .atcm-quiz-opt {
  cursor: not-allowed;
}

/* «Остальные» — все НЕ выбранные кнопки в залоченной группе глушим до 0.4. */
#airo-ai-trainer-chat-root.atcm .atcm-quiz-options--locked
  .atcm-quiz-opt:not(.atcm-quiz-opt--picked) {
  opacity: 0.4;
  filter: saturate(0.55);
}

/* disabled-кнопки вне группового locked-состояния (например, во время
 * другой обработки) — оставляем приглушёнными как раньше. */
#airo-ai-trainer-chat-root.atcm .atcm-quiz-opt:disabled:not(.atcm-quiz-opt--picked) {
  opacity: 0.55;
  filter: saturate(0.6);
}

/* Press-анимация: scale(0.97) → bounce back. */
@keyframes atcm-quiz-press {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.97); }
  60%  { transform: scale(1.015); }
  100% { transform: scale(1); }
}

#airo-ai-trainer-chat-root.atcm .atcm-quiz-opt--picked {
  animation: atcm-quiz-press 260ms cubic-bezier(0.22, 0.9, 0.32, 1.2);
  opacity: 1;
  filter: none;
}

/* SUCCESS: зелёное свечение #00FF85 + лёгкий glow. */
#airo-ai-trainer-chat-root.atcm .atcm-quiz-opt.atcm-quiz-opt--success {
  color: #2e3338;
  background: linear-gradient(180deg, #2dffac 0%, #00ff85 50%, #00a85a 100%);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    inset 0 -8px 14px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 255, 133, 0.75),
    0 0 18px rgba(0, 255, 133, 0.55);
}

#airo-ai-trainer-chat-root.atcm .atcm-quiz-opt--success .atcm-quiz-opt__letter {
  color: #2e3338;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(46, 51, 56, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(46, 51, 56, 0.12);
  text-shadow: none;
}

#airo-ai-trainer-chat-root.atcm .atcm-quiz-opt--success .atcm-quiz-opt__text {
  color: #2e3338;
}

/* ERROR: оранжево-красное свечение #FF8C00 + очень небольшой shake. */
@keyframes atcm-quiz-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

#airo-ai-trainer-chat-root.atcm .atcm-quiz-opt.atcm-quiz-opt--error {
  color: #ffffff;
  background: linear-gradient(180deg, #ffb15a 0%, #ff8c00 50%, #b85800 100%);
  text-shadow: 0 0 6px rgba(255, 140, 0, 0.8), 0 1px 0 rgba(0, 0, 0, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    inset 0 -8px 14px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 140, 0, 0.75),
    0 0 18px rgba(255, 140, 0, 0.55);
  animation: atcm-quiz-shake 420ms ease-in-out;
}

#airo-ai-trainer-chat-root.atcm .atcm-quiz-opt--error .atcm-quiz-opt__letter {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.85);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.85);
}

/* Уважение к пользовательской настройке reduce-motion. */
@media (prefers-reduced-motion: reduce) {
  #airo-ai-trainer-chat-root.atcm .atcm-quiz-opt--picked,
  #airo-ai-trainer-chat-root.atcm .atcm-quiz-opt--error {
    animation: none;
  }
}

#airo-ai-trainer-chat-root.atcm .atcm-quiz-opt__letter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.85);
  color: #a0e1f3;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.85);
  box-shadow:
    inset 0 0 0 1px rgba(160, 225, 243, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.65);
}

#airo-ai-trainer-chat-root.atcm .atcm-quiz-opt__text {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

/*
 * QUIZ THEME — фиолетово-сиреневый неон.
 * В конце файла, чтобы перебить синие стили .atcm-msg-text и .atcm-quiz-opt.
 */
#airo-ai-trainer-chat-root.atcm .atcm-msg--ai.atcm-msg--quiz .atcm-msg-text.atcm-quiz-card__question {
  padding: 9px 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: #bfefff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(167, 139, 250, 0.88);
  border-radius: 2px;
  background: linear-gradient(
    165deg,
    rgba(68, 44, 102, 0.78) 0%,
    rgba(24, 14, 42, 0.97) 52%,
    rgba(14, 10, 26, 0.98) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(196, 181, 253, 0.32),
    inset 0 -10px 18px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(139, 92, 246, 0.42),
    0 0 18px rgba(139, 92, 246, 0.32),
    0 0 36px rgba(124, 58, 237, 0.2);
}

#airo-ai-trainer-chat-root.atcm .atcm-quiz-block .atcm-quiz-opt {
  color: #dce8ff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(167, 139, 250, 0.78);
  background: linear-gradient(
    180deg,
    rgba(52, 34, 82, 0.94) 0%,
    rgba(18, 10, 32, 0.98) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(196, 181, 253, 0.2),
    inset 0 -8px 14px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(139, 92, 246, 0.32),
    0 0 14px rgba(139, 92, 246, 0.26),
    0 0 28px rgba(124, 58, 237, 0.16);
}

#airo-ai-trainer-chat-root.atcm .atcm-quiz-block .atcm-quiz-opt:hover:not(:disabled) {
  color: #eef3ff;
  border-color: rgba(196, 181, 253, 0.92);
  background: linear-gradient(
    180deg,
    rgba(62, 42, 96, 0.96) 0%,
    rgba(22, 12, 38, 0.99) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(221, 214, 254, 0.28),
    inset 0 -8px 14px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(167, 139, 250, 0.5),
    0 0 18px rgba(139, 92, 246, 0.34),
    0 0 32px rgba(124, 58, 237, 0.22);
}

#airo-ai-trainer-chat-root.atcm .atcm-quiz-block .atcm-quiz-opt:focus-visible {
  outline: none;
  border-color: rgba(196, 181, 253, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(221, 214, 254, 0.28),
    inset 0 -8px 14px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(167, 139, 250, 0.65),
    0 0 20px rgba(139, 92, 246, 0.38),
    0 0 34px rgba(124, 58, 237, 0.24);
}

#airo-ai-trainer-chat-root.atcm .atcm-quiz-block .atcm-quiz-opt__letter {
  color: #e9ddff;
  background: rgba(30, 18, 48, 0.88);
  border: 1px solid rgba(167, 139, 250, 0.55);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.65);
  box-shadow:
    inset 0 0 0 1px rgba(196, 181, 253, 0.22),
    0 0 8px rgba(139, 92, 246, 0.18);
}

#airo-ai-trainer-chat-root.atcm .atcm-quiz-block .atcm-quiz-opt.atcm-quiz-opt--success,
#airo-ai-trainer-chat-root.atcm .atcm-quiz-block .atcm-quiz-opt.atcm-quiz-opt--success .atcm-quiz-opt__text {
  color: #1a2028 !important;
  text-shadow: none !important;
  background: linear-gradient(180deg, #2dffac 0%, #00ff85 50%, #00a85a 100%);
  border-color: rgba(0, 255, 133, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    inset 0 -8px 14px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 255, 133, 0.75),
    0 0 18px rgba(0, 255, 133, 0.55);
}

#airo-ai-trainer-chat-root.atcm .atcm-quiz-block .atcm-quiz-opt.atcm-quiz-opt--success .atcm-quiz-opt__letter {
  color: #1a2028 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(26, 32, 40, 0.28) !important;
  text-shadow: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(26, 32, 40, 0.12) !important;
}

@media (max-width: 480px) {
  #airo-ai-trainer-chat-root.atcm .atcm-quiz-options {
    padding-left: 0;
  }
}

/* Индикатор непрочитанных AI-тренера: квадрат, бирюзовый AIRoWorld, чёрная цифра. */
.atcm-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 3px;
  background: #a0e1f3;
  color: #000;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow:
    0 0 4px rgba(160, 225, 243, 0.7),
    0 0 8px rgba(160, 225, 243, 0.35);
  pointer-events: none;
}

[data-open-airo-ai-chat]:not(a.info-number) > .atcm-unread-badge,
button[data-open-airo-ai-chat] > .atcm-unread-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 4;
}

body.airo-course-online-chat-page .airo-course-online-chat-neon-btn > .atcm-unread-badge {
  top: -8px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  font-size: 10px;
}

.airo-mission-fab > .atcm-unread-badge {
  top: 4px;
  right: 4px;
}

