:root {
  color-scheme: light;
  --bg: #f5f9ff;
  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.10);
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.62);
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --danger: #ef4444;
  --shadow: 0 20px 50px rgba(2, 8, 23, 0.10);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 64px;
}

.header {
  margin-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: radial-gradient(70% 70% at 30% 30%, rgba(59, 130, 246, 0.35), rgba(29, 78, 216, 0.15)), #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(59, 130, 246, 0.06);
  color: rgba(15, 23, 42, 0.85);
  font-size: 12.5px;
}

.chip-muted {
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.70);
}

.mic-wrap {
  display: grid;
  place-items: center;
  padding: 10px 0 6px;
}

.mic-button {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: radial-gradient(70% 70% at 30% 30%, rgba(59, 130, 246, 0.22), rgba(29, 78, 216, 0.08)), #ffffff;
  color: var(--blue-700);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.16);
  transition: transform 140ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
}

.mic-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.20);
}

.mic-button:active {
  transform: translateY(0px) scale(0.98);
}

.mic-button.is-recording {
  background: radial-gradient(70% 70% at 30% 30%, rgba(239, 68, 68, 0.22), rgba(239, 68, 68, 0.08)), #ffffff;
  color: #b91c1c;
  box-shadow: 0 22px 55px rgba(239, 68, 68, 0.18);
}

.mic-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.agent-speech {
  margin-top: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.06), rgba(59, 130, 246, 0.02));
  border-radius: 14px;
  padding: 12px 12px 12px;
}

.agent-title {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.agent-text {
  font-size: 15px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.92);
  white-space: pre-wrap;
}

.tips {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.04);
}

.tips-title {
  font-size: 13px;
  margin-bottom: 6px;
  color: rgba(15, 23, 42, 0.8);
  font-weight: 600;
}

ul {
  color: var(--muted);
  padding-left: 18px;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .brand-mark {
    display: none;
  }
  .mic-button {
    width: 80px;
    height: 80px;
  }
  .agent-text {
    font-size: 14.5px;
  }
}
