:root {
  --paper: #f5efe3;
  --ink: #1d1d1b;
  --accent: #c15322;
  --panel: rgba(255, 252, 246, 0.9);
  --line: rgba(29, 29, 27, 0.12);
  --success: #2f6f4f;
  --pending: #8a5d24;
  --failure: #8d2d2d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(193, 83, 34, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(58, 95, 141, 0.18), transparent 26%),
    linear-gradient(180deg, #f8f3eb 0%, #ece2d0 100%);
}

.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.hero-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(29, 29, 27, 0.08);
}

.hero-card {
  padding: 32px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: rgba(29, 29, 27, 0.58);
}

h1,
h2 {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.95;
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.intro {
  max-width: 760px;
  line-height: 1.6;
  margin: 16px 0 0;
}

.status-strip {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-label,
.key {
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.status-pill.pending {
  background: rgba(138, 93, 36, 0.12);
  color: var(--pending);
}

.status-pill.success {
  background: rgba(47, 111, 79, 0.12);
  color: var(--success);
}

.status-pill.failure {
  background: rgba(141, 45, 45, 0.12);
  color: var(--failure);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.panel {
  padding: 24px;
}

.job-form,
.field-group,
.monitor-card,
.results-list {
  display: grid;
  gap: 12px;
}

.hidden {
  display: none;
}

label {
  font-size: 0.92rem;
  font-weight: 700;
}

input,
button,
.Select-control,
.dash-dropdown,
.dash-input {
  font: inherit;
}

input,
button {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px 14px;
}

input {
  background: rgba(255, 255, 255, 0.8);
}

button {
  margin-top: 8px;
  border: none;
  background: linear-gradient(135deg, #c15322, #d97831);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(193, 83, 34, 0.22);
}

.job-message,
.results-empty {
  color: rgba(29, 29, 27, 0.68);
  line-height: 1.5;
}

.results-panel {
  min-height: 200px;
}

.results-stack {
  display: grid;
  gap: 20px;
}

.waveform-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
}

.waveform-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.waveform-eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: rgba(29, 29, 27, 0.54);
}

.waveform-heading h3 {
  margin: 0;
  font-size: 1.1rem;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
}

.waveform-note {
  margin: 0;
  max-width: 420px;
  color: rgba(29, 29, 27, 0.66);
  line-height: 1.5;
}

.audio-player {
  width: 100%;
  border-radius: 16px;
}

.playhead-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(29, 29, 27, 0.05);
}

.playhead-label {
  font-variant-numeric: tabular-nums;
  color: rgba(29, 29, 27, 0.8);
}

.transcript-note {
  max-width: none;
}

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

.speaker-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.speaker-swatch {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
}

.speaker-card p {
  margin: 4px 0;
}

@media (max-width: 860px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding: 20px 14px 36px;
  }

  .hero-card,
  .panel {
    padding: 20px;
  }

  .waveform-heading {
    flex-direction: column;
    align-items: start;
  }
}