:root {
  color-scheme: dark;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  background: #171a18;
  color: #f6f3e9;
  --panel: #222622;
  --border: #424941;
  --muted: #b9c3b8;
  --accent: #e8bd66;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, input, select {
  border: 1px solid var(--border);
  border-radius: 8px;
}
button {
  padding: 10px 13px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
button:disabled { cursor: default; opacity: .47; }
:is(a, button, input, select):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1180px, calc(100% - 44px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--border); background: #1f2420; }
.bar, .foot { display: flex; justify-content: space-between; align-items: center; }
.bar { min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; }
.brand-icon { color: var(--accent); font-size: 25px; }
h1 { margin: 34px 0 6px; font-size: clamp(33px, 6vw, 57px); letter-spacing: -.045em; line-height: 1.08; }
h2 { margin: 0 0 16px; font-size: 19px; letter-spacing: -.02em; }
.intro { margin: 10px 0 26px; font-size: 17px; color: var(--muted); }
.workspace { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2.25fr); gap: 18px; align-items: start; }
.panel { min-width: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.primary { color: #251b06; background: var(--accent); border-color: var(--accent); }
.secondary { color: inherit; background: #2d342e; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--muted); overflow-wrap: anywhere; font-size: 13px; }
.source-video { display: block; width: 100%; max-height: 110px; object-fit: contain; background: #111411; border-radius: 8px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
form { display: grid; gap: 14px; margin: 20px 0 16px; }
label { min-width: 0; display: grid; gap: 5px; font-size: 13px; font-weight: 650; }
input:not([type=checkbox]), select { width: 100%; min-height: 40px; padding: 7px 9px; background: #181d18; color: inherit; }
.check { display: flex; align-items: center; }
.check input { accent-color: var(--accent); width: 17px; height: 17px; margin: 0 6px 0 0; }
.error { color: #ffb9a2; font-size: 13px; }
.preview-header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
output, #status { color: var(--muted); font-size: 13px; }
.stage {
  background: #111411;
  border: 1px solid #383f38;
  border-radius: 10px;
  min-height: 265px;
  display: grid;
  place-items: center;
  padding: 12px;
  margin-bottom: 14px;
}
.stage p { color: var(--muted); text-align: center; }
canvas { display: block; width: 100%; height: auto; }
#status { margin: 10px 0 0; min-height: 18px; }
.foot { gap: 10px; padding-block: 13px 32px; color: var(--muted); font-size: 13px; }
.foot nav { display: flex; gap: 15px; }
.info { max-width: 800px; padding-bottom: 40px; line-height: 1.56; }
.info section { margin-top: 30px; }
.info h3 { margin-bottom: 6px; }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 180px; }
}
