* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: #f5f6f8;
  color: #1a1a1a;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #430e69;
  color: white;
}
header h1 { margin: 0; font-size: 1.2rem; }
main { max-width: 900px; margin: 1.5rem auto; padding: 0 1rem; }
.panel {
  background: white;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.panel h2 { margin-top: 0; font-size: 1rem; color: #430e69; }
#params-form { display: flex; flex-wrap: wrap; gap: 1rem; }
#params-form label { display: flex; flex-direction: column; font-size: 0.85rem; gap: 0.25rem; flex: 1 1 220px; }
#params-form label.checkbox { flex-direction: row; align-items: center; flex: 1 1 100%; }
#params-form input[type=text], #params-form select {
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
}
.button-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.button {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  color: #1a1a1a;
}
.button:hover { background: #f0f0f0; }
.button.primary { background: #430e69; color: white; border-color: #430e69; }
.button.primary:hover { background: #5a1a8a; }
.button:disabled { opacity: 0.5; cursor: not-allowed; }
#log-pane {
  background: #10121a;
  color: #d3f7d3;
  padding: 1rem;
  border-radius: 6px;
  max-height: 420px;
  overflow-y: auto;
  font-size: 0.8rem;
  white-space: pre-wrap;
}
#run-status { margin-bottom: 0.5rem; font-size: 0.9rem; }
.hidden { display: none !important; }
.dialog {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
}
.dialog-box { background: white; border-radius: 8px; padding: 1.5rem; max-width: 400px; }
.dialog-box input { width: 100%; padding: 0.4rem; margin: 0.75rem 0; border: 1px solid #ccc; border-radius: 4px; }
