:root {
  --leb-chatbot-bg: #ffffff;
  --leb-chatbot-surface: #f7f9fc;
  --leb-chatbot-surface-2: #eef4f8;
  --leb-chatbot-border: rgba(24, 53, 82, 0.12);
  --leb-chatbot-text: #17324d;
  --leb-chatbot-text-soft: #5e7083;
  --leb-chatbot-accent: #214f7a;
  --leb-chatbot-accent-2: #7ea6c6;
  --leb-chatbot-toggle-accent: #ed7f6a;
  --leb-chatbot-toggle-accent-dark: #d96d59;
  --leb-chatbot-shadow: 0 18px 55px rgba(19, 42, 66, 0.18);
  --leb-chatbot-radius: 24px;
}

.leb-chatbot-root {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 99999;
  font-family: inherit;
  color: var(--leb-chatbot-text);
}

.leb-chatbot-root.is-open .leb-chatbot-toggle{
    display: none;
}

.leb-chatbot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--leb-chatbot-toggle-accent), var(--leb-chatbot-toggle-accent-dark));
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 14px 35px rgba(237, 127, 106, 0.32);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.leb-chatbot-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(237, 127, 106, 0.4);
}

.leb-chatbot-toggle__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dff5eb;
  box-shadow: 0 0 0 6px rgba(223, 245, 235, 0.16);
}

.leb-chatbot-panel {
  width: min(420px, calc(100vw - 24px));
  height: min(680px, calc(100vh - 110px));
  margin-top: 14px;
  border-radius: var(--leb-chatbot-radius);
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(126, 166, 198, 0.18), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid var(--leb-chatbot-border);
  box-shadow: var(--leb-chatbot-shadow);
  display: grid;
  position: relative;
  grid-template-rows: auto 1fr auto auto;
  backdrop-filter: blur(10px);
}

.leb-chatbot-panel[hidden] {
  display: none !important;
}

.leb-chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--leb-chatbot-border);
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.96), rgba(255, 255, 255, 0.92));
}

.leb-chatbot-header-title {
  flex: 1;
  min-width: 0;
}

.leb-chatbot-header h3 {
  margin: 2px 0 0;
  font: inherit;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--leb-chatbot-text);
}

.leb-chatbot-eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leb-chatbot-text-soft);
}

.leb-chatbot-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.leb-chatbot-toolbar-btn {
  border: 1px solid rgba(24, 53, 82, 0.12);
  background: #ffffff;
  color: var(--leb-chatbot-text);
  border-radius: 12px;
  padding: 9px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.leb-chatbot-toolbar-btn:hover {
  transform: translateY(-1px);
  background: #f5f8fb;
  border-color: rgba(24, 53, 82, 0.2);
}

.leb-chatbot-toolbar-btn--ghost {
  background: #f7f9fc;
}

#leb-chatbot-fullscreen,
#leb-chatbot-clear {
  background: var(--leb-chatbot-text);
  color: #ffffff;
  border-color: var(--leb-chatbot-text);
}

button#leb-chatbot-close {
   width: 30px;
    height: 30px;
}

.leb-chatbot-toolbar-icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.leb-chatbot-toolbar-icon-btn svg[hidden] {
  display: none !important;
}

button.leb-chatbot-inline-btn {
    padding: 7px 10px;
    font-size: 14px !important;
    font-weight: 600;
    border: 1px solid rgb(237, 127, 106);
    background: rgb(237, 127, 106);
}

button.leb-chatbot-inline-btn:hover {
    background: #ffffff;
    color: rgb(237, 127, 106);
}

#leb-chatbot-fullscreen:hover,
#leb-chatbot-clear:hover {
  background: #3f4047;
  border-color: #3f4047;
}

.leb-chatbot-restricted .leb-chatbot-cta:hover,
.leb-chatbot-restricted .leb-chatbot-cta:focus,
.leb-chatbot-restricted .leb-chatbot-cta:active {
    background: #ED7F6A !important;
    color: inherit !important;
    box-shadow: none !important;
    transform: none !important;
    text-decoration: none !important;
}

.leb-chatbot-restricted .leb-chatbot-cta--secondary {
    color: #fff !important;
}

.leb-chatbot-restricted .leb-chatbot-cta--secondary:hover {
   background: #214F7A !important;
    color: #fff !important;
}

