/**
 * Labby for Labbrary+. Brand Kit 1.0 presentation.
 * CSS-only replacement. Keep the existing markup, copy, assets and JS.
 * THEME SEAM: override properties on .lba-root after this stylesheet.
 */
.lba-root {
  --lba-accent: #080b12;
  --lba-accent-soft: #fffcf7;
  --lba-accent-text: #fffcf6;
  --lba-bg: #f7f4ed;
  --lba-card: #fffcf7;
  --lba-text: #080b12;
  --lba-muted: #626774;
  --lba-border: #dedad0;
  --lba-chip-bg: #fffcf7;
  --lba-chip-text: #171b25;
  --lba-user-bg: #171b25;
  --lba-user-text: #fffcf6;
  --lba-violet: #8d7cff;
  --lba-selected-bg: #eae5ff;
  --lba-selected-text: #352669;
  --lba-focus: #6551c8;
  --lba-danger: #9d3449;
  --lba-spectrum: linear-gradient(100deg,#8d7cff,#61b4ff,#51e3ce,#f4d6a2,#ff829f);
  --lba-shadow: 0 24px 64px -16px rgb(8 11 18 / 28%), 0 4px 16px rgb(8 11 18 / 10%);
  --lba-radius: 24px;
  --lba-radius-sm: 16px;
  --lba-font: 'Manrope', sans-serif;
  --lba-editorial-font: 'Newsreader', Georgia, serif;
  --lba-fab-size: 68px;
  --lba-panel-width: 420px;
  --lba-panel-height: 680px;
  --lba-z: 99990;
  --lba-edge: 20px;
  position: fixed;
  right: max(var(--lba-edge), env(safe-area-inset-right, 0px));
  bottom: max(var(--lba-edge), env(safe-area-inset-bottom, 0px));
  z-index: var(--lba-z);
  color: var(--lba-text);
  font-family: var(--lba-font);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}
.lba-root, .lba-root * { box-sizing: border-box; }
.lba-root ~ .lba-root { display: none !important; }
.lba-root button, .lba-root input { font-family: var(--lba-font); margin: 0; letter-spacing: normal; }
.lba-root button { cursor: pointer; text-transform: none; box-shadow: none; }
.lba-root button, .lba-root a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.lba-root :is(button,a,input):focus-visible { outline: 2px solid var(--lba-focus); outline-offset: 3px; }
.lba-root :is(button,a) { transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.lba-root button:disabled { opacity: .5; cursor: not-allowed; }
.lba-root [hidden] { display: none !important; }

/* THEME SEAM: original pixel character, with no button rectangle. */
.lba-root :is(.lba-fab,.lba-restore,.lba-hide),
.lba-root :is(.lba-fab,.lba-restore,.lba-hide):is(:hover,:active,:focus) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
  color: var(--lba-muted);
}
.lba-root .lba-fab { width: var(--lba-fab-size); height: var(--lba-fab-size); overflow: visible; }
.lba-labby { display: block; width: 52px; height: 64px; }
.lba-root .lba-labby img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 4px 10px rgba(15, 42, 67, 0.25)); }
.lba-root .lba-hide { position: absolute; right: -8px; bottom: 52px; width: 36px; height: 36px; font-size: 22px; line-height: 1; }
.lba-root .lba-restore { width: 52px; height: 52px; }
.lba-restore img { width: 40px; height: 48px; object-fit: contain; image-rendering: pixelated; }
.lba-root.lba-open .lba-hide,
.lba-root.lba-hidden .lba-fab,
.lba-root.lba-hidden .lba-hide,
.lba-root.lba-hidden .lba-panel { display: none; }

