:root {
  --bg: #f2efe8;
  --panel: rgba(255, 252, 246, 0.86);
  --ink: #1f2521;
  --muted: #5f675f;
  --line: rgba(31, 37, 33, 0.12);
  --accent: #114b45;
  --accent-strong: #0c3834;
  --warn: #9f6a00;
  --danger: #8b2e2e;
  --shadow: 0 24px 60px rgba(17, 31, 27, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(17, 75, 69, 0.12), transparent 28%),
    linear-gradient(180deg, #ebe4d6 0%, var(--bg) 48%, #e8e3d7 100%);
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.hero {
  padding: 16px 0 28px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-size: 0.8rem;
  margin: 0 0 14px;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  max-width: 12ch;
}

.lede {
  max-width: 58ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 24px;
  margin-top: 22px;
  backdrop-filter: blur(8px);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.95rem;
  color: var(--muted);
}

input,
select,
button {
  font: inherit;
}

input[type="file"],
input[type="text"],
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.status {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(17, 75, 69, 0.07);
  color: var(--ink);
  overflow-x: auto;
}

.recordings {
  display: grid;
  gap: 14px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 8px 0 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(17, 75, 69, 0.12);
}

.pill.processing,
.pill.queued {
  background: rgba(159, 106, 0, 0.14);
  color: var(--warn);
}

.pill.failed {
  background: rgba(139, 46, 46, 0.12);
  color: var(--danger);
}

.transcript {
  white-space: pre-wrap;
  line-height: 1.6;
  margin: 0;
}

.editor {
  width: 100%;
  min-height: 110px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  color: var(--ink);
  resize: vertical;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.actions.tight {
  margin-top: 0;
}

.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(17, 75, 69, 0.22);
}

.corrections {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.corrections ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.token {
  font-size: 0.9rem;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(17, 75, 69, 0.08);
}

.token.unknown {
  background: rgba(139, 46, 46, 0.12);
  color: var(--danger);
}

@media (max-width: 720px) {
  .page {
    padding-top: 28px;
  }

  .panel {
    padding: 18px;
    border-radius: 20px;
  }
}
