/* Missouri-inspired palette. Scoped to the domain's explicit presentation key. */
html[data-chat-theme="missouri"] {
  --primary: #183653;
  --primary-light: #274e70;
  --primary-dark: #10283f;
  --accent: #9d3542;
  --accent-dark: #782632;
  --accent-light: #b34a57;
  --bg-secondary: #f7f5ef;
  --bg-tertiary: #eeece4;
  --msg-assistant-bg: #183653;
  --msg-user-bg: #f1ede7;
  --text-muted: #596676;
  --chat-max-width: 1060px;
  background: #eae8e1;
}
html[data-chat-theme="missouri"] body { background: transparent; }
html[data-chat-theme="missouri"] .chat-page { border-top: 5px solid #9d3542; }
html[data-chat-theme="missouri"] .chat-header {
  border-bottom: 2px solid #c4a46b;
  background: #fffdf8;
}
html[data-chat-theme="missouri"] .toolbar-brand { gap: 8px; }
.domain-brand { display: flex; align-items: center; gap: 12px; }
.domain-monogram {
  margin: 0;
  font: bold 2rem/1 Georgia, 'Times New Roman', serif;
  letter-spacing: -.07em;
  color: #183653;
}
.domain-name { max-width: 7rem; font-size: .85rem; line-height: 1.2; color: #596676; }
html[data-chat-theme="missouri"] .toolbar-logo-wrapper { width: 23px; height: 23px; }
html[data-chat-theme="missouri"] .toolbar-logos { gap: 12px; }
html[data-chat-theme="missouri"] .toolbar-connection:empty { display: none; }
html[data-chat-theme="missouri"] .toolbar-btn { border-color: #d6d7d6; }
html[data-chat-theme="missouri"] .toolbar-btn--success {
  background: #f7f5ef; border-color: #d6d7d6; color: #183653;
}
html[data-chat-theme="missouri"] .chat-messages { background: #fffdf8; }
.domain-welcome {
  position: relative;
  padding: 24px 26px;
  margin-bottom: 24px;
  border: 1px solid #ded8cb;
  border-radius: 12px;
  background: linear-gradient(115deg, #f4efe4 0%, #fbf8f1 75%);
  color: #183653;
  overflow: hidden;
}
.domain-welcome[hidden] { display: none; }
.domain-welcome::after {
  content: "✦";
  position: absolute; right: 22px; top: -6px;
  font-size: 100px; color: #c4a46b; opacity: .2;
  pointer-events: none;
}
.domain-eyebrow {
  margin: 0 0 12px;
  color: #782632;
  font-size: .72rem; font-weight: 700; letter-spacing: .11em;
}
.domain-heading {
  position: relative; z-index: 1;
  max-width: 650px; margin: 0 0 12px;
  font: 600 clamp(1.8rem, 4vw, 2.7rem)/1.12 Georgia, 'Times New Roman', serif;
  letter-spacing: -.025em;
}
.domain-description { max-width: 620px; margin: 0; line-height: 1.5; color: #3d4b58; }
.domain-starters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 20px 0 12px; }
.domain-starter {
  min-height: 48px; padding: 10px 12px;
  border: 1px solid #b9c1c5; border-radius: 6px;
  background: #fffdf8; color: #183653;
  font: inherit; font-size: .9rem; font-weight: 600;
  line-height: 1.3; cursor: pointer; text-align: start;
}
.domain-starter:hover { background: #183653; color: white; border-color: #183653; }
.domain-source-note { margin: 0; font-size: .8rem; color: #596676; }
html[data-chat-theme="missouri"] :is(button, a, textarea):focus-visible {
  outline: 3px solid #9d3542; outline-offset: 3px;
}
html[data-chat-theme="missouri"] .message-content { border-radius: 12px; }
html[data-chat-theme="missouri"] .message.user .message-content { border: 1px solid #dfd8cc; }
html[data-chat-theme="missouri"] .chat-send-btn { background: #9d3542; }
html[data-chat-theme="missouri"] .chat-send-btn:hover { background: #782632; }
html[data-chat-theme="missouri"] .chat-input:focus { border-color: #9d3542; }
@media (max-width: 650px) {
  .domain-welcome { padding: 20px 18px; }
  .domain-starters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .domain-heading { font-size: 1.9rem; }
  html[data-chat-theme="missouri"] .toolbar-actions { gap: 6px; }
  html[data-chat-theme="missouri"] .chat-header { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-chat-theme="missouri"] .message { animation: none; }
}
