/* Reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #0f172a;
  background: #f8fafc;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
}
.subtitle {
  margin: 0 0 24px;
  color: #475569;
}

form {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

label { display: block; font-weight: 600; margin-bottom: 6px; }
textarea, input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
}
textarea { resize: vertical; }

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

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #0ea5e9;
  background: #0ea5e9;
  color: white;
  font-weight: 600;
  cursor: pointer;
}
button:hover, .button:hover { filter: brightness(0.98); }
button:disabled { opacity: 0.6; cursor: not-allowed; }
.button.secondary {
  background: white;
  color: #0ea5e9;
}
.button.ghost {
  background: transparent;
  color: #334155;
  border-color: #cbd5e1;
}

.status { margin-top: 10px; min-height: 20px; color: #334155; }

.output {
  margin-top: 20px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

video {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #0b1020;
  border-radius: 8px;
}
.actions { display: flex; gap: 8px; margin-top: 10px; }
.hint { color: #64748b; font-size: 14px; } 