/* stylelint-disable */
.iu-header,
.foreign-email-warning-header {
  display: none !important;
}

.iu-user-dropdown__inner {
  right: 24px;
  top: calc(100% - 8px);
  max-height: 80vh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ai-chat-input {
  border-radius: 16px 16px 0 0;
  background-color: #fff;
}

.assistant {
  --assistant-mobile-bottom-offset: 57px;
  box-sizing: border-box;
  position: relative;
  padding: 8px;
  height: 100vh;
  overflow: hidden;
  background-color: #f5f5f5;
}
@media only screen and (max-width: 1230px) {
  .assistant {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: calc(100vh - var(--assistant-mobile-bottom-offset));
    min-height: calc(100vh - var(--assistant-mobile-bottom-offset));
    background-color: #fff;
  }
  @supports (height: 100dvh) {
    .assistant {
      height: calc(100dvh - var(--assistant-mobile-bottom-offset));
      min-height: calc(100dvh - var(--assistant-mobile-bottom-offset));
    }
  }
}
.assistant--mobile-sidebar-open .assistant__backdrop {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.assistant--mobile-sidebar-open .assistant__sidebar {
  transform: translateX(0);
}
@media only screen and (max-width: 1230px) {
  .assistant--agent-picker-open {
    height: 100vh;
    min-height: 100vh;
  }
  @supports (height: 100dvh) {
    .assistant--agent-picker-open {
      height: 100dvh;
      min-height: 100dvh;
    }
  }
}
@media only screen and (max-width: 1230px) {
  .assistant--agent-picker-open .assistant__mobile-header {
    z-index: 10020;
  }
}
.assistant--agent-picker-open .assistant__header-frame {
  left: 0;
  z-index: auto;
  transform: none;
}
.assistant--agent-picker-open .chat-header__picker {
  position: relative;
  z-index: 16;
}
.assistant--agent-picker-open .assistant__backdrop {
  position: fixed;
  z-index: 15;
  display: block;
  visibility: visible;
  opacity: 1;
  border: 0;
  background-color: rgba(31, 31, 31, 0.3);
  pointer-events: auto;
  backdrop-filter: blur(2px);
  inset: 0;
}
@media only screen and (max-width: 768px) {
  .assistant--agent-picker-open .assistant__backdrop {
    z-index: 10000;
  }
}
.assistant__mobile-header {
  display: none;
}
@media only screen and (max-width: 1230px) {
  .assistant__mobile-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: block;
  }
  body:has(.iu-mobile-popup.open) .assistant__mobile-header {
    z-index: 1;
  }
}
.assistant__backdrop {
  display: none;
}
@media only screen and (max-width: 1230px) {
  .assistant__backdrop {
    position: fixed;
    z-index: 10000;
    display: block;
    visibility: hidden;
    opacity: 0;
    border: 0;
    background-color: rgba(31, 31, 31, 0.32);
    transition: opacity 180ms ease, visibility 180ms ease;
    pointer-events: none;
    inset: 0;
  }
  .assistant__backdrop[hidden] {
    display: block;
  }
}
.assistant__layout {
  display: flex;
  height: 100%;
  gap: 0;
}
@media only screen and (max-width: 1230px) {
  .assistant__layout {
    flex: 1;
    min-height: 0;
  }
}
.assistant__sidebar {
  flex: 0 0 300px;
  width: 100%;
  min-width: 48px;
  max-width: 300px;
  overflow: hidden;
  transition: max-width 0.2s ease, flex-basis 0.2s ease;
}
@media only screen and (max-width: 1230px) {
  .assistant__sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 10001;
    height: 100vh;
    background-color: #f5f5f5;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }
  .assistant--sidebar-collapsed .assistant__sidebar {
    flex-basis: 0;
    max-width: none;
  }
  @supports (height: 100dvh) {
    .assistant__sidebar {
      height: 100dvh;
    }
  }
}
@media only screen and (max-width: 768px) {
  .assistant__sidebar {
    max-width: 100%;
  }
}
.assistant--sidebar-collapsed .assistant__sidebar {
  flex-basis: 64px;
  max-width: 64px;
}
.assistant__chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 24px;
  background-color: #fff;
}
@media only screen and (max-width: 1230px) {
  .assistant__chat {
    height: auto;
    border-radius: 0;
  }
}
.assistant__chat-content {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
  min-height: 0;
  overflow: hidden;
}
@media only screen and (max-width: 1230px) {
  .assistant__chat-content {
    padding: 0;
  }
}
.assistant__chat-content-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}
@media only screen and (max-width: 1230px) {
  .assistant__chat-content-inner {
    padding: 16px 12px 24px;
    gap: 24px;
  }
}
.assistant__chat-content-inner--new-chat {
  align-items: center;
  justify-content: center;
  padding: 96px 0;
  overflow-y: auto;
  gap: 32px;
}
@media only screen and (max-width: 1230px) {
  .assistant__chat-content-inner--new-chat {
    padding: 32px 12px 24px;
    gap: 32px;
  }
}
.assistant__chat-content-inner--new-chat .assistant__chat-frame {
  flex: 0 0 auto;
  padding-top: 0;
  max-width: 760px;
  overflow: visible;
}
.assistant__chat-content-inner--new-chat .assistant__chat-frame--assistant-widget {
  max-width: 100%;
}
.assistant__chat-content-inner--new-chat .assistant__input-frame {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  transform: none;
}
.assistant__chat-frame {
  --chat-messages-top-offset: 76px;
  --chat-messages-bottom-offset: 170px;
  --chat-latest-user-message-anchor-ratio: 0.1;
  flex: 1;
  padding-top: var(--chat-messages-top-offset);
  width: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-anchor: none;
  scrollbar-gutter: stable both-edges;
}
@media only screen and (max-width: 1230px) {
  .assistant__chat-frame {
    --chat-messages-top-offset: 0px;
  }
}
@media only screen and (max-width: 768px) {
  .assistant__chat-frame {
    --chat-messages-bottom-offset: 163px;
  }
}
.assistant__input-frame {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 1;
  width: calc(100% - 48px);
  max-width: 760px;
  border-radius: 16px 16px 0 0;
  background-color: transparent;
  transform: translateX(-50%);
}
@media only screen and (max-width: 992px) {
  .assistant__input-frame {
    width: calc(100% - 24px);
    max-width: 100%;
  }
}
.assistant__header-frame {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  width: 100%;
  transform: translateX(-50%);
}
@media only screen and (max-width: 1230px) {
  .assistant__header-frame {
    display: none;
  }
}

