body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f7fb;
  margin: 0;
  padding: 2rem;
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

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

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  color: #333;
}

textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  resize: vertical;
}

.controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

button {
  padding: 0.6rem 1.2rem;
  background: #4b3fb5;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
}

button:disabled {
  background: #aaa;
  cursor: not-allowed;
}

.voice-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: normal;
  margin: 0;
}

#status-line {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #666;
  min-height: 1.2em;
}

#transcript {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.turn {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: white;
  border-left: 4px solid #4b3fb5;
  font-size: 0.9rem;
  line-height: 1.4;
}

.turn .agent-name {
  font-weight: 700;
  margin-right: 0.4rem;
}

.turn .stance {
  font-size: 0.75rem;
  color: #888;
  margin-left: 0.4rem;
}

.turn.stance-agree { border-left-color: #2e9e5b; }
.turn.stance-object { border-left-color: #c0392b; }
.turn.stance-propose_alternative { border-left-color: #d68910; }

.outcome {
  margin-top: 0.75rem;
  padding: 0.8rem;
  background: #eae6ff;
  border-radius: 8px;
  font-size: 0.9rem;
}

.live-transcript {
  min-height: 3rem;
  padding: 0.75rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.mic-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: #4b3fb5;
  color: white;
  cursor: pointer;
  margin: 0 auto 0.5rem;
  transition: background 0.15s, transform 0.1s;
  padding: 0;
}

.mic-btn svg {
  width: 36px;
  height: 36px;
}

.mic-btn[data-state="recording"] {
  background: #c0392b;
  transform: scale(1.1);
  animation: pulse 1s infinite;
}

.mic-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  animation: none;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.4); }
  70%  { box-shadow: 0 0 0 14px rgba(192, 57, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0); }
}

.mic-hint {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 1rem;
}