@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap";:root{--a_creme1:#f7f3ea;--a_creme:#fafaf7;--a_aco:#334155;--a_ardosia:#dedad4;--a_ardosia1:#475569;--a_petroleo:#0e7c7b;--a_tinta:#0f172a;--blue:#2d5be3;--blue-hover:#2449c2;--blue-focus:#2d5be31a;--blue-disabled:#c5cde8;--text:#1a1a1a;--text-secondary:#555;--text-muted:#999;--text-placeholder:#b0b0b0;--bg-page:#f5f5f0;--bg-main:#fff;--bg-sidebar:#f0ede8;--bg-white:#fff;--bg-user-bubble:#4a5568;--bg-bot-icon:#e8e4de;--bg-empty-icon:#eee;--border:#e0ddd8;--border-header:#e8e5e0;--border-bot-icon:#d4d0ca;--chat-item-hover:#e5e1db;--chat-item-active:#dedad4;--new-btn-hover:#e8e4de;--new-btn-border:#b0aba3;--green-dot:#0e7c7b;--dark-menu:#2d2d2d;--cursor:#555;--scrollbar:#ccc;--avatar-bg:#0e7c7b;--transition-fast:.12s;--transition-mid:.15s;--transition-slow:.25s}*{box-sizing:border-box;margin:0;padding:0}html,body{width:100%;height:100%;margin:0;padding:0}body{background:var(--bg-page);width:100vw;height:100vh;color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;display:flex;overflow:hidden}#root{width:100%;height:100%;display:flex}.app{width:100vw;height:100vh;display:flex;position:fixed;top:0;left:0;overflow:hidden}.sidebar{background:var(--a_creme);border-right:1px solid var(--border);width:340px;min-width:240px;height:100vh;transition:width var(--transition-slow) ease, min-width var(--transition-slow) ease, opacity .2s ease, border-color var(--transition-slow) ease;flex-direction:column;display:flex;overflow:hidden}.sidebar--collapsed{opacity:0;pointer-events:none;border-color:#0000;width:0;min-width:0}.sidebar__logo{border-bottom:1px solid var(--border);align-items:center;padding:16px;display:flex}.sidebar__logo-image{object-fit:contain;width:auto;height:46px}.sidebar__new-btn{border:1.5px solid var(--new-btn-border);cursor:pointer;color:var(--text-secondary);transition:background var(--transition-mid), border-color var(--transition-mid);text-align:left;background:0 0;border-radius:8px;align-items:center;gap:6px;width:calc(100% - 24px);margin:12px 12px 6px;padding:8px 12px;font-family:inherit;font-size:13px;display:flex}.sidebar__new-btn:hover{background:var(--new-btn-hover);border-color:var(--scrollbar)}.sidebar__new-btn-icon{color:#777;font-size:16px;line-height:1}.sidebar__section-label{text-transform:uppercase;letter-spacing:.7px;color:var(--text-muted);padding:12px 16px 4px;font-size:10.5px;font-weight:600}.sidebar__chat-list{flex:1;padding:4px 8px;overflow-y:auto}.sidebar__chat-list::-webkit-scrollbar{width:4px}.sidebar__chat-list::-webkit-scrollbar-track{background:0 0}.sidebar__chat-list::-webkit-scrollbar-thumb{background:var(--scrollbar);border-radius:2px}.sidebar__chat-item{cursor:pointer;transition:background var(--transition-fast);border-radius:8px;padding:8px 10px}.sidebar__chat-item:hover{background:var(--chat-item-hover)}.sidebar__chat-item--active{background:var(--chat-item-active)}.sidebar__chat-item-title{color:var(--text);white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:500;line-height:1.3;overflow:hidden}.sidebar__chat-item-date{color:var(--text-muted);margin-top:2px;font-size:11px}.sidebar__chat-item{position:relative}.sidebar__menu-btn{cursor:pointer;color:var(--text-muted);opacity:0;transition:opacity var(--transition-fast), background var(--transition-fast);background:0 0;border:none;border-radius:4px;flex-shrink:0;padding:2px 4px;font-size:16px;line-height:1}.sidebar__chat-item:hover .sidebar__menu-btn{opacity:1}.sidebar__menu-btn:hover{background:var(--chat-item-hover);color:var(--text)}.chat-item__dropdown{background:var(--bg-white);border:1px solid var(--border);z-index:50;border-radius:8px;min-width:130px;position:absolute;top:100%;right:0;overflow:hidden;box-shadow:0 4px 12px #0000001a}.chat-item__dropdown button{cursor:pointer;width:100%;color:var(--text);text-align:left;transition:background var(--transition-fast);background:0 0;border:none;padding:8px 14px;font-family:inherit;font-size:13px;display:block}.chat-item__dropdown button:hover{background:var(--bg-sidebar)}.chat-item__rename-input{border:1px solid var(--a_creme);color:var(--text);background:0 0;border-radius:4px;outline:none;flex:1;width:100%;padding:2px 6px;font-family:inherit;font-size:13px}.sidebar__delete-btn{cursor:pointer;opacity:0;transition:opacity var(--transition-fast), background var(--transition-fast);background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;padding:2px;display:flex}.sidebar__delete-btn svg{width:13px;height:13px;color:var(--text-muted)}.sidebar__delete-btn:hover{background:#e0ddd8}.sidebar__delete-btn:hover svg{color:#e53e3e}.sidebar__chat-item:hover .sidebar__delete-btn{opacity:1}.sidebar__profile{border-top:1px solid var(--border);align-items:center;gap:10px;padding:12px 14px;display:flex}.sidebar__profile-info{overflow:hidden}.sidebar__profile-name{white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:600;overflow:hidden}.sidebar__profile-plan{color:#888;font-size:11px}.avatar{background:var(--avatar-bg);width:32px;height:32px;color:var(--bg-white);-webkit-user-select:none;user-select:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:12px;font-weight:600;display:flex}.avatar--sm{width:26px;height:26px;font-size:10px}.main{background:var(--bg-main);flex-direction:column;flex:1;min-width:0;height:100vh;display:flex;overflow:hidden}.chat-header{border-bottom:1px solid var(--border-header);background:var(--bg-main);flex-shrink:0;justify-content:space-between;align-items:center;padding:14px 20px;display:flex}.chat-header__title{color:var(--text);font-size:15px;font-weight:600}.chat-header__toggle-btn{border:1px solid var(--border);cursor:pointer;width:32px;height:32px;transition:background var(--transition-mid), border-color var(--transition-mid);background:0 0;border-radius:7px;flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;gap:4px;padding:0;display:flex}.chat-header__toggle-btn:hover{background:var(--a_creme);border-color:var(--scrollbar)}.chat-header__hamburger-line{transform-origin:50%;background:#444;border-radius:2px;width:14px;height:1.5px;transition:transform .22s,opacity .18s,width .22s;display:block}.chat-header__toggle-btn--open .chat-header__hamburger-line:first-child{transform:translateY(5.5px)rotate(45deg)}.chat-header__toggle-btn--open .chat-header__hamburger-line:nth-child(2){opacity:0;width:0}.chat-header__toggle-btn--open .chat-header__hamburger-line:nth-child(3){transform:translateY(-5.5px)rotate(-45deg)}.messages-area{flex-direction:column;flex:1;gap:16px;padding:20px 24px;display:flex;overflow-y:auto}.messages-area::-webkit-scrollbar{width:4px}.messages-area::-webkit-scrollbar-track{background:0 0}.messages-area::-webkit-scrollbar-thumb{background:var(--scrollbar);border-radius:2px}.message-row{flex-direction:column;gap:4px;display:flex}.message-row--user{align-items:flex-end}.message-row--bot{align-items:flex-start}.message-row--user .bubble{background:var(--a_ardosia);color:var(--black);border-radius:16px 16px 4px;max-width:85%;padding:12px 16px;font-size:14px;line-height:1.55}.bot-row-inner{align-items:flex-start;gap:10px;max-width:72%;display:flex}.bot-icon{background:var(--bg-bot-icon);border:1.5px solid var(--border-bot-icon);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:30px;height:30px;margin-top:2px;display:flex;overflow:hidden}.bot-icon img{object-fit:contain;width:20px;height:20px}.bot-icon svg{width:15px;height:15px;color:var(--text-secondary)}.message-row--bot .bubble{background:var(--bg-white);color:var(--text);border:1px solid var(--border-header);border-radius:4px 16px 16px;padding:12px 16px;font-size:14px;line-height:1.6;box-shadow:0 1px 3px #0000000f}.message-row--bot .bubble h1,.message-row--bot .bubble h2,.message-row--bot .bubble h3,.message-row--bot .bubble h4{color:var(--text);margin:16px 0 6px;font-weight:600;line-height:1.3}.message-row--bot .bubble h1{font-size:20px}.message-row--bot .bubble h2{font-size:17px}.message-row--bot .bubble h3{font-size:15px}.message-row--bot .bubble h4{font-size:14px}.message-row--bot .bubble hr{border:none;border-top:1px solid var(--border);margin:14px 0}.message-row--bot .bubble li{margin-bottom:4px;margin-left:18px;list-style:outside}.message-row--bot .bubble table{border-collapse:collapse;width:100%;margin:12px 0;font-size:13px}.message-row--bot .bubble td{border:1px solid var(--border);vertical-align:top;padding:8px 12px;line-height:1.45}.message-row--bot .bubble tr:first-child td{background:var(--bg-sidebar);font-weight:600}.message-time{color:#aaa;padding:0 4px;font-size:11px}.thinking-indicator{color:var(--text-muted);align-items:center;gap:4px;font-size:14px;display:flex}.thinking-dots{gap:2px;display:flex}.thinking-dots span{opacity:0;animation:1.4s infinite thinking-fade}.thinking-dots span:nth-child(2){animation-delay:.2s}.thinking-dots span:nth-child(3){animation-delay:.4s}@keyframes thinking-fade{0%,to{opacity:0}50%{opacity:1}}.user-bubble-row{align-items:flex-start;gap:8px;display:flex}.user-bubble-col{flex-direction:column;align-items:flex-end;gap:4px;display:flex}.message-row--user .message-time{padding-right:2px}.message-row--bot .message-time{padding-left:40px}.streaming-cursor{background:var(--cursor);vertical-align:text-bottom;width:2px;height:14px;margin-left:2px;animation:.8s step-end infinite blink;display:inline-block}@keyframes blink{50%{opacity:0}}.typing-indicator{align-items:center;gap:5px;padding:10px 14px;display:flex}.typing-dot{background:#aaa;border-radius:50%;width:7px;height:7px;animation:1.2s infinite bounce}.typing-dot:nth-child(2){animation-delay:.2s}.typing-dot:nth-child(3){animation-delay:.4s}@keyframes bounce{0%,60%,to{transform:translateY(0)}30%{transform:translateY(-5px)}}.empty-state{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;padding:40px;display:flex}.empty-state__icon{background:var(--bg-empty-icon);border-radius:16px;justify-content:center;align-items:center;width:56px;height:56px;display:flex}.empty-state__icon svg{color:#bbb;width:28px;height:28px}.empty-state__title{color:var(--text-secondary);font-size:16px;font-weight:600}.empty-state__desc{color:var(--text-muted);max-width:320px;font-size:13px;line-height:1.5}.input-area{border-top:1px solid var(--border-header);background:var(--bg-white);flex-shrink:0;padding:12px 20px 8px}.input-area__row{background:var(--bg-white);border:1.5px solid var(--border);transition:border-color var(--transition-mid), box-shadow var(--transition-mid);border-radius:12px;align-items:flex-end;gap:8px;padding:8px 10px 8px 14px;display:flex}.input-area__row:focus-within{border-color:var(--border);box-shadow:none}.input-area__textarea{color:var(--text);resize:none;background:0 0;border:none;outline:none;flex:1;min-height:22px;max-height:120px;padding:6px 0;font-family:inherit;font-size:14px;line-height:1.5}.input-area__textarea::placeholder{color:var(--text-placeholder)}.input-area__send-btn{background:var(--a_petroleo);cursor:pointer;width:34px;height:34px;transition:background var(--transition-mid), transform .1s;border:none;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:flex}.input-area__send-btn:hover{background:var(--blue-hover)}.input-area__send-btn:active{transform:scale(.95)}.input-area__send-btn:disabled{background:var(--blue-disabled);cursor:not-allowed;transform:none}.input-area__send-btn svg{width:16px;height:16px;fill:var(--bg-white)}.input-area__disclaimer{text-align:center;color:#aaa;justify-content:center;align-items:center;gap:5px;margin-top:8px;font-size:11px;display:flex}.input-area__disclaimer svg{color:#bbb;flex-shrink:0;width:12px;height:12px}@media (width<=640px){.sidebar{z-index:100;height:100vh;position:fixed;top:0;left:0;box-shadow:4px 0 16px #0000001f}.sidebar--collapsed{box-shadow:none}}
