:root {
  --bg: #0a0b12;
  --panel: #11131f;
  --panel-border: #23273f;
  --cyan: #08d9d6;
  --magenta: #ff2e63;
  --text: #eaeaea;
  --muted: #8a8ca8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
}

.site-header {
  text-align: center;
  padding: 2.5rem 1.5rem 1.5rem;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(8, 217, 214, 0.4);
}

.tagline {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.layout {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.spec-form {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  letter-spacing: 1px;
}

.form-title.old {
  color: var(--muted);
}

.form-title.new {
  color: var(--cyan);
}

.spec-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.unit {
  color: #5b6480;
}

.spec-form input {
  background: #0a0b12;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 0.6rem;
}

.spec-form input:focus {
  outline: none;
  border-color: var(--cyan);
}

.summary-line {
  text-align: center;
  color: var(--text);
  font-size: 0.95rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 1rem;
  margin: 1.5rem 0;
  line-height: 1.7;
}

.diagrams {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

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

.diagram-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 1rem 1.25rem 1.25rem;
}

.diagram-card h2 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.diagram-hint {
  margin: 0.35rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.diagram-card svg {
  width: 100%;
  height: auto;
  display: block;
}

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

.result-tile {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 1rem 1.1rem;
}

.result-label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.result-value {
  margin-top: 0.4rem;
  font-size: 1.05rem;
}

.result-value .delta-up {
  color: var(--cyan);
}

.result-value .delta-down {
  color: var(--magenta);
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.site-footer a {
  color: var(--muted);
}
