:root {
  --bg: #0d0f13;
  --bg-alt: #14171d;
  --text: #eceff2;
  --text-dim: #9ba3af;
  --accent: #6ee0b8;
  --danger: #e06e6e;
  --border: #262b33;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}

.topbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  padding-top: calc(1rem + env(safe-area-inset-top));
  background: rgba(13, 15, 19, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.topbar__title {
  font-weight: 700;
}

.topbar__badge {
  font-size: 0.75rem;
  color: var(--accent);
  background: #1f3a26;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.hint {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

.row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #1e2126;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: #0a0c0f;
  border: none;
}

.btn--recording {
  background: var(--danger);
  color: #fff;
  border: none;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.list__item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.6rem;
  background: #1a1d22;
  border-radius: 8px;
}

.list__item audio {
  width: 100%;
}

.list__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.list__actions {
  display: flex;
  gap: 0.5rem;
}

.list__actions button {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #1e2126;
  color: var(--text);
  cursor: pointer;
}

input[type="file"] {
  color: var(--text-dim);
}
