:root{--bg:#0f172a;--bg-soft:#1e293b;--surface:#fff;--surface-muted:#f1f5f9;--border:#e2e8f0;--text:#0f172a;--text-muted:#64748b;--primary:#6366f1;--primary-strong:#4f46e5;--primary-soft:#eef2ff;--user-bubble:linear-gradient(135deg, #6366f1, #8b5cf6);--danger-bg:#fef2f2;--danger-text:#b91c1c;--shadow:0 10px 30px #0f172a14;--radius:18px}*{box-sizing:border-box}html,body,#root{height:100%}body{color:var(--text);background:radial-gradient(1200px 600px at 10% -10%, #312e81 0%, transparent 60%), radial-gradient(1000px 500px at 100% 0%, #6d28d9 0%, transparent 55%), var(--bg);margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.app{flex-direction:column;justify-content:center;align-items:center;height:100%;padding:24px;display:flex}.main{flex-direction:column;flex:1;width:100%;max-width:760px;min-height:0;display:flex}.header,.conversation,.upload{width:100%;max-width:760px;margin:0 auto}.header{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:var(--radius);box-shadow:var(--shadow);background:#ffffffe6;border:1px solid #ffffff80;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;padding:16px 22px;display:flex}.header__brand{align-items:center;gap:14px;display:flex}.header__logo{background:var(--primary-soft);border-radius:14px;place-items:center;width:46px;height:46px;font-size:1.6rem;display:grid}.header__title{margin:0;font-size:1.15rem;font-weight:700}.header__subtitle{color:var(--text-muted);margin:2px 0 0;font-size:.82rem}.header__file{align-items:center;gap:10px;min-width:0;display:flex}.header__file-name{text-overflow:ellipsis;white-space:nowrap;max-width:180px;color:var(--text-muted);background:var(--surface-muted);border-radius:999px;padding:6px 12px;font-size:.82rem;overflow:hidden}.header__reset{background:var(--primary-strong);color:#fff;cursor:pointer;border:none;border-radius:999px;padding:8px 14px;font-size:.82rem;font-weight:600;transition:transform .1s,background .2s}.header__reset:hover{background:var(--primary);transform:translateY(-1px)}.banner{border-radius:12px;width:100%;max-width:760px;margin:0 auto 12px;padding:10px 16px;font-size:.88rem}.banner--error{background:var(--danger-bg);color:var(--danger-text)}.upload{flex:1;align-items:center;display:flex}.dropzone{text-align:center;cursor:pointer;width:100%;box-shadow:var(--shadow);background:#fffffff2;border:2px dashed #c7d2fe;border-radius:24px;padding:56px 32px;transition:border-color .2s,transform .15s,box-shadow .2s}.dropzone:hover{border-color:var(--primary);transform:translateY(-2px)}.dropzone--active{border-color:var(--primary-strong);background:var(--primary-soft)}.dropzone--busy{cursor:progress}.dropzone__icon{margin-bottom:12px;font-size:2.6rem}.dropzone__title{margin:0;font-size:1.05rem;font-weight:600}.dropzone__hint{color:var(--text-muted);margin:6px 0 0;font-size:.85rem}.conversation{min-height:0;box-shadow:var(--shadow);background:#fffffff5;border-radius:24px;flex-direction:column;flex:1;display:flex;overflow:hidden}.chat{flex-direction:column;flex:1;gap:14px;min-height:0;padding:22px;display:flex;overflow-y:auto}.chat__empty{text-align:center;color:var(--text-muted);margin:auto}.chat__empty-icon{font-size:2.4rem}.chat__empty-title{color:var(--text);margin:8px 0 18px;font-weight:600}.chat__suggestions{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.chip{border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;border-radius:999px;padding:9px 14px;font-size:.85rem;transition:all .15s}.chip:hover{border-color:var(--primary);background:var(--primary-soft);color:var(--primary-strong)}.msg{align-items:flex-end;gap:10px;display:flex}.msg--user{flex-direction:row;justify-content:flex-end}.msg__avatar{background:var(--surface-muted);border-radius:50%;flex:none;place-items:center;width:34px;height:34px;font-size:1rem;display:grid}.msg__avatar--user{background:var(--primary-soft)}.msg__bubble{white-space:pre-wrap;word-wrap:break-word;border-radius:18px;max-width:74%;padding:12px 16px;font-size:.94rem;line-height:1.5}.msg--assistant .msg__bubble{background:var(--surface-muted);color:var(--text);border-bottom-left-radius:6px}.msg--user .msg__bubble{background:var(--user-bubble);color:#fff;border-bottom-right-radius:6px}.msg__bubble--thinking{align-items:center;gap:5px;display:flex}.dot{background:var(--text-muted);border-radius:50%;width:7px;height:7px;animation:1.3s infinite both blink}.dot:nth-child(2){animation-delay:.2s}.dot:nth-child(3){animation-delay:.4s}@keyframes blink{0%,80%,to{opacity:.25}40%{opacity:1}}.composer{border-top:1px solid var(--border);background:var(--surface);gap:10px;padding:16px;display:flex}.composer__input{border:1px solid var(--border);background:var(--surface-muted);border-radius:999px;flex:1;padding:13px 16px;font-size:.94rem;transition:border-color .2s,background .2s}.composer__input:focus{border-color:var(--primary);background:#fff;outline:none}.composer__send{background:var(--primary-strong);color:#fff;cursor:pointer;border:none;border-radius:50%;flex:none;width:48px;height:48px;font-size:1.1rem;transition:transform .1s,background .2s}.composer__send:hover:not(:disabled){background:var(--primary);transform:scale(1.05)}.composer__send:disabled{cursor:not-allowed;background:#c7d2fe}.spinner{border:4px solid var(--primary-soft);border-top-color:var(--primary-strong);border-radius:50%;width:38px;height:38px;margin:0 auto 14px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.chat::-webkit-scrollbar{width:8px}.chat::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:8px}.chat::-webkit-scrollbar-track{background:0 0}
