.la-launcher {
  position: fixed; z-index: 1200; right: 20px; bottom: 94px;
  width: 88px; height: 94px; padding: 0; border: 0; background: transparent;
  border-radius: 16px; cursor: pointer; touch-action: manipulation;
}
.la-launcher:hover { background: transparent; }
.la-launcher:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.la-launcher[hidden] { display: none; }
.la-robot { position: relative; display: block; width: 100%; aspect-ratio: 1; }
.la-fallback { position: absolute; inset: 0; display: block; pointer-events: none; animation: la-fallback-float 5s ease-in-out infinite; }
.la-head { position: absolute; left: 7.8125%; top: 7.8125%; display: block; width: 84.375%; height: 84.375%; object-fit: contain; pointer-events: none; }
.la-fallback-eyes { position: absolute; left: 41.4%; top: 39.4%; width: 17.2%; height: 12.7%; display: flex; justify-content: space-between; animation: la-fallback-gaze 6s ease-in-out infinite; }
.la-fallback-eye { width: 26.5%; height: 100%; background: #fffafc; border-radius: 999px; transform-origin: center; animation: la-fallback-blink 4.6s linear infinite; }
.la-fallback-smile { position: absolute; left: 43.75%; top: 55.6%; width: 12.5%; height: 4.4%; border-bottom: 2px solid #fffafc; border-radius: 0 0 50% 50%; opacity: 0; animation: la-fallback-smile 12s ease-in-out infinite; }
@keyframes la-fallback-float { 0%,100% { transform: translateY(0) rotate(0) scale(1); } 35% { transform: translateY(-2%) rotate(-3deg) scale(1.018,.988); } 70% { transform: translateY(1%) rotate(3deg) scale(.988,1.015); } }
@keyframes la-fallback-gaze { 0%,100% { transform: rotate(12deg) translate(0,0); } 30% { transform: rotate(12deg) translate(-18%,8%); } 70% { transform: rotate(12deg) translate(18%,-6%); } }
@keyframes la-fallback-blink { 0%,3%,8%,100% { transform: scaleY(1); } 5% { transform: scaleY(.12); } }
@keyframes la-fallback-smile { 0%,18%,44%,100% { opacity: 0; } 24%,38% { opacity: 1; } }
.la-jelly-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; visibility: hidden; }
.la-mascot-ready .la-jelly-canvas { visibility: visible; }
.la-mascot-ready .la-fallback { visibility: hidden; }
.la-launcher::after {
  content: "Нужна помощь?"; position: absolute; bottom: 34px; right: 76px;
  padding: 9px 12px; white-space: nowrap; color: var(--text); background: var(--glass-strong);
  border: 1px solid var(--line); border-radius: 8px; font-size: 12px;
  opacity: 0; pointer-events: none; transition: opacity 150ms;
}
.la-launcher:is(:hover, :focus-visible)::after { opacity: 1; }
.la-modal {
  box-sizing: border-box; width: min(430px, calc(100% - 24px)); max-width: none;
  height: min(760px, calc(var(--la-vh, 100dvh) - 24px)); max-height: none;
  padding: 0; border: 1px solid var(--line); border-radius: 20px;
  margin: auto; color: var(--text); background: var(--shell); overflow: hidden;
  font-family: inherit; font-size: 14px; line-height: 1.5; letter-spacing: 0;
  box-shadow: 0 24px 80px #0007;
}
.la-modal::backdrop { background: #09090d9c; backdrop-filter: blur(5px); }
.la-modal[open] { display: flex; flex-direction: column; }
.la-header { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.la-header .la-robot { width: 43px; flex: 0 0 43px; }
.la-title { flex: 1; min-width: 0; }
.la-title h2 { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 700; }
.la-title small { display: block; color: var(--muted); font-size: 11px; }
.la-icon-button {
  display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px;
  padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--glass-soft);
  color: var(--text); cursor: pointer;
}
.la-icon-button svg, .la-action svg { width: 18px; height: 18px; stroke-width: 1.8; flex-shrink: 0; }
.la-icon-button:disabled { opacity: .45; cursor: default; }
.la-modal button:focus-visible, .la-modal textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.la-conversation { flex: 1; min-height: 0; padding: 18px 14px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.la-message { display: flex; gap: 8px; margin-bottom: 18px; align-items: flex-start; }
.la-message > .la-robot { width: 30px; flex: 0 0 30px; margin-top: 3px; }
.la-message-body { min-width: 0; max-width: 100%; }
.la-message-text {
  margin: 0; padding: 12px 14px; background: var(--glass-soft); border: 1px solid var(--line);
  border-radius: 14px; color: var(--text); font-size: 14px; line-height: 1.6;
  overflow-wrap: anywhere; white-space: pre-wrap;
}
.la-message-user { justify-content: flex-end; padding-left: 26px; }
.la-message-user .la-message-text { background: #e4dbf0; border-color: #e4dbf0; color: #2e273a; }
.la-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.la-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px;
  padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass-soft);
  color: var(--text); font-size: 12px; line-height: 1.4; font-weight: 600; cursor: pointer;
}
.la-action-primary { color: #292332; border-color: #f7f2ff; background: linear-gradient(175deg, #f5f1ff, #c6bed7); box-shadow: inset 0 1px 0 #fff; }
.la-action:disabled { opacity: .45; cursor: default; }
.la-prompts { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 18px 0 0 38px; }
.la-prompts button { justify-content: flex-start; text-align: left; }
.la-prompts[hidden] { display: none; }
.la-status { color: var(--muted); font-size: 12px; margin: 0 0 14px 38px; }
.la-status[hidden] { display: none; }
.la-error { border-color: #a3555b; }
.la-footer { border-top: 1px solid var(--line); background: var(--shell); padding: 10px 14px max(12px, env(safe-area-inset-bottom)); flex-shrink: 0; }
.la-support { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); background: none; border: 0; padding: 0 0 10px; font-size: 12px; cursor: pointer; }
.la-support svg { width: 14px; height: 14px; }
.la-composer { display: flex; align-items: flex-end; gap: 9px; }
.la-input { box-sizing: border-box; flex: 1; min-width: 0; resize: none; min-height: 44px; max-height: 108px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 18px; color: var(--text); background: var(--glass-soft); font: inherit; font-size: 16px; line-height: 1.35; }
.la-input::placeholder { color: var(--muted); }
.la-send { width: 44px; height: 44px; flex-basis: 44px; }
.la-notice { margin: 8px 0 0; font-size: 10px; line-height: 1.4; color: var(--muted); text-align: center; }
body[data-theme="light"] .la-message-user .la-message-text { color: #fff; background: var(--primary-strong); border-color: var(--primary-strong); }
body[data-theme="light"] .la-action-primary { color: #fff; background: linear-gradient(175deg, #835fc0, #57338d); border-color: #997bc6; }
@media (max-width: 360px) { .la-modal { width: calc(100% - 16px); } .la-header { gap: 6px; padding-inline: 10px; } .la-title h2 { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .la-launcher::after { transition: none; } .la-fallback,.la-fallback-eyes,.la-fallback-eye,.la-fallback-smile { animation: none; } .la-fallback-eyes { transform: rotate(12deg); } }
.la-owned-link { overflow-wrap: anywhere; user-select: text; font-size: 12px; }
