:root {
  color-scheme: dark;
  --bg: #07110f;
  --panel: #10241f;
  --panel2: #17342d;
  --text: #f2fbf7;
  --muted: #a8bbb4;
  --accent: #54d39a;
  --accent2: #ffd166;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app {
  width: min(760px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 16px 34px;
  display: grid;
  gap: 14px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 2px;
}

h1, h2, p {
  margin: 0;
}

h1 {
  font-size: 28px;
  font-weight: 750;
}

h2 {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

#status {
  color: var(--muted);
  margin-top: 4px;
}

.panel, .transcript, .answer, .stats {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 14px;
}

label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

input {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: #07110f;
  color: var(--text);
  font-size: 22px;
  padding: 0 14px;
}

.voice {
  min-height: 74px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--panel2);
  border-radius: 8px;
  padding: 16px;
}

#prompt {
  color: var(--muted);
  max-width: 32rem;
}

.quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick button, .icon-btn {
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: #193b32;
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
}

.quick button:nth-last-child(1) {
  grid-column: 1 / -1;
}

.quick button:disabled {
  opacity: .55;
}

.answer {
  border-color: rgba(84,211,154,.35);
}

.answer p, .transcript p {
  line-height: 1.45;
  font-size: 18px;
}

.stats {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 420px) {
  h1 {
    font-size: 24px;
  }

  .quick {
    grid-template-columns: 1fr;
  }
}