@keyframes assistant-chat-frame-spin {
  to {
    transform: rotate(360deg);
  }
}
.sidebar {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 12px;
  height: 100%;
  min-height: 0;
  gap: 24px;
}
.assistant--sidebar-collapsed .sidebar {
  align-items: center;
}
.sidebar__logo-expand-icon, .sidebar__toggle-icon, .sidebar__menu-icon, .sidebar__footer-action-icon, .sidebar__mobile-close-icon {
  display: inline-flex;
  flex-shrink: 0;
}
.sidebar__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  gap: 24px;
}
.sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  min-height: 28px;
  gap: 12px;
}
.assistant--sidebar-collapsed .sidebar__header {
  justify-content: center;
  padding: 0;
  width: 100%;
}
.sidebar__logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.assistant--sidebar-collapsed .sidebar__logo-wrap {
  justify-content: center;
  width: 20px;
}
.sidebar__logo {
  display: inline-flex;
  align-items: center;
}
.sidebar__logo img {
  display: block;
  height: auto;
}
.sidebar__logo--compact {
  display: none;
  width: 20px;
  height: 20px;
}
.assistant--sidebar-collapsed .sidebar__logo--compact {
  display: inline-flex;
}
.assistant--sidebar-collapsed .sidebar__logo--full {
  display: none;
}
.sidebar__toggle {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  min-width: 32px;
  min-height: 32px;
  border: none;
  border-radius: 6px;
  color: #1f1f1f;
  background-color: transparent;
  transition: background-color 150ms ease, color 150ms ease;
  cursor: pointer;
}
@media only screen and (max-width: 768px) {
  .sidebar__toggle {
    display: none;
  }
}
.sidebar__toggle:hover {
  background-color: #fff;
}
.assistant--sidebar-collapsed .sidebar__toggle {
  display: none;
}
.sidebar__mobile-close {
  display: none;
}
@media only screen and (max-width: 768px) {
  .sidebar__mobile-close {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    min-height: 40px;
    border: none;
    color: #1f1f1f;
    background-color: transparent;
    transition: background-color 150ms ease;
    cursor: pointer;
  }
  .sidebar__mobile-close:hover {
    background-color: #fff;
  }
}
.sidebar__logo-expand {
  position: absolute;
  left: 50%;
  top: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  padding: 4px 6px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  color: #1f1f1f;
  background-color: #f5f5f5;
  transform: translate(-50%, -50%);
  transition: opacity 150ms ease;
  cursor: pointer;
  pointer-events: none;
}
.assistant--sidebar-collapsed .sidebar__logo-expand {
  display: inline-flex;
}
.assistant--sidebar-collapsed .sidebar:hover .sidebar__logo-expand {
  opacity: 1;
  pointer-events: auto;
}
.sidebar__menu {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 2px;
}
.assistant--sidebar-collapsed .sidebar__menu {
  align-items: center;
}
.sidebar__menu-link {
  display: inline-flex;
  align-items: center;
  padding: 12px;
  width: 100%;
  min-height: 40px;
  overflow: hidden;
  border: none;
  border-radius: 12px;
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: -0.24px;
  text-align: left;
  text-decoration: none;
  color: #1f1f1f;
  background-color: transparent;
  transition: background-color 150ms ease, color 150ms ease;
  cursor: pointer;
  gap: 8px;
}
.sidebar__menu-link:hover {
  background-color: #fff;
}
.assistant--sidebar-collapsed .sidebar__menu-link {
  justify-content: center;
  padding: 10px;
  width: 40px;
}
.sidebar__menu-icon {
  color: #676b67;
  transition: color 150ms ease;
}
.sidebar__menu-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.assistant--sidebar-collapsed .sidebar__menu-text {
  display: none;
}
.sidebar__footer {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
}
.assistant--sidebar-collapsed .sidebar__footer {
  align-items: center;
}
.sidebar__shop-button {
  flex: 1 1 auto;
  min-width: 40px;
  margin-block-start: auto;
  text-wrap: nowrap;
}
.sidebar__shop-button path {
  fill: #fff;
}
.assistant--sidebar-collapsed .sidebar__shop-button .iu-button-text {
  display: none;
}
.assistant--sidebar-collapsed .sidebar__shop-button .iu-button-icon--left {
  margin: auto;
}
.assistant--sidebar-collapsed .sidebar__shop-button:not(.iu-button--icon-only):has(.iu-button-icon--left) {
  padding-inline: 10px;
}
.sidebar__history-button {
  flex-shrink: 0;
}

.sidebar-history {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}
.sidebar-history:has(.sidebar-history__list:not(.active))::after {
  display: none;
}
.sidebar-history--has-items::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 40px;
  background-image: linear-gradient(180deg, rgba(245, 245, 245, 0) 0%, #f5f5f5 100%);
  pointer-events: none;
}
.assistant--sidebar-collapsed .sidebar-history--has-items::after {
  left: 50%;
  right: auto;
  width: 40px;
  transform: translateX(-50%);
}
.assistant--sidebar-collapsed .sidebar-history {
  align-items: center;
}
.sidebar-history__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  width: 100%;
  min-height: 34px;
  cursor: pointer;
  gap: 8px;
}
.assistant--sidebar-collapsed .sidebar-history__header {
  justify-content: center;
  padding: 0;
  min-height: 34px;
}
.sidebar-history__title {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 130%;
  letter-spacing: -0.28px;
  white-space: nowrap;
  text-transform: uppercase;
  color: #676b67;
}
.assistant--sidebar-collapsed .sidebar-history__title--full {
  display: none;
}
.sidebar-history__title--collapsed {
  display: none;
}
.assistant--sidebar-collapsed .sidebar-history__title--collapsed {
  display: inline;
}
.sidebar-history__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 20px;
  height: 20px;
  border: none;
  color: #b7b9b5;
  background-color: transparent;
  transition: color 150ms ease;
  cursor: pointer;
}
.assistant--sidebar-collapsed .sidebar-history__toggle {
  display: none;
}
.sidebar-history__toggle-icon {
  display: inline-flex;
  flex-shrink: 0;
  transition: transform 180ms ease, color 150ms ease;
}
.sidebar-history__list {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-right: -12px;
  padding-top: 4px;
  padding-right: 12px;
  padding-bottom: 40px;
  min-height: 0;
  max-height: calc(100% - 34px);
  overflow-x: hidden;
  overflow-y: auto;
  gap: 4px;
}
.sidebar-history__list:not(.active) {
  padding-bottom: 0;
  overflow: hidden;
}
.assistant--sidebar-collapsed .sidebar-history__list {
  align-items: center;
}
.sidebar-history__load-more {
  flex: 0 0 1px;
  min-height: 1px;
}

