body {
  margin:0;
  font-family: Helvetica, Arial, sans-serif;
  background:#f6f7fb;
}

.header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 32px;
  background:white;
  border-bottom:1px solid #e6e6e6;
}

.left {
  display:flex;
  align-items:center;
  gap:14px;
}

.logo {
  width:34px;
  height:34px;
}

.brand {
  font-weight:600;
  font-size:18px;
}

.nav {
  display:flex;
  gap:28px;
  margin-left:40px;
}

.nav a {
  text-decoration:none;
  color:#333;
  font-size:15px;
}

.right {
  display:flex;
  align-items:center;
  gap:22px;
}

.eulogy-link {
  color:#5b5bd6;
  text-decoration:none;
  font-size:15px;
}

.cta {
  background:#6c3bff;
  color:white;
  padding:10px 18px;
  border-radius:6px;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
}

#generator {
  padding:40px;
}

#cumulative-plot {
  padding:40px;
  box-sizing:border-box;
  width:100%;
}

#vega-plot {
  width:100%;
}

.generator-layout {
  display:flex;
  align-items:flex-start;
  gap:40px;
  flex-wrap:wrap;
  justify-content:flex-start;
}

@media (min-width:900px) {
  .generator-layout {
    justify-content:center;
  }
}

.steps-section {
  flex:0 0 auto;
}

.output-section {
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.output-pre {
  background:#f8f8f8;
  padding:8px;
  border:1px solid #ddd;
  white-space:pre-wrap;
  width:min(500px, calc(100vw - 80px));
  height:400px;
  overflow:auto;
  margin:0;
  box-sizing:border-box;
}

.step {
  display:flex;
  align-items:flex-start;
  gap:28px;
  margin-bottom:44px;
}

.step-number {
  font-family:Helvetica, Arial, sans-serif;
  font-size:88px;
  font-weight:900;
  color:#111;
  line-height:1;
  min-width:64px;
  flex-shrink:0;
  letter-spacing:-2px;
}

.step-content p {
  margin:0 0 14px 0;
  font-family:Helvetica, Arial, sans-serif;
  font-size:17px;
  font-weight:700;
  color:#111;
  letter-spacing:-0.2px;
}

.action-buttons {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:0;
}

.action-buttons button {
  height:42px;
  padding:0 22px;
  border:1px solid #ccc;
  border-radius:8px;
  background:white;
  color:#222;
  font-family:Helvetica, Arial, sans-serif;
  font-size:14px;
  font-weight:400;
  cursor:pointer;
  min-width:80px;
  box-sizing:border-box;
}

.action-buttons button:hover {
  border-color:#999;
}

.action-buttons button.active {
  background:#6c47ff;
  border-color:#6c47ff;
  color:white;
  font-weight:700;
}

.action-buttons button:disabled {
  background:white;
  border-color:#ddd;
  color:#bbb;
  cursor:not-allowed;
}
