:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #1f2937;
  background: #f3f4f6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.container {
  width: min(900px, 100%);
  display: grid;
  gap: 20px;
}

.card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
  padding: 24px;
}

h1,
h2 {
  margin-top: 0;
  color: #111827;
}

.intro {
  margin-top: 0;
  color: #4b5563;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: #374151;
}

.param-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.param-label em {
  font-style: italic;
  font-size: 0.95em;
  font-weight: 400;
  color: #6b7280;
}

.color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.color-dot.blue {
  background: #2563eb;
}

.color-dot.indigo {
  background: #1d4ed8;
}

.color-dot.red {
  background: #ef4444;
}

.color-dot.slate {
  background: #f59e0b;
}

input {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
}

button {
  margin-top: 16px;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: #2563eb;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

.results {
  display: grid;
  gap: 14px;
}

.result-grid {
  display: grid;
  gap: 12px;
}

.result-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
  display: grid;
  gap: 8px;
}

.result-list li {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
}

.result-box strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
}

.diagram-wrapper {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  padding: 10px;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
}

#cover-diagram {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.diagram-caption {
  margin: 10px 0 0;
  color: #6b7280;
}

.placeholder {
  margin: 0;
  color: #6b7280;
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
