:root {
  --bg: #f7f7fb;
  --panel: #ffffff;
  --text: #1e2430;
  --muted: #606a7b;
  --border: #d8dce5;
  --accent: #232b45;
  --accent-2: #4452a3;
  --error-bg: #fff0f0;
  --error-text: #9b1c1c;
  --status-bg: #eef6ff;
  --status-text: #123f68;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 18px 48px;
}

.hero {
  padding: 28px 0 18px;
}

.eyebrow {
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .82rem;
}

h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
}

h2 { margin-top: 0; }

.hero-copy {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 720px;
}

.card, .notice, .result, .config-note, .status, .error {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(27, 35, 56, 0.06);
  padding: 22px;
  margin: 18px 0;
}

.notice ul {
  margin: 10px 0 10px 20px;
  padding: 0;
}

label {
  display: block;
  font-weight: 700;
  margin: 18px 0 8px;
}

input[type="file"], textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  font: inherit;
}

textarea { resize: vertical; }

.field-help {
  color: var(--muted);
  font-size: .92rem;
}

button, .download {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  margin-top: 18px;
}

button:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.status {
  background: var(--status-bg);
  color: var(--status-text);
}

.error {
  background: var(--error-bg);
  color: var(--error-text);
  border-color: #ffd0d0;
}

.result video {
  width: 100%;
  max-height: 540px;
  border-radius: 14px;
  background: #000;
}

.hidden { display: none; }

code {
  background: #eff1f6;
  padding: 2px 6px;
  border-radius: 6px;
}
