:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-2: #1f2937;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #22c55e;
  --accent-2: #0ea5e9;
  --danger: #ef4444;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(180deg, var(--bg), #020617);
  color: var(--text);
}
.app {
  width: min(900px, 92vw);
  margin: 32px auto;
  display: grid;
  gap: 16px;
}
.hero, .card {
  background: rgba(17,24,39,.9);
  border: 1px solid rgba(148,163,184,.2);
  border-radius: 16px;
  padding: 18px;
}
.hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.hero h1, .card h2 { margin: 0 0 8px; }
.hero p, .hint, .meta { color: var(--muted); }
.badge {
  background: rgba(34,197,94,.15);
  color: #86efac;
  border: 1px solid rgba(34,197,94,.35);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}
button.primary { background: var(--accent-2); }
button:disabled { opacity: .45; cursor: not-allowed; }
audio { width: 100%; margin-top: 12px; }
.history ul { margin: 0; padding-left: 18px; }
.history li { margin: 8px 0; color: var(--muted); }
pre.meta {
  white-space: pre-wrap;
  margin: 12px 0 0;
  font-size: 13px;
}
