:root {
  --black: #000;
  --surface: #111113;
  --surface-2: #1b1b1f;
  --line: rgba(255,255,255,.12);
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --subtle: #6d6d76;
  --blue: #8ba7ff;
  --violet: #bd9cff;
  --pink: #ff9cc6;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--black);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; background: var(--black); color: var(--text); }
body { overflow-x: hidden; }
button, input, textarea { font: inherit; }
button { border: 0; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.assistant-app { min-height: 100vh; background: #000; position: relative; }
.assistant-topbar { height: 68px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
.nambi-wordmark { background: none; font-size: 17px; font-weight: 700; letter-spacing: -.04em; }
.nambi-wordmark span { color: var(--muted); font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 15px; }
.privacy-status { color: var(--subtle); font-size: 10px; display: inline-flex; align-items: center; gap: 7px; }
.privacy-dot, .status-light { width: 6px; height: 6px; border-radius: 50%; background: #79d89c; display: inline-block; }
.top-icon { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: transparent; color: var(--muted); font-size: 21px; }
.top-icon:hover { background: var(--surface-2); color: var(--text); }
.top-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mobile-menu { display: none; }
.sidebar { position: fixed; z-index: 50; left: 18px; top: 78px; width: 236px; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: rgba(18,18,20,.98); box-shadow: 0 20px 70px rgba(0,0,0,.55); transform: translateY(-12px) scale(.98); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.sidebar.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.drawer-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }.drawer-heading strong { font-size: 14px; }.drawer-item { width: 100%; min-height: 40px; padding: 0 10px; display: flex; align-items: center; gap: 10px; border-radius: 9px; background: transparent; color: var(--muted); text-align: left; font-size: 12px; }.drawer-item:hover, .drawer-item.active { background: var(--surface-2); color: var(--text); }.drawer-item svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }.drawer-foot { color: var(--subtle); font-size: 10px; line-height: 1.5; padding: 18px 10px 4px; }
.assistant-main { min-height: calc(100vh - 68px); max-width: 1040px; margin: 0 auto; padding: 0 24px 24px; }
.view { display: none; min-height: calc(100vh - 92px); }.view.active { display: block; }
.assistant-home { min-height: 530px; padding-top: 36px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.assistant-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 10px ui-monospace, monospace; }
.assistant-presence { width: min(410px, 82vw); height: 280px; position: relative; display: grid; place-items: center; margin-top: 4px; }
.presence-aura { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: conic-gradient(from 20deg, rgba(105,150,255,.28), rgba(191,140,255,.28), rgba(255,139,191,.24), rgba(255,205,123,.16), rgba(105,150,255,.28)); filter: blur(24px); opacity: .72; animation: nambiAuraFlow 8s ease-in-out infinite; }
.presence-aura::before, .presence-aura::after { content: ""; position: absolute; border-radius: 50%; filter: blur(18px); mix-blend-mode: screen; }
.presence-aura::before { width: 145px; height: 62px; left: 18px; top: 68px; transform: rotate(-24deg); background: linear-gradient(90deg, rgba(95,154,255,.8), rgba(193,140,255,.05)); animation: nambiRibbonOne 5.5s ease-in-out infinite; }
.presence-aura::after { width: 150px; height: 58px; right: 10px; top: 112px; transform: rotate(24deg); background: linear-gradient(90deg, rgba(255,145,190,.05), rgba(255,190,112,.72)); animation: nambiRibbonTwo 6.5s ease-in-out infinite; }
.assistant-orb { position: relative; width: 168px; height: 168px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 33% 25%, #fff 0 3%, #bac1ff 14%, #8975eb 37%, #df82b2 65%, #383844 100%); box-shadow: 0 0 48px rgba(154,142,255,.3), 0 0 100px rgba(239,139,188,.1); transition: transform .25s ease, box-shadow .25s ease; }
.assistant-orb::before { content: ""; position: absolute; inset: -12%; background: conic-gradient(from 90deg, rgba(84,145,255,.25), rgba(193,133,255,.54), rgba(255,137,188,.58), rgba(255,205,119,.34), rgba(84,145,255,.25)); filter: blur(7px); mix-blend-mode: screen; animation: nambiOrbFlow 7s linear infinite; }
.assistant-orb::after { content: ""; position: absolute; inset: 10%; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); opacity: .55; transform: rotate(-18deg) scaleX(.72); animation: nambiRingFlow 4.8s ease-in-out infinite; }
.orb-core { position: absolute; left: 58px; top: 58px; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle, #fff 0 8%, rgba(233,236,255,.72) 28%, transparent 72%); }.orb-light { position: absolute; inset: 35px; border-radius: 50%; box-shadow: inset 0 0 26px rgba(255,255,255,.18); }.orb-tap-target { position: absolute; inset: 55px; z-index: 5; background: transparent; border-radius: 50%; }
.assistant-orb.listening { transform: scale(1.07); box-shadow: 0 0 65px rgba(139,181,255,.48), 0 0 110px rgba(192,148,255,.18); }.assistant-orb.processing { transform: scale(1.03); }.assistant-orb.speaking { transform: scale(1.09); box-shadow: 0 0 65px rgba(255,155,198,.45), 0 0 115px rgba(149,143,255,.2); }
@keyframes nambiAuraFlow { 0%, 100% { transform: rotate(0deg) scale(.94); opacity: .55; } 50% { transform: rotate(180deg) scale(1.08); opacity: .86; } }
@keyframes nambiOrbFlow { to { transform: rotate(360deg); } }
@keyframes nambiRingFlow { 0%, 100% { transform: rotate(-18deg) scaleX(.72); opacity: .32; } 50% { transform: rotate(18deg) scaleX(1); opacity: .78; } }
@keyframes nambiRibbonOne { 0%, 100% { transform: translate(-8px, 5px) rotate(-24deg) scale(.84); } 50% { transform: translate(20px, -12px) rotate(-5deg) scale(1.12); } }
@keyframes nambiRibbonTwo { 0%, 100% { transform: translate(8px, -4px) rotate(24deg) scale(.86); } 50% { transform: translate(-18px, 14px) rotate(6deg) scale(1.08); } }
.assistant-orb.listening::before { animation-duration: 2.6s; }.assistant-orb.listening::after { animation-duration: 1.7s; transform: scale(1.14); }
.assistant-orb.processing::before { animation-duration: 1.8s; }.assistant-orb.processing::after { animation-duration: 2.2s; }
.assistant-orb.speaking::before { animation-duration: 1.2s; }.assistant-orb.speaking::after { animation-duration: .9s; transform: scale(1.2); }
.assistant-home h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: .98; letter-spacing: -.065em; font-weight: 700; }.assistant-home h1 span { color: #b7b7bd; }.assistant-hint { margin-top: 16px; color: var(--muted); font-size: 13px; }.home-actions { margin-top: 22px; display: flex; align-items: center; gap: 15px; }.round-voice-button { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #050506; background: #f5f5f7; }.round-voice-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.video-link { background: none; color: var(--muted); font-size: 11px; }.video-link:hover { color: var(--text); }.video-link span { margin-left: 5px; }
.conversation-dock { width: min(680px, 100%); margin: 0 auto 20px; }.dock-messages { max-height: 240px; overflow: auto; padding: 10px 4px 16px; }.empty-conversation { text-align: center; color: var(--subtle); font-size: 11px; padding: 8px; }.empty-dot { display: block; width: 4px; height: 4px; margin: 0 auto 8px; border-radius: 50%; background: var(--subtle); }.message-row { display: flex; gap: 9px; max-width: 94%; margin: 0 auto 18px; }.message-avatar { width: 25px; height: 25px; flex: 0 0 auto; border-radius: 50%; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; }.user-message { justify-content: flex-end; }.user-avatar { background: #f5f5f7; color: #000; font-size: 8px; font-weight: 800; }.orb-mini { width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 33% 25%, #fff, #a59af4 46%, #ee9dc5); }.message-meta { color: var(--subtle); font-size: 10px; margin-bottom: 5px; }.message-meta span { margin-left: 5px; }.message-bubble { color: var(--text); font-size: 13px; line-height: 1.6; white-space: pre-wrap; }.user-message .message-bubble { color: var(--muted); }.message-tools, .suggestion-row { display: flex; gap: 8px; margin-top: 8px; }.message-tool, .suggestion-chip { color: var(--subtle); background: none; font-size: 10px; }
.composer { min-height: 56px; display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 13px; border: 1px solid var(--line-strong); border-radius: 29px; background: var(--surface); }.composer input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 14px; }.composer input::placeholder { color: var(--subtle); }.composer-add, .composer-mic { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: transparent; color: var(--muted); }.composer-add:hover, .composer-mic:hover { background: var(--surface-2); color: var(--text); }.composer svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.send-button { width: 35px; height: 35px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #f5f5f7; color: #000; }.send-button svg { width: 15px; height: 15px; }.composer-note { text-align: center; color: var(--subtle); font-size: 9px; margin-top: 10px; }
.simple-view-heading { display: flex; align-items: center; gap: 14px; padding: 44px 0 20px; }.simple-view-heading h2 { font-size: 30px; letter-spacing: -.05em; margin-top: 7px; }.eyebrow { color: var(--subtle); font: 9px ui-monospace, monospace; letter-spacing: .14em; }.back-button { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font-size: 22px; color: var(--muted); }.chat-screen, .voice-screen, .tool-screen { max-width: 720px; margin: 0 auto; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }.chat-screen { min-height: 540px; display: flex; flex-direction: column; }.chat-screen .messages { flex: 1; overflow: auto; }.voice-screen { min-height: 540px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }.voice-screen .voice-orb { margin-bottom: 28px; }.voice-screen #voiceState { color: var(--muted); font-size: 12px; }.voice-screen #voiceCopy { color: var(--subtle); font-size: 12px; margin-top: 10px; }.voice-main-button { margin-top: 22px; min-height: 46px; padding: 0 18px; border-radius: 24px; background: #f5f5f7; color: #000; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; gap: 9px; }.voice-main-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.voice-state-code { margin-top: 18px; color: var(--subtle); font: 9px ui-monospace, monospace; letter-spacing: .15em; }.tool-screen { min-height: 390px; }.tool-screen textarea, .tool-screen > input { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: var(--surface-2); outline: 0; }.tool-screen textarea { min-height: 150px; resize: vertical; }.primary-button { margin-top: 14px; min-height: 40px; padding: 0 16px; border-radius: 20px; background: #f5f5f7; color: #000; font-size: 11px; font-weight: 700; }.code-block { min-height: 120px; white-space: pre-wrap; margin: 18px 0 10px; padding: 14px; border-radius: 10px; background: #070708; color: var(--muted); font: 12px/1.6 ui-monospace, monospace; }.text-action { background: none; color: var(--muted); font-size: 11px; }.photo-preview { min-height: 290px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 13px; background: #080809; overflow: hidden; }.photo-preview img { display: none; max-width: 100%; max-height: 290px; object-fit: contain; }.photo-preview.has-image img { display: block; }.photo-preview.has-image .preview-placeholder { display: none; }.preview-placeholder, .photo-screen p, .history-screen p { color: var(--subtle); font-size: 12px; line-height: 1.6; }.photo-screen > input { margin-top: 14px; }.photo-screen p { margin-top: 14px; }.history-search { margin-bottom: 18px; }.setting-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--line); }.setting-line strong { display: block; font-size: 12px; }.setting-line small { display: block; color: var(--subtle); font-size: 10px; margin-top: 5px; }.setting-value { color: var(--muted); font-size: 11px; }.toggle { width: 38px; height: 22px; border-radius: 12px; background: var(--surface-2); padding: 3px; }.toggle::after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .18s ease; }.toggle.active { background: #f5f5f7; }.toggle.active::after { transform: translateX(16px); background: #000; }
.video-modal { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 22px; background: rgba(0,0,0,.84); }.video-modal.open { display: flex; }.video-panel { width: min(480px, 100%); padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-align: center; position: relative; }.video-close { position: absolute; right: 13px; top: 10px; background: none; color: var(--muted); font-size: 24px; }.video-avatar { height: 330px; display: grid; place-items: center; border-radius: 13px; background: radial-gradient(circle at 50% 30%, #d3d0e0, #5a586d 45%, #17171a 78%); }.avatar-face { width: 125px; height: 180px; border-radius: 48% 48% 43% 43%; background: linear-gradient(135deg, #ead8d4, #a9797c); opacity: .85; }.video-label { margin-top: 17px; font-size: 14px; font-weight: 700; }.video-panel p { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.5; }.toast { position: fixed; z-index: 100; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 15px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); color: var(--text); font-size: 11px; transition: opacity .18s ease, transform .18s ease; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 700px) { .assistant-topbar { height: 60px; padding: 0 15px; }.mobile-menu { display: inline-flex; }.nambi-wordmark { position: absolute; left: 50%; transform: translateX(-50%); }.privacy-status { display: none; }.assistant-main { padding: 0 14px 18px; }.assistant-home { min-height: 530px; padding-top: 25px; }.assistant-presence { height: 250px; }.assistant-orb { width: 150px; height: 150px; }.orb-core { left: 49px; top: 49px; }.assistant-home h1 { font-size: 41px; }.conversation-dock { margin-top: 2px; }.composer { min-height: 52px; }.composer-note { font-size: 8px; }.simple-view-heading { padding-top: 28px; }.chat-screen, .voice-screen, .tool-screen { padding: 14px; }.voice-screen { min-height: 500px; }.video-avatar { height: 290px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Large conversational surface and response glow */
.conversation-dock { width: min(820px, 100%); }
.composer { min-height: 72px; padding: 9px 11px 9px 17px; border-radius: 36px; box-shadow: 0 0 0 1px rgba(255,255,255,.025), 0 12px 50px rgba(86,112,255,.08); }
.composer input { font-size: 17px; letter-spacing: -.01em; }
.composer input::placeholder { color: #85858e; }
.composer-add, .composer-mic { width: 42px; height: 42px; }
.composer-add svg, .composer-mic svg { width: 18px; height: 18px; }
.send-button { width: 48px; height: 48px; }
.send-button svg { width: 18px; height: 18px; }
.dock-messages { max-height: 320px; padding-bottom: 22px; }
.message-row { max-width: 96%; margin-bottom: 25px; }
.message-bubble { font-size: 17px; line-height: 1.68; letter-spacing: -.01em; }
.message-meta { font-size: 11px; margin-bottom: 7px; }
.message-avatar { width: 30px; height: 30px; }
.orb-mini { width: 14px; height: 14px; }
.assistant-glow { position: relative; }
.assistant-glow::before { content: ""; position: absolute; left: -18px; top: 5px; width: 5px; height: 70%; border-radius: 10px; background: linear-gradient(180deg, var(--blue), var(--violet), var(--pink)); filter: blur(3px); opacity: .82; animation: replyGlow 1.8s ease-out both; }
.assistant-glow .message-bubble { text-shadow: 0 0 24px rgba(181,159,255,.16); animation: replyTextGlow 1.8s ease-out both; }
@keyframes replyGlow { 0% { opacity: 0; transform: scaleY(.45); } 35% { opacity: 1; transform: scaleY(1); } 100% { opacity: .34; transform: scaleY(1); } }
@keyframes replyTextGlow { 0% { color: #fff; text-shadow: 0 0 25px rgba(185,167,255,.6); } 100% { color: var(--text); text-shadow: 0 0 24px rgba(181,159,255,.16); } }
@media (max-width: 700px) { .composer { min-height: 64px; padding-left: 12px; }.composer input { font-size: 16px; }.composer-add, .composer-mic { width: 36px; height: 36px; }.send-button { width: 43px; height: 43px; }.message-bubble { font-size: 16px; line-height: 1.65; }.assistant-glow::before { left: -12px; } }
@media (prefers-reduced-motion: reduce) { .assistant-glow::before, .assistant-glow .message-bubble { animation: none !important; } }


.message-sources { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 12px; font-size: 12px; line-height: 1.4; }
.message-sources-label { flex-basis: 100%; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.message-sources a { color: #b8b7ff; text-decoration: none; overflow-wrap: anywhere; }
.message-sources a:hover { color: #fff; text-decoration: underline; }
