*{box-sizing:border-box}:root{--bg:#0b0d12;--bg-elevated:#11141b;--panel:rgba(20,24,33,0.92);--panel-strong:rgba(17,21,29,0.98);--panel-soft:rgba(255,255,255,0.04);--border:rgba(255,255,255,0.08);--border-strong:rgba(255,255,255,0.14);--text:#f3f5f7;--muted:#98a2b3;--muted-strong:#c2c8d0;--accent:#f4f7fb;--accent-ink:#0d1117;--user-bubble:#1f2530;--assistant-bubble:#161b23;--shadow:0 24px 80px rgba(0,0,0,0.38)}body,html{margin:0;padding:0;min-height:100%;font-family:Inter,Arial,sans-serif;background:radial-gradient(circle at top,rgba(98,116,255,.12),transparent 26%),radial-gradient(circle at bottom left,rgba(29,161,242,.08),transparent 28%),var(--bg);color:var(--text)}body{min-height:100vh}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}textarea{resize:none}.loginShell{display:flex;min-height:100vh;align-items:center;justify-content:center;padding:24px}.card{background:var(--panel);border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow)}.loginCard{width:100%;max-width:520px;padding:28px}.loginForm{gap:16px;margin-top:22px}.field,.loginForm{display:flex;flex-direction:column}.field{gap:8px;color:var(--muted-strong)}.field input{padding:14px 16px;border-radius:16px;border:1px solid var(--border);background:#0f141c;color:var(--text)}.appShell{min-height:100vh;display:grid;grid-template-columns:288px minmax(0,1fr);background:transparent}.chatSidebar{display:flex;flex-direction:column;gap:18px;padding:18px 16px;background:rgba(10,13,19,.84);border-right:1px solid var(--border);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.chatHeader,.chatHeaderLeft,.composerFooter,.profileCard,.sidebarHeader{display:flex;align-items:center}.chatHeader,.composerFooter,.sidebarHeader{justify-content:space-between}.chatHeaderLeft{gap:12px}.brandEyebrow,.emptyStateBadge,.headerChip,.label,.sidebarSectionLabel{text-transform:uppercase;letter-spacing:.12em;font-size:11px}.brandEyebrow,.chatHeaderMeta,.composerHint,.emptyStateBadge,.footerMeta,.historyMeta,.label,.profileMeta,.sidebarSectionLabel{color:var(--muted)}.brandTitle{margin-top:6px;font-size:18px;font-weight:600}.ghostButton,.ghostIconButton,.historyItem,.newChatButton,.sendButton,.suggestionCard{border:1px solid transparent;transition:.18s ease}.newChatButton{display:flex;align-items:center;gap:10px;width:100%;padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.06);color:var(--text)}.ghostButton:hover,.ghostIconButton:hover,.historyItem:hover,.newChatButton:hover,.suggestionCard:hover{background:rgba(255,255,255,.08);border-color:var(--border-strong)}.chatHistoryList{display:flex;flex-direction:column;gap:8px;min-height:0;overflow:auto}.historyItem{width:100%;text-align:left;padding:12px 14px;border-radius:14px;background:transparent;color:var(--text)}.historyItem.active{background:rgba(255,255,255,.09);border-color:var(--border)}.historyTitle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.historyMeta{margin-top:4px;font-size:12px}.sidebarFooter{margin-top:auto;display:grid;grid-gap:12px;gap:12px}.profileCard{gap:12px;padding:12px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid var(--border)}.avatarBadge{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.08);font-weight:700}.profileName{font-weight:600}.profileMeta{margin-top:4px;font-size:13px}.sidebarSignOut{width:100%;justify-content:center}.chatSurface{min-width:0;min-height:100vh;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.chatHeader{padding:18px 24px;border-bottom:1px solid var(--border);background:rgba(11,13,18,.72);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);position:-webkit-sticky;position:sticky;top:0;z-index:5}.chatHeaderTitle{font-size:15px;font-weight:600}.chatHeaderMeta{margin-top:4px;font-size:13px}.headerChips{display:flex;align-items:center;gap:8px}.headerChip{padding:8px 10px;border-radius:999px;background:rgba(255,255,255,.06);color:var(--muted-strong)}.headerChip.subtle{opacity:.85}.chatViewport{min-height:0;overflow:auto;padding:0 24px}.emptyStateWrap{min-height:100%;display:grid;place-items:center;padding:36px 0}.emptyStateWrap.minimal{place-items:start center;padding-top:72px}.emptyStateMinimal{width:min(560px,100%);display:grid;grid-gap:10px;gap:10px;text-align:center}.emptyStateMinimal p{margin:0 auto;max-width:480px;color:var(--muted-strong);font-size:15px;line-height:1.6}.suggestionCard,.suggestionGrid{display:none}.transcript{width:min(920px,100%);margin:0 auto;padding:30px 0 40px;flex-direction:column;gap:18px}.messageRow,.transcript{display:flex}.messageRow.user{justify-content:flex-end}.messageRow.assistant{justify-content:flex-start}.messageBubble{max-width:min(760px,90%);padding:16px 18px;border-radius:24px;line-height:1.65;font-size:15px;white-space:pre-wrap;box-shadow:0 12px 28px rgba(0,0,0,.18)}.messageBubble.user{background:var(--user-bubble);border:1px solid rgba(255,255,255,.08)}.messageBubble.assistant{background:var(--assistant-bubble);border:1px solid rgba(255,255,255,.06)}.pendingBubble{display:inline-flex;gap:6px;align-items:center}.pendingBubble span{width:8px;height:8px;border-radius:999px;background:rgba(255,255,255,.66);animation:pulse 1.2s ease-in-out infinite}.pendingBubble span:nth-child(2){animation-delay:.15s}.pendingBubble span:nth-child(3){animation-delay:.3s}.composerShell{padding:18px 24px 26px;background:linear-gradient(0deg,rgba(11,13,18,.98),rgba(11,13,18,.9),transparent)}.composerCard{width:min(920px,100%);margin:0 auto;border-radius:24px;border:1px solid var(--border);background:var(--panel-strong);box-shadow:var(--shadow);padding:14px 16px}.composerInput{width:100%;min-height:56px;max-height:220px;border:0;outline:0;background:transparent;color:var(--text);font-size:16px;line-height:1.5}.composerInput::placeholder{color:#7b8591}.composerFooter{margin-top:8px;gap:12px}.composerFooterCompact{align-items:center;justify-content:space-between}.composerAttachButton{flex:0 0 auto;width:42px;height:42px;border-radius:999px;padding:0;color:var(--muted)}.attachIcon{width:18px;height:18px}.composerHint{font-size:13px;flex:1 1 auto}.sendButton{border-radius:14px;padding:11px 16px;background:var(--accent);color:var(--accent-ink);font-weight:700}.sendButton:disabled{opacity:.45;cursor:not-allowed}.ghostButton,.ghostIconButton{display:inline-flex;align-items:center;justify-content:center;gap:8px;color:var(--text);background:transparent;border:1px solid var(--border);border-radius:14px}.ghostButton{padding:12px 16px}.ghostIconButton{width:40px;height:40px}.mobileOnly{display:none}.footerMeta{width:min(920px,100%);margin:10px auto 0;font-size:12px}.loginError,.warn{color:#ff9a9a}@keyframes pulse{0%,80%,to{transform:scale(.8);opacity:.4}40%{transform:scale(1);opacity:1}}@media (max-width:900px){.appShell{grid-template-columns:1fr}.chatSidebar{position:fixed;inset:0 auto 0 0;width:min(320px,86vw);transform:translateX(-100%);transition:transform .18s ease;z-index:20}.chatSidebar.open{transform:translateX(0)}.mobileOnly{display:inline-flex}.chatHeader,.chatViewport,.composerShell{padding-left:16px;padding-right:16px}.headerChips{display:none}.emptyStateCard h1{font-size:38px}}@media (max-width:640px){.suggestionGrid{grid-template-columns:1fr}.messageBubble{max-width:100%}.composerCard{border-radius:20px}.composerFooterCompact{align-items:center}.composerHint{min-width:0}.sendButton{width:auto}}