html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #f8f7f3;
  color: #111;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr 220px;
}

.app {
  display: grid;
  grid-template-columns: 320px 1fr;
}

.panel-left {
  border-right: 1px solid #e4e2dc;
  background: #f5f4ef;
  padding: 24px;
}

.panel-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf9f6;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
}

h1 {
  margin: 0 0 10px;
  font-size: 30px;
}

.panel-copy {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #777;
}

textarea {
  width: 100%;
  min-height: 140px;
  border: 1px solid #ddd;
  background: white;
  padding: 12px;
  font-size: 13px;
  border-radius: 8px;
  margin-bottom: 12px;
}

button {
  border: 1px solid #ccc;
  background: white;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}

button:hover {
  background: #f0efea;
}

.metric-grid {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.metric-card {
  border: 1px solid #e0ded8;
  background: white;
  border-radius: 10px;
  padding: 12px;
  flex: 1;
}

.metric-label {
  font-size: 11px;
  color: #777;
  text-transform: uppercase;
}

.metric-value {
  font-size: 26px;
  font-weight: 600;
  margin-top: 6px;
}

.stage-copy {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
}

.stage-title {
  font-size: 11px;
  text-transform: uppercase;
  color: #777;
}

.stage-subtitle {
  font-size: 14px;
  color: #666;
  margin-top: 6px;
  max-width: 420px;
}

#circleStage {
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px dashed #ddd;
  background: radial-gradient(circle, #ffffff 0%, #f3f2ee 70%);
}

.debug {
  border-top: 1px solid #e4e2dc;
  background: #ffffff;
  padding: 14px;
  overflow: auto;
}

.debug-header {
  font-size: 11px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 6px;
}

pre {
  font-size: 12px;
  color: #444;
}

.debug-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.debug-copy-button {
  border: 1px solid #d8d6d0;
  background: #f7f6f2;
  color: #333;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.debug-copy-button:hover {
  background: #efede7;
}

.debug-copy-button.copied {
  border-color: #bfc9b7;
  background: #eef4e8;
}

.control-group {
  margin-bottom: 16px;
}

.control-select {
  width: 100%;
  border: 1px solid #ddd;
  background: white;
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.button-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}