:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1rem 2.5rem;
  background: #111318;
  color: #e9eaee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

header {
  text-align: center;
}

header h1 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  opacity: 0.85;
}

#status {
  min-height: 1.4rem;
  text-align: center;
  opacity: 0.7;
  font-size: 0.95rem;
}

#talk-button {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 30% 30%, #4f7cff, #2742a8);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 0 0 0 rgba(79, 124, 255, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#talk-button:active {
  transform: scale(0.96);
}

#talk-button.listening {
  box-shadow: 0 0 0 18px rgba(79, 124, 255, 0.15);
}

#transcript {
  width: 100%;
  max-width: 480px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bubble {
  padding: 0.6rem 0.9rem;
  border-radius: 0.9rem;
  max-width: 85%;
  line-height: 1.35;
  font-size: 0.95rem;
}

.bubble.you {
  align-self: flex-end;
  background: #2742a8;
}

.bubble.assistant {
  align-self: flex-start;
  background: #1f2330;
}

#enable-push {
  border: 1px solid #3a3f4d;
  background: transparent;
  color: #e9eaee;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
}