.leb-chatbot-toolbar-icon-btn {
    background-color: #ED7F6A !important;
    border-color: #ED7F6A !important;
}

.leb-chatbot-toolbar-icon-btn:hover {
    background: #fff !important; 
    color : #ED7F6A !important
}

button.leb-chatbot-send {
    background-color: #ED7F6A;
    border-color: #ED7F6A !important;
    border: 1px solid #ED7F6A;
}

.leb-chatbot-send:hover {
    background: #fff !important;
    color : #ED7F6A;
}

.leb-chatbot-compare-pick {
  margin-left: auto;
}

.leb-chatbot-compare-pick.is-active {
  background: #214f7a;
  border-color: #214f7a;
  color: #fff;
}

.leb-chatbot-compare-selected {
  margin-top: 10px;
}

.leb-chatbot-compare-selected:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.leb-chatbot-favourite {
  margin-left: auto;
}

.leb-chatbot-favourite.is-active {
  background: #214f7a !important;
  border-color: #214f7a !important;
  color: #fff !important;
}

.leb-chatbot-toolbar-icon-btn {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(24, 53, 82, 0.12);
  background: var(--leb-chatbot-text);
  color: #ffffff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.leb-chatbot-toolbar-icon-btn span {
  display: block;
  font-size: 24px;
  line-height: 1;
  margin-top: -1px;
}

.leb-chatbot-toolbar-icon-btn:hover {
  transform: translateY(-1px);
  background: #3f4047;
  border-color: #3f4047;
}

.leb-chatbot-messages {
  padding: 18px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(247, 249, 252, 0.95));
}

.leb-chatbot-message {
  max-width: 86%;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 8px 22px rgba(15, 40, 61, 0.06);
  white-space: pre-wrap;
}

.leb-chatbot-comparison-table td { white-space: pre-wrap; }

.leb-chatbot-message p {
  margin: 0;
}

.leb-chatbot-message--bot {
  background: #ffffff;
  border: 1px solid rgba(24, 53, 82, 0.08);
  color: var(--leb-chatbot-text);
  border-top-left-radius: 8px;
}

.leb-chatbot-message--user {
  margin-left: auto;
  background: linear-gradient(135deg, #214f7a, #356f9f);
  color: #ffffff;
  border-top-right-radius: 8px;
}

.leb-chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 8px;
  background: transparent;
}

.leb-chatbot-chip {
  appearance: none;
  border: 1px solid rgba(33, 79, 122, 0.15);
  background: rgba(255, 255, 255, 0.84);
  color: var(--leb-chatbot-text) !important;
  border-radius: 999px;
  padding: 5px 12px;
  font: inherit;
  font-size: 13px !important;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.leb-chatbot-chip:hover {
  background: #f2f7fb;
  border-color: rgba(33, 79, 122, 0.26);
  transform: translateY(-1px);
}

.leb-chatbot-chip--followup {
  background: #fff8f6;
  border-color: rgba(237, 127, 106, 0.22);
  color: #b25848 !important;
}

.leb-chatbot-chip--followup:hover {
  background: #ffffff;
  border-color: rgba(237, 127, 106, 0.36);
}

.leb-chatbot-ai-notice {
  position: absolute;
  top: var(--lebn-header-height, 86px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 39, 51, 0.88);
  color: #fff;
}

.leb-chatbot-ai-notice[hidden] {
  display: none;
}

.leb-chatbot-ai-notice__card {
  width: min(100%, 340px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  color: var(--leb-chatbot-text);
  text-align: center;
}

.leb-chatbot-ai-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.leb-chatbot-ai-notice__title {
  margin-bottom: 10px !important;
  color: var(--leb-chatbot-text);
  font-size: 18px !important;
  font-weight: 700;
}

.leb-chatbot-ai-notice__dismiss {
  min-width: 112px;
  margin-top: 18px;
  border: 1px solid #ED7F6A;
  border-radius: 999px;
  padding: 10px 18px;
  background: #ED7F6A;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

.leb-chatbot-ai-notice__dismiss:hover {
  background: #fff;
  color: #ed7f6a;
}

.leb-chatbot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 18px 12px;
  border-top: 1px solid var(--leb-chatbot-border);
  background: rgba(255, 255, 255, 0.92);
}

.leb-chatbot-input {
  width: 100%;
  border: 1px solid rgba(24, 53, 82, 0.12);
  background: #fff;
  color: var(--leb-chatbot-text);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.leb-chatbot-input:focus {
  border-color: rgba(33, 79, 122, 0.32);
  box-shadow: 0 0 0 4px rgba(126, 166, 198, 0.18);
}

.leb-chatbot-send {
  border: 0;
  border-radius: 50%;
  padding: 0;
  width: 48px;
  height: 48px;
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--leb-chatbot-text);
  color: #fff;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.leb-chatbot-send:hover {
  background: #3f4047;
  transform: translateY(-1px);
}

.leb-chatbot-send svg {
  /* nudge the paper plane so it sits visually centred */
  margin-left: -1px;
}

.leb-chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.leb-chatbot-note {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--leb-chatbot-text-soft);
  background: rgba(255, 255, 255, 0.92);
}

.leb-chatbot-loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
}

