body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 20px;
  background: #1a1a2e;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-weight: 600;
  margin-bottom: 4px;
  color: #4fc3f7;
}

p.subtitle {
  margin-top: 0;
  color: #9e9e9e;
  max-width: 640px;
  text-align: center;
  line-height: 1.4;
}

.wrap {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

canvas {
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 8px;
  cursor: crosshair;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.panel {
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 8px;
  padding: 16px 20px;
  min-width: 260px;
  max-width: 320px;
}

.panel h2 {
  font-size: 15px;
  color: #4fc3f7;
  margin: 0 0 8px 0;
}

button {
  background: #0f3460;
  color: #e0e0e0;
  border: 1px solid #4fc3f7;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  margin: 4px 4px 4px 0;
  transition: background 0.15s;
}

button:hover {
  background: #4fc3f7;
  color: #16213e;
}

label.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 14px;
  cursor: pointer;
}

.cp-list {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 8px;
}

.cp-row {
  padding: 2px 0;
  border-bottom: 1px solid #0f346055;
}

.cp-row .reflected {
  color: #ff7043;
}

.legend {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
}

.swatch {
  display: inline-block;
  width: 14px;
  height: 3px;
  vertical-align: middle;
  margin-right: 6px;
}
