/* BOOSTSCIENCE Chat Experience 0.5.0 — original, dependency-free interface */
.bsx-root {
  --bsx-ink: #17203b;
  --bsx-muted: #63708a;
  --bsx-border: #e5e8f0;
  --bsx-purple: #5035cc;
  --bsx-purple-deep: #37259c;
  --bsx-aqua: #c7f5ee;
  --bsx-paper: #fff;
  --bsx-fog: #f7f9fc;
  --bsx-focus: #1669ce;
  color: var(--bsx-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
}
.bsx-root *, .bsx-root *::before, .bsx-root *::after { box-sizing: border-box; }
.bsx-root [hidden] { display: none !important; }
.bsx-root button, .bsx-root textarea { font-family: inherit; }
.bsx-root button {
  appearance: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.bsx-root button:focus-visible, .bsx-root a:focus-visible, .bsx-root textarea:focus-visible {
  outline: 3px solid var(--bsx-focus) !important; outline-offset: 3px !important;
}
.bsx-root button:disabled { cursor: wait; opacity: .55; }
.bsx-root svg { display: block; flex: 0 0 auto; }
.bsx-root h2, .bsx-root h3, .bsx-root p { padding: 0; margin: 0; color: inherit; }
.bsx-root a { text-decoration: none; }
.bsx-root .bsx-dock {
  position: fixed; right: 22px; bottom: max(20px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 4px; padding: 5px;
  border: 1px solid rgba(70, 46, 144, .13);
  border-radius: 999px; background: #fff;
  box-shadow: 0 14px 44px rgba(30, 27, 84, .19), 0 3px 9px rgba(28, 33, 65, .08);
  z-index: 2147482900; max-width: calc(100vw - 24px);
}
.bsx-root .bsx-dock-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 20px; background: #5135cb;
  border: 0; border-radius: 999px; color: #fff;
  font-size: 14px; line-height: 1.2; font-weight: 700;
  white-space: nowrap; box-shadow: inset 0 1px rgba(255,255,255,.19);
}
.bsx-root .bsx-dock-primary:hover { background: #3c279f; }
.bsx-root .bsx-dock-quick {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; min-width: 52px;
  border: 0; border-radius: 999px; color: #3a268d; background: #f2f1fb;
}
.bsx-root .bsx-dock-quick:hover { background: #e6e2f9; }
.bsx-root .bsx-quick-panel {
  position: fixed; right: 20px; bottom: max(20px, env(safe-area-inset-bottom));
  width: min(418px, calc(100vw - 32px));
  height: min(680px, calc(100dvh - 40px));
  min-height: 320px;
  display: flex; flex-direction: column;
  overflow: hidden; isolation: isolate;
  border: 1px solid rgba(80, 64, 143, .17);
  border-radius: 24px; background: var(--bsx-paper);
  box-shadow: 0 28px 85px rgba(25, 25, 57, .20), 0 7px 22px rgba(17, 28, 54, .11);
  z-index: 2147483000;
}
.bsx-root .bsx-topbar,
.bsx-root .bsx-full-header {
  display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 10px; padding: 13px 18px;
  border-bottom: 1px solid var(--bsx-border);
  background: #fff;
}
.bsx-root .bsx-topbar-brand, .bsx-root .bsx-topbar-titles { min-width: 0; }
.bsx-root .bsx-topbar-brand {
  display: flex; align-items: center; gap: 11px;
}
.bsx-root .bsx-head-sparkle {
  display: grid; flex: 0 0 40px; place-items: center;
  width: 40px; height: 40px; font-size: 21px; line-height: 1;
  background: linear-gradient(145deg, #4d2fc5, #2e73cd);
  color: #fff; border-radius: 13px;
}
.bsx-root .bsx-topbar h2 {
  color: #222342; font-size: 16px; line-height: 1.2; font-weight: 760;
}
.bsx-root .bsx-topbar p {
  color: var(--bsx-muted); font-size: 11px; line-height: 1.3; margin-top: 4px;
}
.bsx-root .bsx-tools, .bsx-root .bsx-full-tools { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; }
.bsx-root .bsx-icon-button {
  width: 44px; height: 44px; min-width: 44px;
  display: inline-grid; place-items: center;
  border: 0; border-radius: 13px; background: transparent;
  color: #525a79;
}
.bsx-root .bsx-icon-button:hover { background: #eeeff9; color: #3e2ca8; }
.bsx-root .bsx-scroll {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, #fafbfe 0%, #fff 36%);
  scrollbar-color: #d5d9e9 transparent;
  display: flex; flex-direction: column; padding: 22px 19px;
}
.bsx-root .bsx-welcome {
  width: 100%; margin: auto; text-align: center;
}
.bsx-root .bsx-welcome-glyph {
  display: inline-grid; place-items: center;
  height: 64px; width: 64px; margin-bottom: 18px;
  border-radius: 22px; color: #4e35c7;
  background: linear-gradient(145deg, #eeebff 20%, #e6fbf6);
}
.bsx-root .bsx-welcome-glyph svg { width: 28px; height: 28px; }
.bsx-root .bsx-welcome-title {
  max-width: 650px; margin: 0 auto !important;
  font-size: clamp(23px, 3vw, 34px); line-height: 1.15;
  font-weight: 780; letter-spacing: -.035em; color: #1a2440;
}
.bsx-root .bsx-welcome-description {
  max-width: 570px; margin: 13px auto 0 !important;
  color: var(--bsx-muted); font-size: 15px; line-height: 1.65;
}
.bsx-root .bsx-suggestions-label {
  margin: 30px 0 11px !important; color: #69758d;
  font-size: 11px; letter-spacing: .08em; font-weight: 750; text-transform: uppercase;
}
.bsx-root .bsx-suggestions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; max-width: 650px; margin: auto;
}
.bsx-root .bsx-suggestion {
  display: inline-flex; justify-content: space-between; align-items: center; gap: 9px;
  min-height: 50px; width: 100%; padding: 12px 14px;
  border: 1px solid #e2e5f1; border-radius: 14px;
  background: #fff; color: #31285c;
  box-shadow: 0 1px 3px rgba(25,24,65,.03);
  font-weight: 650; font-size: 13px; line-height: 1.3; text-align: left;
}
.bsx-root .bsx-suggestion:hover {
  border-color: #bdb4ef; background: #f7f4ff;
}
.bsx-root .bsx-suggestion svg { width: 15px; height: 15px; opacity: .65; }
.bsx-root .bsx-welcome-compact .bsx-welcome-glyph { width: 52px; height: 52px; border-radius: 17px; margin-bottom: 12px; }
.bsx-root .bsx-welcome-compact .bsx-welcome-title { font-size: 24px; }
.bsx-root .bsx-welcome-compact .bsx-welcome-description { font-size: 13px; line-height: 1.55; }
.bsx-root .bsx-welcome-compact .bsx-suggestions-label { margin-top: 23px !important; }
.bsx-root .bsx-welcome-compact .bsx-suggestion { padding: 10px 10px; font-size: 12px; min-height: 49px; }
.bsx-root .bsx-log { width: 100%; max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.bsx-root .bsx-message { width: fit-content; max-width: min(80%, 700px); min-width: 0; align-self: flex-start; }
.bsx-root .bsx-message-user { align-self: flex-end; }
.bsx-root .bsx-message-text {
  padding: 13px 16px; background: #fff;
  border: 1px solid #e7e9f1; border-radius: 17px 17px 17px 4px;
  color: #26334e; font-size: 14px; line-height: 1.65;
  white-space: pre-wrap; overflow-wrap: anywhere;
  box-shadow: 0 2px 7px rgba(20,28,55,.035);
}
.bsx-root .bsx-message-user .bsx-message-text {
  background: #ebeefe; border-color: #e0e3fc; color: #23235f;
  border-radius: 17px 17px 4px 17px; box-shadow: none;
}
.bsx-root .bsx-message-pending .bsx-message-text { color: #6b7292; font-style: italic; }
.bsx-root .bsx-message-error .bsx-message-text { border-color: #f1d4d3; background: #fff7f5; color: #863e3e; }
.bsx-root .bsx-citations {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 7px; margin-top: 8px;
}
.bsx-root .bsx-citations-label {
  width: 100%; color: #737d93; font-size: 10px; font-weight: 760;
  text-transform: uppercase; letter-spacing: .055em;
}
.bsx-root .bsx-citation-link {
  display: inline-block; max-width: 100%; padding: 5px 9px;
  border: 1px solid #dde4f8; border-radius: 9px;
  background: #f5f7ff; color: #4335a6;
  font-size: 11px; line-height: 1.4; overflow-wrap: anywhere;
}
.bsx-root .bsx-citation-link:hover { border-color: #b1a5ec; background: #ece8fe; text-decoration: underline; }
.bsx-root .bsx-compose {
  display: flex; gap: 11px; align-items: flex-end; flex: 0 0 auto;
  padding: 14px 18px 10px; background: #fff;
  border-top: 1px solid var(--bsx-border);
}
.bsx-root .bsx-input {
  flex: 1 1 auto; display: block; min-width: 0; max-width: 100%;
  min-height: 54px; max-height: 126px;
  resize: vertical; overflow-y: auto; padding: 14px 15px;
  background: #fff; border: 1px solid #d5dae7; border-radius: 15px;
  box-shadow: inset 0 1px 2px rgba(17,25,56,.02);
  color: #1f2a43; font-size: 16px; line-height: 1.4;
}
.bsx-root .bsx-input::placeholder { color: #8994a7; opacity: 1; }
.bsx-root .bsx-input:disabled { opacity: .6; }
.bsx-root .bsx-send {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex: 0 0 auto; padding: 0 16px;
  min-height: 54px; border: 0; border-radius: 15px;
  background: var(--bsx-purple); color: #fff;
  font-size: 13px; font-weight: 720;
}
.bsx-root .bsx-send:hover { background: var(--bsx-purple-deep); }
.bsx-root .bsx-send svg { width: 17px; height: 17px; }
.bsx-root .bsx-disclaimer {
  flex: 0 0 auto; background: #fff; text-align: center;
  padding: 0 16px 13px; color: #737d92; font-size: 10px; line-height: 1.45;
}
.bsx-root .bsx-full-overlay {
  position: fixed; inset: 0; z-index: 2147483100;
  display: flex; align-items: stretch; justify-content: center;
  background: rgba(18, 19, 47, .66);
  font-size: 15px; overscroll-behavior: contain;
}
.bsx-root .bsx-full-shell {
  width: 100%; max-width: 1600px; height: 100vh; height: 100dvh;
  min-height: 0; min-width: 0;
  display: grid; grid-template-columns: minmax(250px, 298px) minmax(0,1fr);
  background: #fff; overflow: hidden;
  box-shadow: 0 0 90px rgba(15,14,55,.25);
}
.bsx-root .bsx-sidebar {
  display: flex; min-height: 0; flex-direction: column;
  padding: 34px 29px; border-right: 1px solid #e7e7f0;
  background:
    radial-gradient(circle at 0% 100%, #d7f7ef 0%, transparent 55%),
    linear-gradient(165deg, #f1f0ff 0%, #f7f8fc 58%, #f6fffd 100%);
}
.bsx-root .bsx-brand { display: flex; gap: 13px; align-items: center; }
.bsx-root .bsx-brand-symbol {
  width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 43px;
  color: #fff; font-size: 23px; border-radius: 14px;
  background: linear-gradient(135deg,#4025b9,#37a6a9);
}
.bsx-root .bsx-brand-words { display: flex; flex-direction: column; min-width: 0; }
.bsx-root .bsx-brand-words strong { font-size: 15px; font-weight: 800; color: #25235b; letter-spacing: -.028em; }
.bsx-root .bsx-brand-words small { font-size: 10px; color: #77778c; font-weight: 700; letter-spacing: .11em; }
.bsx-root .bsx-sidebar-divider { height: 1px; background: #dadbea; margin: 36px 0 26px; }
.bsx-root .bsx-sidebar-kicker { color: #6c6994; text-transform: uppercase; font-size: 11px; font-weight: 760; letter-spacing: .11em; margin-bottom: 14px; }
.bsx-root .bsx-sidebar-suggestions { display: flex; flex-direction: column; gap: 9px; }
.bsx-root .bsx-sidebar-suggestions .bsx-suggestion {
  background: rgba(255,255,255,.67); border-color: #e6e4f3;
}
.bsx-root .bsx-sidebar-bottom { margin-top: auto; padding-top: 24px; }
.bsx-root .bsx-observatory-link {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; font-size: 12px; font-weight: 740; color: #4933b6;
}
.bsx-root .bsx-observatory-link:hover { text-decoration: underline; }
.bsx-root .bsx-observatory-link svg { width: 15px; height: 15px; }
.bsx-root .bsx-sidebar-bottom p { margin-top: 13px; color: #79849a; font-size: 11px; line-height: 1.55; }
.bsx-root .bsx-full-main {
  display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #fff;
}
.bsx-root .bsx-full-header {
  min-height: 86px; padding: 17px clamp(20px,3vw,48px);
}
.bsx-root .bsx-full-title-block { min-width: 0; }
.bsx-root .bsx-full-title-block h2 { font-size: 19px; font-weight: 770; letter-spacing: -.02em; }
.bsx-root .bsx-full-title-block p { margin-top: 4px; color: #778097; font-size: 12px; }
.bsx-root .bsx-full-main .bsx-scroll { padding: 35px clamp(20px,5vw,85px); }
.bsx-root .bsx-full-main .bsx-welcome-title { font-size: clamp(30px,4.3vw,48px); }
.bsx-root .bsx-full-main .bsx-compose {
  padding: 18px clamp(22px,5vw,85px) 12px;
}
.bsx-root .bsx-full-main .bsx-disclaimer { padding-bottom: 18px; font-size: 11px; }
.bsx-root .bsx-full-main .bsx-message { max-width: min(79%,780px); }
@media (max-width: 950px) {
  .bsx-root .bsx-full-shell { grid-template-columns: minmax(0,1fr); }
  .bsx-root .bsx-sidebar { display: none; }
  .bsx-root .bsx-full-main .bsx-scroll { padding: 25px clamp(20px,5vw,70px); }
}
@media (max-width: 640px) {
  .bsx-root .bsx-dock { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .bsx-root .bsx-dock-primary { min-height: 49px; font-size: 12px; padding: 0 12px; gap: 6px; }
  .bsx-root .bsx-dock-quick { width: 49px; height: 49px; min-width: 49px; }
  .bsx-root .bsx-quick-panel {
    inset: 0; width: 100vw; height: 100vh; height: 100dvh; min-height: 0;
    border: none; border-radius: 0;
  }
  .bsx-root .bsx-full-header, .bsx-root .bsx-topbar {
    min-height: 72px; padding: 11px 12px;
  }
  .bsx-root .bsx-full-title-block h2 { font-size: 16px; }
  .bsx-root .bsx-full-title-block p { font-size: 11px; }
  .bsx-root .bsx-topbar-brand { gap: 7px; }
  .bsx-root .bsx-head-sparkle { width: 34px; height: 34px; flex-basis: 34px; }
  .bsx-root .bsx-tools, .bsx-root .bsx-full-tools { gap: 0; }
  .bsx-root .bsx-icon-button { width: 44px; height: 44px; min-width: 44px; }
  .bsx-root .bsx-scroll, .bsx-root .bsx-full-main .bsx-scroll { padding: 19px 14px; }
  .bsx-root .bsx-compose, .bsx-root .bsx-full-main .bsx-compose { padding: 10px 11px 8px; gap: 8px; }
  .bsx-root .bsx-send { min-height: 50px; padding: 0 11px; }
  .bsx-root .bsx-input { min-height: 50px; }
  .bsx-root .bsx-message { max-width: 90%; }
  .bsx-root .bsx-full-main .bsx-message { max-width: 90%; }
  .bsx-root .bsx-welcome-glyph { height: 55px; width: 55px; margin-bottom: 14px; }
  .bsx-root .bsx-welcome-title { font-size: 24px; }
  .bsx-root .bsx-full-main .bsx-welcome-title { font-size: 30px; }
  .bsx-root .bsx-welcome-description { font-size: 13px; }
  .bsx-root .bsx-suggestions { gap: 8px; }
  .bsx-root .bsx-suggestion { padding: 9px 10px; font-size: 12px; }
  .bsx-root .bsx-full-main .bsx-disclaimer { padding: 0 10px 10px; }
  .bsx-root .bsx-disclaimer { font-size: 9px; }
}
@media (max-width: 360px) {
  .bsx-root .bsx-dock { left: 12px; right: 12px; width: auto; max-width: none; }
  .bsx-root .bsx-dock-primary { flex: 1 1 auto; min-width: 0; width: 0; overflow: hidden; }
  .bsx-root .bsx-dock-primary .bsx-button-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bsx-root .bsx-dock-quick { flex: 0 0 49px; }
  .bsx-root .bsx-full-title-block p, .bsx-root .bsx-topbar-titles p { display: none; }
  .bsx-root .bsx-suggestions { grid-template-columns: 1fr; }
  .bsx-root .bsx-compose .bsx-send .bsx-button-label { display: none; }
  .bsx-root .bsx-send { width: 52px; }
  .bsx-root .bsx-full-main .bsx-welcome-title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .bsx-root *, .bsx-root *::before, .bsx-root *::after {
    scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important;
  }
}
@media (forced-colors: active) {
  .bsx-root .bsx-dock-primary, .bsx-root .bsx-send { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .bsx-root .bsx-suggestion, .bsx-root .bsx-quick-panel, .bsx-root .bsx-full-shell { border: 1px solid CanvasText; }
}
