/* SiteLode Research Bot Split Workspace */
.bot-layout {
  display: grid;
  grid-template-columns: 1fr 1.85fr;
  gap: 48px;
  padding: 48px 0 56px;
  min-height: calc(100svh - 210px);
  align-items: start;
}
.eyebrow {
  font: 600 11.5px var(--mono);
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.bot-context h1 {
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
}
.bot-context > p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink2);
  margin: 0;
}
.bot-boundary {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink2);
}
.bot-boundary strong {
  font: 600 11px var(--mono);
  letter-spacing: 0.06em;
  color: var(--ink3);
  margin-bottom: 4px;
}
.bot-boundary small { line-height: 1.6; color: var(--ink3); margin-top: 8px; font-size: 12.5px; }
.text-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: 20px;
}
.text-link:hover { text-decoration: underline; }

.bot-workspace {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  min-height: 580px;
  overflow: hidden;
}
.bot-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
}
.bot-top strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.bot-top > span:last-child {
  margin-left: auto;
  font: 500 11.5px var(--mono);
  color: var(--ink3);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2px 9px;
  border-radius: 999px;
}
.bot-status-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

.bot-feed {
  padding: 26px 24px;
  flex: 1;
  max-height: 600px;
  min-height: 340px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.bot-welcome { padding: 12px 0; }
.bot-avatar {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
  font: 700 14px var(--mono);
  border-radius: var(--radius-sm);
  letter-spacing: -0.04em;
}
.bot-welcome h2 { font-size: 22px; font-weight: 700; margin: 18px 0 8px; letter-spacing: -0.025em; }
.bot-welcome p { font-size: 14px; color: var(--ink2); line-height: 1.65; margin: 0; }
.bot-suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.bot-suggestions button {
  text-align: left;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.bot-suggestions b { display: block; font: 600 13.5px var(--sans); margin-bottom: 4px; color: var(--ink); }
.bot-suggestions span { font: 12.5px/1.55 var(--sans); color: var(--ink2); }
.bot-suggestions button:hover:not(:disabled) {
  background: var(--surface);
  border-color: var(--ink);
}

.bot-composer {
  padding: 16px 22px 18px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
}
.bot-task-picker {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 12px;
  background: var(--bg-muted);
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: var(--radius-sm);
}
.bot-task-picker button {
  border: 0;
  min-height: 32px;
  background: transparent;
  font: 500 12.5px var(--sans);
  padding: 5px 12px;
  border-radius: 4px;
  color: var(--ink2);
  cursor: pointer;
}
.bot-task-picker button.selected {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}
.bot-input-row { display: flex; gap: 10px; }
.bot-input-row input {
  flex: 1;
  min-width: 0;
  height: 44px;
  font: 14px var(--sans);
  background: var(--surface);
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.bot-input-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14);
}
.bot-input-row button {
  font: 600 13.5px var(--sans);
  padding: 0 18px;
  background: var(--primary);
  color: #ffffff;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
}
.bot-input-row button:hover:not(:disabled) { background: var(--primary-hover); }
.bot-input-row button:disabled { opacity: 0.5; cursor: not-allowed; }
#botAccess { font-size: 12px; color: var(--ink3); margin: 10px 0 0; }
#botAccess a { color: var(--ink); font-weight: 600; }

.bot-message { padding: 16px 0; border-bottom: 1px solid var(--line); }
.bot-message:last-child { border-bottom: 0; }
.bot-message .message-label {
  font: 600 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink3);
  display: block;
  margin-bottom: 6px;
}
.bot-message p { font-size: 14px; line-height: 1.7; margin: 0; color: var(--ink2); }
.bot-result-row {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  padding: 12px 10px;
  margin-inline: -10px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--bg-muted);
  text-decoration: none;
}
.bot-result-row:hover { background: var(--bg-subtle); }
.bot-result-row strong { font: 600 14px var(--mono); color: var(--ink); }
.bot-result-row small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink3); font-family: var(--mono); }
.bot-report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
  font-size: 13px;
}
.bot-report-grid > div {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.bot-report-grid small { display: block; font-size: 11px; color: var(--ink3); margin-bottom: 4px; }
.bot-report-grid b { font-family: var(--mono); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.bot-message.error p { color: var(--danger); }
.bot-message a { color: var(--accent); font-weight: 500; }
.bot-empty { font-size: 13.5px; color: var(--ink3); }

.bot-composer input:disabled,
button[data-bot-mode]:disabled,
button[data-bot-example]:disabled,
#botSend:disabled,
#botQuery:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 950px) {
  .bot-layout { grid-template-columns: 1fr; gap: 28px; }
  .bot-context h1 br, .bot-context > p:not(.eyebrow) br { display: none; }
  .bot-boundary { display: none; }
  .bot-context > .text-link { margin-top: 12px; }
  .bot-workspace { min-height: 520px; }
  .bot-feed { max-height: 460px; }
}
@media (max-width: 620px) {
  .bot-layout { padding-top: 28px; }
  .bot-feed { padding: 18px; min-height: 280px; }
  .bot-top, .bot-composer { padding: 14px 16px; }
  .bot-suggestions { grid-template-columns: 1fr; }
  .bot-input-row { flex-direction: column; }
  .bot-input-row input { font-size: 16px; }
  .bot-input-row button { width: 100%; }
  .bot-report-grid { grid-template-columns: 1fr; }
}
