.ts-faq-launcher {
  position: fixed; right: 18px; bottom: 18px; z-index: 45;
  display: flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 12px; border: 1px solid #454c56; border-radius: 8px;
  background: #151923; color: #fff; font: 750 14px/1.2 system-ui, sans-serif;
  box-shadow: 0 6px 24px #12182635; touch-action: none; user-select: none; cursor: grab;
}
.ts-faq-launcher[hidden] { display: none; }
.ts-faq-launcher.is-dragging { cursor: grabbing; }
.ts-faq-launcher img { flex: 0 0 22px; }
.ts-faq-dialog {
  position: fixed; inset: 0; margin: auto; width: min(420px, calc(100vw - 24px));
  max-width: none; max-height: calc(100dvh - 24px); overflow-y: auto;
  border: 1px solid #d0d6dd; border-radius: 8px; padding: 0;
  background: #fff; color: #202633; box-shadow: 0 16px 55px #12182642;
}
.ts-faq-dialog:not([open]) { display: none; }
.ts-faq-dialog::backdrop { background: #15192370; }
.ts-faq-inline { position: sticky; top: 92px; border: 1px solid #d0d6dd; border-radius: 8px; background: #fff; }
.ts-faq-chat { color: #202633; font: 14px/1.45 system-ui, sans-serif; }
.ts-faq-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px 7px; }
.ts-faq-head h2 { margin: 0; font-size: 19px; font-weight: 800; }
.ts-faq-chat button { cursor: pointer; }
.ts-faq-chat button:disabled { opacity: .62; cursor: wait; }
.ts-faq-chat :focus-visible, .ts-faq-launcher:focus-visible { outline: 2px solid #007eb0; outline-offset: 2px; }
.ts-faq-close {
  display: grid; place-items: center; flex: 0 0 36px; height: 36px;
  border: 1px solid #d0d6dd; border-radius: 6px; color: #202633; background: #fff;
}
.ts-faq-privacy { margin: 0 15px; font-size: 13px; color: #566172; }
.ts-faq-chat [hidden] { display: none !important; }
.ts-faq-guide-picker {
  display: grid; gap: 4px; padding: 0 15px 9px; color: #26303d; font-weight: 750;
}
.ts-faq-guide-picker select {
  width: 100%; min-height: 42px; padding: 6px 9px; border: 1px solid #abb6c3;
  border-radius: 6px; background: #fff; color: #202633; font-size: 16px; font-weight: 500;
}
.ts-faq-walkthrough { padding: 0 15px 6px; }
.ts-faq-step-count { margin: 3px 0 7px; color: #566172; font-size: 13px; font-weight: 700; }
.ts-faq-step { padding: 10px 11px; border: 1px solid #d0d6dd; border-radius: 6px; background: #f5f7f9; }
.ts-faq-step h3 { margin: 0 0 6px; color: #202633; font-size: 16px; font-weight: 800; }
.ts-faq-step p { margin: 0; }
.ts-faq-step-links, .ts-faq-step-buttons { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 10px; }
.ts-faq-step-buttons button, .ts-faq-guide-action {
  min-height: 38px; padding: 4px 9px; border: 1px solid #abb6c3; border-radius: 6px;
  background: #fff; color: #202633; font: 750 13px/1.35 system-ui, sans-serif;
}
#ts-faq-step-next { background: #202633; color: #fff; }
.ts-faq-guide-action { display: block; margin-top: 7px; text-align: left; }
.ts-faq-prompts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 15px; }
.ts-faq-prompts button, .ts-faq-footer button {
  min-height: 34px; padding: 4px 9px; border: 1px solid #cbd3dc; border-radius: 6px;
  background: #fff; color: #253040; font: 700 12px/1.35 system-ui, sans-serif;
}
.ts-faq-prompts button:hover, .ts-faq-footer button:hover { background: #f4f6f8; }
.ts-faq-log {
  display: flex; flex-direction: column; gap: 7px; height: min(220px, 36dvh);
  overflow: auto; padding: 11px 15px; background: #f5f7f9; border-block: 1px solid #e3e8ed;
}
.ts-faq-message {
  flex: 0 0 auto; align-self: start; max-width: 100%; padding: 8px 10px;
  border: 1px solid #e0e5ea; border-radius: 6px; background: #fff; overflow-wrap: anywhere;
}
.ts-faq-message-user { align-self: end; color: #fff; background: #202633; }
.ts-faq-message a { display: block; margin-top: 6px; }
.ts-faq-chat a { color: #9f3715; text-decoration: underline; text-underline-offset: 2px; }
.ts-faq-form { display: grid; grid-template-columns: minmax(0, 1fr) 60px; gap: 8px; padding: 11px 15px 0; }
.ts-faq-form textarea {
  width: 100%; min-height: 48px; resize: vertical; max-height: 100px;
  border: 1px solid #abb6c3; border-radius: 6px; padding: 8px; color: #202633; font-size: 16px;
}
.ts-faq-form button { border: 0; border-radius: 6px; background: #202633; color: #fff; font-weight: 750; }
.ts-faq-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 9px 15px 12px; font-size: 13px; }
@media (max-width: 880px) { .ts-faq-inline { position: static; } }
@media (max-width: 640px) { .ts-faq-launcher { right: 12px; bottom: calc(68px + env(safe-area-inset-bottom)); } }
@media print { .ts-faq-launcher, .ts-faq-inline, .ts-faq-dialog { display: none !important; } }
