*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #0d0d0d;
  color: #33ff33;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

#terminal {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

#output {
  flex: 1;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #1a4d1a #0d0d0d;
}

#output::-webkit-scrollbar       { width: 6px; }
#output::-webkit-scrollbar-track { background: #0d0d0d; }
#output::-webkit-scrollbar-thumb { background: #1a4d1a; border-radius: 3px; }

.line { margin-bottom: 2px; }

.line.input  { color: #aaffaa; }
.line.system { color: #555; font-style: italic; }
.line.server { color: #33ff33; }

.line.server + .line.server { margin-top: 0; }

#input-line {
  display: flex;
  align-items: center;
  border-top: 1px solid #1a2e1a;
  padding-top: 10px;
  margin-top: 8px;
  flex-shrink: 0;
}

#prompt {
  color: #33ff33;
  margin-right: 8px;
  user-select: none;
}

#cmd {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #33ff33;
  font-family: inherit;
  font-size: inherit;
  caret-color: #33ff33;
}
