:root {
  color-scheme: light;
  --ink: #1d252b;
  --muted: #5f6d77;
  --line: #d9e0e4;
  --bg: #eef2f4;
  --panel: #ffffff;
  --teal: #006c67;
  --blue: #174c7c;
  --gold: #b7791f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
audio {
  font: inherit;
}

.shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 48px) 48px;
}

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

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: 0;
}

button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 760;
  cursor: pointer;
}

.summary {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.summary p,
.status-text {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.stat {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stat dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.stat dd {
  margin: 6px 0 0;
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 780;
  overflow-wrap: anywhere;
}

.clips-panel {
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.clip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.clip-card,
.empty {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.clip-card {
  display: grid;
  gap: 12px;
}

.clip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: #f7fafb;
  font-size: 0.8rem;
  font-weight: 720;
}

blockquote {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
  color: #303b42;
  line-height: 1.5;
}

audio {
  width: 100%;
  max-width: 100%;
  min-height: 42px;
}

.empty {
  grid-column: 1 / -1;
  color: var(--muted);
}

@media (max-width: 800px) {
  .summary,
  .clip-list {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .topbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

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