.app-layout{display:flex;height:100%;width:100%;background:var(--bg)}.sidebar{width:330px;min-width:330px;background:var(--sidebar-bg);border-right:1px solid var(--border);display:flex;flex-direction:column;flex-shrink:0}.sidebar-header{padding:12px 16px;border-bottom:1px solid var(--border);flex-shrink:0}.sidebar-header .logo{font-size:16px;font-weight:600;color:var(--text);margin:0;letter-spacing:-.02em}.sidebar-credit{font-size:13px;color:var(--text-secondary);margin:6px 0 0;line-height:1.3}.sidebar-new-chat{margin:8px 12px;padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font-size:14px;font-weight:500;text-align:left;width:calc(100% - 24px)}.sidebar-new-chat:hover{background:var(--border)}.sidebar-history{flex:1;overflow-y:auto;padding:8px 0;display:flex;flex-direction:column;gap:2px}.sidebar-chat-item{width:100%;padding:10px 14px;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--text);font-size:14px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-chat-item:hover{background:var(--border)}.sidebar-chat-item.active{background:var(--bg-secondary);font-weight:500}.sidebar.collapsed{width:0;min-width:0;overflow:hidden;border-right:none}.sidebar-toggle{position:fixed;left:12px;top:12px;z-index:100;width:40px;height:40px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);color:var(--text);display:flex;align-items:center;justify-content:center;cursor:pointer}.sidebar-toggle:hover{background:var(--bg-secondary)}.top-bar{height:52px;min-height:52px;border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 16px;background:var(--bg);flex-shrink:0}.top-bar-title{font-size:16px;font-weight:600;color:var(--text);margin:0}.main-wrap{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0}.main{flex:1;display:flex;flex-direction:column;min-height:0;max-width:48rem;margin:0 auto;width:100%;padding:16px 24px 24px}.welcome{padding:32px 0 48px;text-align:center}.welcome-title{font-size:28px;font-weight:600;color:var(--text);margin:0 0 8px;line-height:1.65}.welcome-subtitle{font-size:18px;font-weight:500;color:var(--text-secondary);margin:0 0 16px;line-height:1.65}.welcome-lead{font-size:18px;font-weight:600;color:var(--text);margin:0 0 24px;line-height:1.65}.welcome-suggestions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:24px 0 0}.welcome-suggestions button{padding:10px 16px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:14px;font-weight:500}.welcome-suggestions button:hover{background:var(--bg-secondary)}.welcome-planilha{margin-top:16px;text-align:center}.btn-planilha{padding:8px 16px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);color:var(--text-secondary);font-size:13px;font-weight:500}.btn-planilha:hover{background:var(--bg-secondary);color:var(--text)}.planilha-box{margin-top:16px;text-align:left;max-width:480px;margin-left:auto;margin-right:auto}.planilha-textarea{width:100%;padding:12px 16px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--input-bg);color:var(--text);font-size:15px;line-height:1.5;resize:vertical;min-height:100px}.planilha-textarea::placeholder{color:var(--text-secondary)}.btn-send-planilha{margin-top:8px;padding:10px 20px;border-radius:var(--radius-sm);border:none;background:var(--accent);color:#fff;font-size:15px;font-weight:500}.btn-send-planilha:hover{background:var(--accent-hover)}.messages{flex:1;overflow-y:auto;padding:8px 0}.message-row{display:flex;gap:16px;padding:24px 0;max-width:100%;align-items:flex-start}.message-row--user{flex-direction:row-reverse}.message-avatar{width:28px;height:28px;min-width:28px;min-height:28px;border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;flex-shrink:0}.message-row--assistant .message-avatar{background:var(--accent);color:#fff}.message-row--user .message-avatar{background:var(--text-secondary);color:#fff}.message-content-wrap{max-width:70%;min-width:0}.message-row--user .message-content-wrap{display:flex;justify-content:flex-end}.message-bubble{padding:12px 16px;border-radius:var(--radius);font-size:var(--msg-font-size);line-height:var(--msg-line-height);word-break:break-word;white-space:pre-wrap;display:inline-block}.message-row--assistant .message-bubble{background:var(--assistant-bubble);border:1px solid var(--border);color:var(--text)}.message-row--user .message-bubble{background:var(--user-bubble);color:#fff;border:none}.message-result{margin:8px 0 0;padding:10px 12px;font-size:13px;font-family:ui-monospace,monospace;background:var(--bg);border-radius:8px;overflow-x:auto;white-space:pre-wrap;border:1px solid var(--border)}.typing-dots{display:inline-flex;align-items:center;gap:4px;padding:4px 0;min-width:52px}.typing-dots span{width:6px;height:6px;border-radius:50%;background:var(--thinking-dot);animation:thinking-dots 1.4s ease-in-out infinite both}.typing-dots span:nth-child(1){animation-delay:0s}.typing-dots span:nth-child(2){animation-delay:.2s}.typing-dots span:nth-child(3){animation-delay:.4s}@keyframes thinking-dots{0%,60%,to{transform:translateY(0);opacity:.4}30%{transform:translateY(-6px);opacity:1}}.error-banner{padding:10px 16px;background:#ef44441a;color:var(--error);border-radius:var(--radius-sm);font-size:14px;margin-bottom:8px;border:1px solid rgba(239,68,68,.3)}.input-row{display:flex;align-items:flex-end;gap:8px;padding:16px 0 0;border-top:1px solid var(--border);flex-shrink:0}.input-wrap{flex:1;display:flex;align-items:flex-end;border:1px solid var(--border);border-radius:var(--radius);background:var(--input-bg);padding:4px 8px;min-height:0;max-height:min(50dvh,200px)}.input-wrap:focus-within{border-color:var(--accent);outline:none}.input{flex:1;border:none;background:transparent;color:var(--text);font-size:var(--input-font-size);line-height:1.25;resize:none;min-height:1.25em;padding:0;max-height:min(50dvh,200px)}.input::placeholder{color:var(--text-secondary)}.input:focus{outline:none}.btn-send{width:35px;min-width:35px;height:35px;min-height:35px;border-radius:var(--radius-sm);border:none;background:var(--btn-send-bg, #7db8e8);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}.btn-send:hover:not(:disabled){background:var(--btn-send-bg-hover, #5aa0d8)}.btn-send:disabled{opacity:.5;cursor:not-allowed}.btn-send svg{width:16px;height:16px}.btn-resumo-inline{padding:0 14px;min-height:35px;border-radius:var(--radius-sm);border:1px solid rgba(16,163,127,.4);background:#ecfdf5;color:#065f46;font-size:14px;font-weight:500;flex-shrink:0}.btn-resumo-inline:hover:not(:disabled){background:#d1fae5}.btn-resumo-inline:disabled{opacity:.5;cursor:not-allowed}.btn-attach{width:35px;min-width:35px;height:35px;min-height:35px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);color:var(--text);display:flex;align-items:center;justify-content:center;flex-shrink:0}.btn-attach:hover:not(:disabled){background:var(--bg-secondary)}.btn-attach svg{width:18px;height:18px}.input-file-hidden{position:absolute;width:0;height:0;opacity:0;pointer-events:none}.actions-below{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0 0;flex-shrink:0}.actions-below .btn-planilha,.actions-below .btn-resumo{padding:8px 14px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);color:var(--text-secondary);font-size:13px;font-weight:500}.actions-below .btn-planilha:hover,.actions-below .btn-resumo:hover{background:var(--bg-secondary);color:var(--text)}.actions-below .btn-resumo:disabled{opacity:.5;cursor:not-allowed}:root{--bg: #ffffff;--bg-secondary: #f7f7f8;--sidebar-bg: #f7f7f8;--surface: #ffffff;--border: #e5e5e5;--text: #0d0d0d;--text-secondary: #6e6e80;--user-bubble: #10a37f;--user-bubble-hover: #0d8c6a;--assistant-bubble: #f7f7f8;--input-bg: #ffffff;--accent: #10a37f;--accent-hover: #0d8c6a;--btn-send-bg: #7db8e8;--btn-send-bg-hover: #5aa0d8;--error: #ef4444;--radius: 18px;--radius-sm: 12px;--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;--msg-font-size: 16px;--msg-line-height: 1.65;--input-font-size: 16px;--thinking-dot: #10a37f}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:var(--font-sans);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;font-size:var(--msg-font-size);line-height:var(--msg-line-height)}button{font-family:inherit;cursor:pointer}textarea,input{font-family:inherit}
