* { box-sizing: border-box; }
body { font-family: Arial, sans-serif; background:#f5f7fa; margin:0; display:flex; justify-content:center; }
.app  { width:100%; max-width:800px; min-height:100vh; background:white; box-shadow:0 0 10px rgba(0,0,0,.08); padding:16px; box-sizing:border-box; }
.section { width:100%; margin:16px 0; display:flex; justify-content:center; }

.hero { background:#1026b9; color:#fff; padding:24px; text-align:center; font-size:20px; font-weight:bold; border-radius:4px; line-height:1.35; }

.chat { flex-direction:column; align-items:stretch; gap:8px; min-height:200px; max-height:400px; overflow-y:auto; border:1px solid #ddd; padding:10px; border-radius:6px; background:#fafafa; }

.input-zone { flex-direction:column; gap:10px; width:100%; }
.input.framed { width:100%; min-height:90px; border:3px solid #111; border-radius:4px; background:#f7fbff; padding:14px; font-size:16px; line-height:1.4; }
.input:empty:before { content: attr(data-placeholder); color:#3a4a7a; opacity:.8; }

.btn { width:100%; text-align:center; padding:16px; border-radius:4px; color:white; font-weight:800; cursor:pointer; user-select:none; }
.btn-primary { background:#18b848; }
.btn-primary:hover { filter:brightness(.95); }
.btn-secondary { background:#44d8f6; color:#001b2e; }
.btn-secondary:hover { filter:brightness(.95); }

.file-input { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }

.message { padding:10px 14px; border-radius:10px; font-size:15px; max-width:80%; line-height:1.4; }
.user    { background:#d9ecff; align-self:flex-end; margin-left:auto; }
.bot     { background:#f2f2f2; align-self:flex-start; margin-right:auto; }
.error   { background:#ffe0e0; border:1px solid #ffb3b3; color:#b00020; }

.progress { flex-direction:column; align-items:center; text-align:center; gap:8px; }
.progress .bar { height:10px; width:60%; background:orange; border-radius:4px; animation:load 2s infinite; }
@keyframes load { 0%{width:20%} 50%{width:85%} 100%{width:40%} }

.final { background:#eef6ff; border:1px solid #cce0ff; border-radius:6px; padding:16px; }
.final h2 { margin:0 0 8px; font-size:18px; }
.cta a { display:inline-block; margin-top:8px; padding:10px 14px; background:#4caf50; color:white; border-radius:6px; text-decoration:none; }
.cta a:hover { filter:brightness(.95); }
.disclaimer { font-size:12px; color:#555; margin-top:10px; text-align:center; }