:root {
  --red: #c41e3a;
  --red-dark: #9b1730;
  --navy: #1b2430;
  --ink: #1b2430;
  --muted: #5c6570;
  --paper: #f6f3ee;
  --card: #fffdf9;
  --line: #e4ddd3;
  --ok: #2f6b4f;
  --warn: #b45309;
  --bad: #9b1730;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100dvh;
}
a { color: var(--red); }
header {
  background: var(--navy);
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; flex-direction: column; }
.brand strong { font-size: 1.15rem; letter-spacing: .02em; }
.brand span { font-size: .8rem; opacity: .8; }
header .who { font-size: .9rem; display: flex; gap: .75rem; align-items: center; }
header button, .btn {
  appearance: none;
  border: 0;
  background: var(--red);
  color: #fff;
  padding: .55rem 1rem;
  border-radius: 999px;
  font-weight: 650;
  cursor: pointer;
  font-size: .95rem;
}
.btn.ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn.navy { background: var(--navy); }
.btn.ok { background: var(--ok); }
.btn.bad { background: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
main { max-width: 920px; margin: 0 auto; padding: 1.25rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 0 rgba(27,36,48,.04);
}
h1, h2 { margin: 0 0 .5rem; font-weight: 700; }
p.lead { color: var(--muted); margin-top: 0; }
.drop {
  border: 2px dashed #c9bfb0;
  border-radius: 16px;
  padding: 2rem 1rem;
  text-align: center;
  background: #fff;
  cursor: pointer;
}
.drop.over { border-color: var(--red); background: #fff6f6; }
.drop input { display: none; }
.drop strong { display: block; font-size: 1.1rem; margin-bottom: .25rem; }
.hint { color: var(--muted); font-size: .9rem; }
.status {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.status.queued { background: #efe6d6; color: #7a5b2a; }
.status.processing { background: #e7eef8; color: #2b4c7e; }
.status.ready { background: #e5f3ea; color: var(--ok); }
.status.failed { background: #fde8ea; color: var(--bad); }
.job-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.clips { display: grid; gap: 1rem; }
@media (min-width: 720px) {
  .clips { grid-template-columns: 1fr 1fr; }
}
.clip {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.clip video { width: 100%; max-height: 420px; background: #111; display: block; }
.clip .meta { padding: .85rem; }
.clip h3 { margin: 0 0 .35rem; font-size: 1rem; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.gate {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .75rem;
}
.error { color: var(--bad); }
.hidden { display: none !important; }
progress { width: 100%; height: .7rem; accent-color: var(--red); }
