:root{--bg: #0e1116;--panel: #171b22;--line: #262c36;--text: #e8ecf1;--muted: #8b95a3;--accent: #3fb68b;--accent-ink: #062b1d;--warn: #e0a84a;--danger: #e5675e;--user: #1f3a5f;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent}.screen{height:100%;max-width:640px;margin:0 auto;display:flex;flex-direction:column;padding:env(safe-area-inset-top) 16px env(safe-area-inset-bottom)}.brand{display:flex;align-items:center;gap:10px}.brand h1{font-size:1.15rem;margin:0;font-weight:600}.logo{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink);font-weight:700}.top{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}button{font:inherit;border:0;border-radius:10px;padding:11px 16px;cursor:pointer;background:var(--accent);color:var(--accent-ink);font-weight:600}button:disabled{opacity:.45;cursor:default}button.secondary{background:var(--line);color:var(--text)}button.link{background:none;color:var(--muted);padding:6px 0;font-weight:500;text-decoration:underline}button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}input{font:inherit;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:11px 12px;min-width:0}.login{justify-content:center;gap:28px}.login .brand{justify-content:center}.login-form{display:flex;flex-direction:column;gap:12px}.login-form input{font-size:1.6rem;letter-spacing:.4em;text-align:center}.hint{color:var(--muted);font-size:.9rem;margin:0}.center{text-align:center;margin:auto 0;padding:0 12px}.error{color:var(--danger);margin:0;font-size:.95rem}.ok{color:var(--accent);margin:0}.warning{color:var(--warn);margin:0;font-size:.95rem}.conversation{flex:1;min-height:0;overflow-y:auto;padding:14px 0;display:flex;flex-direction:column;gap:10px}.turn{margin:0;padding:10px 13px;border-radius:14px;max-width:88%;line-height:1.4}.turn.user{align-self:flex-end;background:var(--user)}.turn.assistant{align-self:flex-start;background:var(--panel)}.turn.system{align-self:center;color:var(--muted);font-size:.9rem;background:none}.turn.interim{opacity:.65}.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:10px}.card h2{margin:0;font-size:1rem}.card ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px}.card.action{border-color:var(--warn)}.card dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:4px 10px;font-size:.95rem}.card dt{color:var(--muted)}.card dd{margin:0;overflow-wrap:anywhere}.card .body{margin:0;white-space:pre-wrap;font:inherit;font-size:.95rem;background:var(--bg);border-radius:10px;padding:10px;max-height:40vh;overflow-y:auto}.card .send{display:flex;flex-direction:column;gap:8px}.card .send label{font-size:.9rem;color:var(--muted)}.card .send input{flex:1;letter-spacing:.3em;text-align:center;font-size:1.2rem}.row{display:flex;gap:10px;align-items:center;justify-content:flex-end}.row>p{margin-right:auto}.controls{display:flex;flex-direction:column;align-items:center;gap:12px;padding:14px 0 18px;border-top:1px solid var(--line)}.status{margin:0;color:var(--muted);min-height:1.3em}.orb{width:92px;height:92px;border-radius:50%;padding:0;display:grid;place-items:center;font-size:2rem;background:var(--accent);color:var(--accent-ink);box-shadow:0 0 #3fb68b80}.orb.on{background:var(--danger);color:#2a0806}.state-listening .orb{animation:pulse 1.8s infinite}.state-speaking .orb{animation:pulse .9s infinite}.typed{display:flex;gap:8px;width:100%}.typed input{flex:1}@keyframes pulse{0%{box-shadow:0 0 #3fb68b73}70%{box-shadow:0 0 0 18px #3fb68b00}to{box-shadow:0 0 #3fb68b00}}@media(prefers-reduced-motion:reduce){.state-listening .orb,.state-speaking .orb{animation:none}}@media(max-height:640px){.orb{width:68px;height:68px;font-size:1.5rem}.controls{gap:8px;padding:10px 0 12px}}
