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

body {
  font-family: system-ui, sans-serif;
  background: #f4f4f7;
  color: #222;
  padding: 2rem;
}

main {
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}

button.active {
  background: #dc2626;
}

select {
  padding: 0.55rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

.status {
  font-size: 0.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.status.idle { background: #e5e7eb; }
.status.listening { background: #dcfce7; color: #166534; }
.status.speaking { background: #dbeafe; color: #1e40af; }

.panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.panes h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.pane {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  min-height: 260px;
  max-height: 360px;
  overflow-y: auto;
  padding: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
}

.pane p {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed #eee;
}

.latency {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #555;
}

@media (max-width: 640px) {
  .panes {
    grid-template-columns: 1fr;
  }
}