.sidebar-history-item {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 130%;
  letter-spacing: -0.28px;
  text-decoration: none;
  color: #1f1f1f;
  background-color: transparent;
  transition: background-color 150ms ease;
  gap: 8px;
}
.sidebar-history-item:hover, .sidebar-history-item--active {
  background-color: #fff;
}
.sidebar-history-item [hidden] {
  display: none;
}
.sidebar-history-item--dropdown-open {
  z-index: 4;
  background-color: #fff;
}
.sidebar-history-item--renaming {
  border: 1px solid #d6d6d6;
  background-color: #fff;
}
.assistant--sidebar-collapsed .sidebar-history-item {
  justify-content: center;
  width: 40px;
}
.sidebar-history-item__link {
  position: absolute;
  z-index: 1;
  border-radius: inherit;
  text-decoration: none;
  color: inherit;
  inset: 0;
}
.sidebar-history-item__link:focus-visible {
  outline: 2px solid #24a600;
  outline-offset: -2px;
}
.sidebar-history-item--renaming .sidebar-history-item__link {
  display: none;
}
.sidebar-history-item__content {
  display: flex;
  flex: 1;
  align-items: center;
  padding: 10px 44px 10px 12px;
  min-width: 0;
  min-height: 40px;
  pointer-events: none;
  gap: 8px;
}
.assistant--sidebar-collapsed .sidebar-history-item__content {
  justify-content: center;
  padding: 10px;
}
.sidebar-history-item--renaming .sidebar-history-item__content {
  display: none;
}
.sidebar-history-item__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  overflow: hidden;
  border-radius: 6px;
  font-weight: 500;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  color: #676b67;
  background-color: #edf0ec;
}
.sidebar-history-item__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-history-item__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.assistant--sidebar-collapsed .sidebar-history-item__text {
  display: none;
}
.sidebar-history-item__action {
  position: absolute;
  right: 4px;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  opacity: 0;
  padding: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  color: #676b67;
  background-color: transparent;
  transform: translateY(-50%);
  transition: opacity 150ms ease, background-color 150ms ease, color 150ms ease;
  cursor: pointer;
}
@media only screen and (max-width: 576px) {
  .sidebar-history-item__action {
    opacity: 1;
  }
}
.sidebar-history-item__action:hover, .sidebar-history-item__action:focus-visible {
  outline: none;
  color: #1f1f1f;
}
.sidebar-history-item:hover .sidebar-history-item__action, .sidebar-history-item--dropdown-open .sidebar-history-item__action, .sidebar-history-item__action:focus-visible {
  opacity: 1;
}
.assistant--sidebar-collapsed .sidebar-history-item__action {
  display: none;
}
.sidebar-history-item--renaming .sidebar-history-item__action {
  display: none;
}
.sidebar-history-item--streaming .sidebar-history-item__action {
  display: none;
}
.sidebar-history-item__rename-form {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  align-items: center;
  padding: 3px 4px 3px 12px;
  min-width: 0;
  min-height: 38px;
  gap: 8px;
}
.sidebar-history-item__rename-input {
  flex: 1;
  padding: 0;
  min-width: 0;
  outline: none;
  border: none;
  font: inherit;
  letter-spacing: 0;
  color: #1f1f1f;
  background-color: transparent;
}
.sidebar-history-item__rename-submit {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  color: #fff;
  background-color: #24a600;
  cursor: pointer;
}
.sidebar-history-item__rename-submit:disabled {
  opacity: 0.6;
  cursor: default;
}
.sidebar-history-item__dropdown {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 4px;
  width: 216px;
  max-width: calc(100vw - 16px);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(31, 31, 31, 0.1), 0 16px 24px rgba(31, 31, 31, 0.1);
  background-color: #fff;
  gap: 2px;
}
.sidebar-history-item__dropdown-button {
  display: flex;
  align-items: center;
  padding: 10px 8px;
  width: 100%;
  min-height: 42px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: -0.24px;
  text-align: left;
  color: #1f1f1f;
  background-color: transparent;
  cursor: pointer;
  gap: 8px;
}
.sidebar-history-item__dropdown-button:hover, .sidebar-history-item__dropdown-button:focus-visible {
  outline: none;
  background-color: #f5f5f5;
}
.sidebar-history-item__dropdown-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #676b67;
}
.sidebar-history-item__dropdown-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sidebar-history-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-top: 40px;
  width: 100%;
  min-height: 0;
  gap: 12px;
}
.assistant--sidebar-collapsed .sidebar-history-empty {
  display: none;
}
.sidebar-history-empty__icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #676b67;
}
.sidebar-history-empty__text {
  margin: 0;
  min-width: 162px;
  max-width: 162px;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: -0.24px;
  text-align: center;
  color: #676b67;
}

.new-chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: left;
  gap: 16px;
}
.new-chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.new-chat__title {
  font-weight: 500;
  font-size: 24px;
  line-height: 116%;
  letter-spacing: -0.24px;
  color: #1f1f1f;
}
.new-chat__description {
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow: hidden;
  font-weight: 400;
  font-size: 18px;
  line-height: 140%;
  letter-spacing: -0.27px;
  text-overflow: ellipsis;
  color: #313331;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding-bottom: calc(var(--chat-messages-bottom-offset, 170px) + var(--chat-messages-finished-stream-offset, 0px));
  width: 100%;
  max-width: 760px;
  gap: 16px;
}

