* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: #222;
  background: #fafafa;
  font: 14px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.toolbar .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stage {
  height: calc(100vh - 48px);
}

.canvas-wrap {
  height: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px 24px;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

label {
  font-weight: 600;
}

select {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #d0d7de;
  background: #fff;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
}

.control label {
  font-weight: 500;
  font-size: 12px;
  color: #555;
}

.control input[type="range"] {
  width: 140px;
}

.control .value {
  min-width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #444;
  font-size: 12px;
}
