.faq-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 35;
  min-height: 48px;
  padding: 12px 16px;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(16, 21, 42, 0.12);
}
.faq-launcher svg {
  flex: 0 0 auto;
}
body:not([data-page='home']) .compact-footer {
  padding-bottom: 96px;
}
dialog.faq-chat {
  position: fixed;
  inset: auto 24px 88px auto;
  display: none;
  flex-direction: column;
  width: min(400px, calc(100vw - 48px));
  height: min(640px, calc(100dvh - 120px));
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: rgba(248, 250, 252, 0.96);
  color: var(--ink);
  box-shadow: 0 16px 48px rgba(16, 21, 42, 0.16);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.faq-chat[open] {
  display: flex;
}
.faq-chat::backdrop {
  background: rgba(16, 21, 42, 0.16);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.faq-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 16px 20px;
  background: var(--navy);
  color: var(--white);
}
.faq-chat-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}
.faq-chat-header p {
  margin: 4px 0 0;
  color: #c4c9d5;
  font-size: var(--text-note);
}
.faq-header-actions {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}
.faq-chat-header > :first-child {
  min-width: 0;
}
.faq-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}
.faq-chat-scroll {
  flex: 1;
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.faq-chat-log,
.faq-chat-turn {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-chat-turn .faq-message-answer + .faq-message-answer {
  margin-top: -8px;
}
.faq-message {
  margin: 0;
  padding: 12px 16px;
  font-size: var(--text-body);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.faq-message-answer {
  margin-right: 16px;
  background: rgba(16, 21, 42, 0.04);
}
.faq-message-question {
  margin-left: 32px;
  background: var(--navy);
  color: var(--white);
}
.faq-choices {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  border-top: 1px solid var(--content-row-line);
}
.faq-question {
  display: block;
  min-height: 44px;
  width: 100%;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid var(--content-row-line);
  background: transparent;
  color: var(--navy);
  text-align: left;
  font-size: var(--text-control);
  line-height: 1.6;
  text-decoration: none;
}
.faq-chat-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--content-row-line);
}
.faq-chat-footer p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: var(--text-note);
}
.faq-chat-footer .button {
  width: 100%;
  min-height: 44px;
}
@media (hover: hover) {
  .faq-question:hover {
    background: rgba(16, 21, 42, 0.06);
    text-decoration: none;
  }
  .faq-close:hover {
    background: rgba(255, 255, 255, 0.08);
  }
}
@media (max-width: 700px), (max-height: 500px) {
  .faq-launcher {
    right: 16px;
    bottom: 16px;
  }
  dialog.faq-chat {
    inset: auto 16px 16px auto;
    width: min(480px, calc(100vw - 32px));
    height: min(640px, calc(100dvh - 32px));
  }
  .faq-chat-scroll {
    padding: 16px;
  }
  .faq-chat-header {
    padding-left: 16px;
  }
  .faq-chat-footer {
    padding: 16px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  dialog.faq-chat {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media print {
  .faq-launcher,
  dialog.faq-chat,
  dialog.faq-chat[open] {
    display: none;
  }
}
