:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101418;
  color: #f4f7f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #101418;
}

.shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
}

.preview {
  position: relative;
  min-height: 60vh;
  background: #050708;
}

video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 60vh;
  object-fit: cover;
}

.placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #9fb0b8;
  font-size: 1rem;
}

.panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-top: 1px solid #29343a;
  background: #151b20;
}

.eyebrow {
  margin: 0 0 8px;
  color: #6fd3c8;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.45rem, 6vw, 2.5rem);
  line-height: 1.05;
}

.status {
  margin: 10px 0 0;
  color: #c2cdd2;
}

.secondary {
  margin-top: 6px;
  color: #9fb0b8;
  font-size: 0.94rem;
}

.audio-meter {
  width: 100%;
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #52646d;
  border-radius: 999px;
  background: #101418;
}

.audio-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #6fd3c8;
  transition: width 90ms linear;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.voice-form {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.field-label {
  color: #dce5e8;
  font-size: 0.86rem;
  font-weight: 700;
}

textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  border: 1px solid #52646d;
  border-radius: 8px;
  background: #101418;
  color: #f4f7f8;
  font: inherit;
  padding: 12px;
}

textarea::placeholder {
  color: #7f929b;
}

.voice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.reply {
  min-height: 24px;
  margin: 0;
  color: #f4f7f8;
  line-height: 1.45;
}

button {
  min-height: 48px;
  border: 1px solid #52646d;
  border-radius: 8px;
  background: #f4f7f8;
  color: #101418;
  font: inherit;
  font-weight: 700;
}

select {
  min-height: 48px;
  border: 1px solid #52646d;
  border-radius: 8px;
  background: #101418;
  color: #f4f7f8;
  font: inherit;
  padding: 0 12px;
}

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

button:last-child {
  grid-column: 1 / -1;
  background: transparent;
  color: #f4f7f8;
}

@media (min-width: 820px) {
  .shell {
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-rows: 100vh;
  }

  .panel {
    align-content: end;
    border-top: 0;
    border-left: 1px solid #29343a;
  }

  .preview,
  video {
    min-height: 100vh;
  }
}