.chat-message {
  display: flex;
  margin: 0 auto;
  width: 100%;
  max-width: 760px;
  font-family: "ui-sans-serif", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Arial", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}
.chat-message .buy-tokens {
  gap: 16px;
}
.chat-message .buy-tokens__package-rate, .chat-message .buy-tokens__package-tokens {
  margin-bottom: 0;
}
.chat-message .buy-tokens__title {
  font-weight: 500;
  font-size: 20px;
  line-height: 120%;
  letter-spacing: 0;
  color: #1f1f1f;
}
.chat-message .buy-tokens__packages {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media only screen and (max-width: 992px) {
  .chat-message .buy-tokens__packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media only screen and (max-width: 576px) {
  .chat-message .buy-tokens__packages {
    grid-template-columns: minmax(0, 1fr);
  }
}
.chat-message .buy-tokens__package {
  padding: 8px;
  min-height: auto;
  gap: 16px;
}
@media only screen and (max-width: 576px) {
  .chat-message .buy-tokens__package {
    align-items: center;
  }
}
.chat-message .buy-tokens__package-info {
  align-items: center;
  padding-top: 4px;
}
.chat-message .buy-tokens__package-price {
  margin-bottom: 8px;
}
.chat-message .buy-tokens__package-button {
  width: 100%;
}
.chat-message .buy-tokens__custom-controls {
  gap: 16px;
}
@media only screen and (max-width: 576px) {
  .chat-message .buy-tokens__custom-controls {
    flex-direction: column;
  }
}
.chat-message--assistant {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-right: 60px;
  gap: 8px;
}
@media only screen and (max-width: 576px) {
  .chat-message--assistant {
    padding-right: 0;
  }
}
.chat-message--user {
  justify-content: flex-end;
}
.chat-message--not-allowed {
  max-width: 820px;
}
.chat-message__copy, .chat-message__download {
  gap: 4px;
}
@media only screen and (max-width: 768px) {
  .chat-message__copy, .chat-message__download {
    padding: 0;
    width: 32px;
    min-width: 32px;
    gap: 0;
  }
  .chat-message__copy .iu-button-text, .chat-message__download .iu-button-text {
    display: none;
  }
  .chat-message__copy.iu-button--sm:not(.iu-button--icon-only):has(.iu-button-icon--left), .chat-message__download.iu-button--sm:not(.iu-button--icon-only):has(.iu-button-icon--left) {
    padding: 0;
  }
}
.chat-message__user-content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: min(100%, 650px);
  gap: 8px;
}
.chat-message__user-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: min(100%, 620px);
  gap: 4px;
}
.chat-message__bubble-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 100%;
  gap: 8px;
}
.chat-message__bubble {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  width: fit-content;
  min-height: 40px;
  max-width: min(100%, 560px);
  border-radius: 16px 16px 0;
  background-color: #f5f5f5;
  gap: 8px;
}
.chat-message__attention-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #f01810;
}
.chat-message__attention-icon[hidden] {
  display: none;
}
.chat-message__attention-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}
.chat-message__text {
  font-weight: 400;
  font-size: 16px;
  line-height: 160%;
  letter-spacing: 0;
  color: #1f1f1f;
}
.chat-message--user .chat-message__text {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.chat-message__spent-tokens {
  display: flex;
  align-items: center;
  padding: 4px 6px 4px 8px;
  width: fit-content;
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  letter-spacing: -0.28px;
  color: #676b67;
  gap: 4px;
}
.chat-message__spent-tokens[hidden] {
  display: none;
}
.chat-message__spent-tokens svg {
  display: block;
}
.chat-message__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-left: -6px;
  gap: 2px;
}
.chat-message__footer[hidden] {
  display: none;
}
.chat-message__footer--user {
  justify-content: flex-end;
  margin-left: 0;
  width: 100%;
}
.chat-message__footer-action-button {
  color: #1f1f1f;
  background-color: #fff;
}
.chat-message__footer-action-button:focus:not(:focus-visible) {
  outline: none;
}
.chat-message__footer-action-button[hidden] {
  display: none;
}
.chat-message__footer-action-button .iu-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 18px;
  height: 18px;
}
.chat-message__footer-action-button .iu-button-text {
  color: inherit;
}
.chat-message__footer-action-button svg {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #1f1f1f;
}
@media (hover: hover) and (pointer: fine) {
  .chat-message__footer-action-button:not(:disabled):hover {
    color: #1f1f1f;
    background-color: #f5f5f5;
  }
  .chat-message__footer-action-button:not(:disabled):hover svg {
    color: #1f1f1f;
  }
}
.chat-message__copy-icon {
  display: block;
  width: 18px;
  height: 18px;
}
.chat-message__copy-icon[hidden] {
  display: none;
}
.chat-message__copy-icon--copied {
  color: #24a600;
}
.chat-message__copy-icon--copied svg, .chat-message__footer-action-button:not(:disabled):hover .chat-message__copy-icon--copied svg {
  color: #24a600;
}
.chat-message__feedback-button .chat-message__feedback-icon--fill {
  display: none;
}
.chat-message__feedback-button--active .chat-message__feedback-icon--outline {
  display: none;
}
.chat-message__feedback-button--active .chat-message__feedback-icon--fill {
  display: block;
}
.chat-message__feedback-icon {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}
.chat-message__file {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-weight: 500;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: 0;
  color: #006800;
  gap: 4px;
}

.access-denied {
  padding-right: 60px;
}
@media only screen and (max-width: 576px) {
  .access-denied {
    padding-right: 0;
  }
}
.access-denied__title {
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 20px;
  line-height: 120%;
  letter-spacing: -0.4px;
  color: #1f1f1f;
}
.access-denied__card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  width: 100%;
  border: 1px solid #fa7907;
  border-radius: 16px;
  background-color: #fff;
}
@media only screen and (max-width: 576px) {
  .access-denied__card {
    padding: 12px;
  }
}
.access-denied__text {
  margin-bottom: 16px;
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: 0;
  color: #1f1f1f;
}
@media only screen and (max-width: 576px) {
  .access-denied__text {
    margin-bottom: 12px;
    font-size: 14px;
    letter-spacing: 0;
  }
}
.access-denied__text p:not(:last-of-type) {
  margin-bottom: 8px;
}
.access-denied__text a {
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: -0.24px;
  text-decoration: none;
  color: #006800;
}
.access-denied__text strong {
  font-weight: 600;
}
.access-denied__note {
  margin-top: 8px;
  font-weight: 400;
  font-size: 12px;
  line-height: 120%;
  letter-spacing: -0.24px;
  color: #666;
}
.access-denied__button {
  width: fit-content;
}

.message-attachments {
  display: flex;
  width: fit-content;
  max-width: 100%;
}
.message-attachments:empty {
  display: none;
}
.message-attachments--single {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.chat-message--user .message-attachments--single {
  align-items: flex-end;
}
.message-attachments--grid {
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
  gap: 4px;
}
.chat-message--assistant .message-attachments--grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}
.chat-message--user .message-attachments--grid {
  justify-content: flex-end;
  width: 560px;
  max-width: 100%;
}
.message-attachments--with-files .message-attachments__item--file {
  box-sizing: border-box;
  flex: 1 1 0;
  width: auto;
  max-width: 152px;
}
.message-attachments__item {
  position: relative;
  display: inline-flex;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
}
.message-attachments__item--single-image {
  width: fit-content;
  max-width: min(100%, 560px);
  max-height: 380px;
  border-radius: 16px;
}
.message-attachments__item--single-image .message-attachments__gallery-button {
  max-width: 100%;
  max-height: inherit;
  border-radius: inherit;
}
.message-attachments__item--single-image .message-attachments__preview {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: inherit;
  border-radius: 16px;
}
.message-attachments__item--single-image.message-attachments__item--sized {
  width: min(100%, 560px, var(--message-attachment-image-ratio) * 380px);
  max-height: none;
  aspect-ratio: var(--message-attachment-image-width)/var(--message-attachment-image-height);
}
.message-attachments__item--single-image.message-attachments__item--sized .message-attachments__gallery-button {
  width: 100%;
  height: 100%;
  max-height: none;
}
.message-attachments__item--single-image.message-attachments__item--sized .message-attachments__preview {
  width: 100%;
  height: 100%;
  max-height: none;
}
.message-attachments__item--image {
  flex: 0 0 100px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0;
  width: 100px;
  height: 100px;
  aspect-ratio: 1/1;
}
.message-attachments__item--image .message-attachments__gallery-button {
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}
.message-attachments__item--image .message-attachments__preview {
  position: absolute;
  inset: 0;
}
.chat-message--assistant .message-attachments__item--image {
  box-sizing: border-box;
  flex: none;
  width: 100%;
  height: auto;
}
.message-attachments__item--file {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px;
  width: 152px;
  height: 100px;
  background-color: #ebebeb;
}
@media only screen and (max-width: 768px) {
  .message-attachments--with-files .message-attachments__item--file {
    flex: 0 0 100px;
    width: 100px;
    max-width: 100px;
  }
}
.message-attachments__item--hidden {
  display: none;
}
.message-attachments__preview {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background-color: #fff;
  object-fit: cover;
}
.message-attachments__gallery-button {
  position: relative;
  display: inline-flex;
  padding: 0;
  min-width: 0;
  appearance: none;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  font: inherit;
  text-align: left;
  color: inherit;
  background-color: transparent;
  cursor: pointer;
}
.message-attachments__download {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  pointer-events: auto;
}
@media (hover: hover) and (pointer: fine) {
  .message-attachments__download {
    visibility: hidden;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
  }
}
.message-attachments__break {
  flex-basis: 100%;
  width: 0;
  height: 0;
}
.message-attachments__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  width: fit-content;
  max-width: 100%;
  border-radius: 8px;
  font-weight: 400;
  font-size: 12px;
  line-height: 120%;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
  background-color: #313331;
}
.message-attachments__badge--pdf, .message-attachments__badge--epub {
  background-color: #e53935;
}
.message-attachments__badge--doc, .message-attachments__badge--docx, .message-attachments__badge--pages {
  background-color: #3f7ac2;
}
.message-attachments__badge--xlsx, .message-attachments__badge--xls, .message-attachments__badge--csv, .message-attachments__badge--ods, .message-attachments__badge--tsv, .message-attachments__badge--numbers {
  background-color: #359962;
}
.message-attachments__badge--txt, .message-attachments__badge--odf, .message-attachments__badge--rtf {
  color: #1f1f1f;
  background-color: #fff;
}
.message-attachments__badge--pptx, .message-attachments__badge--ppt, .message-attachments__badge--odp, .message-attachments__badge--key {
  background-color: #e15534;
}
.message-attachments__badge--html {
  background-color: #313331;
}
.message-attachments__name {
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  z-index: 1;
  padding: 2px 4px;
  max-height: 42px;
  overflow-wrap: anywhere;
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  letter-spacing: 0;
  text-overflow: ellipsis;
  color: #1f1f1f;
}
.message-attachments__count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  min-width: 34px;
  border-radius: 20px;
  box-shadow: 0 0 5px rgba(31, 31, 31, 0.05), 0 4px 12px rgba(31, 31, 31, 0.08);
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  letter-spacing: 0;
  color: #1f1f1f;
  background-color: #fff;
  pointer-events: none;
  gap: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .message-attachments__item--single-image:hover > .message-attachments__download, .message-attachments__item--image:hover > .message-attachments__download, .message-attachments__download:focus-visible {
    z-index: 1;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .message-attachments__item--single-image:hover .message-attachments__count, .message-attachments__item--image:hover .message-attachments__count, .message-attachments__item:has(> .message-attachments__download:focus-visible) .message-attachments__count {
    visibility: hidden;
    opacity: 0;
  }
}
@media (hover: none), (pointer: coarse) {
  .message-attachments__count {
    left: 8px;
    right: auto;
    bottom: 8px;
  }
}

