* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; background: #0a0a0a; color: #f0f0f0; min-height: 100vh; }
main { max-width: 720px; margin: 0 auto; padding: 24px 20px 80px; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
h1 { font-size: 22px; font-weight: 600; margin: 0; letter-spacing: -0.02em; }
.status { font-size: 13px; padding: 4px 10px; border-radius: 10px; background: #1a1a1a; color: #888; }
.status.live { background: #1f3a1f; color: #5fce5f; }
.status.thinking { background: #3a2a1f; color: #f0b060; }
.status.speaking { background: #1f2a3a; color: #6ab4ff; }
.status.error { background: #3a1f1f; color: #ff6060; }

#auth { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
input, select, button {
  font: inherit; padding: 12px 14px; border: 1px solid #2a2a2a; background: #141414;
  color: #f0f0f0; border-radius: 10px; outline: none;
}
input:focus, select:focus { border-color: #555; }

#visualizer { background: #0f0f0f; border: 1px solid #1a1a1a; border-radius: 12px; padding: 8px; margin-bottom: 16px; }
canvas { width: 100%; display: block; }

#controls { display: flex; gap: 10px; margin-bottom: 24px; }
button { cursor: pointer; transition: background 120ms; }
button:hover:not(:disabled) { background: #1f1f1f; }
button:disabled { opacity: 0.4; cursor: not-allowed; }
button.big { flex: 1; font-size: 16px; padding: 16px; font-weight: 600; }
button.big.active { background: #1f3a1f; border-color: #2f5a2f; color: #afeeaf; }

#transcript { display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 12px 14px; border-radius: 12px; line-height: 1.45; font-size: 15px; }
.msg.user { background: #1a2a3a; align-self: flex-end; max-width: 85%; }
.msg.assistant { background: #1a1a1a; border: 1px solid #2a2a2a; max-width: 90%; }
.msg.interim { opacity: 0.5; font-style: italic; }

@media (max-width: 480px) {
  main { padding: 16px 14px 60px; }
  h1 { font-size: 18px; }
}
