:root {
  color-scheme: dark;
  --bg: #080b13;
  --panel: rgba(18, 24, 39, 0.82);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef4ff;
  --muted: #9eb0ca;
  --accent: #75f0c9;
  --accent2: #8fa7ff;
  --danger: #ff7b9c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(117, 240, 201, .16), transparent 32rem),
    radial-gradient(circle at 80% 5%, rgba(143, 167, 255, .18), transparent 30rem),
    var(--bg);
}
.shell { width: min(980px, calc(100vw - 32px)); margin: 0 auto; padding: 54px 0; }
.hero { display: grid; grid-template-columns: 180px 1fr; gap: 34px; align-items: center; margin-bottom: 28px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; }
h1 { font-size: clamp(38px, 7vw, 78px); line-height: .92; margin: 8px 0 18px; }
.lead { color: var(--muted); font-size: 19px; max-width: 700px; line-height: 1.55; }
.orb { width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, rgba(117,240,201,.35), rgba(143,167,255,.18)); border: 1px solid var(--line); box-shadow: 0 0 80px rgba(117,240,201,.18); }
.orb span { width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--accent) 18%, #23465f 72%); box-shadow: inset 0 0 18px rgba(255,255,255,.42), 0 0 36px rgba(117,240,201,.5); animation: breathe 2.5s ease-in-out infinite; }
.orb[data-mode="speaking"] span, .orb[data-mode="speaking"] { animation: pulse .7s ease-in-out infinite; }
.panel, .log-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 18px 60px rgba(0,0,0,.35); backdrop-filter: blur(12px); }
.status-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; }
.status, .mode { font-size: 24px; font-weight: 800; }
.controls { display: flex; gap: 14px; flex-wrap: wrap; }
button { border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 800; font-size: 16px; color: #061018; background: var(--accent); cursor: pointer; }
button#stop { background: var(--danger); color: white; }
button:disabled { opacity: .45; cursor: not-allowed; }
.hint { color: var(--muted); margin: 18px 0 0; }
.log-panel { margin-top: 22px; }
.log-title { font-weight: 800; margin-bottom: 12px; }
.log { display: grid; gap: 8px; max-height: 280px; overflow: auto; }
.row { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: #dbe7ff; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px; white-space: pre-wrap; }
.row.error { color: #ffd5de; border-color: rgba(255,123,156,.4); }
.row.connect, .row.health { color: #d8fff3; border-color: rgba(117,240,201,.35); }
@keyframes breathe { 0%,100%{ transform: scale(.96); } 50%{ transform: scale(1.06); } }
@keyframes pulse { 0%,100%{ transform: scale(1); filter: brightness(1); } 50%{ transform: scale(1.08); filter: brightness(1.25); } }
@media (max-width: 720px) { .hero { grid-template-columns: 1fr; } .orb { width: 130px; height: 130px; } .status-row { grid-template-columns: 1fr; } }
