* { box-sizing: border-box; }
body { margin: 0; color: #203047; background: #e4e9e3; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
button, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f3a34a; outline-offset: 3px; }
[hidden] { display: none !important; }
a { color: #7050a0; font-weight: 700; text-decoration: none; }
.doubt-shell { height: 100dvh; max-width: 1120px; margin: auto; display: flex; flex-direction: column; background: #faf7f0; }
.doubt-header { display: flex; align-items: center; gap: 24px; padding: 20px 30px; border-bottom: 1px solid #e1e3dd; background: white; }
.doubt-header > a { font-size: 13px; }
.doubt-header > div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.doubt-header strong { font-size: 19px; letter-spacing: -.025em; }
.doubt-header span { color: #526273; font-size: 12px; }
.doubt-header button { border: 1px solid #d9cde7; padding: 9px 14px; border-radius: 10px; background: #f7f3fb; color: #7050a0; font-size: 12px; font-weight: 750; }
.doubt-context { display: flex; align-items: center; gap: 10px; padding: 12px 30px 8px; font-size: 12px; }
.doubt-context label { color: #526273; white-space: nowrap; }
.doubt-context select { max-width: 390px; min-width: 0; padding: 8px 12px; background: white; border: 1px solid #d8dfd8; border-radius: 9px; color: #203047; font-size: 12px; }
.demo-badge { margin-left: auto; background: #eee6f6; padding: 5px 8px; border-radius: 7px; color: #7050a0; font-size: 10px; white-space: nowrap; }
.demo-note { font-size: 11px; color: #526273; padding: 0 30px 10px; line-height: 1.4; }
.conversation { overflow-y: auto; flex: 1; min-height: 0; padding: 24px 30px; }
.chat-welcome { max-width: 680px; margin: 35px auto; text-align: center; }
.welcome-icon { display: grid; place-items: center; margin: 0 auto 20px; width: 62px; height: 62px; font-size: 34px; color: #7050a0; border: 1px solid #d8cce7; background: #eee5f8; border-radius: 20px; transform: rotate(-7deg); }
h1 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -.04em; line-height: 1.15; margin: 0 0 12px; }
.chat-welcome p { color: #526273; font-size: 14px; line-height: 1.5; }
.starter-prompts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.starter-prompts button { padding: 16px; min-height: 66px; border: 1px solid #d9dfe0; border-radius: 13px; background: white; text-align: left; color: #304057; font-size: 13px; line-height: 1.4; }
.starter-prompts button:hover { background: #f3eef9; border-color: #b7a1d0; }
#chatMessages { max-width: 760px; margin: auto; }
.chat-message { margin-bottom: 22px; }
.chat-message small { display: block; font-size: 10px; font-weight: 750; color: #7050a0; margin-bottom: 7px; }
.chat-message p { margin: 0; padding: 18px 20px; background: white; border: 1px solid #e0e4df; border-radius: 4px 16px 16px; font-size: 15px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message.user { margin-left: 15%; }
.chat-message.user small { text-align: right; color: #526273; }
.chat-message.user p { border-radius: 16px 4px 16px 16px; background: #ede6f5; border-color: #dfd2ee; }
.followup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 760px; margin: 0 auto; }
.followup-actions button { padding: 8px 12px; border: 1px solid #d8cce7; border-radius: 100px; background: white; color: #7050a0; font-size: 11px; }
.followup-actions a { padding: 8px; font-size: 11px; }
.composer { margin: 0 30px 20px; padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; background: white; border: 1px solid #d8cce7; border-radius: 16px; box-shadow: 0 5px 20px #7050a008; }
.composer textarea { resize: none; min-width: 0; width: 100%; border: 0; background: transparent; padding: 8px; font-size: 14px; color: #203047; line-height: 1.5; }
.composer button { align-self: center; border: 0; border-radius: 10px; padding: 11px 16px; color: white; background: #7050a0; font-size: 13px; font-weight: 750; }
.composer p { grid-column: 1 / -1; color: #667487; font-size: 10px; margin: 0 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 600px) {
  .doubt-header { gap: 14px; padding: 14px 16px; }
  .doubt-header span { display: none; }
  .doubt-header strong { font-size: 17px; }
  .doubt-header button { padding: 8px 10px; }
  .doubt-context { padding: 10px 16px 8px; flex-wrap: wrap; }
  .doubt-context select { flex: 1; }
  .demo-note { padding: 0 16px 6px; }
  .conversation { padding: 20px 16px; }
  .chat-welcome { margin: 12px auto; }
  .starter-prompts { grid-template-columns: 1fr; margin-top: 18px; }
  .starter-prompts button { min-height: 48px; padding: 12px; }
  .chat-message p { font-size: 14px; padding: 14px 16px; }
  .composer { margin: 0 12px max(12px, env(safe-area-inset-bottom)); padding: 8px; }
}