.leb-chatbot-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leb-chatbot-accent-2);
  animation: leb-chatbot-bounce 1s infinite ease-in-out;
}

.leb-chatbot-loading span:nth-child(2) {
  animation-delay: 0.12s;
}

.leb-chatbot-loading span:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes leb-chatbot-bounce {
  0%, 80%, 100% {
    transform: scale(0.7);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.leb-chatbot-results {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.leb-chatbot-result-card {
  padding: 14px;
  border-radius: 16px;
  background: #f7f9fc;
  border: 1px solid rgba(24, 53, 82, 0.08);
}

.leb-chatbot-result-card__title {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--leb-chatbot-text);
  font-weight: 700;
}

.leb-chatbot-result-card__meta {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--leb-chatbot-text);
}

.leb-chatbot-result-card__desc {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--leb-chatbot-text-soft);
}

.leb-chatbot-result-card__footer {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.leb-chatbot-result__link {
  display: inline-block;
  color: var(--leb-chatbot-accent);
  font-weight: 600;
  text-decoration: none;
}

.leb-chatbot-result__link:hover {
  text-decoration: underline;
}

.leb-chatbot-result__locked {
  display: inline-block;
  color: var(--leb-chatbot-text-soft);
  font-size: 12px;
}

.leb-chatbot-shortlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ed7f6a !important;
  background: #ed7f6a !important;
  color: #ffffff !important;
  border-radius: 999px;
  padding: 3px 33px;
  font: inherit;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.leb-chatbot-shortlist-btn:hover {
  transform: translateY(-1px);
  background: #ffffff !important;
  border-color: #ed7f6a !important;
  color: #ed7f6a !important;
}

.leb-chatbot-shortlist-btn.is-active {
  background: #214f7a !important;
  color: #fff !important;
  border-color: #214f7a !important;
}

.leb-chatbot-shortlist-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.leb-chatbot-restricted {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #fff7f4;
  border: 1px solid rgba(237, 127, 106, 0.22);
}

.leb-chatbot-restricted p {
  margin: 0;
  color: var(--leb-chatbot-text);
  line-height: 1.55;
}

.leb-chatbot-cta-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.leb-chatbot-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ed7f6a;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

a.leb-chatbot-cta {
  background: transparent;
  padding: 2px 2px;
  color: #ED7F6A;
  text-decoration: underline;
}

a.leb-chatbot-cta:hover {
  text-decoration: none;
}

.leb-chatbot-cta--secondary {
  background: #214f7a;
}

.leb-chatbot-results-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.leb-chatbot-results-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.leb-chatbot-inline-btn {
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #222;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}

.leb-chatbot-inline-btn--secondary {
  background: #f4f4f4;
}

.leb-chatbot-results-count {
  font-size: 12px;
  color: #666;
}

.leb-chatbot-comparison {
  margin-top: 14px;
  border: 1px solid rgba(24, 53, 82, 0.1);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.leb-chatbot-comparison-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.leb-chatbot-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.leb-chatbot-comparison-table th,
.leb-chatbot-comparison-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(24, 53, 82, 0.08);
}

.leb-chatbot-comparison-table th {
  background: #f7f9fc;
  color: var(--leb-chatbot-text);
  font-weight: 700;
}

.leb-chatbot-comparison-table td {
  color: var(--leb-chatbot-text-soft);
  line-height: 1.5;
}

/* Remove the last row's bottom border so it doesn't sit just inside the table
   wrapper's border and read as an empty extra row at the bottom of the table. */
.leb-chatbot-comparison-table tr:last-child th,
.leb-chatbot-comparison-table tr:last-child td {
  border-bottom: none;
}

.leb-chatbot-comparison-notes {
  padding: 10px 12px;
  background: #fff7f4;
}

.leb-chatbot-comparison-notes p {
  margin: 0;
  font-size: 12px;
  color: var(--leb-chatbot-text-soft);
}

.leb-chatbot-comparison-actions {
  padding: 12px;
  border-top: 1px solid rgba(24, 53, 82, 0.08);
  background: #fff;
  display: flex;
  justify-content: flex-end;
}

.leb-chatbot-email-comparison-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Per-donor column layout */
.leb-chatbot-comparison-table--columns {
  table-layout: auto;
}

.leb-chatbot-comparison-table--columns th:first-child,
.leb-chatbot-comparison-table--columns td:first-child {
  min-width: 130px;
  width: 160px;
}

.leb-chatbot-comparison-table--columns th:not(:first-child),
.leb-chatbot-comparison-table--columns td:not(:first-child) {
  min-width: 150px;
  white-space: normal;
  word-break: break-word;
}

.leb-comparison-category {
  font-weight: 600;
  color: var(--leb-chatbot-text);
  white-space: nowrap;
}

/* Highlight rows where donors differ (TC_29) */
.leb-comparison-differs {
  background: rgba(237, 127, 106, 0.06);
}

.leb-comparison-differs .leb-comparison-category::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: rgb(237, 127, 106);
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}

/* Mobile: horizontal scroll for wide comparison tables (TC_26) */
@media (max-width: 640px) {
  .leb-chatbot-comparison {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .leb-chatbot-comparison-table {
    min-width: 400px;
    font-size: 12px;
  }

  .leb-chatbot-comparison-table th,
  .leb-chatbot-comparison-table td {
    padding: 8px 10px;
  }

  .leb-comparison-category {
    white-space: normal;
    min-width: 90px;
  }
}

.leb-chatbot-debug {
  margin-top: 14px;
  border: 1px solid rgba(24, 53, 82, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(126, 166, 198, 0.18), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  box-shadow: 0 10px 30px rgba(19, 42, 66, 0.08);
  overflow: hidden;
}

.leb-chatbot-debug[open] {
  border-color: rgba(33, 79, 122, 0.16);
  box-shadow: 0 16px 32px rgba(19, 42, 66, 0.12);
}

.leb-chatbot-debug summary {
  cursor: pointer;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--leb-chatbot-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.leb-chatbot-debug summary::-webkit-details-marker {
  display: none;
}

.leb-chatbot-debug summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(33, 79, 122, 0.08);
  color: var(--leb-chatbot-accent);
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.leb-chatbot-debug[open] summary::after {
  content: "\2212";
}

.leb-chatbot-debug__summary-tag {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(237, 127, 106, 0.14);
  color: #b25848;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leb-chatbot-debug__body {
  padding: 0 16px 16px;
  font-size: 12px;
  color: var(--leb-chatbot-text-soft);
}

.leb-chatbot-debug__hero {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(24, 53, 82, 0.08);
  color: var(--leb-chatbot-text);
  line-height: 1.55;
}

.leb-chatbot-debug__section {
  margin-top: 12px;
}

.leb-chatbot-debug__section-title {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leb-chatbot-text-soft);
}

.leb-chatbot-debug__stats,
.leb-chatbot-debug__scores,
.leb-chatbot-debug__comparison-grid {
  display: grid;
  gap: 10px;
}

.leb-chatbot-debug__stats {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-bottom: 12px;
}

.leb-chatbot-debug__stat,
.leb-chatbot-debug__score-card,
.leb-chatbot-debug__comparison-card {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(24, 53, 82, 0.08);
  padding: 12px 13px;
}

.leb-chatbot-debug__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.leb-chatbot-debug__stat-value {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--leb-chatbot-text);
}

.leb-chatbot-debug__stat-label {
  font-size: 11px;
  line-height: 1.4;
  color: var(--leb-chatbot-text-soft);
}

.leb-chatbot-debug__score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.leb-chatbot-debug__score-head strong {
  color: var(--leb-chatbot-text);
  font-size: 13px;
}

.leb-chatbot-debug__score-pill,
.leb-chatbot-debug__section-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(33, 79, 122, 0.1);
  color: var(--leb-chatbot-accent);
  font-size: 11px;
  font-weight: 700;
}

.leb-chatbot-debug__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.leb-chatbot-debug__schema {
  display: grid;
  gap: 10px;
}

.leb-chatbot-debug__schema-card {
  padding: 12px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(24, 53, 82, 0.08);
}

.leb-chatbot-debug__schema-key {
  font-size: 12px;
  font-weight: 700;
  color: var(--leb-chatbot-text);
}

.leb-chatbot-debug__schema-value {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--leb-chatbot-text);
}

