:root{color:#e5eaf2;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-optical-sizing:auto;background:#111827;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body{min-width:320px;min-height:100vh;margin:0}body{min-height:100vh}button,textarea,input{font:inherit}button{-webkit-tap-highlight-color:transparent}::selection{color:#111827;background:#9bd8ff}.history-chat.active{color:#fff;background:#263c56}.empty-history{color:#74849a;padding:10px;font-size:12px}.error-message{color:#ffb5b5;background:#47252b;border:1px solid #713740;border-radius:10px;width:100%;max-width:720px;margin-bottom:12px;padding:12px 16px;font-size:12px}#root{width:100%;min-height:100vh}.app{color:#e5eaf2;background:#111827;width:100%;min-height:100vh;display:flex}.sidebar{background:#151e2d;border-right:1px solid #263449;flex-direction:column;flex-shrink:0;height:100vh;transition:width .2s;display:flex;position:relative}.sidebar.open{width:260px;padding:16px 12px}.sidebar.closed{width:68px;padding:16px 10px}.sidebar-top{align-items:center;gap:12px;height:40px;margin-bottom:24px;display:flex}.brand-small{letter-spacing:-.7px;font-size:19px;font-weight:700}.icon-button{color:#aab8cb;cursor:pointer;background:0 0;border:none;border-radius:9px;justify-content:center;align-items:center;width:38px;height:38px;padding:0;display:flex}.icon-button:hover{color:#fff;background:#263449}.new-chat,.sidebar-action,.history-chat{color:#bdc9d9;text-align:left;cursor:pointer;background:0 0;border:none;border-radius:9px;align-items:center;gap:12px;width:100%;padding:11px 10px;font-size:13px;display:flex}.new-chat{color:#dceeff;background:#263c56;margin-bottom:8px}.new-chat:hover{background:#304b6b}.sidebar-action:hover,.history-chat:hover{color:#fff;background:#202e41}.history{flex:1;margin-top:28px;overflow-y:auto}.history-heading{color:#74849a;text-transform:uppercase;letter-spacing:.8px;margin-bottom:18px;padding:0 10px;font-size:11px;font-weight:600}.history-group{margin-bottom:22px}.group-title{color:#8494aa;margin-bottom:7px;padding:0 10px;font-size:12px;font-weight:600}.history-chat{padding:10px;font-size:12px}.history-chat span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sidebar-bottom{border-top:1px solid #263449;padding-top:12px}.collapsed-actions{flex-direction:column;align-items:center;gap:12px;display:flex}.main{flex-direction:column;flex:1;min-width:0;height:100vh;display:flex}.topbar{border-bottom:1px solid #263449;justify-content:space-between;align-items:center;height:65px;padding:0 28px;display:flex}.topbar-left{align-items:center;gap:7px;display:flex}.brand{letter-spacing:-.5px;font-size:17px;font-weight:700}.brand-chevron{color:#7e91aa}.chat-area{flex-direction:column;flex:1;justify-content:center;align-items:center;width:100%;padding:30px 24px;display:flex}.welcome{text-align:center;margin-bottom:36px}.welcome-icon{color:#9bd8ff;background:#203a55;border:1px solid #35536f;border-radius:17px;justify-content:center;align-items:center;width:54px;height:54px;margin:0 auto 22px;display:flex}.welcome h1{color:#f0f5fc;letter-spacing:-1px;margin:0;font-size:clamp(23px,3vw,32px);font-weight:600}.welcome p{color:#8798ae;margin-top:12px;font-size:14px}.composer{background:#1b2738;border:1px solid #35475d;border-radius:17px;width:100%;max-width:720px;padding:16px;box-shadow:0 10px 35px #00000020}.composer:focus-within{border-color:#6b9dc5}.composer textarea{resize:vertical;color:#edf4fc;width:100%;min-height:48px;max-height:180px;font:inherit;background:0 0;border:none;outline:none;font-size:14px;display:block}.composer textarea::placeholder{color:#7e8fa5}.composer-bottom{justify-content:space-between;align-items:center;margin-top:8px;display:flex}.attach-button{width:34px;height:34px}.send-button{color:#101b29;cursor:pointer;background:#9bd8ff;border:none;border-radius:11px;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.send-button:hover:not(:disabled){background:#c1e8ff}.send-button:disabled{opacity:.35;cursor:default}.disclaimer{color:#687b92;text-align:center;margin-top:16px;font-size:11px}.theme-button{border:1px solid #34445a}.history::-webkit-scrollbar{width:5px}.history::-webkit-scrollbar-thumb{background:#35475d;border-radius:10px}@media (width<=650px){.sidebar.open{width:215px}.topbar{padding:0 16px}.chat-area{padding:20px 14px}}.typing-indicator{align-items:center;gap:5px;padding:8px 0;display:flex}.typing-indicator span{background:#9bd8ff;border-radius:50%;width:7px;height:7px;animation:1.2s ease-in-out infinite typingBounce}.typing-indicator span:nth-child(2){animation-delay:.15s}.typing-indicator span:nth-child(3){animation-delay:.3s}@keyframes typingBounce{0%,60%,to{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-7px)}}@keyframes messageAppear{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.message{animation:.3s ease-out both messageAppear}.message-actions{opacity:0;align-items:center;gap:6px;margin-top:12px;transition:opacity .2s;display:flex}.message:hover .message-actions{opacity:1}.message-action{color:#8798ae;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:7px;align-items:center;gap:5px;padding:6px 9px;font-size:12px;transition:all .2s;display:inline-flex}.message-action:hover{color:#e5eaf2;background:#26364d;border-color:#354b65}.message-action:disabled{opacity:.4;cursor:not-allowed}.delete-action:hover{color:#f99;background:#47252b;border-color:#713740}.message-edit{flex-direction:column;gap:10px;display:flex}.message-edit textarea{color:#e5eaf2;resize:vertical;width:100%;min-height:90px;font:inherit;background:#111c2b;border:1px solid #354b65;border-radius:10px;outline:none;padding:12px;font-size:14px}.message-edit textarea:focus{border-color:#9bd8ff}.edit-actions{justify-content:flex-end;gap:8px;display:flex}.save-edit{color:#111827;background:#9bd8ff}.save-edit:hover{color:#111827;background:#b5e4ff}@media (hover:none){.message-actions{opacity:1}}.edited-label{color:#718096;margin-top:5px;font-size:11px;font-style:italic}.response-version-controls{align-items:center;gap:5px;width:fit-content;margin-top:12px;display:flex}.version-counter{color:#8798ae;text-align:center;font-variant-numeric:tabular-nums;min-width:35px;font-size:12px}.version-button{justify-content:center;min-width:28px;padding:5px}.version-button:disabled{opacity:.3;cursor:not-allowed}.file-input-hidden{display:none}.pending-attachments,.message-attachments{flex-wrap:wrap;gap:8px;margin:0 0 10px;display:flex}.pending-attachment,.message-attachment{color:#c8d5e5;background:#1b293b;border:1px solid #354b65;border-radius:9px;align-items:center;gap:7px;max-width:100%;padding:7px 10px;font-size:12px;display:inline-flex}.pending-attachment span,.message-attachment span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.remove-attachment{color:#9aacc1;cursor:pointer;background:0 0;border:0;border-radius:5px;justify-content:center;align-items:center;padding:2px;display:inline-flex}.remove-attachment:hover{color:#fff;background:#354b65}.upload-status{color:#9aacc1;margin-right:auto;font-size:12px}.attach-button:disabled{opacity:.45;cursor:not-allowed}.message-attachments{margin-top:12px}.message-attachment.image-attachment{flex-direction:column;align-items:flex-start;gap:6px;max-width:230px;display:inline-flex}.attachment-image-link{line-height:0;display:block}.attachment-thumbnail{object-fit:contain;border:1px solid #354b65;border-radius:10px;max-width:220px;max-height:180px;display:block}.pending-image-attachment{align-items:center}.pending-image-thumbnail{object-fit:cover;border-radius:6px;width:42px;height:42px}.theme-menu-container{align-items:center;display:flex;position:relative}.theme-button{transition:transform .28s,background .2s,color .2s}.theme-button svg{transition:transform .28s cubic-bezier(.2,.8,.2,1)}.theme-button-open svg{transform:rotate(360deg)}.theme-dropdown{z-index:50;transform-origin:100% 0;background:#1b2738;border:1px solid #35475d;border-radius:12px;width:190px;padding:7px;animation:.16s ease-out both themeDropdownAppear;position:absolute;top:calc(100% + 10px);right:0;box-shadow:0 12px 35px #00000045}@keyframes themeDropdownAppear{0%{opacity:0;transform:translateY(-6px)scale(.97)}to{opacity:1;transform:translateY(0)scale(1)}}.theme-dropdown-heading{color:#8494aa;letter-spacing:.5px;text-transform:uppercase;padding:8px 10px 7px;font-size:11px;font-weight:600}.theme-option{color:#c8d5e5;width:100%;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:space-between;align-items:center;padding:10px;font-size:13px;transition:background .15s,color .15s;display:flex}.theme-option:hover,.theme-option.selected{color:#f0f5fc;background:#263c56}.theme-option.selected svg{color:#9bd8ff}:root[data-theme=light] .app{color:#263449;background:#f4f7fb}:root[data-theme=light] .sidebar{background:#fff;border-right-color:#e1e7ef}:root[data-theme=light] .topbar{border-bottom-color:#e1e7ef}:root[data-theme=light] .brand-chevron,:root[data-theme=light] .icon-button{color:#64748b}:root[data-theme=light] .icon-button:hover{color:#172338;background:#edf2f7}:root[data-theme=light] .new-chat{color:#24415f;background:#e5f2ff}:root[data-theme=light] .new-chat:hover{background:#d7eaff}:root[data-theme=light] .sidebar-action,:root[data-theme=light] .history-chat{color:#526176}:root[data-theme=light] .sidebar-action:hover,:root[data-theme=light] .history-chat:hover,:root[data-theme=light] .history-chat.active{color:#172338;background:#edf2f7}:root[data-theme=light] .sidebar-bottom{border-top-color:#e1e7ef}:root[data-theme=light] .history-heading,:root[data-theme=light] .group-title{color:#8190a4}:root[data-theme=light] .welcome h1{color:#172338}:root[data-theme=light] .welcome p,:root[data-theme=light] .disclaimer{color:#718096}:root[data-theme=light] .welcome-icon{color:#2877b8;background:#e5f2ff;border-color:#c9e2fa}:root[data-theme=light] .composer{background:#fff;border-color:#d5dee9;box-shadow:0 10px 35px #23344d12}:root[data-theme=light] .composer textarea{color:#263449}:root[data-theme=light] .composer textarea::placeholder{color:#8a98aa}:root[data-theme=light] .theme-dropdown{background:#fff;border-color:#dce4ed;box-shadow:0 12px 35px #23344d20}:root[data-theme=light] .theme-dropdown-heading{color:#8190a4}:root[data-theme=light] .theme-option{color:#526176}:root[data-theme=light] .theme-option:hover,:root[data-theme=light] .theme-option.selected{color:#172338;background:#edf4fb}:root[data-theme=light] .theme-option.selected svg{color:#2877b8}:root[data-theme=light] .message-action{color:#64748b}:root[data-theme=light] .message-action:hover{color:#172338;background:#edf2f7;border-color:#dce4ed}:root[data-theme=light] .message-edit textarea{color:#263449;background:#fff;border-color:#d5dee9}:root[data-theme=light] .pending-attachment,:root[data-theme=light] .message-attachment{color:#526176;background:#f0f4f8;border-color:#dce4ed}:root[data-theme=light] .remove-attachment{color:#64748b}:root[data-theme=light] .remove-attachment:hover{color:#172338;background:#dce4ed}:root[data-theme=light] .attachment-thumbnail{border-color:#d5dee9}.app,.app *,.app :before,.app :after{transition-property:background-color,color,border-color,box-shadow,transform;transition-duration:.42s;transition-timing-function:ease}@media (prefers-reduced-motion:reduce){.app,.app *,.app :before,.app :after{transition-duration:.01ms}}.settings-overlay{z-index:100;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#00000080;justify-content:center;align-items:center;padding:20px;animation:.2s both settingsFadeIn;display:flex;position:fixed;inset:0}@keyframes settingsFadeIn{0%{opacity:0}to{opacity:1}}.settings-panel{background:#172234;border:1px solid #35475d;border-radius:17px;flex-direction:column;width:100%;max-width:760px;max-height:min(600px,85vh);animation:.22s both settingsPanelAppear;display:flex;overflow:hidden;box-shadow:0 25px 80px #0005}@keyframes settingsPanelAppear{0%{opacity:0;transform:translateY(10px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.settings-header{border-bottom:1px solid #2b3b50;justify-content:space-between;align-items:center;padding:22px 25px;display:flex}.settings-header h2{margin:0;font-size:20px}.settings-header p{color:#8798ae;margin:6px 0 0;font-size:13px}.settings-layout{min-height:330px;display:flex;overflow-y:auto}.settings-nav{border-right:1px solid #2b3b50;flex-direction:column;flex-shrink:0;gap:5px;width:190px;padding:18px 12px;display:flex}.settings-nav button{color:#9aacc1;text-align:left;cursor:pointer;background:0 0;border:none;border-radius:8px;align-items:center;gap:10px;width:100%;padding:11px;font-size:13px;transition:background .2s,color .2s;display:flex}.settings-nav button:hover,.settings-nav button.active{color:#e5eaf2;background:#263c56}.settings-content{flex:1;min-width:0;padding:25px}.settings-content h3{margin:0;font-size:17px}.settings-description{color:#8798ae;margin:8px 0 25px;font-size:13px}.settings-toggle{cursor:pointer;border-bottom:1px solid #2b3b50;justify-content:space-between;align-items:center;gap:15px;padding:17px 0;display:flex}.settings-toggle div{flex-direction:column;gap:6px;display:flex}.settings-toggle strong{font-size:13px;font-weight:500}.settings-toggle span{color:#8798ae;font-size:12px;line-height:1.5}.settings-toggle input{accent-color:#9bd8ff;cursor:pointer;flex-shrink:0;width:17px;height:17px}.settings-theme-options{flex-direction:column;gap:8px;display:flex}.settings-theme-options button{color:#bdc9d9;text-align:left;cursor:pointer;background:#202e41;border:1px solid #35475d;border-radius:9px;justify-content:space-between;align-items:center;padding:13px;display:flex}.settings-theme-options button:hover,.settings-theme-options button.selected{color:#f0f5fc;background:#263c56;border-color:#6b9dc5}.settings-theme-options button.selected svg{color:#9bd8ff}.settings-about{text-align:center;flex-direction:column;align-items:center;padding:20px;display:flex}.settings-about-icon{color:#9bd8ff;background:#203a55;border:1px solid #35536f;border-radius:18px;justify-content:center;align-items:center;width:60px;height:60px;display:flex}.settings-about h2{margin-top:16px;font-size:23px}.settings-about p{color:#9bd8ff;margin:5px 0 12px}.settings-about span{color:#8798ae;font-size:12px}:root[data-theme=light] .settings-panel{background:#fff;border-color:#dce4ed}:root[data-theme=light] .settings-header{border-bottom-color:#e1e7ef}:root[data-theme=light] .settings-header p,:root[data-theme=light] .settings-description{color:#718096}:root[data-theme=light] .settings-nav{border-right-color:#e1e7ef}:root[data-theme=light] .settings-nav button{color:#64748b}:root[data-theme=light] .settings-nav button:hover,:root[data-theme=light] .settings-nav button.active{color:#172338;background:#edf2f7}:root[data-theme=light] .settings-toggle{border-bottom-color:#e1e7ef}:root[data-theme=light] .settings-toggle span{color:#718096}:root[data-theme=light] .settings-theme-options button{color:#526176;background:#f4f7fb;border-color:#dce4ed}:root[data-theme=light] .settings-theme-options button:hover,:root[data-theme=light] .settings-theme-options button.selected{color:#172338;background:#edf4fb;border-color:#9abbd8}:root[data-theme=light] .settings-about-icon{color:#2877b8;background:#e5f2ff;border-color:#c9e2fa}:root[data-theme=light] .settings-about p{color:#2877b8}:root[data-theme=light] .settings-about span{color:#718096}@media (width<=600px){.settings-overlay{padding:10px}.settings-layout{flex-direction:column}.settings-nav{border-bottom:1px solid #2b3b50;border-right:none;flex-direction:row;width:100%;overflow-x:auto}.settings-nav button{white-space:nowrap;justify-content:center}.settings-content{padding:20px}}@media (prefers-reduced-motion:reduce){.settings-overlay,.settings-panel{animation:none}}.topbar-actions{align-items:center;gap:12px;display:flex}.account-button{color:#dceeff;font:inherit;cursor:pointer;background:#263c56;border:1px solid #3a5878;border-radius:9px;padding:8px 13px;font-size:12px}.account-button:hover{background:#304b6b}.account-email{color:#9aacc1;text-overflow:ellipsis;white-space:nowrap;max-width:220px;font-size:12px;overflow:hidden}.guest-lock-banner{color:#e6edf7;background:#263449;border:1px solid #43566f;border-radius:10px;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;width:100%;max-width:720px;margin-top:12px;padding:11px 14px;font-size:12px;display:flex}.guest-lock-banner button,.auth-switch button{color:#9bd8ff;font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-weight:600}.guest-lock-banner button:hover,.auth-switch button:hover{color:#c1e8ff;text-decoration:underline}.auth-overlay{z-index:150;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#00000080;justify-content:center;align-items:center;padding:20px;animation:.2s both settingsFadeIn;display:flex;position:fixed;inset:0}.auth-panel{color:#e5eaf2;background:#172234;border:1px solid #35475d;border-radius:17px;width:100%;max-width:430px;padding:24px;animation:.22s both settingsPanelAppear;box-shadow:0 25px 80px #0005}.auth-header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:22px;display:flex}.auth-header h2{letter-spacing:-.4px;margin:0;font-size:21px}.auth-header p{color:#8798ae;margin:8px 0 0;font-size:13px;line-height:1.5}.auth-form{flex-direction:column;gap:15px;display:flex}.auth-form label{color:#cbd6e5;flex-direction:column;gap:7px;font-size:12px;font-weight:600;display:flex}.auth-form input{color:#edf4fc;width:100%;font:inherit;background:#111c2b;border:1px solid #354b65;border-radius:9px;outline:none;padding:12px 13px;font-size:13px;font-weight:400}.auth-form input:focus{border-color:#9bd8ff}.auth-submit{color:#101b29;width:100%;font:inherit;cursor:pointer;background:#9bd8ff;border:0;border-radius:9px;margin-top:3px;padding:12px 15px;font-size:13px;font-weight:700}.auth-submit:hover:not(:disabled){background:#c1e8ff}.auth-submit:disabled{opacity:.55;cursor:wait}.auth-error{color:#ffb6b6;background:#48282e;border:1px solid #713740;border-radius:8px;padding:10px 12px;font-size:12px}.auth-switch{color:#8798ae;justify-content:center;gap:6px;margin-top:18px;font-size:12px;display:flex}.auth-footnote{color:#71839a;text-align:center;margin:18px 0 0;font-size:11px;line-height:1.5}:root[data-theme=light] .account-button{color:#24415f;background:#e5f2ff;border-color:#c9e2fa}:root[data-theme=light] .account-button:hover{background:#d7eaff}:root[data-theme=light] .account-email{color:#64748b}:root[data-theme=light] .guest-lock-banner{color:#34445a;background:#edf4fb;border-color:#d5e2ef}:root[data-theme=light] .auth-panel{color:#263449;background:#fff;border-color:#dce4ed;box-shadow:0 25px 80px #23344d30}:root[data-theme=light] .auth-header p,:root[data-theme=light] .auth-switch,:root[data-theme=light] .auth-footnote{color:#718096}:root[data-theme=light] .auth-form label{color:#526176}:root[data-theme=light] .auth-form input{color:#263449;background:#f8fafc;border-color:#d5dee9}@media (width<=520px){.topbar-actions{gap:7px}.account-button{padding:7px 9px;font-size:11px}.account-email{max-width:115px}.auth-panel{padding:20px}}.verification-panel{flex-direction:column;align-items:center;gap:12px;margin-top:8px;display:flex}.verification-icon{color:#9bd8ff;background:#9bd8ff1c;border:1px solid #9bd8ff45;border-radius:50%;place-items:center;width:48px;height:48px;display:grid}.verification-copy{color:#9aabc0;text-align:center;margin:0 0 2px;font-size:12px;line-height:1.6}.verification-panel .auth-form{width:100%}.verification-back{color:#9bd8ff;font:inherit;cursor:pointer;background:0 0;border:0;padding:7px 10px;font-size:12px}.verification-back:hover{text-decoration:underline}:root[data-theme=light] .verification-copy{color:#64748b}.messages{flex-direction:column;align-items:stretch;gap:22px;width:100%;max-width:900px;margin:0 auto;padding:12px 0 26px;display:flex}.message{flex-direction:column;align-items:flex-start;width:fit-content;min-width:0;max-width:min(78%,720px);display:flex}.message.user{align-self:flex-end;align-items:flex-end}.message.assistant{align-self:flex-start;align-items:flex-start}.message-role{color:#93a5ba;letter-spacing:.01em;align-items:center;gap:7px;margin:0 0 7px 3px;font-size:11px;font-weight:650;display:flex}.message.user .message-role{margin-left:0;margin-right:3px}.assistant-avatar{color:#a8ddff;background:#263c55;border:1px solid #3a5878;border-radius:50%;place-items:center;width:23px;height:23px;display:inline-grid}.message-content{color:#e5eaf2;overflow-wrap:anywhere;background:#1b293b;border:1px solid #2b3d53;border-radius:17px 17px 17px 5px;max-width:100%;padding:12px 16px;line-height:1.65}.message.user .message-content{color:#102033;background:#9bd8ff;border-color:#9bd8ff;border-radius:17px 17px 5px}.message-content>:first-child{margin-top:0}.message-content>:last-child{margin-bottom:0}.message.user .message-actions{justify-content:flex-end}.message.assistant .message-actions{justify-content:flex-start}.message.user .message-action{color:#8ca0b8}:root[data-theme=light] .message-role{color:#718096}:root[data-theme=light] .assistant-avatar{color:#28618d;background:#e5f2ff;border-color:#c9e2fa}:root[data-theme=light] .message-content{color:#263449;background:#f1f5f9;border-color:#e0e7ef}:root[data-theme=light] .message.user .message-content{color:#102033;background:#bfe5ff;border-color:#bfe5ff}@media (width<=640px){.messages{gap:18px}.message{max-width:90%}.message-content{padding:10px 13px}}
