:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

body {
  margin: 0;
  background: #f4f6fb;
  color: #1c2333;
}

.app {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

header {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.stat-card,
.event,
.log,
.actions {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.stat-card h2 {
  margin: 0;
  font-size: 0.95rem;
}

.stat-card p {
  margin-bottom: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

button {
  appearance: none;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.8rem 1rem;
  background: #275efe;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#history {
  margin: 0;
  padding-left: 1rem;
}

#history li + li {
  margin-top: 0.4rem;
}
