@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap";
:root{--bg:#080b14;--sidebar:#0d1220;--panel:#131a2b;--panel-hover:#1c2540;--border:#263047;--text:#f4f5fc;--muted:#929db3;--purple:#8775ff}*{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;color:var(--text);margin:0;font-family:Inter,Arial,sans-serif}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.auth-page{background:radial-gradient(ellipse at 50% 0%, #292158 0%, transparent 55%), var(--bg);place-items:center;min-height:100vh;padding:20px;display:grid}.auth-card{border:1px solid var(--border);text-align:center;background:#111829;border-radius:22px;width:100%;max-width:420px;padding:36px;box-shadow:0 25px 100px #0008}.brand-logo{color:#aa9eff;letter-spacing:2px;font-size:27px;font-weight:800}.auth-subtitle{color:var(--muted);margin:9px 0 38px;font-size:12px}.auth-card h1{margin:0 0 10px;font-size:25px}.muted{color:var(--muted);font-size:13px}.auth-card form{gap:13px;margin-top:28px;display:grid}.auth-card input{border:1px solid var(--border);color:#fff;background:#1a2335;border-radius:10px;outline:none;width:100%;padding:15px}.auth-card input:focus{border-color:var(--purple)}.primary-button{background:var(--purple);color:#fff;border:none;border-radius:10px;padding:15px;font-weight:700}.auth-message{color:#a99eff;margin-top:15px;font-size:12px;line-height:1.6}.switch-text{color:var(--muted);margin-top:24px;font-size:12px}.switch-text button{color:#aa9eff;background:0 0;border:0;margin-left:6px}.app-shell{height:100dvh;display:flex;overflow:hidden}.sidebar{background:var(--sidebar);border-right:1px solid var(--border);z-index:10;flex-direction:column;width:275px;min-width:275px;padding:23px 16px;display:flex}.brand{letter-spacing:1px;align-items:center;gap:10px;margin:3px 5px 30px;font-size:21px;font-weight:800;display:flex}.brand span{color:#a99eff;font-size:29px}.new-chat{color:#fff;text-align:left;background:#252044;border:1px solid #4b427d;border-radius:10px;padding:14px;font-size:13px}.new-chat:hover{background:#332b5b}.history-label{color:var(--muted);letter-spacing:1.3px;margin:30px 5px 13px;font-size:10px}.chat-list{flex:1;overflow-y:auto}.chat-row{border-radius:8px;align-items:center;gap:4px;margin-bottom:5px;display:flex}.chat-row:hover,.chat-row.selected{background:var(--panel-hover)}.chat-title{color:#c9d0e0;text-align:left;white-space:nowrap;text-overflow:ellipsis;background:0 0;border:0;flex:1;min-width:0;padding:11px 8px;font-size:12px;overflow:hidden}.delete-button{color:#ff8e9a;background:0 0;border:none;padding:7px;font-size:18px}.account-area{border-top:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:9px;padding-top:15px;display:flex}.account-avatar{background:var(--purple);border-radius:50%;place-items:center;width:34px;height:34px;font-weight:700;display:grid}.account-email{text-overflow:ellipsis;flex:1;min-width:0;font-size:11px;overflow:hidden}.logout-button{color:var(--muted);text-align:left;background:0 0;border:none;width:100%;padding:8px 0;font-size:11px}.main-panel{flex-direction:column;flex:1;min-width:0;display:flex;position:relative}.topbar{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;height:65px;min-height:65px;padding:0 25px;display:flex}.topbar-brand{letter-spacing:1px;font-size:13px;font-weight:700}.status{color:#a4b0c7;font-size:11px}.status span{background:#48d6a0;border-radius:50%;width:7px;height:7px;margin-right:6px;display:inline-block}.menu-button{color:#fff;background:0 0;border:none;font-size:21px;display:none}.welcome{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;padding:25px;display:flex}.welcome-icon{color:#a99eff;text-shadow:0 0 40px #8875ff;margin-bottom:16px;font-size:72px}.welcome h1{letter-spacing:-1.5px;margin:0;font-size:clamp(24px,4vw,37px)}.welcome>p{color:var(--muted);margin:14px 0 32px;font-size:13px}.prompt-grid{grid-template-columns:repeat(2,1fr);gap:11px;width:100%;max-width:550px;display:grid}.prompt-card{background:var(--panel);border:1px solid var(--border);color:#cbd3e5;text-align:left;border-radius:12px;padding:17px;font-size:12px}.prompt-card:hover{border-color:var(--purple);background:var(--panel-hover)}.prompt-card span{color:#a99eff;margin-right:9px;font-size:17px}.messages{scroll-behavior:smooth;flex:1;padding:32px max(20px,50% - 400px);overflow-y:auto}.message{align-items:flex-start;gap:13px;margin-bottom:29px;display:flex}.message-icon{color:#b6aaff;background:#292447;border-radius:10px;place-items:center;width:33px;min-width:33px;height:33px;font-weight:700;display:grid}.user-message .message-icon{color:#fff;background:#26364e}.message-body{flex:1;min-width:0}.message-body strong{margin:8px 0 11px;font-size:11px;display:block}.message-content{color:#d5dcee;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.85}.user-message .message-content{color:#fff}.thinking{color:#a99eff;margin:15px 0 25px 46px;font-size:12px}.thinking-dot{background:#a99eff;border-radius:50%;width:7px;height:7px;margin-right:7px;animation:1s infinite alternate pulse;display:inline-block}@keyframes pulse{0%{opacity:.3}to{opacity:1}}.composer-area{width:100%;max-width:850px;margin:0 auto;padding:15px 20px 18px}.composer{background:#151d2e;border:1px solid #303b54;border-radius:15px;padding:13px 15px 10px}.composer:focus-within{border-color:var(--purple)}.composer textarea{color:#fff;resize:vertical;background:0 0;border:none;outline:none;width:100%;min-height:48px;max-height:180px;font-size:14px;line-height:1.6}.composer-bottom{justify-content:space-between;align-items:center;gap:10px;display:flex}.composer-bottom span{color:var(--muted);font-size:9px}.composer-bottom button{background:var(--purple);color:#fff;border:0;border-radius:10px;width:37px;height:37px;font-size:23px}.footer-note{text-align:center;color:#65718b;margin:12px 0 0;font-size:9px}.mobile-overlay{display:none}@media (max-width:700px){.sidebar{width:275px;height:100dvh;transition:transform .2s;position:fixed;inset:0 auto 0 0;transform:translate(-100%)}.sidebar-open{transform:translate(0)}.mobile-overlay{z-index:9;background:#0009;border:none;display:block;position:fixed;inset:0}.menu-button{display:block}.topbar{justify-content:flex-start;gap:15px;padding:0 14px}.status{margin-left:auto}.welcome{padding:15px}.welcome h1{font-size:26px}.prompt-grid{grid-template-columns:1fr}.messages{padding:20px 13px}.composer-area{padding:10px}.composer-bottom span{max-width:230px;line-height:1.4}.auth-card{padding:25px}}
