:root {
  --bg: #0f172a;
  --muted: #131b2f;
  --primary: #475569;
  --accent: #4338ca;
  --on: #ffffff;
  --soft: #94a3b8;
  --mood: #818cf8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--on);
  font-family: Outfit, system-ui, sans-serif;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 18%, color-mix(in srgb, var(--mood) 22%, transparent), transparent 55%),
    #0f172a;
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 28px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top { text-align: center; }
.brand {
  letter-spacing: 6px;
  font-weight: 700;
  font-size: 18px;
}
.status {
  color: var(--soft);
  font-size: 14px;
  margin-top: 6px;
}

.orb-wrap { margin: 28px 0 8px; }
#orb { width: 220px; height: 220px; display: block; }

.chip {
  background: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--soft);
  margin: 12px 0 24px;
}

.card {
  width: 100%;
  background: var(--muted);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}
.card-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--mood);
}
.transcript {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.45;
}
.reply {
  margin-top: 12px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.45;
  min-height: 1.4em;
}

.json-box {
  width: 100%;
  margin-top: 12px;
  background: #0b1224;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.08);
}
.mono-label, pre {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}
.mono-label { color: var(--soft); margin-bottom: 6px; }
pre { color: #c7d2fe; white-space: pre-wrap; word-break: break-word; }

.dock {
  margin-top: auto;
  width: 100%;
  padding-top: 28px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.icon-btn, .mic-btn {
  border: 0;
  cursor: pointer;
  color: #fff;
  display: grid;
  place-items: center;
}
.icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--muted);
}
.icon-btn.ghost { pointer-events: none; }
.mic-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--accent);
}
.mic-btn.live { background: var(--mood); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
