:root { color-scheme: light; font-family: Arial, sans-serif; background: #f5f7fb; color: #1f2937; }
* { box-sizing: border-box; }
body { margin: 0; padding: 24px 12px; }
.fa-agent { width: min(720px, 100%); margin: auto; background: #fff; border: 1px solid #d7deea; border-radius: 18px; box-shadow: 0 16px 45px rgba(30, 49, 91, .12); overflow: hidden; }
header { padding: 22px 24px 24px; border-top: 6px solid #ea841c; border-bottom: 1px solid #d7deea; background: #fff; color: #1f2937; }
.brand { display: inline-block; margin-bottom: 16px; }
.brand img { display: block; width: min(320px, 82vw); height: auto; }
header h1 { margin: 0; color: #304a9a; font-size: 1.75rem; }
header p { line-height: 1.45; }
.experimental { margin: 3px 0 14px; color: #5f6b7a; font-size: .9rem; }
.intro { margin: 0; }
.messages { min-height: 300px; max-height: 55vh; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.message { max-width: 86%; margin: 0; padding: 12px 14px; border-radius: 14px; line-height: 1.48; white-space: pre-wrap; }
.message.assistant { align-self: flex-start; border-left: 4px solid #ea841c; background: #f5f7fb; }
.message.user { align-self: flex-end; background: #304a9a; color: #fff; }
form { padding: 0 20px 14px; }
label { display: block; margin-bottom: 6px; font-weight: 700; }
.composer { display: flex; gap: 8px; align-items: stretch; }
textarea { flex: 1; min-width: 0; resize: vertical; border: 1px solid #aeb9cc; border-radius: 10px; padding: 11px; font: inherit; }
button, .subscribe { min-height: 44px; border-radius: 10px; font-weight: 700; }
button { border: 0; padding: 0 18px; color: #fff; background: #304a9a; cursor: pointer; }
button:hover, button:focus { background: #21356f; }
button:disabled { opacity: .6; cursor: wait; }
textarea:focus, button:focus, .subscribe:focus { outline: 3px solid #8fa4e2; outline-offset: 2px; }
.status { min-height: 1.2em; margin: 6px 0 0; color: #b54708; font-size: .9rem; }
.crm-details { margin: 0 20px 14px; padding: 12px 14px; border: 1px solid #d7deea; border-radius: 10px; background: #f8faff; }
.crm-details summary { cursor: pointer; color: #21356f; font-weight: 700; }
.crm-details p { margin: 8px 0; color: #5f6b7a; font-size: .9rem; }
.crm-details input[type="text"], .crm-details input[type="email"] { display: block; width: 100%; margin: 4px 0 10px; padding: 9px; border: 1px solid #aeb9cc; border-radius: 8px; font: inherit; }
.consent-label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.consent-label input { margin-top: 3px; }
.crm-decline { min-height: 36px; margin-top: 10px; padding: 0 12px; border: 1px solid #aeb9cc; color: #304a9a; background: #fff; font-size: .9rem; }
.crm-decline:hover, .crm-decline:focus { color: #fff; background: #304a9a; }
.disclaimer { margin: 0 20px 12px; color: #5f6b7a; font-size: .82rem; }
.subscribe { display: block; margin: 0 20px 22px; padding: 12px; text-align: center; color: #21356f; border: 1px solid #304a9a; text-decoration: none; }
@media (max-width: 520px) { body { padding: 0; } .fa-agent { min-height: 100vh; border: 0; border-radius: 0; } .composer { flex-direction: column; } }
