/* ThunderBay.wiki opt-in page — styles layered on top of style.css.
 * Reuses the Curriepedia palette variables (:root in style.css). */

.intro-lead {
  margin: 0 0 1rem;
  color: var(--color-text);
}

.intro-lead a {
  color: var(--color-primary);
}

/* ── Assistant panel ───────────────────────────────────────────────────── */

.assistant-panel {
  margin-top: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.assistant-panel > summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.chat {
  padding: 0 1rem 1rem;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 320px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-assistant {
  align-self: flex-start;
  background: #eef3fb;
  border: 1px solid var(--color-border);
}

.chat-user {
  align-self: flex-end;
  background: var(--color-primary);
  color: #fff;
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.chat-input-row input {
  flex: 1;
}

/* ── Consent checkbox ──────────────────────────────────────────────────── */

.consent-box {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 1rem;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  background: #f3f7fe;
  font-weight: 500;
  cursor: pointer;
}

.consent-box input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* ── Submitted-payload echo ────────────────────────────────────────────── */

.payload-dump {
  text-align: left;
  margin-top: 1rem;
  padding: 1rem;
  background: #1e1e1e;
  color: #d4d4d4;
  border-radius: var(--radius);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  white-space: pre;
}
