:root {
  --bg: #060816;
  --panel: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --text: #eef2ff;
  --muted: #9aa4c7;
  --accent: #7c9cff;
  --accent-2: #5ef2ff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background:
    radial-gradient(circle at top, rgba(94,242,255,0.12), transparent 30%),
    radial-gradient(circle at bottom, rgba(124,156,255,0.16), transparent 35%),
    var(--bg);
  color: var(--text);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 32px 20px 40px;
  max-width: 980px;
  margin: 0 auto;
}

.orb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 42vh;
}

.orb-button {
  width: 180px;
  height: 180px;
  border-radius: 999px;
  border: none;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.orb-core {
  position: absolute;
  inset: 28px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, #d8e3ff, #7c9cff 35%, #2443a7 65%, #0c1638 100%);
  box-shadow:
    0 0 40px rgba(94, 242, 255, 0.4),
    0 0 120px rgba(124, 156, 255, 0.35),
    inset 0 0 30px rgba(255,255,255,0.25);
}

.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(124,156,255,0.35);
  opacity: 0.9;
}

.orb-ring-1 { transform: scale(1.05); }
.orb-ring-2 { transform: scale(1.14); opacity: 0.5; }

.orb-button.idle .orb-core {
  animation: breathe 2.8s ease-in-out infinite;
}

.orb-button.listening .orb-core,
.orb-button.speaking .orb-core {
  animation: pulse 1.1s ease-in-out infinite;
}

.orb-button.listening .orb-ring,
.orb-button.speaking .orb-ring {
  animation: wave 1.5s linear infinite;
}

.status {
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
}

.panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.panel-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(10px);
}

.panel-block h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.transcript {
  min-height: 180px;
  max-height: 320px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.line {
  font-size: 14px;
  line-height: 1.5;
  color: #dbe3ff;
}

.line.user { color: #98f5ff; }
.line.model { color: #d7c8ff; }

.profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ghost-btn {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.profile-box {
  margin: 0;
  color: #d9e6ff;
  font-size: 14px;
  white-space: pre-wrap;
}

.full-span {
  grid-column: 1 / -1;
}

.debug-log {
  min-height: 140px;
  max-height: 240px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #c9d7ff;
  white-space: pre-wrap;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); filter: saturate(1); }
  50% { transform: scale(1.08); filter: saturate(1.25); }
}

@keyframes wave {
  0% { transform: scale(1.02); opacity: 0.7; }
  100% { transform: scale(1.18); opacity: 0.05; }
}

@media (min-width: 800px) {
  .panel {
    grid-template-columns: 1.3fr 0.8fr;
  }
}
