:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18202a;
  background: #f5f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.app {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 32px 0 48px;
}

header {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: #526070;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.subtitle {
  max-width: 780px;
  color: #526070;
  font-size: 1.05rem;
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.4fr) minmax(280px, 1fr);
  gap: 18px;
}

.card {
  background: white;
  border: 1px solid #e4e8ef;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 16px 36px rgba(18, 27, 38, 0.06);
}

.video-card {
  grid-row: span 2;
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: #101820;
}

video,
canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

canvas {
  pointer-events: none;
}

.controls {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 700;
  background: #1f6feb;
  color: white;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.suggestions button {
  background: #eef2f8;
  color: #18202a;
  margin: 0 8px 8px 0;
}

.status,
.muted {
  color: #5b6877;
}

.metric {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 8px;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: #edf1f6;
  overflow: hidden;
}

.bar > div {
  height: 100%;
  width: 0%;
  background: #1f6feb;
  transition: width 140ms linear;
}

.state-pill {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 16px;
  background: #eef2f8;
  font-size: 1.4rem;
  font-weight: 800;
}

.feedback {
  min-height: 92px;
  border-radius: 16px;
  padding: 16px;
  background: #f8fafc;
  color: #253242;
  line-height: 1.55;
}

.notes {
  margin-top: 18px;
}

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

  .video-card {
    grid-row: auto;
  }
}
