:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #20242a;
  --muted: #667085;
  --line: #d9dee7;
  --accent: #2f6f73;
  --accent-strong: #23565a;
  --warm: #e8a84b;
  --danger: #b94a48;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  min-height: 100vh;
}

.workspace {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  min-height: 100vh;
}

.panel {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 28px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 22px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
}

.form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

button,
.secondary {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:hover,
.secondary:hover {
  background: var(--accent-strong);
}

button:disabled,
.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.secondary {
  background: #e9eef2;
  color: var(--ink);
}

.secondary:hover {
  background: #dce5ec;
}

.danger {
  background: var(--danger);
}

.danger:hover {
  background: #943b39;
}

.stage {
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  overflow: hidden;
}

.preview.empty {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(135deg, #f1f4f8 0, #f1f4f8 14px, #e7ecf2 14px, #e7ecf2 28px);
  color: var(--muted);
}

video {
  width: 100%;
  height: 100%;
  display: block;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  color: #344054;
  line-height: 1.55;
}

.jobs {
  display: grid;
  gap: 8px;
}

.job {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcfe;
  cursor: pointer;
}

.job strong {
  display: block;
  margin-bottom: 4px;
}

.job span {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .toolbar {
    flex-direction: column;
  }
}
