.footer-chat__new:disabled {
  opacity: 0.5;
  cursor: wait;
}
.footer-chat__log {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-chat__log a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-chat__stream::after {
  content: " ▌";
  animation: chat-caret 1s step-end infinite;
}
@keyframes chat-caret {
  50% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer-chat__stream::after {
    animation: none;
  }
}
.footer-chat__message p {
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.footer-chat__input {
  width: 100%;
  min-height: 1.5rem;
}
.footer-chat__input:focus,
.footer-chat__input:focus-visible {
  outline: none;
  box-shadow: none;
}
.footer-chat__status {
  color: var(--muted-foreground);
  font-family: var(--font-mono), monospace;
  font-size: 0.75rem;
}
.footer-chat__status:empty {
  display: none;
}
.footer-chat__send:disabled {
  opacity: 0.5;
  cursor: wait;
}
.footer-chat__lead {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--border-strong);
  padding: 1rem;
  color: var(--background);
  font:
    0.75rem/1.4 var(--font-mono),
    monospace;
}
.footer-chat__lead > p {
  margin: 0;
}
.footer-chat__lead label {
  display: grid;
  gap: 0.375rem;
}
.footer-chat__lead input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  padding: 0.625rem;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: var(--inverse-bg-muted);
  color: inherit;
  font: inherit;
}
.footer-chat__lead input:focus-visible,
.footer-chat__lead button:focus-visible,
.footer-chat__lead a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}
.footer-chat__lead .footer-chat__consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.footer-chat__consent input {
  flex: 0 0 auto;
  margin-top: 0.2rem;
}
.footer-chat__consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-chat__lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-chat__lead button {
  padding: 0.625rem 0.75rem;
  border: 1px solid currentColor;
  font: inherit;
  cursor: pointer;
}
.footer-chat__lead button[type="submit"] {
  background: var(--background);
  color: var(--foreground);
}
.footer-chat__lead button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.footer-chat__lead-confirmation {
  color: var(--background);
  font:
    0.75rem/1.5 var(--font-mono),
    monospace;
}
