.itv-manual {
  --itv-manual-accent: #155eef;
  --itv-manual-text: #172033;
  --itv-manual-muted: #667085;
  --itv-manual-border: #e4e7ec;
  --itv-manual-bg: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--itv-manual-text);
  box-sizing: border-box;
  line-height: 1.45;
  font-size: 15px;
}
.itv-manual *, .itv-manual *::before, .itv-manual *::after { box-sizing: border-box; }
.itv-manual[hidden], .itv-manual [hidden] { display: none !important; }
.itv-manual--floating { position: fixed; bottom: 22px; z-index: 999999; }
.itv-manual--right { right: 22px; }
.itv-manual--left { left: 22px; }
.itv-manual__launcher {
  width: 58px; height: 58px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  color: #fff; background: var(--itv-manual-accent);
  box-shadow: 0 12px 30px rgba(16, 24, 40, .25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.itv-manual__launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(16, 24, 40, .3); }
.itv-manual__launcher:focus-visible, .itv-manual button:focus-visible, .itv-manual textarea:focus-visible, .itv-manual select:focus-visible, .itv-manual a:focus-visible { outline: 3px solid rgba(21, 94, 239, .25); outline-offset: 2px; }
.itv-manual--open .itv-manual__launcher { display: none; }
.itv-manual__panel {
  width: min(410px, calc(100vw - 28px));
  height: min(690px, calc(100vh - 44px));
  min-height: 470px;
  background: var(--itv-manual-bg); border: 1px solid var(--itv-manual-border); border-radius: 18px;
  overflow: hidden; box-shadow: 0 24px 70px rgba(16, 24, 40, .25);
  display: flex; flex-direction: column;
}
.itv-manual--inline { width: 100%; max-width: 800px; margin: 24px auto; }
.itv-manual--inline .itv-manual__panel { width: 100%; height: 720px; max-height: 82vh; box-shadow: 0 8px 30px rgba(16, 24, 40, .12); }
.itv-manual__header {
  min-height: 72px; padding: 13px 14px; display: flex; align-items: center; gap: 11px;
  color: #fff; background: var(--itv-manual-accent);
}
.itv-manual__avatar {
  width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center;
  border-radius: 12px; font-size: 13px; font-weight: 800; letter-spacing: .04em;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.34);
}
.itv-manual__identity { min-width: 0; flex: 1; }
.itv-manual__header strong { display: block; font-size: 16px; line-height: 1.25; color: inherit; }
.itv-manual__header span { display: block; opacity: .86; font-size: 12px; margin-top: 2px; }
.itv-manual__close, .itv-manual__reset {
  width: 34px; height: 34px; border: 0; border-radius: 9px; cursor: pointer;
  color: #fff; background: transparent; font-size: 25px; line-height: 1;
}
.itv-manual__reset { font-size: 21px; }
.itv-manual__close:hover, .itv-manual__reset:hover { background: rgba(255,255,255,.15); }
.itv-manual__messages {
  flex: 1; min-height: 0; padding: 18px 15px; overflow-y: auto; overscroll-behavior: contain;
  background: #f8fafc; scrollbar-width: thin;
}
.itv-manual__message { display: flex; margin: 0 0 13px; }
.itv-manual__message--assistant { justify-content: flex-start; }
.itv-manual__message--user { justify-content: flex-end; }
.itv-manual__bubble {
  max-width: 91%; padding: 11px 13px; border-radius: 15px;
  box-shadow: 0 1px 2px rgba(16,24,40,.06); overflow-wrap: anywhere;
}
.itv-manual__message--assistant .itv-manual__bubble { background: #fff; border: 1px solid var(--itv-manual-border); border-bottom-left-radius: 5px; }
.itv-manual__message--user .itv-manual__bubble { color: #fff; background: var(--itv-manual-accent); border-bottom-right-radius: 5px; }
.itv-manual__text { white-space: pre-wrap; }
.itv-manual__sources { display: grid; gap: 5px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--itv-manual-border); }
.itv-manual__sources strong { font-size: 11px; color: var(--itv-manual-muted); text-transform: uppercase; letter-spacing: .03em; }
.itv-manual__sources a { font-size: 12px; font-weight: 650; color: var(--itv-manual-accent); text-decoration: none; }
.itv-manual__sources a:hover { text-decoration: underline; }
.itv-manual__notice { padding: 8px 13px; background: #fffaeb; border-top: 1px solid #fedf89; color: #7a2e0e; font-size: 11px; line-height: 1.35; }
.itv-manual__form { padding: 10px 11px 11px; background: #fff; border-top: 1px solid var(--itv-manual-border); }
.itv-manual__form select {
  width: 100%; height: 36px; margin: 0 0 8px; padding: 4px 9px; border: 1px solid #d0d5dd; border-radius: 9px;
  color: var(--itv-manual-text); background: #fff; font: inherit; font-size: 12px; box-shadow: none;
}
.itv-manual__composer { display: flex; align-items: flex-end; gap: 8px; }
.itv-manual__composer textarea {
  flex: 1; min-width: 0; resize: none; max-height: 120px; min-height: 44px; margin: 0;
  padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 12px;
  color: var(--itv-manual-text); background: #fff; font: inherit; line-height: 1.4; box-shadow: none;
}
.itv-manual__composer textarea::placeholder { color: #98a2b3; }
.itv-manual__composer textarea:focus, .itv-manual__form select:focus { border-color: var(--itv-manual-accent); box-shadow: 0 0 0 3px rgba(21, 94, 239, .12); outline: none; }
.itv-manual__composer button[type=submit] {
  width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 12px; display: grid; place-items: center;
  color: #fff; background: var(--itv-manual-accent); cursor: pointer;
}
.itv-manual__form button:disabled, .itv-manual__form textarea:disabled, .itv-manual__form select:disabled { opacity: .58; cursor: wait; }
.itv-manual__typing { display: flex; gap: 5px; align-items: center; min-height: 39px; }
.itv-manual__typing span { width: 7px; height: 7px; border-radius: 50%; background: #98a2b3; animation: itv-manual-bounce 1.1s infinite ease-in-out; }
.itv-manual__typing span:nth-child(2) { animation-delay: .14s; }
.itv-manual__typing span:nth-child(3) { animation-delay: .28s; }
@keyframes itv-manual-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (max-width: 520px) {
  .itv-manual--floating { right: 10px; left: 10px; bottom: 10px; }
  .itv-manual--floating .itv-manual__launcher { margin-left: auto; }
  .itv-manual--left .itv-manual__launcher { margin-left: 0; }
  .itv-manual__panel { width: 100%; height: min(760px, calc(100vh - 20px)); border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .itv-manual__launcher, .itv-manual__typing span { animation: none; transition: none; }
}