.leb-chatbot-debug__schema-meta {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leb-chatbot-text-soft);
}

.leb-chatbot-debug__chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(33, 79, 122, 0.08);
  color: var(--leb-chatbot-text);
  font-size: 11px;
  line-height: 1.4;
}

.leb-chatbot-debug__chip--warning {
  background: rgba(237, 127, 106, 0.12);
  color: #b25848;
}

.leb-chatbot-debug__meta {
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--leb-chatbot-text-soft);
}

.leb-chatbot-debug__comparison-line,
.leb-chatbot-debug__list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.45;
}

.leb-chatbot-debug__comparison-line span:first-child,
.leb-chatbot-debug__list-row span {
  color: var(--leb-chatbot-text);
}

.leb-chatbot-debug__comparison-line span:last-child,
.leb-chatbot-debug__list-row strong {
  color: var(--leb-chatbot-text-soft);
  text-align: right;
}

.leb-chatbot-debug__alert-list,
.leb-chatbot-debug__list {
  display: grid;
  gap: 8px;
}

.leb-chatbot-debug__alert {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 247, 244, 0.92);
  border: 1px solid rgba(237, 127, 106, 0.16);
}

.leb-chatbot-debug__alert strong {
  color: #b25848;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.leb-chatbot-debug__alert span {
  color: var(--leb-chatbot-text);
  font-size: 12px;
  line-height: 1.45;
}

