* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7faf9;
  color: #14201c;
}
.shell { width: min(980px, calc(100vw - 32px)); margin: 0 auto; padding: 26px 0; display: grid; gap: 18px; }
header { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
h1, p { margin: 0; }
h1 { font-size: 26px; }
#status { color: #64748b; }
.panel {
  background: #fff;
  border: 1px solid #d7e2de;
  border-radius: 8px;
  padding: 16px;
}
.form { display: grid; grid-template-columns: repeat(4, 1fr) auto auto; gap: 10px; align-items: end; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: #344054; }
input, button { border-radius: 6px; padding: 10px 12px; font: inherit; }
input { border: 1px solid #cbd5e1; }
button { border: 0; background: #0f766e; color: #fff; font-weight: 800; cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
.ghost { background: #e2e8f0; color: #1f2937; }
.preview {
  aspect-ratio: 16 / 9;
  min-height: 280px;
  border-radius: 8px;
  border: 1px solid #d7e2de;
  background: #111827;
  color: #cbd5e1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.preview video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .form { grid-template-columns: 1fr; }
  header { display: grid; }
}
