/* ОГЭ задание 1 — «Нейрошка»: премиальный чат для подростков */
.neuroege-ai-chat--oge-task1 {
  --ne-ai-neuro-pink: #f472b6;
  --ne-ai-neuro-purple: #a78bfa;
  --ne-ai-neuro-sky: #38bdf8;
  --ne-ai-neuro-mint: #2dd4bf;
  --ne-ai-neuro-glow: rgba(244, 114, 182, 0.45);
  --ne-ai-detective-surface: rgba(22, 20, 34, 0.94);
  --ne-ai-detective-chip: rgba(167, 139, 250, 0.18);
  --ne-ai-detective-chip-hover: rgba(244, 114, 182, 0.28);
  --ne-ai-premium-radius: 1.375rem;
  --ne-ai-premium-radius-sm: 0.875rem;
  --ne-ai-premium-font: "DM Sans", var(--font-body, system-ui, sans-serif);
  --ne-ai-premium-display: "Playfair Display", Georgia, "Times New Roman", serif;
  font-family: var(--ne-ai-premium-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}

[data-theme="light"] .neuroege-ai-chat--oge-task1 {
  --ne-ai-detective-surface: rgba(255, 252, 254, 0.97);
  --ne-ai-detective-chip: rgba(244, 114, 182, 0.1);
  --ne-ai-detective-chip-hover: rgba(167, 139, 250, 0.18);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__panel {
  border-radius: var(--ne-ai-premium-radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(
      168deg,
      rgba(255, 255, 255, 0.07) 0%,
      rgba(255, 255, 255, 0) 38%
    ),
    linear-gradient(
      165deg,
      rgba(36, 32, 52, 0.98) 0%,
      rgba(16, 14, 28, 0.99) 100%
    );
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 -1px 0 rgba(0, 0, 0, 0.35) inset,
    0 0 0 1px rgba(244, 114, 182, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.18),
    0 18px 40px rgba(0, 0, 0, 0.38),
    0 32px 64px rgba(0, 0, 0, 0.22),
    0 0 48px rgba(167, 139, 250, 0.14);
  max-height: min(80vh, 34rem);
}

[data-theme="light"] .neuroege-ai-chat--oge-task1 .neuroege-ai-chat__panel {
  border-color: rgba(244, 114, 182, 0.22);
  background:
    linear-gradient(
      168deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 251, 254, 0.88) 100%
    );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(244, 114, 182, 0.08) inset,
    0 0 0 1px rgba(167, 139, 250, 0.12),
    0 8px 24px rgba(244, 114, 182, 0.12),
    0 24px 48px rgba(29, 29, 31, 0.1);
}

.neuroege-ai-chat--oge-task1.neuroege-ai-chat--floating .neuroege-ai-chat__panel {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 rgba(0, 0, 0, 0.4) inset,
    0 0 0 1px rgba(244, 114, 182, 0.22),
    0 8px 20px rgba(0, 0, 0, 0.28),
    0 28px 56px rgba(0, 0, 0, 0.42),
    0 0 56px rgba(244, 114, 182, 0.1);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__resize-handle:hover::after,
.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__resize-handle--edge-bottom:hover::after {
  background: rgba(244, 114, 182, 0.55);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__resize-handle--corner:hover::after {
  border-color: rgba(244, 114, 182, 0.85);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__head--neuroshka {
  padding: 0.72rem 0.85rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(
      125deg,
      rgba(244, 114, 182, 0.48) 0%,
      rgba(167, 139, 250, 0.42) 45%,
      rgba(56, 189, 248, 0.26) 100%
    );
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  animation: neuroege-ai-head-shimmer 8s ease-in-out infinite;
  cursor: grab;
}

[data-theme="light"] .neuroege-ai-chat--oge-task1 .neuroege-ai-chat__head--neuroshka {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.65) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(
      125deg,
      rgba(244, 114, 182, 0.35) 0%,
      rgba(167, 139, 250, 0.28) 50%,
      rgba(56, 189, 248, 0.18) 100%
    );
  border-bottom-color: rgba(244, 114, 182, 0.2);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__head--neuroshka.neuroege-ai-chat__head--dragging {
  cursor: grabbing;
}

@keyframes neuroege-ai-head-shimmer {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(12deg);
  }
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__head-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__head-avatar {
  position: relative;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__head-icon {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px var(--ne-ai-neuro-glow));
  animation: neuroege-ai-heart-float 3s ease-in-out infinite;
}

@keyframes neuroege-ai-heart-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__head-spark {
  position: absolute;
  font-size: 0.65rem;
  line-height: 1;
  opacity: 0.85;
  pointer-events: none;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__head-spark--1 {
  top: -2px;
  right: -4px;
  animation: neuroege-ai-spark-twinkle 2.2s ease-in-out infinite;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__head-spark--2 {
  bottom: 0;
  left: -6px;
  animation: neuroege-ai-spark-twinkle 2.8s ease-in-out infinite 0.6s;
}

@keyframes neuroege-ai-spark-twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__head-text {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  min-width: 0;
}

.neuroege-ai-chat--oge-task1 #neuroege-ai-chat-title {
  font-family: var(--ne-ai-premium-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .neuroege-ai-chat--oge-task1 #neuroege-ai-chat-title {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__tagline {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.92;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, var(--ne-ai-neuro-pink), var(--ne-ai-neuro-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .neuroege-ai-chat--oge-task1 .neuroege-ai-chat__tagline {
  opacity: 1;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__close {
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  opacity: 0.88;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .neuroege-ai-chat--oge-task1 .neuroege-ai-chat__close {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(244, 114, 182, 0.25);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__clear {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  opacity: 0.88;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__clear:hover {
  opacity: 1;
  background: rgba(244, 114, 182, 0.22);
  border-color: rgba(244, 114, 182, 0.42);
  transform: scale(1.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 4px 12px rgba(244, 114, 182, 0.18);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__clear-icon {
  width: 0.88rem;
  height: 0.88rem;
}

[data-theme="light"] .neuroege-ai-chat--oge-task1 .neuroege-ai-chat__clear {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(244, 114, 182, 0.25);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__mode {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.72;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__skills-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid rgba(244, 114, 182, 0.12);
  background: rgba(167, 139, 250, 0.06);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__skills-title {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
  flex-shrink: 0;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  flex: 1;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__skill {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  border: 1px dashed rgba(167, 139, 250, 0.35);
  background: rgba(255, 255, 255, 0.04);
  opacity: 0.55;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__skill--unlocked {
  opacity: 1;
  border-style: solid;
  border-color: rgba(244, 114, 182, 0.55);
  background: linear-gradient(
    135deg,
    rgba(244, 114, 182, 0.22) 0%,
    rgba(45, 212, 191, 0.18) 100%
  );
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.25);
  animation: neuroege-ai-skill-unlock 0.45s ease;
}

@keyframes neuroege-ai-skill-unlock {
  0% {
    transform: scale(0.85);
  }
  60% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__ladder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  padding: 0.45rem 0.75rem 0.35rem;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__ladder-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.45rem 0.32rem;
  border-radius: var(--ne-ai-premium-radius-sm);
  border: 1px solid rgba(167, 139, 250, 0.32);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__ladder-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  text-align: center;
  line-height: 1.2;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__ladder-title {
  font-size: 0.64rem;
  font-weight: 700;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__ladder-sub {
  font-size: 0.56rem;
  font-weight: 500;
  opacity: 0.72;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__ladder-btn:hover {
  border-color: rgba(244, 114, 182, 0.55);
  background: rgba(244, 114, 182, 0.1);
  transform: translateY(-1px);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__ladder-btn--active {
  border-color: rgba(244, 114, 182, 0.85);
  background: linear-gradient(
    180deg,
    rgba(244, 114, 182, 0.34) 0%,
    rgba(167, 139, 250, 0.22) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 0 18px rgba(244, 114, 182, 0.32),
    0 6px 14px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .neuroege-ai-chat--oge-task1 .neuroege-ai-chat__ladder-btn--active {
  color: #9d174d;
  border-color: rgba(219, 39, 119, 0.45);
  background: linear-gradient(
    180deg,
    rgba(219, 39, 119, 0.18) 0%,
    rgba(192, 132, 252, 0.1) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 0 0 1px rgba(219, 39, 119, 0.2),
    0 4px 10px rgba(219, 39, 119, 0.1);
}

[data-theme="light"]
  .neuroege-ai-chat--oge-task1
  .neuroege-ai-chat__ladder-btn--active
  .neuroege-ai-chat__ladder-sub {
  color: #831843;
  opacity: 0.82;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__ladder-emoji {
  font-size: 1.05rem;
  line-height: 1;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__chips-wrap {
  flex-shrink: 0;
  min-height: 6.25rem;
  padding: 0.35rem 0.75rem 0.55rem;
  overflow: visible;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__chips-label {
  display: block;
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.5;
  margin-bottom: 0.35rem;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__chips {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0.15rem 0 0.35rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 114, 182, 0.34);
  background: var(--ne-ai-detective-chip);
  color: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__chip:hover {
  background: var(--ne-ai-detective-chip-hover);
  border-color: rgba(244, 114, 182, 0.62);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 6px 16px rgba(244, 114, 182, 0.18);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__chip--basics {
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.12);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__chip--basics:hover {
  background: rgba(45, 212, 191, 0.22);
  border-color: rgba(45, 212, 191, 0.65);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__chip:active {
  transform: scale(0.97);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__hint--oge {
  padding: 0.3rem 0.85rem 0.4rem;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.55;
  border-bottom: 1px solid rgba(244, 114, 182, 0.1);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__messages {
  padding: 0.65rem 0.85rem;
  gap: 0.55rem;
  font-size: 0.875rem;
  line-height: 1.5;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 114, 182, 0.65) transparent;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__messages::-webkit-scrollbar {
  width: 7px;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__messages::-webkit-scrollbar-track {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(167, 139, 250, 0.06) 50%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border-radius: 999px;
  margin: 6px 0;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(
    180deg,
    rgba(244, 114, 182, 0.82) 0%,
    rgba(167, 139, 250, 0.92) 55%,
    rgba(56, 189, 248, 0.75) 100%
  );
  box-shadow:
    0 0 0 1px rgba(244, 114, 182, 0.15),
    0 0 10px rgba(244, 114, 182, 0.28);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(251, 113, 182, 0.95) 0%,
    rgba(196, 181, 253, 1) 55%,
    rgba(56, 189, 248, 0.9) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 14px rgba(244, 114, 182, 0.45);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__messages::-webkit-scrollbar-thumb:active {
  background: linear-gradient(
    180deg,
    rgba(244, 114, 182, 1) 0%,
    rgba(167, 139, 250, 1) 100%
  );
}

[data-theme="light"] .neuroege-ai-chat--oge-task1 .neuroege-ai-chat__messages {
  scrollbar-color: rgba(244, 114, 182, 0.75) rgba(244, 114, 182, 0.08);
}

[data-theme="light"] .neuroege-ai-chat--oge-task1 .neuroege-ai-chat__messages::-webkit-scrollbar-track {
  background: linear-gradient(
    180deg,
    rgba(244, 114, 182, 0.04) 0%,
    rgba(167, 139, 250, 0.1) 50%,
    rgba(244, 114, 182, 0.04) 100%
  );
}

[data-theme="light"] .neuroege-ai-chat--oge-task1 .neuroege-ai-chat__messages::-webkit-scrollbar-thumb {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow:
    0 0 0 1px rgba(244, 114, 182, 0.2),
    0 2px 8px rgba(244, 114, 182, 0.25);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__msg {
  border-radius: 1rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__msg--welcome {
  align-self: stretch;
  background: linear-gradient(
    135deg,
    rgba(244, 114, 182, 0.22) 0%,
    rgba(167, 139, 250, 0.18) 55%,
    rgba(56, 189, 248, 0.12) 100%
  );
  border: 1px solid rgba(244, 114, 182, 0.3);
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.86rem;
  line-height: 1.52;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 4px 14px rgba(0, 0, 0, 0.12);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__msg--assistant {
  font-size: 0.86rem;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .neuroege-ai-chat--oge-task1 .neuroege-ai-chat__msg--assistant {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(244, 114, 182, 0.12);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__msg--user {
  background: linear-gradient(
    135deg,
    rgba(244, 114, 182, 0.32) 0%,
    rgba(45, 212, 191, 0.2) 100%
  );
  border: 1px solid rgba(244, 114, 182, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 4px 12px rgba(244, 114, 182, 0.15);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__foot {
  padding: 0.55rem 0.75rem 0.75rem;
  gap: 0.45rem;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.18) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .neuroege-ai-chat--oge-task1 .neuroege-ai-chat__foot {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(244, 114, 182, 0.06) 100%
  );
  border-top-color: rgba(244, 114, 182, 0.1);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__input {
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  padding: 0.55rem 0.7rem;
  font-family: var(--ne-ai-premium-font);
  font-size: 0.875rem;
  line-height: 1.45;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__input:focus {
  border-color: rgba(244, 114, 182, 0.55);
  box-shadow:
    0 0 0 3px rgba(244, 114, 182, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  outline: none;
}

[data-theme="light"] .neuroege-ai-chat--oge-task1 .neuroege-ai-chat__input {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(244, 114, 182, 0.2);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__input--voice-active {
  border-color: rgba(244, 114, 182, 0.72) !important;
  box-shadow:
    0 0 0 3px rgba(244, 114, 182, 0.24),
    0 0 20px rgba(244, 114, 182, 0.18) !important;
  animation: neuroege-ai-voice-input-pulse 1.4s ease-in-out infinite;
}

@keyframes neuroege-ai-voice-input-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(244, 114, 182, 0.2),
      0 0 16px rgba(244, 114, 182, 0.14);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(244, 114, 182, 0.32),
      0 0 24px rgba(244, 114, 182, 0.28);
  }
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__voice {
  border-radius: 0.75rem;
  border: 1px solid rgba(244, 114, 182, 0.32);
  background: rgba(167, 139, 250, 0.12);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__voice:hover:not(:disabled) {
  background: rgba(244, 114, 182, 0.18);
  border-color: rgba(244, 114, 182, 0.5);
  transform: translateY(-1px);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__voice--active {
  background: linear-gradient(
    145deg,
    rgba(244, 114, 182, 0.38) 0%,
    rgba(167, 139, 250, 0.32) 100%
  );
  border-color: rgba(244, 114, 182, 0.75);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 18px rgba(244, 114, 182, 0.45);
  animation: neuroege-ai-voice-btn-pulse 1.1s ease-in-out infinite;
}

@keyframes neuroege-ai-voice-btn-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__voice--active .neuroege-ai-chat__voice-icon {
  animation: neuroege-ai-voice-icon-bounce 0.9s ease-in-out infinite;
}

@keyframes neuroege-ai-voice-icon-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

[data-theme="light"] .neuroege-ai-chat--oge-task1 .neuroege-ai-chat__voice {
  background: rgba(255, 255, 255, 0.88);
  color: #be185d;
  border-color: rgba(244, 114, 182, 0.35);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__voice-viz {
  border-radius: 0.875rem;
  border: 1px solid rgba(244, 114, 182, 0.28);
  background: linear-gradient(
    135deg,
    rgba(244, 114, 182, 0.12) 0%,
    rgba(167, 139, 250, 0.1) 50%,
    rgba(56, 189, 248, 0.08) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 4px 16px rgba(244, 114, 182, 0.12);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__voice-viz--loading {
  border-color: rgba(167, 139, 250, 0.45);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__voice-viz-pulse::before,
.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__voice-viz-pulse::after {
  border-color: rgba(244, 114, 182, 0.55);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__voice-viz-pulse-dot {
  background: linear-gradient(145deg, #f472b6 0%, #a78bfa 100%);
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.55);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__voice-viz-bar {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    #f472b6 35%,
    #a78bfa 70%,
    rgba(56, 189, 248, 0.45) 100%
  );
  box-shadow: 0 0 8px rgba(244, 114, 182, 0.25);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__voice-viz-label {
  font-family: var(--ne-ai-premium-font);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
}

[data-theme="light"] .neuroege-ai-chat--oge-task1 .neuroege-ai-chat__voice-viz {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(244, 114, 182, 0.08) 100%
  );
  border-color: rgba(244, 114, 182, 0.22);
}

[data-theme="light"] .neuroege-ai-chat--oge-task1 .neuroege-ai-chat__voice-viz-label {
  color: #be185d;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__voice-viz-stop {
  border-radius: 0.65rem;
  border: 1px solid rgba(244, 114, 182, 0.35);
  background: rgba(18, 16, 28, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 3px 10px rgba(0, 0, 0, 0.18);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__voice-viz-stop:hover {
  background: rgba(28, 24, 40, 0.92);
  border-color: rgba(244, 114, 182, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 4px 14px rgba(244, 114, 182, 0.22);
}

[data-theme="light"] .neuroege-ai-chat--oge-task1 .neuroege-ai-chat__voice-viz-stop {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(244, 114, 182, 0.35);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__send {
  border-radius: 0.75rem;
  background: linear-gradient(
    145deg,
    #f472b6 0%,
    #a78bfa 55%,
    #38bdf8 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 4px 14px rgba(244, 114, 182, 0.35);
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__send:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 6px 18px rgba(244, 114, 182, 0.42);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__send.neuroege-ai-chat__stop {
  background: rgba(18, 16, 28, 0.72);
  border: 1px solid rgba(244, 114, 182, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 4px 14px rgba(0, 0, 0, 0.22);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__send.neuroege-ai-chat__stop:hover {
  transform: translateY(-1px);
  background: rgba(28, 24, 40, 0.88);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 6px 16px rgba(244, 114, 182, 0.22);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__stop-icon {
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 3px;
  background: linear-gradient(145deg, #fb7185 0%, #f472b6 55%, #ec4899 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 12px rgba(244, 114, 182, 0.55);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__send.neuroege-ai-chat__stop:hover .neuroege-ai-chat__stop-icon {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24),
    0 0 16px rgba(244, 114, 182, 0.72);
}

[data-theme="light"] .neuroege-ai-chat--oge-task1 .neuroege-ai-chat__send.neuroege-ai-chat__stop {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(244, 114, 182, 0.35);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__fab--detective {
  position: relative;
  overflow: visible;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    #f472b6 0%,
    #a78bfa 48%,
    #38bdf8 100%
  );
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 6px 20px rgba(244, 114, 182, 0.45),
    0 12px 32px rgba(0, 0, 0, 0.25);
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__fab-glow {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ne-ai-neuro-glow) 0%, transparent 70%);
  opacity: 0.65;
  animation: neuroege-ai-fab-pulse 2.2s ease-in-out infinite;
  pointer-events: none;
}

.neuroege-ai-chat--oge-task1 .neuroege-ai-chat__fab-icon {
  position: relative;
  font-size: 1.25rem;
  line-height: 1;
}

@keyframes neuroege-ai-fab-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.08);
  }
}

body.libreoffice-page-task9 .neuroege-ai-chat--oge-task1 .neuroege-ai-chat__fab--inline.libreoffice-hf-action-btn--ai-agent {
  background: linear-gradient(
    135deg,
    rgba(244, 114, 182, 0.88) 0%,
    rgba(167, 139, 250, 0.82) 52%,
    rgba(56, 189, 248, 0.78) 100%
  );
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

body.libreoffice-page-task9 .neuroege-ai-chat--oge-task1 .neuroege-ai-chat__fab--inline .neuroege-ai-chat__fab-icon {
  font-size: 1rem;
}

.neuroege-ai-chat-confirm-modal--oge-task1 .neuroege-ai-chat-confirm-modal__dialog {
  border: 1px solid rgba(244, 114, 182, 0.32);
  background: linear-gradient(
    165deg,
    rgba(36, 24, 44, 0.98) 0%,
    rgba(18, 14, 28, 0.98) 55%,
    rgba(12, 18, 36, 0.98) 100%
  );
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 40px rgba(244, 114, 182, 0.14);
}

.neuroege-ai-chat-confirm-modal--oge-task1 .neuroege-ai-chat-confirm-modal__header {
  border-bottom-color: rgba(244, 114, 182, 0.16);
}

.neuroege-ai-chat-confirm-modal--oge-task1 .neuroege-ai-chat-confirm-modal__icon {
  background: linear-gradient(
    145deg,
    rgba(244, 114, 182, 0.28) 0%,
    rgba(167, 139, 250, 0.22) 100%
  );
  border-color: rgba(244, 114, 182, 0.42);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.25),
    0 0 16px rgba(244, 114, 182, 0.18);
}

.neuroege-ai-chat-confirm-modal--oge-task1 .neuroege-ai-chat-confirm-modal__title {
  font-family: var(--ne-ai-premium-font);
}

.neuroege-ai-chat-confirm-modal--oge-task1 .neuroege-ai-chat-confirm-modal__body {
  font-family: var(--ne-ai-premium-font);
  color: rgba(226, 232, 240, 0.92);
}

.neuroege-ai-chat-confirm-modal--oge-task1 .neuroege-ai-chat-confirm-modal__footer {
  background: rgba(0, 0, 0, 0.2);
  border-top-color: rgba(244, 114, 182, 0.12);
}

.neuroege-ai-chat-confirm-modal--oge-task1 .neuroege-ai-chat-confirm-modal__btn {
  border-color: rgba(244, 114, 182, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.neuroege-ai-chat-confirm-modal--oge-task1 .neuroege-ai-chat-confirm-modal__btn:hover {
  background: rgba(244, 114, 182, 0.12);
  border-color: rgba(244, 114, 182, 0.38);
}

.neuroege-ai-chat-confirm-modal--oge-task1 .neuroege-ai-chat-confirm-modal__btn--danger {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(145deg, #f472b6 0%, #a78bfa 55%, #fb7185 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 6px 18px rgba(244, 114, 182, 0.38);
}

.neuroege-ai-chat-confirm-modal--oge-task1 .neuroege-ai-chat-confirm-modal__btn--danger:hover {
  background: linear-gradient(145deg, #f9a8d4 0%, #c4b5fd 55%, #fb7185 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 8px 22px rgba(244, 114, 182, 0.48);
}

[data-theme="light"] .neuroege-ai-chat-confirm-modal--oge-task1 .neuroege-ai-chat-confirm-modal__dialog {
  border-color: rgba(244, 114, 182, 0.28);
  background: linear-gradient(165deg, #ffffff 0%, #fdf2f8 100%);
  box-shadow:
    0 24px 48px rgba(244, 114, 182, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.95) inset;
}

[data-theme="light"] .neuroege-ai-chat-confirm-modal--oge-task1 .neuroege-ai-chat-confirm-modal__body {
  color: #64748b;
}

[data-theme="light"] .neuroege-ai-chat-confirm-modal--oge-task1 .neuroege-ai-chat-confirm-modal__btn {
  background: rgba(255, 255, 255, 0.92);
  color: #be185d;
  border-color: rgba(244, 114, 182, 0.28);
}

/* Главная: внешняя кнопка «Нейрошка» вместо встроенного FAB */
.neuroege-ai-chat--external-fab .neuroege-ai-chat__fab {
  display: none !important;
}

body.neuroege-neuroshka-home-page .neuroege-ai-chat--neuroshka-home.neuroege-ai-chat--floating {
  z-index: 10130;
}

body.variant-exam-body--oge .neuroege-ai-chat--oge-task1.neuroege-ai-chat--floating,
body.variant-exam-body--oge .neuroege-ai-chat--oge-task2.neuroege-ai-chat--floating,
body.variant-exam-body--oge .neuroege-ai-chat--oge-task3.neuroege-ai-chat--floating,
body.variant-exam-body--oge .neuroege-ai-chat--oge-task4.neuroege-ai-chat--floating,
body.variant-exam-body--oge .neuroege-ai-chat--oge-task5.neuroege-ai-chat--floating,
body.variant-exam-body--oge .neuroege-ai-chat--oge-task6.neuroege-ai-chat--floating,
body.variant-exam-body--oge .neuroege-ai-chat--oge-task7.neuroege-ai-chat--floating,
body.variant-exam-body--oge .neuroege-ai-chat--oge-task8.neuroege-ai-chat--floating {
  z-index: 10130;
}

body.variant-exam-body--oge .neuroege-ai-chat--oge-task7 .neuroege-ai-chat__fab--inline.libreoffice-hf-action-btn--ai-agent {
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.88) 0%,
    rgba(99, 102, 241, 0.82) 52%,
    rgba(20, 184, 166, 0.78) 100%
  );
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
