/* Optional assistant chrome. Keep it below operational dialogs and out of print. */
.pb-assistant-root {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1190;
  width: 52px;
  height: 52px;
  color: #172232;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
.pb-assistant-root *, .pb-assistant-root *::before, .pb-assistant-root *::after { box-sizing: border-box; }
.pb-assistant-root [hidden] { display: none !important; }
.pb-assistant-root button, .pb-assistant-root textarea { font: inherit; }
.pb-assistant-root button { cursor: pointer; }
.pb-assistant-root button:disabled { cursor: not-allowed; opacity: .55; }
.pb-assistant-root button:focus-visible, .pb-assistant-root textarea:focus-visible { outline: 3px solid #0878ef; outline-offset: 3px; }
.pb-assistant-launcher {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid #0969da;
  border-radius: 50%;
  background: #075dcc;
  color: #fff;
  box-shadow: 0 6px 22px #052b6640;
  transition: background 150ms ease, box-shadow 150ms ease;
}
.pb-assistant-launcher:hover, .pb-assistant-launcher[aria-expanded="true"] { background: #064ea9; box-shadow: 0 8px 24px #052b6655; }
.pb-assistant-launcher svg { width: 29px; height: 29px; }
.pb-assistant-launcher svg, .pb-assistant-mark svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pb-assistant-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(380px, calc(100vw - 36px));
  height: min(580px, calc(100vh - 112px));
  height: min(580px, calc(100dvh - 112px));
  overflow: hidden;
  border: 1px solid #d4deeb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 50px #102b5033;
}
.pb-assistant-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 14px 12px 14px 16px; border-bottom: 1px solid #24344b; background: #101721; color: #fff; }
.pb-assistant-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pb-assistant-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #315173; border-radius: 11px; background: #182b43; color: #81baff; }
.pb-assistant-mark svg { width: 24px; height: 24px; }
.pb-assistant-title { margin: 0; color: #fff; font-family: inherit; font-size: 17px; font-weight: 650; letter-spacing: -.2px; line-height: 1.3; }
.pb-assistant-subtitle { margin: 3px 0 0; color: #bac8d9; font-size: 12px; }
.pb-assistant-close { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #d5e0ee; font-size: 27px !important; font-weight: 400; line-height: 1; }
.pb-assistant-close:hover { background: #273750; color: #fff; }
.pb-assistant-connection { display: flex; align-items: flex-start; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #e1e8f1; background: #f2f6fb; }
.pb-assistant-notice { flex: 1; margin: 0; color: #405570; font-size: 12px; line-height: 1.5; }
.pb-assistant-connection[data-state="ready"] { background: #edf7f1; }
.pb-assistant-connection[data-state="ready"] .pb-assistant-notice { color: #25583e; }
.pb-assistant-connection[data-state="error"], .pb-assistant-connection[data-state="unavailable"] { background: #fff4e6; }
.pb-assistant-connection[data-state="error"] .pb-assistant-notice, .pb-assistant-connection[data-state="unavailable"] .pb-assistant-notice { color: #754809; }
.pb-assistant-retry { flex: 0 0 auto; min-height: 40px; max-width: 94px; padding: 5px 8px; border: 1px solid #ccd9e9; border-radius: 7px; background: #fff; color: #075dcc; font-size: 11px !important; font-weight: 600 !important; }
.pb-assistant-retry:hover { background: #e7f1ff; }
.pb-assistant-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px; scrollbar-width: thin; background: #fff; }
.pb-assistant-intro-heading { margin: 0 0 6px; color: #172232; font-size: 17px; font-weight: 600; }
.pb-assistant-description { margin: 0 0 14px; color: #586c83; font-size: 13px; line-height: 1.6; }
.pb-assistant-suggestions { display: flex; flex-wrap: wrap; gap: 7px; }
.pb-assistant-suggestion { min-height: 38px; padding: 7px 10px; border: 1px solid #d5e1f0; border-radius: 8px; background: #f7faff; color: #26476b; font-size: 12px !important; text-align: left; }
.pb-assistant-suggestion:hover { border-color: #98bce8; background: #edf4ff; }
.pb-assistant-history { display: grid; gap: 13px; }
.pb-assistant-message { min-width: 0; margin: 0; padding: 11px 12px; border: 1px solid #e0e8f2; border-radius: 10px; background: #f5f8fc; }
.pb-assistant-message-user { margin-left: 28px; border-color: #d6e6fb; background: #edf4ff; }
.pb-assistant-speaker { margin: 0 0 5px; color: #405570; font-size: 11px; font-weight: 650; }
.pb-assistant-message-text { margin: 0; color: #172232; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.pb-assistant-observed { margin: 9px 0 0; color: #586c83; font-size: 11px; }
.pb-assistant-composer { display: grid; gap: 8px; margin: 0; padding: 12px 14px; border-top: 1px solid #e1e8f1; background: #fafcfe; }
.pb-assistant-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pb-assistant-label { color: #405570; font-size: 12px; font-weight: 600; }
.pb-assistant-count { color: #586c83; font-size: 11px; }
.pb-assistant-question { display: block; width: 100%; min-height: 76px; max-height: 130px; margin: 0; padding: 10px 11px; resize: vertical; border: 1px solid #c9d6e7; border-radius: 8px; background: #fff; color: #172232; font-size: 13px !important; line-height: 1.5; }
.pb-assistant-question::placeholder { color: #6e8097; }
.pb-assistant-question[readonly] { background: #f0f4f9; }
.pb-assistant-composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pb-assistant-new-chat { min-height: 40px; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: #405570; font-size: 12px !important; }
.pb-assistant-new-chat:hover:not(:disabled) { background: #eaf0f8; }
.pb-assistant-send { min-width: 76px; min-height: 40px; padding: 8px 16px; border: 1px solid #075dcc; border-radius: 8px; background: #075dcc; color: #fff; font-size: 13px !important; font-weight: 600 !important; }
.pb-assistant-send:hover:not(:disabled) { background: #064ea9; }
.pb-assistant-keyboard-help { margin: 0; color: #586c83; font-size: 11px; text-align: right; }
/* Leave the eye in the corner and retain the existing messaging shortcut. */
body.pb-assistant-present .floating-messages-btn { right: max(84px, calc(env(safe-area-inset-right) + 66px)); }
@media (max-width: 600px) {
  .pb-assistant-root { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .pb-assistant-panel { width: min(380px, calc(100vw - 24px)); height: min(580px, calc(100vh - 96px)); height: min(580px, calc(100dvh - 96px)); border-radius: 13px; }
  body.pb-assistant-present .floating-messages-btn { right: max(78px, calc(env(safe-area-inset-right) + 66px)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .pb-assistant-keyboard-help { display: none; }
}
@media (max-height: 450px) {
  .pb-assistant-panel { bottom: 0; height: calc(100vh - 32px); height: calc(100dvh - 32px); }
  .pb-assistant-launcher[aria-expanded="true"] { visibility: hidden; }
  .pb-assistant-header { padding-top: 8px; padding-bottom: 8px; }
  .pb-assistant-composer { gap: 5px; padding-top: 8px; padding-bottom: 8px; }
  .pb-assistant-question { min-height: 54px; max-height: 74px; }
  .pb-assistant-keyboard-help { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pb-assistant-launcher { transition: none; } }
@media print { .pb-assistant-root { display: none !important; } }