.leb-chatbot-debug--ops {
  background:
    radial-gradient(circle at top left, rgba(237, 127, 106, 0.1), transparent 24%),
    linear-gradient(180deg, #fffdfb 0%, #f7f9fc 100%);
}

.leb-chatbot-followups {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 248, 246, 0.96), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(237, 127, 106, 0.16);
}

.leb-chatbot-followups__label {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b25848;
}

.leb-chatbot-followups__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.leb-chatbot-root.is-fullscreen .leb-chatbot-panel {
  position: fixed;
  inset: 18px;
  width: auto;
  max-width: none;
  height: calc(100vh - 36px);
  max-height: none;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
}

.leb-chatbot-root.is-fullscreen .leb-chatbot-messages {
  flex: 1;
  min-height: 0;
}

@media (max-width: 768px) {
  .leb-chatbot-root.is-fullscreen .leb-chatbot-panel {
    inset: 8px;
    height: calc(100vh - 16px);
    border-radius: 12px;
  }

  .leb-chatbot-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .leb-chatbot-toolbar {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .leb-chatbot-root {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .leb-chatbot-toggle {
    width: 100%;
    justify-content: center;
  }

  .leb-chatbot-panel {
    width: 100%;
    height: min(76vh, 680px);
  }

  .leb-chatbot-message {
    max-width: 92%;
  }

  .leb-chatbot-result-card__footer {
    align-items: stretch;
  }

  .leb-chatbot-shortlist-btn {
    width: 100%;
  }

  .leb-chatbot-debug__stats {
    grid-template-columns: 1fr 1fr;
  }

  .leb-chatbot-debug__comparison-line,
  .leb-chatbot-debug__list-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Quick-action suggestion chips (TC_08) */
.leb-chatbot-action-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.leb-chatbot-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  font-size: 13px !important;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid rgba(237, 127, 106, 0.5);
  background: rgba(255, 248, 246, 0.95);
  color: #b25848;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.leb-chatbot-action-chip:hover,
.leb-chatbot-action-chip:focus {
  background: rgb(237, 127, 106);
  border-color: rgb(237, 127, 106);
  color: #fff;
  outline: none;
}

button.leb-chatbot-action-chip {
  padding: 5px 11px !important;
  background: rgb(237, 127, 106);
  font-weight: 600 !important;
  font-size: 14px;
}

button.leb-chatbot-action-chip:hover {
  background: #fff;
  color: rgb(237, 127, 106);
}
