body { margin: 0; background-color: #020206; color: white; font-family: 'Inter', sans-serif; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.aurora-bg { position: fixed; inset: 0; z-index: -1; background: radial-gradient(circle at 20% 30%, rgba(124,58,237,0.1) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(34,211,238,0.07) 0%, transparent 50%), #020206; }
.glass-panel { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8); }
.stream-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; z-index: 10; }
.stream-title { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1rem; text-transform: uppercase; color: #22D3EE; text-align: center; }
.stream-subtitle { font-size: 0.625rem; opacity: 0.4; text-transform: uppercase; letter-spacing: 0.1rem; text-align: center; }
.stream-section-title { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1rem; opacity: 0.7; }
.stream-item { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 1.5rem; padding: 1.25rem; margin-bottom: 1rem; box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.4); }
.stream-meta { display: flex; justify-content: space-between; align-items: start; margin-bottom: 0.75rem; }
.stream-date { font-size: 0.625rem; opacity: 0.4; }
.stream-tag { font-size: 0.625rem; padding: 0.125rem 0.5rem; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.1); }
.tag-thought { background: rgba(236, 72, 153, 0.2); color: #f472b6; border-color: rgba(236, 72, 153, 0.3); }
.tag-insight { background: rgba(34, 211, 238, 0.2); color: #22d3ee; border-color: rgba(34, 211, 238, 0.3); }
.stream-content-text { font-size: 0.875rem; line-height: 1.625; opacity: 0.9; }
.stream-content-italic { font-style: italic; }
.stream-item-title { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.5rem; color: #e0f2fe; }
.stream-link { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.1rem; color: #22D3EE; transition: all 0.2s; }
.stream-link:hover { text-decoration: underline; opacity: 0.8; }
#canvas-container { position: fixed; top: 55px; left: 0; right: 0; height: 58vh; z-index: 5; pointer-events: none; transition: opacity 0.5s ease; }
.ui-layer { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; pointer-events: none; }
.interactive { pointer-events: auto; }
.tab-content { display: none; height: 100%; }
.tab-content.active { display: flex; }
.nav-item.active { color: #22D3EE; opacity: 1; transform: scale(1.1); }
@keyframes pulse-glow { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.05); } }
.glow-dot { animation: pulse-glow 3s ease-in-out infinite; }
.msg-bubble { max-width: 80%; padding: 8px 12px; border-radius: 18px; margin-bottom: 8px; font-size: 13px; line-height: 1.4; }
.msg-me { background: rgba(124,58,237,0.3); align-self: flex-end; border-bottom-right-radius: 4px; border: 1px solid rgba(168,85,247,0.3); }
.msg-other { background: rgba(255,255,255,0.08); align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid rgba(255,255,255,0.1); }
#debug-log { position: fixed; bottom: 10px; left: 10px; color: #ff4444; font-family: monospace; font-size: 10px; z-index: 100; pointer-events: none; opacity: 0.7; }
#tab-chat-wrapper { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.chat-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
#btn-open-chat { position: fixed; bottom: 100px; right: 20px; z-index: 50; padding: 10px 20px; border-radius: 30px; display: none; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 0 20px rgba(124,58,237,0.4); background: rgba(124,58,237,0.4); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); }
#btn-open-chat:hover { transform: scale(1.05); background: rgba(124,58,237,0.6); box-shadow: 0 0 30px rgba(124,58,237,0.6); }
.fixed-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; padding-bottom: env(safe-area-inset-bottom); background: rgba(0,0,0,0.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid rgba(255,255,255,0.05); }