:root { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172033; background: #edf2f7; }
body { margin: 0; }
.container { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.card { width: min(720px, 100%); background: white; border-radius: 18px; box-shadow: 0 20px 60px rgba(15, 23, 42, .12); padding: 32px; }
h1 { margin-top: 0; }
textarea { width: 100%; min-height: 110px; border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px; font-size: 16px; box-sizing: border-box; }
button { margin-top: 12px; background: #1d4ed8; color: white; border: 0; border-radius: 12px; padding: 12px 18px; cursor: pointer; font-weight: 700; }
.answer { white-space: pre-wrap; background: #f8fafc; padding: 16px; border-radius: 12px; margin-top: 16px; line-height: 1.55; }
.answer a { color: #1d4ed8; font-weight: 700; text-decoration: underline; overflow-wrap: anywhere; }
.answer-body { white-space: pre-wrap; }
.answer-sources-title { margin-top: 14px; font-weight: 700; }
.answer-sources { margin: 8px 0 0; padding-left: 20px; }
.answer-sources li + li { margin-top: 6px; }

.answer-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #d4d4d8; }
.answer-feedback span { color: #3f3f46; font-weight: 700; }
.answer-feedback button { margin-top: 0; min-height: 34px; background: #18181b; border-radius: 8px; padding: 8px 12px; }
.answer-feedback button:disabled { cursor: default; opacity: .55; }
.answer-feedback-note { margin-top: 10px; color: #3f3f46; font-weight: 700; }
