/* BridgePath's on-page guide. All styles are contained within its own UI. */
.bp-guide-root {
  --bp-guide-ink: #29322f;
  --bp-guide-muted: #505952;
  --bp-guide-accent: #79553d;
  --bp-guide-paper: #fffdf9;
  --bp-guide-cream: #f6f1e8;
  --bp-guide-peach: #f1e3d4;
  --bp-guide-border: #d8cfc1;
  position: relative;
  z-index: 1000;
  color: var(--bp-guide-ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  isolation: isolate;
}
.bp-guide-root *, .bp-guide-root *::before, .bp-guide-root *::after { box-sizing: border-box; }
.bp-guide-root [hidden], .bp-guide-root[hidden] { display: none !important; }
.bp-guide-root button, .bp-guide-root textarea, .bp-guide-root input, .bp-guide-root select { font: inherit; }
.bp-guide-root button, .bp-guide-root a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.bp-guide-root button { cursor: pointer; }
.bp-guide-root :focus-visible { outline: 3px solid #146466; outline-offset: 3px; border-radius: 5px; }
.bp-guide-root p { max-width: none; }
body.bp-guide-open { overflow: hidden; }
.bp-guide-launcher {
  position: fixed;
  z-index: 80;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  max-width: calc(100vw - 32px);
  padding: 10px 20px 10px 10px;
  border: 1px solid #9eaa9f;
  border-radius: 42px;
  background: #29322f;
  color: #fffdf9;
  box-shadow: 0 8px 28px rgba(27, 40, 33, .19);
  text-align: left;
  transition: background-color .15s, box-shadow .15s;
}
.bp-guide-launcher:hover { background: #414e46; box-shadow: 0 10px 30px rgba(27, 40, 33, .24); }
.bp-guide-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid #e6e0d5;
  background: #fff;
}
.bp-guide-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.14); }
.bp-guide-launcher-copy { display: block; min-width: 0; }
.bp-guide-launcher-copy strong { display: block; font-size: 17px; line-height: 1.4; font-weight: 650; }
.bp-guide-launcher-copy > span { display: block; font-size: 14px; line-height: 1.5; color: #eee6dc; }
.bp-guide-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(26, 34, 30, .32); }
.bp-guide-panel {
  position: fixed;
  z-index: 100;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  width: 430px;
  max-width: calc(100vw - 32px);
  height: min(760px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid #b7b4a8;
  border-radius: 22px;
  background: var(--bp-guide-cream);
  box-shadow: 0 24px 70px rgba(23, 33, 27, .22);
  color: var(--bp-guide-ink);
}
.bp-guide-header {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 13px;
  padding: 20px 18px 17px;
  border-bottom: 1px solid var(--bp-guide-border);
  background: var(--bp-guide-paper);
}
.bp-guide-header > div:not(.bp-guide-avatar) { min-width: 0; flex: 1; }
.bp-guide-header .bp-guide-avatar { width: 48px; height: 48px; }
.bp-guide-panel .bp-guide-header h2,
.bp-guide-header strong { display: block; font-family: "Segoe UI", Arial, sans-serif; font-size: 20px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; margin: 0; color: var(--bp-guide-ink); }
.bp-guide-header p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--bp-guide-muted); }
.bp-guide-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--bp-guide-border);
  border-radius: 50%;
  background: #fff;
  color: var(--bp-guide-ink);
  font-size: 25px !important;
  font-weight: 400;
  line-height: 1;
}
.bp-guide-close:hover { background: var(--bp-guide-cream); }
.bp-guide-tools { display: flex; flex-wrap: wrap; flex: 0 0 auto; gap: 6px; padding: 6px 15px; border-bottom: 1px solid var(--bp-guide-border); background: var(--bp-guide-paper); }
.bp-guide-tools button { min-height: 44px; padding: 8px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--bp-guide-accent); font-size: 15px; line-height: 1.5; font-weight: 600; }
.bp-guide-tools button:hover { background: var(--bp-guide-cream); }
.bp-guide-thread {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #aaa99d transparent;
  padding: 22px 18px 18px;
  scroll-padding-block: 18px;
}
.bp-guide-message {
  width: fit-content;
  max-width: 100%;
  padding: 16px;
  margin: 0 0 18px;
  border: 1px solid var(--bp-guide-border);
  border-radius: 16px 16px 16px 5px;
  background: var(--bp-guide-paper);
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: normal;
}
.bp-guide-message.assistant { margin-right: 10px; }
.bp-guide-message.visitor { margin-left: auto; max-width: 90%; border-color: #ddc9b4; border-radius: 16px 16px 5px 16px; background: var(--bp-guide-peach); }
.bp-guide-message p { margin: 0 0 12px; font-size: 18px; line-height: 1.65; white-space: pre-line; }
.bp-guide-message p:last-child { margin-bottom: 0; }
.bp-guide-message > strong { display: block; margin-bottom: 6px; font-size: 14px; color: var(--bp-guide-accent); }
.bp-guide-message .bp-guide-message-label { display: block; margin: 0 0 7px; font-size: 14px; font-weight: 650; line-height: 1.5; color: var(--bp-guide-accent); }
.bp-guide-message a { color: #146466; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.bp-guide-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.bp-guide-chip,
.bp-guide-choice {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  padding: 10px 13px;
  border: 1px solid #a8aaa0;
  border-radius: 10px;
  background: #fff;
  color: var(--bp-guide-ink);
  font-size: 16px !important;
  line-height: 1.5;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.bp-guide-chip:hover, .bp-guide-choice:hover { background: #f1e8dc; border-color: #9b826a; }
.bp-guide-chip.primary, .bp-guide-chip[data-variant="primary"] { background: var(--bp-guide-ink); border-color: var(--bp-guide-ink); color: #fffdf9; }
.bp-guide-chip.primary:hover, .bp-guide-chip[data-variant="primary"]:hover { background: #414e46; }
.bp-guide-choice { display: flex; width: 100%; }
.bp-guide-choice[aria-pressed="true"] { background: #f1e3d4; border-color: #79553d; }
.bp-guide-card { margin-top: 16px; padding: 16px; border: 1px solid #d1c5b4; border-radius: 11px; background: #faf5ed; }
.bp-guide-panel .bp-guide-card h2, .bp-guide-panel .bp-guide-card h3 { font-family: "Segoe UI", Arial, sans-serif; font-size: 20px; line-height: 1.35; letter-spacing: -.01em; font-weight: 650; margin: 0 0 12px; color: var(--bp-guide-ink); }
.bp-guide-card p, .bp-guide-card li { font-size: 17px; line-height: 1.65; }
.bp-guide-card ul, .bp-guide-card ol { margin: 12px 0 0; padding-left: 22px; }
.bp-guide-card li { margin-block: 8px; }
.bp-guide-card strong { font-size: inherit; }
.bp-guide-card label { display: block; margin: 14px 0 7px; font-size: 16px; font-weight: 600; }
.bp-guide-progress, .bp-guide-message .bp-guide-progress { display: block; margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--bp-guide-accent); line-height: 1.5; }
.bp-guide-notice { margin: 14px 0 0; padding: 12px; border-left: 3px solid #b99b7d; background: #f6efe5; font-size: 15px; color: var(--bp-guide-muted); line-height: 1.6; }
.bp-guide-review { margin-top: 15px; }
.bp-guide-review label, .bp-guide-editor label { display: block; margin-bottom: 7px; font-size: 16px; font-weight: 600; color: var(--bp-guide-ink); }
.bp-guide-review dl { margin: 0; }
.bp-guide-review dt { margin-top: 13px; font-size: 15px; font-weight: 650; color: var(--bp-guide-accent); }
.bp-guide-review dd { margin: 3px 0 0; font-size: 17px; line-height: 1.6; }
.bp-guide-editor { margin-top: 15px; }
.bp-guide-brief-text, .bp-guide-editor textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 210px;
  max-height: 330px;
  padding: 12px;
  border: 1px solid #8f9a90;
  border-radius: 8px;
  background: #fff;
  color: var(--bp-guide-ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
  overflow-wrap: anywhere;
}
.bp-guide-footer { flex: 0 0 auto; padding: 15px 16px 14px; border-top: 1px solid var(--bp-guide-border); background: var(--bp-guide-paper); }
.bp-guide-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: end; margin: 0; }
.bp-guide-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  height: 60px;
  min-height: 52px;
  max-height: 130px;
  padding: 12px 13px;
  border: 1px solid #8c978e;
  border-radius: 10px;
  background: #fff;
  color: var(--bp-guide-ink);
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
}
.bp-guide-form textarea::placeholder { color: #5a635c; opacity: 1; }
.bp-guide-form button {
  min-width: 58px;
  min-height: 52px;
  padding: 12px;
  border: 1px solid var(--bp-guide-ink);
  border-radius: 10px;
  background: var(--bp-guide-ink);
  color: #fffdf9;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
}
.bp-guide-form button:hover { background: #414e46; }
.bp-guide-root button:disabled { opacity: .55; cursor: not-allowed; }
.bp-guide-disclosure { display: block; margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--bp-guide-muted); }
.bp-guide-disclosure a { text-decoration: underline; text-underline-offset: 3px; color: var(--bp-guide-accent); }
.bp-guide-status { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: #146466; overflow-wrap: anywhere; }
.bp-guide-status:empty { display: none; }
.bp-guide-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 560px) {
  .bp-guide-launcher { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); min-height: 65px; padding: 8px 16px 8px 8px; gap: 10px; }
  .bp-guide-launcher .bp-guide-avatar { width: 46px; height: 46px; }
  .bp-guide-launcher-copy strong { font-size: 16px; }
  .bp-guide-launcher-copy > span { font-size: 14px; }
  .bp-guide-panel { inset: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); width: auto; max-width: none; height: auto; max-height: calc(100dvh - 24px); border-radius: 18px; }
  .bp-guide-header { padding: 15px 13px; gap: 10px; }
  .bp-guide-header .bp-guide-avatar { width: 43px; height: 43px; }
  .bp-guide-panel .bp-guide-header h2, .bp-guide-header strong { font-size: 18px; }
  .bp-guide-header p { font-size: 14px; }
  .bp-guide-tools { padding: 4px 10px; gap: 2px; }
  .bp-guide-tools button { padding: 8px 10px; font-size: 14px; }
  .bp-guide-thread { padding: 17px 12px; }
  .bp-guide-message { padding: 14px; }
  .bp-guide-message.assistant { margin-right: 0; }
  .bp-guide-message.visitor { max-width: 94%; }
  .bp-guide-message p { font-size: 17px; line-height: 1.65; }
  .bp-guide-actions { gap: 8px; }
  .bp-guide-chip { padding: 10px 12px; }
  .bp-guide-card { padding: 13px; }
  .bp-guide-panel .bp-guide-card h2, .bp-guide-panel .bp-guide-card h3 { font-size: 19px; }
  .bp-guide-footer { padding: 12px; }
  .bp-guide-form { gap: 7px; }
  .bp-guide-form textarea { height: 58px; padding: 10px; resize: none; }
  .bp-guide-form button { min-width: 53px; padding: 10px; }
  .bp-guide-disclosure { font-size: 14px; margin-top: 8px; }
}
@media (max-height: 580px) {
  .bp-guide-panel { bottom: 8px; max-height: calc(100dvh - 16px); height: calc(100dvh - 16px); }
  .bp-guide-header { padding-block: 10px; }
  .bp-guide-header .bp-guide-avatar { width: 38px; height: 38px; }
  .bp-guide-tools { padding-block: 1px; }
  .bp-guide-thread { padding-block: 12px; }
  .bp-guide-footer { padding-block: 10px; }
  .bp-guide-form textarea { height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .bp-guide-root *, .bp-guide-root *::before, .bp-guide-root *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print { .bp-guide-root { display: none !important; } }
