:root {
  --bg: #0f1115;
  --panel: #1a1d24;
  --border: #2a2f3a;
  --text: #e6e8ec;
  --muted: #8a92a3;
  --accent: #4c9aff;
  --accent-hover: #3b83e0;
  --danger: #e05a5a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

#sidebar {
  width: 300px;
  flex-shrink: 0;
  padding: 16px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

#sidebar h1 {
  font-size: 18px;
  margin: 0 0 16px;
}

.panel {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.panel h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 0 0 10px;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}

label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

input[type="text"],
input[type="number"],
input[type="color"] {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 6px 8px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
}

input[type="color"] {
  height: 32px;
  padding: 2px;
  cursor: pointer;
}

button {
  padding: 8px 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

button:hover { background: var(--accent-hover); }
button.secondary { background: var(--border); }
button.secondary:hover { background: #3a4050; }

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#type-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

#type-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 13px;
}

#type-list li.active {
  border-color: var(--accent);
}

#type-list .swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

#type-list .remove {
  margin-left: auto;
  background: transparent;
  color: var(--muted);
  padding: 2px 6px;
  font-size: 16px;
  line-height: 1;
}

#type-list .remove:hover { color: var(--danger); }

#active-type {
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--muted);
}

#status {
  font-size: 12px;
  color: var(--muted);
  padding: 8px;
  background: var(--bg);
  border-radius: 4px;
}

main {
  flex: 1;
  position: relative;
}

#stage {
  display: block;
  width: 100%;
  height: 100%;
  background: #0b0d12;
  cursor: crosshair;
}
