.lf-assistant {
  --lf-accent: #dceefe;
  position: static;
  z-index: 12000;
  font-family: inherit;
  color: #17364d;
}
.lf-assistant__launcher {
  position: fixed;
  z-index: 12001;
  left: calc(max(0.9rem, env(safe-area-inset-left)) + 11.1rem);
  top: 0.48rem;
  width: 1.82rem;
  height: 3.08rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(226, 241, 253, 0.72);
  box-shadow: none;
  font-size: 1.45rem;
  cursor: pointer;
  transition:
    transform 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}
.lf-assistant__launcher:hover,
.lf-assistant__launcher[aria-expanded="true"] {
  color: rgba(255, 255, 255, 0.98);
}
.lf-assistant__launcher:hover {
  transform: translateY(-1px);
}
body:not(.is-alan-session) .lf-assistant__launcher,
body:not(:has(.biblioteca-top-divider)) .lf-assistant__launcher,
body:has(.biblioteca-top-divider.is-hidden) .lf-assistant__launcher {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.25rem);
}
.lf-assistant__panel {
  position: fixed;
  z-index: 12000;
  right: 22px;
  bottom: 22px;
  width: min(504px, calc(100vw - 28px));
  height: min(700px, calc(100vh - 80px));
  border: 1px solid rgba(86, 151, 194, 0.28);
  border-radius: 12px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.9), transparent 16rem),
    linear-gradient(155deg, #f3faff 0%, #e7f4fb 54%, #dceef8 100%);
  box-shadow: 0 22px 70px rgba(3, 32, 55, 0.28);
  overflow: hidden;
  animation: lf-enter 0.18s ease-out;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.lf-assistant.is-surface-hidden {
  display: none;
}
.lf-assistant__panel[hidden] {
  display: none;
}
.lf-assistant__panel.is-minimized {
  height: auto;
}
.lf-assistant__panel.is-minimized .lf-assistant__body,
.lf-assistant__panel.is-minimized form {
  display: none;
}
.lf-assistant__panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(74, 139, 182, 0.18);
  background: rgba(247, 252, 255, 0.72);
}
.lf-assistant__panel header strong,
.lf-assistant__panel header small {
  display: block;
}
.lf-assistant__panel header small {
  margin-top: 2px;
  color: #5a7b91;
  font-size: 11px;
}
.lf-assistant__window-actions {
  display: flex;
  gap: 4px;
}
.lf-assistant__window-actions button {
  border: 0;
  background: transparent;
  font-size: 19px;
  color: #456d88;
  cursor: pointer;
}
.lf-assistant__body {
  min-height: 0;
}
.lf-assistant__messages {
  height: 100%;
  overflow: auto;
  padding: 16px;
  overscroll-behavior: contain;
  background: rgba(232, 245, 252, 0.38);
}
.lf-assistant__welcome p {
  color: #3b5d73;
  line-height: 1.5;
}
.lf-assistant__preparation {
  margin-top: 35%;
  padding: 18px;
  border: 1px solid rgba(76, 148, 194, 0.2);
  border-radius: 9px;
  background: rgba(247, 252, 255, 0.82);
}
.lf-assistant__preparation strong {
  color: #204a67;
}
.lf-assistant__welcome div {
  display: grid;
  gap: 8px;
}
.lf-assistant__welcome button {
  padding: 10px 12px;
  border: 1px solid rgba(76, 148, 194, 0.22);
  border-radius: 12px;
  background: rgba(250, 253, 255, 0.88);
  text-align: left;
  color: #234d68;
  cursor: pointer;
}
.lf-assistant__message {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  line-height: 1.48;
}
.lf-assistant__message.is-user {
  margin-left: 44px;
  background: #d4eaf7;
}
.lf-assistant__message > span {
  display: block;
  margin-bottom: 5px;
  color: #507b98;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.lf-assistant__message > p {
  margin: 0;
  white-space: normal;
}
.lf-assistant__message aside,
.lf-assistant__unanswered {
  margin-top: 10px;
  padding: 9px;
  border-left: 3px solid #56a6d2;
  background: #eaf6fc;
  font-size: 12px;
}
.lf-assistant__sources {
  margin-top: 12px;
  border-top: 1px solid #c8dfec;
  padding-top: 8px;
}
.lf-assistant__sources summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.lf-assistant__sources article {
  margin-top: 8px;
  padding: 9px;
  border-radius: 9px;
  background: #edf7fc;
}
.lf-assistant__sources small {
  display: block;
  color: #58788d;
}
.lf-assistant__sources p {
  margin: 5px 0;
  font-size: 12px;
}
.lf-assistant__sources a {
  font-size: 12px;
  color: #27698f;
}
.lf-assistant__feedback {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.lf-assistant__feedback button {
  border: 1px solid #c3deec;
  border-radius: 10px;
  background: transparent;
  padding: 5px 8px;
  font-size: 11px;
}
.lf-assistant form {
  padding: 12px;
  border-top: 1px solid rgba(74, 139, 182, 0.18);
  background: rgba(237, 248, 253, 0.9);
}
.lf-assistant textarea {
  box-sizing: border-box;
  width: 100%;
  max-height: 120px;
  resize: vertical;
  border: 1px solid #b8d7e8;
  border-radius: 11px;
  padding: 10px;
  color: #183b53;
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
}
.lf-assistant form > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.lf-assistant__status {
  margin-right: auto;
  color: #5c7c91;
  font-size: 11px;
}
.lf-assistant__send,
.lf-assistant__stop {
  border: 0;
  border-radius: 10px;
  padding: 8px 13px;
  cursor: pointer;
}
.lf-assistant__send {
  background: #1f5a7e;
  color: #fff;
}
.lf-assistant__send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.lf-assistant__stop {
  background: #d3e9f4;
  color: #244f68;
}
@keyframes lf-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
@media (max-width: 600px) {
  .lf-assistant__launcher {
    top: max(0.58rem, env(safe-area-inset-top));
    left: calc(max(0.7rem, env(safe-area-inset-left)) + 10.09rem);
    width: 2.92rem;
    height: 2.92rem;
  }
  .lf-assistant__panel {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    height: min(620px, calc(100dvh - 16px));
  }
}
@media (min-width: 601px) and (max-width: 820px) {
  .lf-assistant__launcher {
    top: max(0.58rem, env(safe-area-inset-top));
    left: calc(max(0.7rem, env(safe-area-inset-left)) + 10.09rem);
    width: 2.92rem;
    height: 2.92rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lf-assistant__panel {
    animation: none;
  }
  .lf-assistant * {
    scroll-behavior: auto !important;
  }
}
