* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #0d1117;
  color: #c9d1d9;
  font-family: 'Fira Code', 'Cascadia Code', 'JetBrains Mono', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
}
#terminal {
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
  background: #161b22;
  border-radius: 8px;
  border: 1px solid #30363d;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
}
#banner {
  color: #58a6ff;
  font-weight: bold;
  font-size: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #30363d;
  margin-bottom: 12px;
}
#output {
  flex: 1;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  padding-bottom: 12px;
  min-height: 300px;
}
#output .line { padding: 2px 0; }
#output .result { color: #7ee787; }
#output .error { color: #ff7b72; }
#output .info { color: #79c0ff; }
#output .deriv { color: #d2a8ff; }
#output .roots { color: #ffa657; }
#output .steps { color: #a5d6ff; }
#output .svg-container {
  background: white;
  border-radius: 4px;
  padding: 8px;
  margin: 8px 0;
  display: inline-block;
}
#output .svg-container svg { display: block; max-width: 100%; }
#input-line {
  display: flex;
  align-items: center;
  border-top: 1px solid #30363d;
  padding-top: 12px;
}
.prompt {
  color: #3fb950;
  font-weight: bold;
  margin-right: 8px;
}
#input {
  flex: 1;
  background: transparent;
  border: none;
  color: #c9d1d9;
  font-family: inherit;
  font-size: inherit;
  outline: none;
}
#input::placeholder { color: #484f58; }
