*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #0f0f1a;--bg-panel: #13131f;--bg-card: #1a1a2e;--bg-input: #1e1e30;--bg-bubble-user: #2d2b55;--bg-bubble-assistant: #1a1a2e;--border: #2a2a3e;--text: #e8e8f0;--text-muted: #7070a0;--accent: #7c6af7;--accent-dim: #4a3fa0;--font: "Inter", system-ui, -apple-system, sans-serif;--font-mono: "JetBrains Mono", "Fira Code", monospace}html,body,#root{height:100%;width:100%;overflow:hidden;background:var(--bg);color:var(--text);font-family:var(--font);font-size:14px;-webkit-font-smoothing:antialiased}.app-layout{display:flex;height:100%;width:100%}.chat-panel{display:flex;flex-direction:column;width:40%;min-width:320px;height:100%;background:var(--bg-panel);border-right:1px solid var(--border)}.chat-header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--border);flex-shrink:0}.chat-header-logo{font-size:15px;font-weight:600;letter-spacing:.04em;color:var(--accent)}.chat-header-right{display:flex;align-items:center;gap:12px}.chat-user{font-size:12px;color:var(--text-muted);max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn-signout{font-size:12px;color:var(--text-muted);background:none;border:1px solid var(--border);border-radius:6px;padding:4px 10px;cursor:pointer;transition:color .15s,border-color .15s}.btn-signout:hover{color:var(--text);border-color:var(--text-muted)}.chat-messages{flex:1;overflow-y:auto;padding:20px 16px;display:flex;flex-direction:column;gap:12px;scrollbar-width:thin;scrollbar-color:var(--border) transparent}.chat-empty{flex:1;display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:13px}.message-row{display:flex;align-items:flex-end;gap:8px}.message-row--user{flex-direction:row-reverse}.message-avatar{width:26px;height:26px;border-radius:50%;background:var(--accent-dim);color:var(--text);font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;letter-spacing:.02em}.message-bubble{max-width:78%;padding:10px 14px;border-radius:16px;line-height:1.55;word-break:break-word}.bubble--user{background:var(--bg-bubble-user);border-bottom-right-radius:4px}.bubble--assistant{background:var(--bg-bubble-assistant);border:1px solid var(--border);border-bottom-left-radius:4px}.message-content{white-space:pre-wrap}.bubble--typing{display:flex;align-items:center;gap:4px;padding:12px 16px}.typing-dot{width:6px;height:6px;border-radius:50%;background:var(--text-muted);animation:typing-bounce 1.2s infinite ease-in-out}.typing-dot:nth-child(2){animation-delay:.2s}.typing-dot:nth-child(3){animation-delay:.4s}@keyframes typing-bounce{0%,80%,to{transform:translateY(0);opacity:.4}40%{transform:translateY(-5px);opacity:1}}.chat-input-area{display:flex;align-items:flex-end;gap:8px;padding:12px 14px;border-top:1px solid var(--border);flex-shrink:0;background:var(--bg-panel)}.chat-input{flex:1;resize:none;background:var(--bg-input);color:var(--text);border:1px solid var(--border);border-radius:10px;padding:10px 12px;font-family:var(--font);font-size:14px;line-height:1.5;max-height:140px;overflow-y:auto;outline:none;transition:border-color .15s;field-sizing:content}.chat-input:focus{border-color:var(--accent-dim)}.chat-input::placeholder{color:var(--text-muted)}.btn-send{width:36px;height:36px;border-radius:10px;background:var(--accent);color:#fff;border:none;font-size:16px;cursor:pointer;flex-shrink:0;display:flex;align-items:center;justify-content:center;transition:background .15s,opacity .15s}.btn-send:disabled{opacity:.35;cursor:default}.btn-send:not(:disabled):hover{background:var(--accent-dim)}.artifact-panel{flex:1;height:100%;background:var(--bg);display:flex;align-items:center;justify-content:center;overflow:hidden}.artifact-placeholder{display:flex;flex-direction:column;align-items:center;gap:12px;color:var(--text-muted);text-align:center;padding:40px;max-width:360px}.artifact-logo{font-size:28px;font-weight:700;color:var(--accent);letter-spacing:.06em;margin-bottom:4px}.artifact-tagline{font-size:15px;color:var(--text)}.artifact-hint{font-size:13px;line-height:1.6}.auth-gate{height:100%;width:100%;display:flex;align-items:center;justify-content:center;background:var(--bg)}.auth-card{display:flex;flex-direction:column;align-items:center;gap:20px;padding:48px 40px;background:var(--bg-card);border:1px solid var(--border);border-radius:16px;min-width:320px;text-align:center}.auth-logo{font-size:32px;font-weight:700;color:var(--accent);letter-spacing:.06em}.auth-tagline{font-size:14px;color:var(--text-muted);margin-top:-8px}.btn-google{display:flex;align-items:center;gap:10px;padding:10px 20px;background:#fff;color:#1f1f1f;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:box-shadow .15s}.btn-google:hover{box-shadow:0 2px 12px #0006}.google-icon{width:18px;height:18px;flex-shrink:0}.loading-screen{height:100%;width:100%;display:flex;align-items:center;justify-content:center;background:var(--bg)}.loading-logo{font-size:28px;font-weight:700;color:var(--accent);letter-spacing:.08em;animation:pulse 1.6s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.4}}@media(max-width:720px){.chat-panel{width:100%;border-right:none}.artifact-panel{display:none}}
