*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1rem;
  color: #1a1a1a;
  background: #fafafa;
}

h1 {
  margin-bottom: 0.25rem;
}

.subtitle {
  color: #555;
  margin-bottom: 1.5rem;
}

h2 {
  margin-bottom: 1rem;
}

/* Status bar */
.status {
  padding: 0.75rem 1rem;
  background: #e8e8e8;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.status.ready {
  background: #d4edda;
  color: #155724;
}

.status.error {
  background: #f8d7da;
  color: #721c24;
}

.status.working {
  background: #fff3cd;
  color: #856404;
}

/* Sections */
section {
  margin-bottom: 1.5rem;
}

.hidden {
  display: none;
}

/* Form elements */
label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

input[type="file"] {
  margin-bottom: 0.75rem;
}

select {
  display: block;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  padding: 0.5rem 1.5rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  margin-right: 0.5rem;
}

button:hover {
  background: #1d4ed8;
}

button.secondary {
  background: #6b7280;
}

button.secondary:hover {
  background: #4b5563;
}

/* Chart */
#chart-container {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

/* Summary text */
#summary-text pre {
  background: #f0f0f0;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}
