/* Axis v0.12.8 — Lucy quality: внутренний скролл чата и устойчивое поле ввода */
.lucy-page {
  min-height: calc(100dvh - 32px);
}
.lucy-page .axis110-chat {
  width: min(100%, 980px);
  max-height: clamp(280px, 36dvh, 430px);
  overflow-y: auto;
  overscroll-behavior: contain;
  align-content: start;
  padding: 14px;
  margin: 10px auto 12px;
  border: 1px solid rgba(112, 96, 255, .24);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(9, 20, 39, .72), rgba(7, 16, 31, .54));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 18px 42px rgba(1, 6, 18, .18);
  scrollbar-width: thin;
  scrollbar-color: rgba(130, 105, 255, .55) rgba(8, 18, 36, .48);
}
.lucy-page .axis110-chat::-webkit-scrollbar {
  width: 8px;
}
.lucy-page .axis110-chat::-webkit-scrollbar-track {
  background: rgba(8, 18, 36, .48);
  border-radius: 999px;
}
.lucy-page .axis110-chat::-webkit-scrollbar-thumb {
  background: rgba(130, 105, 255, .55);
  border-radius: 999px;
}
.lucy-page .axis110-chat .axis-chat-message {
  max-width: min(76%, 680px);
}
.lucy-page .axis110-history {
  margin-top: 8px;
}
.lucy-page > .home-composer {
  width: min(100%, 980px);
  margin-top: 0 !important;
  margin-left: auto;
  margin-right: auto;
}
.lucy-page .axis110-empty-chat {
  margin: 0;
}
@media (min-width: 1080px) {
  .lucy-page .axis110-chat {
    max-height: clamp(300px, 38dvh, 460px);
  }
}
@media (max-width: 720px) {
  .lucy-page {
    min-height: auto;
  }
  .lucy-page .axis110-chat {
    width: 100%;
    max-height: clamp(250px, 34dvh, 330px);
    min-height: 240px;
    padding: 10px;
    margin: 8px 0 10px;
    border-radius: 18px;
  }
  .lucy-page .axis110-chat .axis-chat-message {
    max-width: 90%;
  }
  .lucy-page > .home-composer {
    margin-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
  }
}
@media (max-width: 390px) {
  .lucy-page .axis110-chat {
    max-height: 300px;
  }
}
