@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{color-scheme:dark;--bg:#101113;--panel:#151719;--panel2:#1b1e21;--line:#292d31;--muted:#888f97;--text:#eff0f2;--soft:#c5c9ce;--accent:#b5f0d1;--accent2:#83d8b1;--danger:#ff8f8f;--radius:19px;font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
*{box-sizing:border-box}html,body{height:100%;margin:0;background:var(--bg);color:var(--text)}body{overflow:hidden}button,textarea{font:inherit}button{color:inherit;cursor:pointer}.app-shell{height:100dvh;display:flex;background:radial-gradient(900px 600px at 70% -15%,rgba(90,113,102,.12),transparent 70%),var(--bg)}
.sidebar{width:276px;min-width:276px;height:100%;background:rgba(17,19,21,.96);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:23px 15px 16px;z-index:20}.brand-row{display:flex;align-items:center;justify-content:space-between;padding:0 9px 23px}.brand{display:flex;align-items:center;gap:10px;color:var(--text);font:800 21px Manrope,sans-serif;letter-spacing:-1px;text-decoration:none}.brand-muted{color:#8b9399}.brand-mark{width:34px;height:34px;color:#d8f6e6;display:grid;place-items:center}.brand-mark svg{width:100%;height:100%}.new-chat-button{height:46px;background:var(--panel2);border:1px solid #30353a;border-radius:13px;display:flex;align-items:center;gap:12px;padding:0 15px;text-align:left;font-weight:600;transition:.2s}.new-chat-button:hover{background:#24292d;border-color:#3b4449}.plus{font-size:23px;font-weight:400;color:var(--accent);line-height:1}.sidebar-label{font-size:11px;letter-spacing:1.5px;text-transform:uppercase;color:#697178;margin:29px 11px 12px}.chat-list{overflow:auto;flex:1;display:flex;flex-direction:column;gap:5px}.empty-history{font-size:12px;line-height:1.5;color:#697178;padding:10px 11px}.chat-item{width:100%;border:0;background:transparent;border-radius:10px;color:#aeb4ba;text-align:left;padding:11px 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.chat-item:hover,.chat-item.active{background:#222629;color:#f3f4f5}.sidebar-bottom{padding-top:14px;border-top:1px solid var(--line)}.model-card{display:flex;align-items:center;gap:11px;padding:11px 10px 15px}.status-dot,.topbar-model-dot{width:7px;height:7px;border-radius:50%;background:#90e2b9;box-shadow:0 0 14px rgba(144,226,185,.45)}.model-card b,.account-info b{font-size:12px;font-weight:600;display:block}.model-card small,.account-info small{display:block;color:#778087;font-size:11px;margin-top:4px}.account-row{display:flex;align-items:center;gap:10px;padding:10px 8px 0}.avatar{width:33px;height:33px;flex:none;border-radius:50%;background:linear-gradient(140deg,#b6edd3,#648d7b);display:grid;place-items:center;color:#16231c;font-weight:800;font-size:13px;background-size:cover;background-position:center}.account-info{min-width:0;flex:1}.account-info b,.account-info small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icon-button{width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:10px;background:transparent;color:#aeb4ba;font-size:19px}.icon-button:hover{background:#25292d;color:white}.signout-button{font-size:15px}.hidden{display:none!important}.mobile-only,.mobile-brand,.mobile-new-chat{display:none}
.main-panel{min-width:0;flex:1;display:flex;flex-direction:column;height:100%;position:relative}.topbar{height:72px;flex:none;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 28px;border-bottom:1px solid rgba(255,255,255,.045)}.topbar-center{display:flex;align-items:center;gap:9px;color:#c2c7cc;font-size:12px;font-weight:600;letter-spacing:.1px}.topbar-divider{color:#5c6369}.chevron{color:#7d858c;font-size:16px;margin-left:1px}.topbar-model-dot{width:6px;height:6px}.topbar-right{justify-self:end}.signin-button{height:39px;padding:0 14px;border:1px solid #353b40;background:#1a1e21;border-radius:11px;color:#e6e9eb;font-size:12px;font-weight:600;display:flex;align-items:center;gap:9px}.signin-button:hover{background:#252a2e}.google-g{font:700 15px Arial;background:conic-gradient(from -45deg,#4285f4 0 25%,#34a853 0 50%,#fbbc05 0 70%,#ea4335 0);color:transparent;background-clip:text}.conversation{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;scroll-behavior:smooth}.welcome{width:min(780px,calc(100% - 40px));margin:auto;padding:36px 0 20px;text-align:center}.welcome-orb{width:66px;height:66px;border-radius:22px;background:linear-gradient(145deg,#202a27,#171c1a);border:1px solid #394740;display:grid;place-items:center;margin:0 auto 28px;box-shadow:0 15px 50px rgba(93,181,139,.08)}.welcome-orb svg{width:42px;height:42px;color:#d7f4e5}.eyebrow{font-size:10px;letter-spacing:2px;color:#91b9a5;font-weight:700;margin:0 0 12px}.welcome h1{font:700 clamp(28px,4vw,43px) Manrope,sans-serif;letter-spacing:-1.8px;margin:0}.welcome h1 span{background:linear-gradient(90deg,#e9f5ed,#8edab4);background-clip:text;color:transparent}.welcome-copy{font-size:15px;color:#888f96;margin:13px 0 30px}.suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;max-width:620px;margin:0 auto}.suggestion{position:relative;min-height:75px;text-align:left;border-radius:14px;border:1px solid #2a3032;background:rgba(25,29,30,.7);padding:14px 15px 12px 44px;transition:.2s}.suggestion:hover{border-color:#52695d;background:#202724;transform:translateY(-1px)}.suggestion>span{position:absolute;left:15px;top:17px;color:var(--accent2);font-size:16px}.suggestion b{display:block;font-size:12px;font-weight:600}.suggestion small{display:block;color:#737d83;font-size:11px;margin-top:5px}.signin-hint{font-size:11px;color:#687178;margin-top:24px}.messages{width:min(820px,calc(100% - 44px));margin:0 auto;padding:30px 0 40px;display:flex;flex-direction:column;gap:25px}.message-row{display:flex;gap:13px;align-items:flex-start;animation:appear .25s ease}.message-row.user{justify-content:flex-end}.message-avatar{width:29px;height:29px;flex:none;border-radius:10px;background:#202b25;color:#c8f0d9;display:grid;place-items:center;font-size:14px}.message-content{max-width:min(690px,calc(100% - 45px));min-width:0}.message-role{font-size:10px;color:#7c858b;font-weight:700;letter-spacing:.6px;margin:1px 0 7px}.message-text{font-size:14px;line-height:1.75;color:#e1e4e6;white-space:pre-wrap;overflow-wrap:anywhere}.message-row.user .message-content{background:#202629;border:1px solid #2c3539;padding:12px 15px;border-radius:17px 5px 17px 17px}.message-row.user .message-role{display:none}.message-row.user .message-text{color:#f0f3f3}.message-actions{display:flex;gap:7px;margin-top:9px}.tiny-action{background:transparent;border:0;color:#68737a;font-size:11px;padding:4px 6px;border-radius:6px}.tiny-action:hover{background:#202629;color:#cad1d4}.typing-dots{display:inline-flex;gap:4px;padding:7px 0}.typing-dots i{width:5px;height:5px;border-radius:50%;background:#93c9ad;animation:pulse 1.1s infinite}.typing-dots i:nth-child(2){animation-delay:.15s}.typing-dots i:nth-child(3){animation-delay:.3s}
.composer-area{flex:none;padding:15px 24px max(12px,env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(16,17,19,0),#101113 22%)}.composer{width:min(820px,100%);margin:0 auto;border:1px solid #343a3e;border-radius:19px;background:#1a1d20;padding:14px 14px 10px;box-shadow:0 12px 36px rgba(0,0,0,.16);transition:border-color .2s}.composer:focus-within{border-color:#5a7667}.composer textarea{width:100%;resize:none;outline:0;border:0;background:transparent;color:#f0f2f3;font-size:14px;line-height:1.5;min-height:29px;max-height:170px;padding:3px 3px 9px}.composer textarea::placeholder{color:#757e84}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}.composer-meta{display:flex;align-items:center;gap:7px;color:#626c72;font-size:10px}.secure-icon{color:#88c9a5;font-size:14px}.composer-actions{display:flex;align-items:center;gap:12px}.model-caption{font-size:10px;color:#7b858a;white-space:nowrap}.send-button{width:34px;height:34px;border:0;border-radius:11px;background:#c4efd9;color:#18271f;display:grid;place-items:center;transition:.2s}.send-button:hover{background:#e0ffed;transform:translateY(-1px)}.send-button:disabled{opacity:.35;cursor:not-allowed;transform:none}.send-button svg{width:18px;height:18px}.stop-button{border:1px solid #4d5559;background:#252a2d;border-radius:9px;padding:7px 10px;font-size:10px;color:#e0e3e4}.footer-note{text-align:center;color:#50595e;font-size:9px;margin:10px 0 0}.toast{position:fixed;z-index:80;bottom:28px;left:50%;transform:translate(-50%,15px);background:#e8f5ed;color:#17251d;padding:10px 15px;border-radius:10px;font-size:12px;opacity:0;pointer-events:none;transition:.22s;box-shadow:0 10px 30px #0005;max-width:calc(100% - 30px)}.toast.show{opacity:1;transform:translate(-50%,0)}.sidebar-backdrop{display:none}
@keyframes pulse{0%,80%,100%{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){.sidebar{position:fixed;inset:0 auto 0 0;width:min(292px,86vw);transform:translateX(-102%);transition:transform .25s ease;box-shadow:20px 0 60px #0005}.sidebar.open{transform:translateX(0)}.sidebar-backdrop.show{display:block;position:fixed;inset:0;background:#0009;z-index:15}.mobile-only{display:grid}.main-panel{width:100%}.topbar{height:62px;padding:0 14px;grid-template-columns:1fr auto 1fr}.topbar-left{display:flex;align-items:center;gap:8px}.menu-button{font-size:16px}.mobile-brand{display:flex;align-items:center;gap:4px;font:800 15px Manrope,sans-serif;letter-spacing:-.7px}.mobile-brand>span:last-child{color:#8b9399}.mini-mark{font-size:19px;color:#b6efd1;margin-right:2px}.topbar-center{font-size:10px;gap:6px}.topbar-center .topbar-divider,.topbar-center .chevron{display:none}.topbar-right{display:flex;align-items:center;gap:5px}.signin-button{height:34px;padding:0 8px;font-size:10px}.google-g{font-size:13px}.mobile-new-chat{display:grid;width:34px;height:34px;font-size:21px}.welcome{width:calc(100% - 32px);padding:38px 0 18px}.welcome-orb{width:59px;height:59px;margin-bottom:24px}.welcome h1{font-size:31px}.welcome-copy{font-size:13px;margin:11px 0 24px}.suggestions{gap:8px}.suggestion{min-height:72px;padding:12px 10px 10px 36px}.suggestion>span{left:11px;top:15px}.suggestion b{font-size:11px}.suggestion small{font-size:10px}.signin-hint{margin-top:19px}.messages{width:calc(100% - 28px);padding:22px 0 28px;gap:21px}.message-text{font-size:13px}.composer-area{padding:10px 11px max(9px,env(safe-area-inset-bottom))}.composer{border-radius:16px;padding:12px 11px 9px}.composer textarea{font-size:14px}.composer-meta{font-size:9px}.model-caption{display:none}.footer-note{font-size:8px}.sidebar-label{margin-top:25px}}
@media(max-width:390px){.topbar-center{display:none}.topbar{grid-template-columns:1fr 1fr}.suggestions{grid-template-columns:1fr}.suggestion{min-height:62px}.welcome{padding-top:25px}.welcome-orb{margin-bottom:18px}.welcome-copy{margin-bottom:18px}}
.message-text h1,.message-text h2,.message-text h3{font-family:Manrope,sans-serif;line-height:1.35;margin:16px 0 8px;color:#f2f5f3}.message-text h1{font-size:22px}.message-text h2{font-size:18px}.message-text h3{font-size:15px}.message-text strong{color:#f5f7f6}.inline-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em;background:#252c2a;color:#b7ebd0;border:1px solid #37433d;border-radius:5px;padding:2px 5px}.code-block{overflow:auto;background:#0d1010;border:1px solid #2b3430;border-radius:11px;padding:13px;margin:12px 0;color:#d9ebe1;font:12px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre}.md-list-item{display:block;padding-left:4px}.message-text br+.md-list-item{margin-top:2px}

/* Authentication dialog */
.auth-overlay{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:18px;background:rgba(4,7,6,.76);backdrop-filter:blur(13px);-webkit-backdrop-filter:blur(13px)}
.auth-overlay.hidden{display:none!important}.auth-card{position:relative;width:min(430px,100%);max-height:min(92dvh,760px);overflow:auto;padding:34px 32px 26px;border:1px solid #343d38;border-radius:25px;background:linear-gradient(155deg,#1b211e,#131615 65%);box-shadow:0 28px 100px #0009;text-align:center}
.auth-close{position:absolute;right:16px;top:14px;width:34px;height:34px;border:0;border-radius:10px;background:transparent;color:#8e9992;font-size:25px}.auth-close:hover{background:#ffffff0c;color:white}.auth-mark{width:48px;height:48px;display:grid;place-items:center;margin:0 auto 15px;border:1px solid #3c5145;border-radius:16px;background:#202c25;color:#c8f0d9;font-size:27px}.auth-eyebrow{margin:0 0 9px;color:#91b9a5;font-size:9px;font-weight:700;letter-spacing:2px}.auth-card h2{margin:0;color:#f2f5f3;font:700 26px Manrope,sans-serif;letter-spacing:-.8px}.auth-subtitle{margin:9px 0 23px;color:#89938d;font-size:12px;line-height:1.55}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin-bottom:20px;border:1px solid #303a34;border-radius:12px;background:#111613}.auth-tab{height:37px;border:0;border-radius:9px;background:transparent;color:#89938d;font-size:12px;font-weight:600}.auth-tab.active{background:#29372f;color:#dff6e8;box-shadow:0 2px 8px #0003}.auth-form{text-align:left}.auth-form label{display:block;margin:13px 0 7px;color:#b8c1bb;font-size:11px;font-weight:600}.auth-input{width:100%;height:46px;padding:0 13px;border:1px solid #36413a;border-radius:11px;outline:0;background:#101512;color:#f2f5f3;font:13px 'DM Sans',sans-serif}.auth-input:focus{border-color:#80bd9b;box-shadow:0 0 0 3px #80bd9b1c}.auth-input::placeholder{color:#657069}.auth-submit,.auth-google{width:100%;height:46px;margin-top:19px;border-radius:11px;font-size:12px;font-weight:700}.auth-submit{border:0;background:#c5efd8;color:#17271e}.auth-submit:hover{background:#dcf9e8}.auth-submit:disabled{opacity:.6}.auth-google{margin-top:10px;border:1px solid #3b4540;background:#1b211e;color:#e7ece8}.auth-google:hover{background:#252e29}.auth-google .google-g{margin-right:8px}.auth-forgot{margin:15px 0 0;border:0;background:transparent;color:#9fcbb1;font-size:11px}.auth-error{min-height:18px;margin:13px 0 0;color:#ff9b9b;font-size:11px;line-height:1.5}.auth-legal{margin:14px 0 0;color:#66716a;font-size:9px;line-height:1.5}.auth-open{overflow:hidden}
@media(max-width:480px){.auth-overlay{padding:12px}.auth-card{padding:29px 21px 22px;border-radius:21px}.auth-card h2{font-size:23px}}