.chat-markdown {
  overflow-wrap: anywhere;
  font-weight: 400;
  font-size: 16px;
  line-height: 160%;
  letter-spacing: 0;
  color: #1f1f1f;
}
.chat-markdown h1,
.chat-markdown h2,
.chat-markdown h3,
.chat-markdown h4,
.chat-markdown h5,
.chat-markdown h6 {
  font-weight: 500;
  font-style: normal;
  line-height: 116%;
  letter-spacing: 0;
  color: #1f1f1f;
}
.chat-markdown h1 {
  margin: 0 0 16px;
  font-size: 24px;
}
.chat-markdown h2 {
  margin: 0 0 16px;
  font-size: 20px;
}
.chat-markdown h3 {
  margin: 0 0 12px;
  font-size: 18px;
}
.chat-markdown h4,
.chat-markdown h5,
.chat-markdown h6 {
  margin: 0 0 12px;
  font-size: 16px;
}
.chat-markdown p {
  margin: 0 0 8px;
}
.chat-markdown hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid #d6d6d6;
}
.chat-markdown ul,
.chat-markdown ol {
  margin: 0 0 12px;
  padding: 0;
}
.chat-markdown ul ul,
.chat-markdown ul ol,
.chat-markdown ol ul,
.chat-markdown ol ol {
  margin-top: 8px;
  margin-bottom: 0;
  padding-left: 16px;
}
.chat-markdown li {
  margin: 0;
}
.chat-markdown li + li {
  margin-top: 4px;
}
.chat-markdown li > ul,
.chat-markdown li > ol {
  margin-top: 8px;
}
.chat-markdown li p {
  margin: 4px 0;
}
.chat-markdown ul > li {
  position: relative;
  padding-left: 24px;
  list-style: none;
}
.chat-markdown ul > li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0.8em;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background-color: #676b67;
  transform: translate(-50%, -50%);
}
.chat-markdown li.task-list-item {
  position: relative;
  padding-left: 26px;
  list-style: none;
}
.chat-markdown li.task-list-item::before {
  display: none;
}
.chat-markdown li.task-list-item input[type=checkbox] {
  position: absolute;
  left: 0;
  top: 0.32em;
  margin: 0;
  width: 16px;
  height: 16px;
}
.chat-markdown ol {
  padding-left: 26px;
}
.chat-markdown ol > li {
  list-style: decimal;
  list-style-position: outside;
}
.chat-markdown ol > li::marker {
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 160%;
  letter-spacing: 0;
  color: #676b67;
}
.chat-markdown strong {
  font-weight: 500;
}
.chat-markdown em {
  font-style: italic;
}
.chat-markdown code {
  font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Consolas", "Liberation Mono", monospace;
  font-size: 0.92em;
}
.chat-markdown :not(pre) > code {
  display: inline;
  padding: 2px 6px;
  border-radius: 6px;
  color: #1f1f1f;
  background-color: #f1f3f1;
}
.chat-markdown pre {
  margin: 0 0 12px;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid #d9ddd7;
  border-radius: 10px;
  line-height: 1.5;
  white-space: pre;
  text-align: left;
  background-color: #f8f9f8;
}
.chat-markdown pre code {
  padding: 0;
  font-size: 13px;
  background-color: transparent;
}
.chat-markdown blockquote {
  margin: 0 0 12px;
  padding: 2px 0 2px 12px;
  border-left: 3px solid #d9ddd7;
  line-height: 1.55;
  color: #4d5450;
}
.chat-markdown table {
  margin: 0 0 12px;
  width: 100%;
  overflow: hidden;
  border: 1px solid #d9ddd7;
  border-collapse: collapse;
  border-radius: 10px;
}
.chat-markdown th,
.chat-markdown td {
  padding: 8px 10px;
  vertical-align: top;
  border-right: 1px solid #d9ddd7;
  border-bottom: 1px solid #d9ddd7;
  text-align: left;
}
.chat-markdown th:last-child,
.chat-markdown td:last-child {
  border-right: 0;
}
.chat-markdown tr:last-child td {
  border-bottom: 0;
}
.chat-markdown th {
  font-weight: 600;
  background-color: #f6f7f6;
}
.chat-markdown a {
  text-decoration: underline;
  color: #0f5bd6;
  text-underline-offset: 2px;
}
.chat-markdown img {
  display: block;
  height: auto;
  max-width: min(100%, 420px);
  border-radius: 12px;
}
.chat-markdown img[src^="https://latex.infourok.ru/?"] {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
  border-radius: 0;
}
.chat-message:not(.chat-streaming-message) .chat-markdown > :last-child, .chat-streaming-message--started .chat-markdown > :last-child, .chat-streaming-message--finish .chat-markdown > :last-child {
  margin-bottom: 0;
}

