@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: #475569;--a_petroleo: #0E7C7B;--a_tinta: #0F172A;--blue: #2d5be3;--blue-hover: #2449c2;--blue-focus: rgba(45, 91, 227, .1);--blue-disabled: #c5cde8;--text: #1a1a1a;--text-secondary: #555555;--text-muted: #999999;--text-placeholder: #b0b0b0;--bg-page: #f5f5f0;--bg-main: #ffffff;--bg-sidebar: #f0ede8;--bg-white: #ffffff;--bg-user-bubble: #4a5568;--bg-bot-icon: #e8e4de;--bg-empty-icon: #eeeeee;--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: #555555;--scrollbar: #cccccc;--avatar-bg: #0E7C7B;--transition-fast: .12s;--transition-mid: .15s;--transition-slow: .25s}*{margin:0;padding:0;box-sizing:border-box}html,body{height:100%;width:100%;margin:0;padding:0}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--bg-page);height:100vh;height:100dvh;width:100vw;display:flex;overflow:hidden;color:var(--text)}#root{width:100%;height:100%;display:flex}.app{display:flex;width:100vw;height:100vh;height:100dvh;overflow:hidden;position:fixed;top:0;left:0}.sidebar{width:340px;min-width:240px;background:var(--a_creme);border-right:1px solid var(--border);display:flex;flex-direction:column;height:100vh;height:100dvh;overflow:hidden;transition:width var(--transition-slow) ease,min-width var(--transition-slow) ease,opacity .2s ease,border-color var(--transition-slow) ease}.sidebar--collapsed{width:0;min-width:0;opacity:0;border-color:transparent;pointer-events:none}.sidebar__logo{padding:16px;border-bottom:1px solid var(--border);display:flex;align-items:center}.sidebar__logo-image{height:46px;width:auto;object-fit:contain}.sidebar__new-btn{margin:12px 12px 6px;padding:8px 12px;background:transparent;border:1.5px solid var(--new-btn-border);border-radius:8px;cursor:pointer;font-size:13px;font-family:inherit;color:var(--text-secondary);display:flex;align-items:center;gap:6px;transition:background var(--transition-mid),border-color var(--transition-mid);text-align:left;width:calc(100% - 24px)}.sidebar__new-btn:hover{background:var(--new-btn-hover);border-color:var(--scrollbar)}.sidebar__new-btn-icon{font-size:16px;line-height:1;color:#777}.sidebar__section-label{font-size:10.5px;font-weight:600;text-transform:uppercase;letter-spacing:.7px;color:var(--text-muted);padding:12px 16px 4px}.sidebar__chat-list{flex:1;overflow-y:auto;padding:4px 8px}.sidebar__chat-list::-webkit-scrollbar{width:4px}.sidebar__chat-list::-webkit-scrollbar-track{background:transparent}.sidebar__chat-list::-webkit-scrollbar-thumb{background:var(--scrollbar);border-radius:2px}.sidebar__chat-item{padding:8px 10px;border-radius:8px;cursor:pointer;transition:background var(--transition-fast)}.sidebar__chat-item:hover{background:var(--chat-item-hover)}.sidebar__chat-item--active{background:var(--chat-item-active)}.sidebar__chat-item-title{font-size:13px;font-weight:500;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}.sidebar__chat-item-date{font-size:11px;color:var(--text-muted);margin-top:2px}.sidebar__chat-item{position:relative}.sidebar__menu-btn{background:transparent;border:none;cursor:pointer;font-size:16px;color:var(--text-muted);padding:2px 4px;border-radius:4px;opacity:0;flex-shrink:0;line-height:1;transition:opacity var(--transition-fast),background var(--transition-fast)}.sidebar__chat-item:hover .sidebar__menu-btn{opacity:1}.sidebar__menu-btn:hover{background:var(--chat-item-hover);color:var(--text)}.chat-item__dropdown{position:absolute;top:100%;right:0;background:var(--bg-white);border:1px solid var(--border);border-radius:8px;box-shadow:0 4px 12px #0000001a;z-index:50;min-width:130px;overflow:hidden}.chat-item__dropdown button{display:block;width:100%;padding:8px 14px;background:transparent;border:none;cursor:pointer;font-size:13px;font-family:inherit;color:var(--text);text-align:left;transition:background var(--transition-fast)}.chat-item__dropdown button:hover{background:var(--bg-sidebar)}.chat-item__rename-input{flex:1;border:1px solid var(--a_creme);border-radius:4px;font-size:13px;background:transparent;font-family:inherit;color:var(--text);padding:2px 6px;outline:none;width:100%}.sidebar__delete-btn{background:transparent;border:none;cursor:pointer;padding:2px;border-radius:4px;display:flex;align-items:center;justify-content:center;opacity:0;flex-shrink:0;transition:opacity var(--transition-fast),background var(--transition-fast)}.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);padding:12px 14px;display:flex;align-items:center;gap:10px}.sidebar__profile-info{overflow:hidden}.sidebar__profile-name{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar__profile-plan{font-size:11px;color:#888}.avatar{width:32px;height:32px;border-radius:50%;background:var(--avatar-bg);color:var(--bg-white);font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0;-webkit-user-select:none;user-select:none}.avatar--sm{width:26px;height:26px;font-size:10px}.main{flex:1;min-width:0;display:flex;flex-direction:column;height:100vh;height:100dvh;overflow:hidden;background:var(--bg-main)}.chat-header{padding:14px 20px;border-bottom:1px solid var(--border-header);display:flex;align-items:center;justify-content:space-between;background:var(--bg-main);flex-shrink:0}.chat-header__title{font-size:15px;font-weight:600;color:var(--text)}.chat-header__toggle-btn{width:32px;height:32px;background:transparent;border:1px solid var(--border);border-radius:7px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:0;transition:background var(--transition-mid),border-color var(--transition-mid);flex-shrink:0}.chat-header__toggle-btn:hover{background:var(--a_creme);border-color:var(--scrollbar)}.chat-header__hamburger-line{display:block;width:14px;height:1.5px;background:#444;border-radius:2px;transition:transform .22s ease,opacity .18s ease,width .22s ease;transform-origin:center}.chat-header__toggle-btn--open .chat-header__hamburger-line:nth-child(1){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:1;overflow-y:auto;padding:20px 24px;display:flex;flex-direction:column;gap:16px}.messages-area::-webkit-scrollbar{width:4px}.messages-area::-webkit-scrollbar-track{background:transparent}.messages-area::-webkit-scrollbar-thumb{background:var(--scrollbar);border-radius:2px}.message-row{display:flex;flex-direction:column;gap:4px}.message-row--user{align-items:flex-end}.message-row--bot{align-items:flex-start}.message-row--user .bubble{background:var(--a_ardosia);color:var(--bg-white);border-radius:16px 16px 4px;max-width:85%;padding:12px 16px;font-size:14px;line-height:1.55}.bot-row-inner{display:flex;align-items:flex-start;gap:10px;max-width:72%}.bot-icon{width:30px;height:30px;border-radius:50%;background:var(--bg-bot-icon);border:1.5px solid var(--border-bot-icon);display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px;overflow:hidden}.bot-icon img{width:20px;height:20px;object-fit:contain}.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{margin:16px 0 6px;color:var(--text);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-left:18px;margin-bottom:4px;list-style:disc}.message-row--bot .bubble table{width:100%;border-collapse:collapse;margin:12px 0;font-size:13px}.message-row--bot .bubble td{border:1px solid var(--border);padding:8px 12px;vertical-align:top;line-height:1.45}.message-row--bot .bubble tr:first-child td{background:var(--bg-sidebar);font-weight:600}.message-time{font-size:11px;color:#aaa;padding:0 4px}.thinking-indicator{display:flex;align-items:center;gap:4px;font-size:14px;color:var(--text-muted)}.thinking-dots{display:flex;gap:2px}.thinking-dots span{animation:thinking-fade 1.4s infinite;opacity:0}.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{display:flex;align-items:flex-start;gap:8px}.user-bubble-col{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.message-row--user .message-time{padding-right:2px}.message-row--bot .message-time{padding-left:40px}.streaming-cursor{display:inline-block;width:2px;height:14px;background:var(--cursor);margin-left:2px;vertical-align:text-bottom;animation:blink .8s step-end infinite}@keyframes blink{50%{opacity:0}}.typing-indicator{display:flex;gap:5px;padding:10px 14px;align-items:center}.typing-dot{width:7px;height:7px;background:#aaa;border-radius:50%;animation:bounce 1.2s infinite}.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{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:40px}.empty-state__icon{width:56px;height:56px;background:var(--bg-empty-icon);border-radius:16px;display:flex;align-items:center;justify-content:center}.empty-state__icon svg{width:28px;height:28px;color:#bbb}.empty-state__title{font-size:16px;font-weight:600;color:var(--text-secondary)}.empty-state__desc{font-size:13px;color:var(--text-muted);max-width:320px;line-height:1.5}.input-area{flex-shrink:0;border-top:1px solid var(--border-header);background:var(--bg-white);padding:12px 20px 8px}.input-area__row{display:flex;align-items:flex-end;gap:8px;background:var(--bg-white);border:1.5px solid var(--border);border-radius:12px;padding:8px 10px 8px 14px;transition:border-color var(--transition-mid),box-shadow var(--transition-mid)}.input-area__row:focus-within{border-color:var(--border);box-shadow:none}.input-area__textarea{flex:1;border:none;outline:none;background:transparent;font-size:14px;color:var(--text);resize:none;min-height:22px;max-height:120px;line-height:1.5;font-family:inherit;padding:6px 0}.input-area__textarea::placeholder{color:var(--text-placeholder)}.input-area__send-btn{width:34px;height:34px;background:var(--a_petroleo);border:none;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background var(--transition-mid),transform .1s;padding:0}.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;font-size:11px;color:#aaa;margin-top:8px;display:flex;align-items:center;justify-content:center;gap:5px}.input-area__disclaimer svg{width:12px;height:12px;flex-shrink:0;color:#bbb}.sidebar-overlay{display:none}@media (max-width: 640px){.sidebar{position:fixed;top:0;left:0;z-index:100;width:82vw;max-width:320px;min-width:0;height:100vh;height:100dvh;box-shadow:4px 0 16px #0003}.sidebar--collapsed{box-shadow:none}.sidebar-overlay{display:block;position:fixed;top:0;left:0;width:100vw;height:100vh;height:100dvh;background:#0006;z-index:90}.message-row--user .bubble{max-width:80%}.bot-row-inner{max-width:88%}.messages-area{padding:16px 14px}.input-area{padding:10px 12px 6px}}
