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

html, body {
  width: 100%;
  height: 100%;
  background: #0b0d10;
  color: #e6edf3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
}

#terminal-screen {
  width: 100%;
  height: 100%;
  padding: 18px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  cursor: text;
}

#terminal-output {
  white-space: pre-wrap;
  word-break: break-word;
}

.line {
  margin-bottom: 2px;
}

.line.muted {
  color: #8b949e;
}

.line.accent {
  color: #58a6ff;
}

.line.error {
  color: #ff7b72;
}

.input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

#prompt-label {
  color: #3fb950;
  white-space: nowrap;
  user-select: none;
}

#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e6edf3;
  font: inherit;
  caret-color: #58a6ff;
}

#simulator-modal {
  position: fixed;
  inset: 24px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

#simulator-modal.hidden {
  display: none;
}

#simulator-header {
  height: 38px;
  background: #1f242c;
  border-bottom: 1px solid #30363d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 13px;
}

#close-simulator {
  background: #da3633;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 4px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

#close-simulator:hover {
  background: #f85149;
}

#simulator-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #000000;
}
