:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f1218;
  color: #eef2f7;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(19, 78, 74, 0.28), transparent 36rem),
    linear-gradient(315deg, rgba(127, 29, 29, 0.22), transparent 34rem),
    #0f1218;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 2.75rem;
  border: 1px solid #3b4657;
  border-radius: 6px;
  padding: 0 1rem;
  background: #1f2937;
  color: #f8fafc;
  cursor: pointer;
}

button:hover {
  background: #273449;
}

button:first-child {
  background: #0f766e;
  border-color: #14b8a6;
}

input,
select {
  width: min(28rem, 100%);
  min-height: 2.75rem;
  border: 1px solid #3b4657;
  border-radius: 6px;
  padding: 0 0.8rem;
  background: #111827;
  color: #f8fafc;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 14px;
}

h1 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.status {
  flex: 0 0 auto;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  color: #bbf7d0;
  background: rgba(15, 23, 42, 0.75);
}

.workspace {
  display: grid;
  gap: 12px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 700;
}

.stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #293548;
  border-radius: 8px;
  background: #05070a;
  object-fit: contain;
}

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

.log {
  width: 100%;
  min-height: 9rem;
  border: 1px solid #293548;
  border-radius: 8px;
  padding: 1rem;
  overflow: auto;
  background: #080b10;
  color: #cbd5e1;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .topbar {
    align-items: center;
  }

  .stage {
    grid-template-columns: 1fr;
  }

  button,
  input,
  select {
    width: 100%;
  }
}