.chat-streaming-message {
  --chat-streaming-message-min-gap: 220px;
  --chat-streaming-message-max-gap: 520px;
  --chat-streaming-message-reserved-height: 220px;
  --chat-streaming-message-gap:
    calc(
      100vh
      - var(--chat-messages-top-offset, 88px)
      - var(--chat-messages-bottom-offset, 170px)
      - var(--chat-streaming-message-reserved-height)
    );
  margin-bottom: clamp(var(--chat-streaming-message-min-gap), var(--chat-streaming-message-gap), var(--chat-streaming-message-max-gap));
}
@media only screen and (max-width: 1230px) {
  .chat-streaming-message {
    --chat-streaming-message-min-gap: 140px;
    --chat-streaming-message-max-gap: 340px;
    --chat-streaming-message-reserved-height: 240px;
  }
}
@media only screen and (max-width: 768px) {
  .chat-streaming-message {
    --chat-streaming-message-min-gap: 96px;
    --chat-streaming-message-max-gap: 220px;
    --chat-streaming-message-reserved-height: 260px;
  }
}
.chat-streaming-message--finish, .chat-streaming-message--image-loading {
  margin-bottom: 0;
}
.chat-streaming-message--started {
  min-height: 66px;
}
.chat-streaming-message__dots {
  display: flex;
  align-items: center;
  padding: 16px;
  width: fit-content;
  min-height: 40px;
  border-radius: 16px 16px 16px 0;
  background-color: #f5f5f5;
  gap: 4px;
}
.chat-streaming-message--started .chat-streaming-message__dots, .chat-streaming-message--image-loading .chat-streaming-message__dots {
  display: none;
}
.chat-streaming-message__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 80px;
  background-color: #d9d9d9;
  animation: chat-streaming-message-dot-bounce 1.1s ease-in-out infinite;
}
.chat-streaming-message__dot:nth-child(2) {
  animation-delay: 0.12s;
}
.chat-streaming-message__dot:nth-child(3) {
  animation-delay: 0.24s;
}
.chat-streaming-message__media:empty {
  display: none;
}
.chat-streaming-message__image-loading {
  display: flex;
  flex-flow: row wrap;
  margin-bottom: 0;
  width: min(100%, 380px);
  max-width: 100%;
}
.chat-streaming-message__image-loading[hidden] {
  display: none;
}
.chat-streaming-message__image-loading-item {
  pointer-events: none;
}
.chat-streaming-message__image-loading-item.message-attachments__item--single-image {
  width: 380px;
  max-width: 100%;
}
.chat-streaming-message__image-loading-item.message-attachments__item--image {
  border-radius: 12px;
}
.chat-streaming-message__image-skeleton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background-image: linear-gradient(80deg, #f5f5f5, #e1e1e1 70%, #f5f5f5);
  background-position: 0 0;
  background-size: 200%;
  animation: chat-streaming-message-skeleton-shine 1.6s cubic-bezier(0.59, 0, 0.45, 0.98) infinite;
  aspect-ratio: 1/1;
}
.chat-streaming-message__image-loader {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  perspective: 800px;
}
.chat-streaming-message__image-loader-inner {
  box-sizing: border-box;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.chat-streaming-message__image-loader-inner--one {
  left: 0;
  top: 0;
  border-bottom: 3px solid #8f938d;
  animation: chat-streaming-message-loader-rotate-one 3s linear infinite;
}
.chat-streaming-message__image-loader-inner--two {
  right: 0;
  top: 0;
  border-right: 3px solid #8f938d;
  animation: chat-streaming-message-loader-rotate-two 3s linear infinite;
}
.chat-streaming-message__image-loader-inner--three {
  right: 0;
  bottom: 0;
  border-top: 3px solid #8f938d;
  animation: chat-streaming-message-loader-rotate-three 3s linear infinite;
}
.chat-streaming-message__file:empty {
  display: none;
}
@supports (height: 100dvh) {
  .chat-streaming-message {
    --chat-streaming-message-gap:
      calc(
        100dvh
        - var(--chat-messages-top-offset, 88px)
        - var(--chat-messages-bottom-offset, 167px)
        - var(--chat-streaming-message-reserved-height)
      );
  }
}

@keyframes chat-streaming-message-dot-bounce {
  0%, 80%, 100% {
    opacity: 0.5;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}
@keyframes chat-streaming-message-skeleton-shine {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
@keyframes chat-streaming-message-loader-rotate-one {
  0% {
    transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
  }
}
@keyframes chat-streaming-message-loader-rotate-two {
  0% {
    transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
  }
}
@keyframes chat-streaming-message-loader-rotate-three {
  0% {
    transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
  }
}
.chat-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  min-height: 76px;
  border-radius: 24px;
  background-image: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}
.chat-header--mobile {
  justify-content: unset;
  padding: 12px;
  min-height: auto;
  border-radius: 0;
  background-image: none;
  background-color: #fff;
  gap: 8px;
}
.chat-header__tokens-wrap, .chat-header__tokens-anchor {
  position: relative;
  display: inline-flex;
}
.chat-header__picker {
  min-width: 0;
}
.chat-header--mobile .chat-header__picker {
  flex: 0 1 fit-content;
}
.chat-header__bookmark-hint {
  display: flex;
  align-items: center;
  margin-right: auto;
  margin-left: 24px;
  padding: 2px 8px;
  border-radius: 8px;
  background-color: #fff;
  transition: opacity 200ms ease;
  gap: 8px;
}
.chat-header__bookmark-hint--hiding {
  opacity: 0;
  pointer-events: none;
}
.chat-header__bookmark-hint-open {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
  gap: 8px;
}
.chat-header__bookmark-hint-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #676b67;
}
.chat-header__bookmark-hint-text {
  width: 210px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.28px;
  text-align: left;
  color: #676b67;
}
.chat-header__bookmark-hint-accent {
  color: #006800;
}
.chat-header__bookmark-hint-close {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  margin: 0;
  padding: 0;
  border: none;
  color: #676b67;
  background-color: transparent;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
  cursor: pointer;
}
.chat-header__bookmark-hint:hover .chat-header__bookmark-hint-close {
  visibility: visible;
  opacity: 1;
  transition: opacity 200ms ease, visibility 0s;
}
.chat-header__user-block {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
}
@media only screen and (max-width: 1230px) {
  .chat-header__user-block {
    margin-left: auto;
  }
}
.chat-header__tokens {
  padding: 4px 16px 4px 12px;
  border-color: #d6d6d6;
  color: #1f1f1f;
  background-color: #fff;
}
@media only screen and (max-width: 1230px) {
  .chat-header__tokens {
    flex-shrink: 0;
    padding: 0;
    min-height: unset;
    border: none;
    background-color: #fff;
  }
  .chat-header__tokens.chat-header__tokens .iu-button-icon--left {
    margin-right: 4px;
  }
}
.chat-header__tokens .iu-button-icon--left {
  margin-right: 8px;
  color: #24a600;
}
.chat-header__tokens .iu-button-icon--left svg {
  color: #24a600;
}
.chat-header__menu-toggle {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 8px;
  min-height: 40px;
  border: none;
  border-radius: 8px;
  color: #1f1f1f;
  background-color: #f5f5f5;
  transition: background-color 150ms ease;
  cursor: pointer;
  gap: 2px;
}
.chat-header__menu-toggle-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.agent-picker {
  position: relative;
  min-width: 0;
  max-width: 100%;
  pointer-events: auto;
}
.agent-picker [hidden] {
  display: none;
}
.agent-picker__mobile-back, .agent-picker__mobile-close {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  color: #676b67;
  background-color: #f5f5f5;
  cursor: pointer;
}
@media only screen and (max-width: 768px) {
  .agent-picker__mobile-back, .agent-picker__mobile-close {
    display: inline-flex;
  }
}
.agent-picker__mobile-back svg, .agent-picker__mobile-close svg {
  display: block;
}
.agent-picker__vendor-price, .agent-picker__model-price {
  display: flex;
  align-items: center;
  margin-left: auto;
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  letter-spacing: -0.28px;
  white-space: nowrap;
  color: #676b67;
}
.agent-picker__vendor-price svg, .agent-picker__model-price svg {
  display: block;
  margin-left: 4px;
}
.agent-picker__model-list {
  display: flex;
  flex-direction: column;
  max-height: min(420px, 100vh - 300px);
  overflow-y: auto;
  gap: 4px;
  overscroll-behavior: contain;
}
@media only screen and (max-width: 768px) {
  .agent-picker__model-list {
    flex: 1;
    order: 2;
    margin-right: 0;
    padding: 0 8px;
    min-height: 0;
    max-height: none;
  }
}
.agent-picker__trigger {
  display: inline-flex;
  align-items: center;
  padding: 0 8px 0 10px;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background-color: #fff;
  cursor: pointer;
  gap: 8px;
}
@media only screen and (max-width: 768px) {
  .agent-picker__trigger {
    max-width: 100%;
  }
}
.agent-picker__trigger:disabled {
  color: #8f8f8f;
  cursor: default;
}
.agent-picker__trigger-avatar {
  flex-shrink: 0;
}
.agent-picker__trigger-avatar img {
  display: block;
  height: auto;
  max-width: 20px;
}
.agent-picker__trigger-name {
  min-width: 0;
  overflow: hidden;
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: -0.24px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #1f1f1f;
}
.agent-picker__trigger-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #767676;
  transition: transform 180ms ease;
}
@media only screen and (max-width: 768px) {
  .agent-picker__trigger-icon {
    display: none;
  }
}
.agent-picker__trigger[aria-expanded=true] .agent-picker__trigger-icon {
  transform: rotate(180deg);
}
.agent-picker__dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 12px;
  width: 418px;
  border-radius: 16px;
  box-shadow: 0 0 10px 0 rgba(31, 31, 31, 0.1), 0 16px 24px 0 rgba(31, 31, 31, 0.1);
  background-color: #fff;
  gap: 12px;
}
@media only screen and (max-width: 768px) {
  .agent-picker__dropdown {
    position: fixed;
    z-index: 10021;
    padding: 12px 4px;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    border-radius: 0;
    inset: 0;
  }
  @supports (height: 100dvh) {
    .agent-picker__dropdown {
      height: 100dvh;
    }
  }
}
.agent-picker__head {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media only screen and (max-width: 768px) {
  .agent-picker__head {
    order: 1;
    padding: 0 8px;
  }
}
.agent-picker__search-label {
  position: absolute;
  margin: -1px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.agent-picker__search {
  position: relative;
  flex: 1;
}
.agent-picker__mobile-back svg {
  transform: rotate(180deg);
}
.agent-picker__search-input {
  padding: 0 40px 0 36px;
  width: 100%;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: -0.24px;
  text-overflow: ellipsis;
  color: #1f1f1f;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDIwIDIwIj48cGF0aCBmaWxsPSIjNjc2YjY3IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xLjY1NCA4Ljk3YzAtNC4wMTYgMy4yNjYtNy4yOSA3LjI5Mi03LjI5czcuMjkyIDMuMjc0IDcuMjkyIDcuMjljMCAxLjg4LS43MTYgMy41OTgtMS44OSA0Ljg5M2wzLjc4OCAzLjM2NmEuNjI1LjYyNSAwIDEgMS0uODMuOTM0bC0zLjg3Ny0zLjQ0NWE3LjI1IDcuMjUgMCAwIDEtNC40ODMgMS41NDRjLTQuMDI2IDAtNy4yOTItMy4yNzQtNy4yOTItNy4yOTFtNy4yOTItNi4wNGE2LjA1IDYuMDUgMCAwIDAtNi4wNDIgNi4wNCA2LjA1IDYuMDUgMCAwIDAgNi4wNDIgNi4wNDIgNi4wNSA2LjA1IDAgMCAwIDYuMDQyLTYuMDQxQTYuMDUgNi4wNSAwIDAgMCA4Ljk0NiAyLjkzIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=");
  background-position: left 8px center;
  background-repeat: no-repeat;
  background-color: #fff;
}
@media only screen and (max-width: 768px) {
  .agent-picker__search-input {
    font-size: 14px;
    letter-spacing: -0.21px;
  }
}
.agent-picker__search-input:focus {
  outline: 0;
  border-color: #24a600;
}
.agent-picker__search-input::placeholder {
  color: #8f938d;
}
.agent-picker__search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  color: #676b67;
  background-color: #f5f5f5;
  transform: translateY(-50%);
  cursor: pointer;
}
.agent-picker__search-clear:hover {
  color: #1f1f1f;
  background-color: #ececec;
}
.agent-picker__search-clear[hidden] {
  display: none;
}
.agent-picker__search-clear svg {
  display: block;
}
.agent-picker__tabs {
  display: flex;
  flex-wrap: nowrap;
  padding: 2px;
  min-height: 58px;
  border-radius: 10px;
  background-color: #f5f5f5;
  gap: 2px;
}
@media only screen and (max-width: 768px) {
  .agent-picker__tabs {
    flex-shrink: 0;
    flex-wrap: nowrap;
    order: 3;
    margin-top: auto;
    min-height: 44px;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0;
    scrollbar-width: none;
  }
}
@media only screen and (max-width: 768px) {
  .agent-picker__tabs::-webkit-scrollbar {
    display: none;
  }
}
.agent-picker__tab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px;
  width: 100%;
  min-width: 64px;
  min-height: 54px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 12px;
  line-height: 120%;
  letter-spacing: -0.24px;
  color: #1f1f1f;
  background-color: transparent;
  transition: background-color 150ms ease, box-shadow 150ms ease;
  cursor: pointer;
  gap: 6px;
}
@media only screen and (max-width: 768px) {
  .agent-picker__tab {
    flex: 1 1 0;
    padding: 8px 6px;
    width: 0;
    min-width: 0;
    min-height: 40px;
    overflow: hidden;
  }
}
.agent-picker__tab:hover {
  background-color: #fff;
}
.agent-picker__tab--active {
  box-shadow: 0 0 5px 0 rgba(31, 31, 31, 0.05), 0 4px 12px 0 rgba(31, 31, 31, 0.08);
  background-color: #fff;
}
.agent-picker__tab-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #676b67;
  transition: color 150ms ease;
}
.agent-picker__tab-icon svg {
  display: block;
}
.agent-picker__tab-label {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  text-overflow: ellipsis;
}
.agent-picker__vendors {
  display: flex;
  flex-direction: column;
  margin-right: -12px;
  padding-right: 12px;
  max-height: calc(100vh - 250px);
  overflow-y: auto;
  gap: 4px;
  overscroll-behavior: contain;
}
@media only screen and (max-width: 768px) {
  .agent-picker__vendors {
    flex: 1;
    order: 2;
    margin-right: 0;
    padding: 0 8px;
    min-height: 0;
    max-height: none;
  }
}
.agent-picker__vendor-group {
  position: relative;
  outline: none;
}
.agent-picker__vendor-item {
  display: block;
  outline: none;
  text-decoration: none;
  color: inherit;
}
.agent-picker__vendor-item:focus-visible {
  outline: none;
}
.agent-picker__vendor-item:focus-visible .agent-picker__vendor {
  border-color: #24a600;
}
.agent-picker__vendor {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-align: left;
  background-color: #fff;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
  cursor: pointer;
  user-select: none;
  gap: 8px;
}
@media only screen and (max-width: 768px) {
  .agent-picker__vendor {
    box-shadow: none;
  }
}
.agent-picker__vendor:hover {
  border: 1px solid #d6d6d6;
}
@media only screen and (max-width: 768px) {
  .agent-picker__vendor:hover {
    box-shadow: none;
  }
}
.agent-picker__vendor--active {
  border-color: #d6d6d6;
  background-color: #f5f5f5;
}
.agent-picker__vendor-item--active .agent-picker__vendor {
  border-color: transparent;
  background-color: #f5f5f5;
}
@media only screen and (max-width: 768px) {
  .agent-picker__vendor-item--active .agent-picker__vendor {
    display: none;
  }
}
.agent-picker__search-result {
  flex-shrink: 0;
  text-decoration: none;
}
.agent-picker__vendor-head {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
}
.agent-picker__vendor-icon {
  display: inline-flex;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
}
.agent-picker__vendor-icon img {
  display: block;
  height: auto;
  max-width: 28px;
}
.agent-picker__vendor-name {
  font-weight: 500;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: -0.24px;
  color: #1f1f1f;
}
.agent-picker__vendor-description {
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow: hidden;
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  letter-spacing: -0.28px;
  text-overflow: ellipsis;
  color: #676b67;
}
.agent-picker__models {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  display: none;
  flex-direction: column;
  padding: 4px;
  width: fit-content;
  max-height: calc(100vh - 24px);
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 0 10px 0 rgba(31, 31, 31, 0.1), 0 16px 24px 0 rgba(31, 31, 31, 0.1);
  background-color: #fff;
}
@media only screen and (max-width: 768px) {
  .agent-picker__models {
    position: static;
    z-index: auto;
    padding: 0;
    width: 100%;
    max-height: none;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
  }
}
.agent-picker__models::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 0;
  width: 16px;
  height: 100%;
}
@media only screen and (max-width: 768px) {
  .agent-picker__models::before {
    display: none;
  }
}
.agent-picker__vendor-item--active .agent-picker__models {
  display: flex;
}
.agent-picker__models-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(420px, 100vh - 56px);
  overflow-y: auto;
  gap: 2px;
  overscroll-behavior: contain;
}
@media only screen and (max-width: 768px) {
  .agent-picker__models-list {
    max-height: none;
    overflow-y: visible;
    gap: 4px;
  }
}
.agent-picker__model {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  padding: 0 4px 0 12px;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  letter-spacing: -0.28px;
  text-decoration: none;
  text-overflow: ellipsis;
  color: #1f1f1f;
  background-color: #fff;
  gap: 0;
}
@media only screen and (max-width: 768px) {
  .agent-picker__model {
    padding: 12px;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: -0.24px;
  }
}
.agent-picker__model:hover {
  background-color: #f5f5f5;
}
.agent-picker__model .agent-picker__model-price {
  margin-left: auto;
  padding-left: 16px;
}
.agent-picker__model--active {
  border-color: #d6d6d6;
  background-color: #f5f5f5;
}
.agent-picker__model-name {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.agent-picker__model-popular {
  display: inline-flex;
  flex-shrink: 0;
  margin-left: 6px;
}
.agent-picker__model-popular svg {
  display: block;
}
.agent-picker__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  gap: 16px;
}
@media only screen and (max-width: 768px) {
  .agent-picker__empty {
    flex: 1;
    justify-content: center;
    order: 2;
    padding: 24px 32px 40px;
    min-height: 0;
  }
}
.agent-picker__empty p {
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  letter-spacing: -0.28px;
  text-align: center;
  color: #676b67;
}

