/* =========================================================
   MIRIDEA · «Внедрение ИИ» — агент обрабатывает входящие. Только transform/opacity.
   ========================================================= */
.m-ai { position: relative; padding: 20px; border-radius: 12px 28px 12px 28px; background: #fff; box-shadow: 0 34px 80px -44px rgba(24,78,174,.6), 0 0 0 1px var(--line); }
.m-ai::before { content: ""; position: absolute; left: -40px; top: 30%; width: 240px; height: 240px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.22), transparent 70%); }
.m-ai__top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.m-ai__top b { font-weight: 600; }
.m-ai__top i { width: 7px; height: 7px; border-radius: 50%; background: #1f9a52; }
.m-ai__cnt { margin-left: auto; padding: 3px 9px; border-radius: 6px; background: var(--soft); font-size: 11.5px; color: var(--mute); font-variant-numeric: tabular-nums; }
.m-ai__cnt b { color: var(--ink); }
.m-ai__in { margin-top: 14px; padding: 12px 14px; border-radius: 10px 18px 10px 18px; background: var(--soft); transition: opacity .35s, transform .35s; }
.m-ai__in.out { opacity: 0; transform: translateY(-6px); }
.m-ai__src { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 5px; background: #fff; font-size: 11px; font-weight: 700; color: #3b5bdb; }
.m-ai__in p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.m-ai__core { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.m-ai__orb { position: relative; flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #8b5cf6, #3b5bdb); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.m-ai__orb::before, .m-ai__orb::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(139,92,246,.35); animation: m-ai-ring 2.2s ease-out infinite; }
.m-ai__orb::after { animation-delay: 1.1s; }
@keyframes m-ai-ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }
.m-ai__think { flex: 1; margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.m-ai__think li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mute); opacity: .35; transition: opacity .3s, color .3s; }
.m-ai__think li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px #c5ccdb; transition: background .3s, box-shadow .3s;
  background: no-repeat center / 9px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.m-ai__think li.on { opacity: 1; color: var(--ink); }
.m-ai__think li.on::before { background-color: #8b5cf6; box-shadow: none; }
.m-ai__out { display: grid; gap: 6px; }
.m-ai__out span { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px 14px 8px 14px; box-shadow: 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink);
  opacity: 0; transform: translateX(10px); transition: opacity .35s, transform .35s; }
.m-ai__out span.on { opacity: 1; transform: none; }
.m-ai__out span::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #1f9a52 no-repeat center / 11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.m-ai__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.m-ai__stats div { padding: 9px 12px; border-radius: 8px 16px 8px 16px; background: var(--soft); }
.m-ai__stats b { display: block; font-size: 18px; font-weight: 800; color: #8b5cf6; }
.m-ai__stats span { font-size: 11px; color: var(--mute); }
@media (prefers-reduced-motion: reduce) { .m-ai * { transition: none !important; animation: none !important; } }
