* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, "Segoe UI", sans-serif;
  background: #0e1116;
  color: #e6e9ee;
}
.wrap {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 26px;
  max-width: 1020px;
  margin: 0 auto;
  padding: 26px;
}
.controls {
  background: #161b22;
  border: 1px solid #2a313c;
  border-radius: 14px;
  padding: 20px;
  align-self: start;
}
.controls h1 { margin: 0 0 6px; font-size: 1.6rem; }
.intro { color: #9aa4b0; margin: 0; line-height: 1.45; }
.controls h2 { font-size: 0.98rem; margin: 20px 0 8px; color: #c9d1d9; }
.row { display: flex; flex-wrap: wrap; gap: 7px; }
button {
  background: #21262e; color: #e6e9ee; border: 1px solid #39424f;
  border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 0.92rem;
}
button:hover { border-color: #58a6ff; }
button.pick.active { border-color: #58a6ff; background: #1c2f4a; }
.swatches button {
  width: 34px; height: 34px; border-radius: 50%; padding: 0;
}
.swatches button.active { outline: 2px solid #fff; outline-offset: 2px; }
.actions { margin-top: 24px; }
.actions .primary { background: #238636; border-color: #238636; font-weight: 700; }
.status { min-height: 1.2em; color: #9aa4b0; }
.preview { min-width: 0; }
.stage {
  width: min(480px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}
.stage svg { display: block; width: 100%; height: 100%; }
.hint { color: #7d8590; }
@media (max-width: 760px) {
  .wrap { grid-template-columns: 1fr; }
}