.message-error {
  width: 100%;
}
.message-error__button {
  width: fit-content;
}
.message-error__inner {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid #d92616;
  border-radius: 16px;
  background-color: #fff;
  gap: 12px;
}
.message-error__text {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: 0;
  color: #1f1f1f;
}

.worksheet-notification {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  padding: 16px;
  width: 100%;
  border: 1px solid #2dc50f;
  border-radius: 16px;
  background-color: #fff;
  gap: 16px;
}
@media only screen and (max-width: 576px) {
  .worksheet-notification {
    padding: 12px;
    border-radius: 14px;
  }
}
.worksheet-notification__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.worksheet-notification__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
}
.worksheet-notification__title {
  margin: 0;
  min-width: 0;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
  color: #1f1f1f;
}
@media only screen and (max-width: 576px) {
  .worksheet-notification__title {
    font-size: 16px;
  }
}
.worksheet-notification__close {
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 20px;
  height: 20px;
  border: 0;
  color: #d6d6d6;
  background-color: transparent;
  transition: color 160ms ease;
  cursor: pointer;
}
.worksheet-notification__close:hover, .worksheet-notification__close:focus-visible {
  color: #9b9b9b;
}
.worksheet-notification__close:focus-visible {
  outline: 2px solid #2dc50f;
  outline-offset: 2px;
  border-radius: 50%;
}
.worksheet-notification__close svg {
  display: block;
  width: 20px;
  height: 20px;
}
.worksheet-notification__text {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0;
  color: #1f1f1f;
}
.worksheet-notification__text p {
  margin: 0;
}
.worksheet-notification__text p:not(:last-child) {
  margin-bottom: 8px;
}
.worksheet-notification__accent {
  color: #006800;
}

/*# sourceMappingURL=index.output.css.map */
