:root {
  --ll-navy: #063f73;
  --ll-blue: #086fb3;
  --ll-sky: #85cde8;
  --ll-cream: #f7f3eb;
  --ll-ink: #17313b;
  --ll-lime: #dff07d;
}

.ll-core-form,
.ll-core-chat {
  color: var(--ll-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.ll-core-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.ll-core-row {
  align-items: stretch;
  background: #fff;
  border: 1px solid #cbdde4;
  border-radius: 999px;
  display: flex;
  padding: 0.35rem;
}

.ll-core-row input {
  background: transparent;
  border: 0;
  flex: 1;
  min-width: 0;
  padding: 0 1rem;
}

.ll-core-form button,
.ll-core-chat button {
  background: var(--ll-navy);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 0.9rem 1.2rem;
}

.ll-core-consent {
  align-items: flex-start;
  display: flex;
  font-size: 0.78rem;
  gap: 0.5rem;
  line-height: 1.4;
  margin-top: 0.65rem;
}

.ll-core-hp {
  left: -9999px !important;
  opacity: 0 !important;
  position: absolute !important;
}

.ll-core-status {
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 1.3em;
}

.ll-core-feed {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.5fr 1fr 1fr;
}

.ll-core-story {
  background: #fff;
  border: 1px solid #dce7e9;
  border-radius: 1.1rem;
  overflow: hidden;
}

.ll-core-story img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.ll-core-story > div {
  padding: 1.25rem;
}

.ll-core-story h3 a {
  color: var(--ll-navy);
  text-decoration: none;
}

.ll-core-chat {
  background: #fff;
  border-radius: 1.35rem;
  box-shadow: 8px 8px 0 var(--ll-sky);
  max-width: 680px;
  padding: 1.25rem;
}

.ll-core-avatar {
  align-items: center;
  border-bottom: 1px solid #dce7e9;
  display: flex;
  gap: 0.85rem;
  padding-bottom: 1rem;
}

.ll-core-avatar img {
  border-radius: 50%;
  height: 74px;
  object-fit: cover;
  object-position: center 24%;
  width: 74px;
}

.ll-core-avatar strong,
.ll-core-avatar span {
  display: block;
}

.ll-core-avatar span {
  color: #477681;
  font-size: 0.75rem;
  font-weight: 800;
}

.ll-core-chat-log {
  max-height: 430px;
  overflow-y: auto;
  padding: 0.75rem 0;
}

.ll-core-bot,
.ll-core-user {
  border-radius: 1rem;
  line-height: 1.55;
  max-width: 88%;
  padding: 0.85rem 1rem;
}

.ll-core-bot {
  background: var(--ll-cream);
}

.ll-core-user {
  background: #e9f5f9;
  margin-left: auto;
}

.ll-core-chat textarea {
  border: 1px solid #cbdde4;
  border-radius: 0.9rem;
  display: block;
  min-height: 105px;
  padding: 0.8rem;
  resize: vertical;
  width: 100%;
}

.ll-core-chat button {
  margin-top: 0.75rem;
  width: 100%;
}

.ll-core-chat-actions {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1fr 1.15fr 1fr;
}

.ll-core-chat .ll-core-secondary {
  background: #e9f5f9;
  color: var(--ll-navy);
}

.ll-core-quota,
.ll-core-sources {
  color: #477681;
  display: block;
  font-size: 0.75rem;
  margin-top: 0.65rem;
}

@media (max-width: 720px) {
  .ll-core-feed {
    grid-template-columns: 1fr;
  }

  .ll-core-row {
    border-radius: 1rem;
    flex-direction: column;
  }

  .ll-core-row input {
    min-height: 48px;
  }

  .ll-core-form button {
    width: 100%;
  }

  .ll-core-chat-actions {
    grid-template-columns: 1fr;
  }
}
