* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #222;
  margin: 0;
  padding: 32px max(24px, 4vw);
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

header h1 {
  margin: 0 0 8px;
  font-size: 1.9rem;
  font-weight: 600;
}

.subtitle {
  margin: 0 0 24px;
  color: #555;
  max-width: 900px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f6f7f9;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.controls label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.status {
  margin-left: auto;
  color: #666;
  font-size: 0.9rem;
}

.plot {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 16px;
}

.plot-large {
  height: 650px;
}

.plot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.plot-small {
  height: 450px;
  margin-bottom: 0;
}

footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  color: #666;
  font-size: 0.9rem;
}

footer a { color: #2563eb; }

.generated-at {
  color: #999;
  font-size: 0.8rem;
  margin: 4px 0 0;
}

@media (max-width: 900px) {
  .plot-row { grid-template-columns: 1fr; }
  .plot-small { height: 400px; }
}
