body {
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1 {
  font-weight: 600;
}

.sub {
  color: #999;
  max-width: 62ch;
}

.sub code {
  color: #b5b5b5;
}

#term {
  background: #0c0c0c;
  color: #33ff33;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 14px;
  line-height: 1.4;
  padding: 1rem;
  height: 460px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid #333;
  border-radius: 4px;
}

#term:focus {
  outline: 2px solid #33ff33;
  outline-offset: -1px;
}

#term::after {
  content: "\2588"; /* U+2588 FULL BLOCK */
  color: #33ff33;
  animation: term-cursor-blink 1s steps(1, end) infinite;
}

#term:not(:focus)::after {
  opacity: 0.35;
  animation: none;
}

@keyframes term-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin: 0.75rem 0;
  font-size: 13px;
  color: #aaa;
}

.controls label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.controls input[type="number"] {
  width: 5.5em;
  background: #0c0c0c;
  color: #d4d4d4;
  border: 1px solid #333;
  border-radius: 3px;
  padding: 2px 4px;
  font-family: monospace;
}

.controls input[type="range"] {
  accent-color: #33ff33;
}

#tempval {
  font-family: monospace;
  color: #33ff33;
  min-width: 3ch;
}

#status {
  color: #777;
  font-family: monospace;
  font-size: 13px;
}

.hint {
  color: #666;
  font-size: 12px;
  max-width: 60ch;
}