/* THEME SEAM: ink frame, warm paper reading surface. */
.lba-panel {
  position: absolute;
  right: 0;
  bottom: calc(var(--lba-fab-size) + 12px);
  display: flex;
  flex-direction: column;
  width: var(--lba-panel-width);
  max-width: calc(100vw - var(--lba-edge) * 2);
  height: var(--lba-panel-height);
  max-height: calc(100vh - var(--lba-fab-size) - var(--lba-edge) * 2 - 12px);
  max-height: calc(100dvh - var(--lba-fab-size) - var(--lba-edge) * 2 - 12px - env(safe-area-inset-bottom, 0px));
  background: var(--lba-bg);
  border: 1px solid var(--lba-border);
  border-radius: var(--lba-radius);
  box-shadow: var(--lba-shadow);
  overflow: hidden;
  isolation: isolate;
}
.lba-header {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 80px;
  padding: 16px;
  background: var(--lba-accent);
  color: var(--lba-accent-text);
}
.lba-head-id { display: flex; align-items: center; gap: 9px; min-width: 0; }
.lba-head-avatar { flex: none; width: 32px; height: 42px; object-fit: contain; image-rendering: pixelated; }
.lba-head-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; line-height: 1.2; }
.lba-head-name { font-size: 21px; font-weight: 750; letter-spacing: -.035em; }
.lba-eyebrow { color: #b9aaff; font-size: 9px; font-weight: 650; letter-spacing: .015em; text-transform: capitalize; white-space: nowrap; }
.lba-head-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.lba-root :is(.lba-historybtn,.lba-newchat,.lba-close) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #353947;
  border-radius: 10px;
  padding: 8px;
  background: #171b25;
  color: var(--lba-accent-text);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  text-transform: capitalize;
  white-space: nowrap;
}
.lba-root .lba-close { width: 32px; min-height: 40px; padding: 0; border-color: transparent; background: transparent; font-size: 25px; font-weight: 400; }
.lba-root :is(.lba-historybtn,.lba-newchat,.lba-close):hover { color: #fffcf6; background: #2a2e3a; border-color: #777086; }
.lba-root .lba-historybtn.lba-active { color: #080b12; background: #c5baff; border-color: #c5baff; }
.lba-root .lba-header :focus-visible { outline-color: #b9aaff; }

/* THEME SEAM: independent scrolling and generous message measure. */
.lba-body { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 14px; display: flex; flex-direction: column; gap: 16px; scrollbar-width: thin; scrollbar-color: #c7c1b8 transparent; }
.lba-body > * { flex-shrink: 0; }
.lba-msg { display: flex; min-width: 0; gap: 8px; }
.lba-assistant { justify-content: flex-start; align-items: flex-start; }
.lba-user { justify-content: flex-end; }
.lba-profile { display: flex; flex-direction: column; align-items: center; flex: 0 0 28px; padding-top: 3px; }
.lba-avatar { width: 26px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.lba-profile-name { font-size: 9px; font-weight: 650; color: var(--lba-muted); margin-top: 4px; line-height: 1.2; }
.lba-bubble { min-width: 0; max-width: 88%; padding: 13px 14px; border-radius: var(--lba-radius-sm); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.lba-assistant .lba-bubble { max-width: calc(100% - 36px); background: var(--lba-accent-soft); color: var(--lba-text); border: 1px solid var(--lba-border); border-top-left-radius: 5px; }
.lba-user .lba-bubble { background: var(--lba-user-bg); color: var(--lba-user-text); border-bottom-right-radius: 5px; }
.lba-bubble p { margin: 0 0 10px; }
.lba-bubble p:last-child { margin-bottom: 0; }
.lba-bubble a { color: var(--lba-selected-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; word-break: normal; }
.lba-user .lba-bubble a { color: var(--lba-user-text); }
.lba-bubble a:hover { text-decoration-thickness: 2px; }
.lba-clamp.lba-collapsed { max-height: 210px; overflow: hidden; }
.lba-root .lba-more { display: block; min-height: 40px; margin: 8px 0 0; padding: 8px 0; border: 0; background: transparent; color: var(--lba-selected-text); font-size: 12px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; text-transform: capitalize; }
.lba-typing { display: flex; align-items: center; gap: 5px; min-height: 44px; }
.lba-typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lba-focus); animation: lba-blink 1.2s ease-in-out infinite; }
.lba-typing span:nth-child(2) { animation-delay: .2s; }
.lba-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes lba-blink { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* THEME SEAM: choices retain the existing single and multi-select hooks. */
.lba-chips { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 5px; padding: 8px 14px; background: var(--lba-bg); border-top: 1px solid var(--lba-border); max-height: 80px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c7c1b8 transparent; }
.lba-chips:empty { display: none; }
.lba-chips-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.lba-root .lba-chip { min-height: 28px; max-width: 100%; border: 1px solid #c8c3b9; background: var(--lba-chip-bg); color: var(--lba-chip-text); border-radius: 10px; padding: 4px 9px; font-size: 11px; font-weight: 600; line-height: 1.4; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.lba-root .lba-chip:hover { background: #eee9df; border-color: #80778f; color: var(--lba-text); }
.lba-root .lba-chip.lba-selected { background: var(--lba-selected-bg); border-color: var(--lba-focus); color: var(--lba-selected-text); box-shadow: inset 0 0 0 1px var(--lba-focus); }
.lba-root .lba-chip.lba-multi-done { background: var(--lba-accent); border-color: var(--lba-accent); color: var(--lba-accent-text); font-weight: 750; }
.lba-root .lba-chip.lba-multi-done:hover { background: #352669; border-color: #352669; color: #fffcf6; }
/* THEME SEAM: single suggestions stack in the chat, right-aligned and tappable. */
.lba-msg.lba-user.lba-suggest-stack .lba-bubble { background: transparent; border: 0; box-shadow: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.lba-root .lba-suggest-cap { flex: 0 0 100%; margin: 0 2px; font-size: 11px; color: var(--lba-muted); text-align: right; }
.lba-root .lba-chip.lba-stack-chip { width: auto; min-height: 30px; padding: 4px 12px; font-size: 12px; text-align: center; border-radius: 999px; }
.lba-root .lba-multi-skip { color: var(--lba-muted); background: transparent; }
.lba-opt-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.lba-root .lba-opt { width: 100%; min-height: 44px; border-radius: 10px; }

/* THEME SEAM: research cards use all available message width. */
.lba-shortlist { width: 100%; }
.lba-assistant .lba-bubble.lba-shortlist { padding: 0; border: 0; border-radius: 0; background: transparent; }
.lba-sl-group { margin: 0 0 22px; }
.lba-sl-group:last-child { margin-bottom: 0; }
.lba-bubble .lba-sl-group-title { font-size: 18px; font-weight: 750; line-height: 1.35; letter-spacing: -.035em; margin: 0 0 12px; }
.lba-sl-tier { margin: 0 0 16px; }
.lba-bubble .lba-sl-tier-title { color: var(--lba-muted); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }
.lba-sl-card { padding: 14px; margin-bottom: 9px; border: 1px solid var(--lba-border); border-radius: 14px; background: var(--lba-card); }
.lba-bubble .lba-sl-name { margin: 0 0 7px; font-size: 14px; line-height: 1.4; font-weight: 750; letter-spacing: -.02em; }
.lba-bubble .lba-sl-meta { margin: 0 0 10px; color: var(--lba-muted); font-size: 11px; line-height: 1.65; font-variant-numeric: tabular-nums; }
.lba-sl-reasons { margin: 0 0 10px; padding-left: 16px; font-size: 12px; line-height: 1.65; }
.lba-sl-reasons li { margin-bottom: 5px; }
.lba-bubble a.lba-sl-link { display: inline-flex; align-items: center; min-height: 36px; font-size: 11px; font-weight: 750; text-transform: capitalize; }
.lba-assistant .lba-bubble.lba-propose { border-color: #b6a9df; background: #f1edf9; }
.lba-propose-title { font-size: 14px; font-weight: 750; line-height: 1.4; }
.lba-propose ul { padding-left: 16px; margin: 0 0 14px; font-size: 12px; }
.lba-propose li { margin-bottom: 6px; }
.lba-propose-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lba-root .lba-confirm { min-height: 44px; padding: 10px 16px; border: 1px solid var(--lba-accent); border-radius: 999px; background: var(--lba-accent); color: var(--lba-accent-text); font-size: 12px; font-weight: 750; line-height: 1.4; text-transform: capitalize; }
.lba-root .lba-confirm:hover { background: #352669; border-color: #352669; color: #fffcf6; }
.lba-root .lba-cancel { min-height: 44px; padding: 8px 10px; border: 1px solid #b6a9df; border-radius: 999px; background: transparent; color: var(--lba-selected-text); font-size: 12px; font-weight: 600; text-transform: capitalize; }
.lba-root .lba-cancel:hover { background: #eae5ff; color: #352669; }
.lba-done { color: #245d4b; font-weight: 750; }
.lba-muted { color: var(--lba-muted); font-size: 12px; }

/* THEME SEAM: guest welcome. Copy and destinations stay byte-identical. */
.lba-body:has(> .lba-teaser) { padding: 22px 24px; }
.lba-teaser { display: flex; flex-direction: column; align-items: center; min-height: 100%; text-align: center; }
.lba-teaser-labby { display: block; flex: none; width: 62px; height: 76px; object-fit: contain; image-rendering: pixelated; margin: 0 auto 14px; filter: drop-shadow(0 5px 5px rgb(8 11 18 / 10%)); }
.lba-teaser p { width: 100%; margin: 0 0 18px; font-size: 13px; line-height: 1.75; color: var(--lba-muted); text-wrap: pretty; }
.lba-teaser p.lba-teaser-title { max-width: 310px; margin-bottom: 14px; color: var(--lba-text); font-family: var(--lba-editorial-font); font-size: 30px; font-style: italic; font-weight: 500; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.lba-teaser p:has(> .lba-cta) { margin: 6px 0 8px; padding-top: 2px; }
/* Higher specificity protects the post-stack CTA from ordinary link styles. */
.lba-root a.lba-cta,
.lba-bubble a.lba-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 8px;
  max-width: 100%;
  padding: 11px 18px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--lba-accent),var(--lba-accent)) padding-box, var(--lba-spectrum) border-box;
  color: var(--lba-accent-text);
  font-family: var(--lba-font);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
  text-transform: capitalize;
  overflow-wrap: anywhere;
}
.lba-teaser .lba-cta { width: 100%; }
.lba-root a.lba-cta:hover, .lba-bubble a.lba-cta:hover { background: linear-gradient(#252033,#252033) padding-box, var(--lba-spectrum) border-box; color: #fffcf6; box-shadow: 0 4px 12px rgb(8 11 18 / 12%); }
.lba-teaser p.lba-muted { margin: 0 0 auto; font-size: 11px; line-height: 1.8; }
.lba-teaser a:not(.lba-cta) { display: inline-flex; align-items: center; min-height: 32px; color: var(--lba-selected-text); text-decoration: underline; text-underline-offset: 3px; font-weight: 750; }
.lba-teaser a:not(.lba-cta):hover { color: var(--lba-text); }

/* THEME SEAM: fixed composer, 16px entry prevents mobile focus zoom. */
.lba-compose-context { display: flex; align-items: center; justify-content: space-between; flex: none; gap: 10px; margin: 0; padding: 10px 14px; border-top: 1px solid var(--lba-border); background: var(--lba-card); }
.lba-compose-context[hidden] { display: none; }
.lba-context-label { min-width: 0; overflow: hidden; color: var(--lba-selected-text); font-size: 12px; font-weight: 750; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.lba-context-remove { display: grid; place-items: center; flex: none; width: 30px; height: 30px; padding: 0; border: 1px solid var(--lba-border); border-radius: 50%; background: #fff; color: var(--lba-text); font: 20px/1 Manrope,sans-serif; cursor: pointer; }
.lba-context-remove:hover { border-color: var(--lba-accent); background: var(--lba-selected); color: var(--lba-selected-text); }
.lba-message-context { display: inline-flex; max-width: 100%; margin: 0 0 8px; padding: 5px 9px; border: 1px solid var(--lba-border); border-radius: 999px; background: var(--lba-selected); color: var(--lba-selected-text); font-size: 11px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.lba-user .lba-message-context { border-color: #a99cff; background: rgb(141 124 255 / 14%); color: #eeeaff; }
.lba-form { display: flex; align-items: center; flex: none; gap: 8px; margin: 0; padding: 12px 14px 14px; border-top: 1px solid var(--lba-border); background: var(--lba-card); }
.lba-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.lba-root .lba-input { flex: 1 1 0; width: 0; min-width: 0; min-height: 48px; padding: 11px 13px; border: 1px solid #c8c3b9; border-radius: 13px; background: var(--lba-bg); color: var(--lba-text); font-size: 16px; line-height: 1.5; box-shadow: none; }
.lba-input::placeholder { color: var(--lba-muted); opacity: 1; }
.lba-root .lba-input:focus { outline: 2px solid var(--lba-focus); outline-offset: 1px; border-color: var(--lba-focus); }
.lba-root .lba-send { flex: none; min-height: 48px; padding: 12px 16px; border: 1px solid var(--lba-accent); border-radius: 13px; background: var(--lba-accent); color: var(--lba-accent-text); font-size: 12px; font-weight: 750; line-height: 1.5; }
.lba-root .lba-send:hover { background: #352669; border-color: #352669; color: #fffcf6; }
.lba-count { flex: none; font-size: 11px; line-height: 1; color: var(--lba-muted); font-variant-numeric: tabular-nums; }
.lba-count-near { color: var(--lba-text); font-weight: 700; }

/* THEME SEAM: thread history, including light-surface button colors. */
.lba-body:has(> .lba-history-list) { gap: 0; padding: 0; }
.lba-history-head { display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--lba-border); color: var(--lba-text); font-size: 15px; font-weight: 750; text-transform: capitalize; }
.lba-root .lba-history-back { min-height: 40px; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--lba-selected-text); font-size: 11px; font-weight: 650; text-transform: capitalize; }
.lba-root .lba-history-back:hover { background: var(--lba-selected-bg); color: var(--lba-selected-text); }
.lba-body > .lba-history-list { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 12px; scrollbar-width: thin; scrollbar-color: #c7c1b8 transparent; }
.lba-history-item { display: flex; align-items: stretch; gap: 0; margin: 0 0 9px; border: 1px solid var(--lba-border); border-radius: 14px; background: var(--lba-card); overflow: hidden; }
.lba-root .lba-history-open { flex: 1 1 0; display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 14px; border: 0; border-radius: 0; background: transparent; color: var(--lba-text); text-align: left; }
.lba-root .lba-history-open:hover { color: var(--lba-text); background: #eee9df; }
.lba-history-title { max-width: 100%; font-size: 13px; font-weight: 750; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lba-history-meta { color: var(--lba-muted); font-size: 10px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.lba-history-snippet { max-width: 100%; color: var(--lba-muted); font-size: 11px; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lba-root .lba-history-del { flex: 0 0 44px; min-height: 44px; padding: 8px; border: 0; border-radius: 0; background: transparent; color: var(--lba-muted); font-size: 20px; }
.lba-root .lba-history-del:hover { background: #f8e8e9; color: var(--lba-danger); }
.lba-root .lba-history-item :focus-visible { outline-offset: -3px; }
.lba-history-foot { display: flex; flex: none; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding: 12px; background: var(--lba-card); border-top: 1px solid var(--lba-border); }
.lba-root :is(.lba-history-restart,.lba-history-wipe) { min-height: 44px; padding: 9px 12px; border: 1px solid #c8c3b9; border-radius: 10px; background: transparent; color: var(--lba-text); font-size: 10px; font-weight: 650; line-height: 1.5; text-transform: capitalize; }
.lba-root .lba-history-restart:hover { background: #eee9df; color: var(--lba-text); }
.lba-root .lba-history-wipe { color: var(--lba-danger); border-color: #d9b3bc; }
.lba-root .lba-history-wipe:hover { background: #f8e8e9; color: var(--lba-danger); }
.lba-thread-started { padding: 4px 0; color: var(--lba-muted); text-align: center; font-size: 10px; font-variant-numeric: tabular-nums; }
/* These shortcode hooks also render outside .lba-root. */
.lba-history-shortcode { list-style: none; margin: 0; padding: 0; }
.lba-history-row { padding: 12px 0; border-bottom: 1px solid var(--lba-border,#dedad0); }
.lba-history-row a { color: var(--lba-text,#080b12); font-family: var(--lba-font,'Manrope',sans-serif); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.lba-history-row a:hover { color: var(--lba-focus,#6551c8); }
.lba-history-when { display: inline-block; font-size: 12px; color: var(--lba-muted,#626774); margin-left: 8px; }
.lba-history-empty { color: var(--lba-muted,#626774); font-size: 13px; }

/* THEME SEAM: viewport fit, safe areas, touch targets and reduced motion. */
@media (max-width: 480px) {
  .lba-root { --lba-edge: 12px; }
  .lba-panel { width: calc(100vw - 24px); }
  .lba-header { padding: 14px 12px; }
  .lba-root :is(.lba-historybtn,.lba-newchat,.lba-close) { min-height: 44px; }
  .lba-root :is(.lba-more,.lba-sl-link) { min-height: 44px; }
  .lba-root .lba-chip, .lba-root .lba-chip.lba-stack-chip { min-height: 44px; }
  .lba-chips { max-height: 80px; }
  .lba-panel:not(:has(.lba-teaser)) { height: 740px; max-height: calc(100dvh - 24px - env(safe-area-inset-bottom, 0px)); bottom: 0; }
  .lba-root.lba-open:has(.lba-panel:not(:has(.lba-teaser))) .lba-fab { visibility: hidden; }
}
@media (max-width: 759px) {
  .lba-root.lba-above-compare:not(.lba-open) { bottom: var(--lba-compare-clearance); }
}
@media (max-width: 360px) {
  .lba-head-id { gap: 6px; }
  .lba-head-avatar { width: 26px; }
  .lba-eyebrow { font-size: 8px; }
  .lba-root :is(.lba-historybtn,.lba-newchat) { padding: 8px 6px; font-size: 9px; }
  .lba-body:has(> .lba-teaser) { padding: 18px; }
  .lba-teaser p.lba-teaser-title { font-size: 28px; }
}
@media (max-height: 600px) {
  .lba-chips { max-height: 100px; }
  .lba-header { min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .lba-form { padding-top: 8px; padding-bottom: 8px; }
  .lba-panel { bottom: 0; max-height: calc(100dvh - var(--lba-edge) * 2 - env(safe-area-inset-bottom,0px)); }
  .lba-root.lba-open .lba-fab { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .lba-root *, .lba-root *::before, .lba-root *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .lba-typing span { opacity: .65; }
  .lba-frame-2 { animation: none; }
}

/* Guest welcome stays composed; members get the larger conversation window. */
.lba-panel:has(.lba-teaser) { width: 380px; height: 560px; }
.lba-panel:has(.lba-teaser) .lba-jump { display: none; }
/* JS only supplies visibility and the measured composer/suggestions height. */
.lba-root .lba-jump {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: calc(var(--lba-bottom-ui, 76px) + 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid #b6a9df;
  border-radius: 50%;
  background: var(--lba-card);
  color: var(--lba-selected-text);
  box-shadow: 0 4px 16px rgb(8 11 18 / 16%);
}
.lba-root .lba-jump:hover { background: var(--lba-selected-bg); color: var(--lba-selected-text); }
.lba-jump svg { width: 20px; height: 20px; pointer-events: none; }
@media (max-width: 480px) {
  .lba-panel:has(.lba-teaser) { width: calc(100vw - 24px); }
}
