* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  background: #0b1a0f;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  overflow: hidden;
}

.term {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 98%;
  gap: 0.6rem;
}

.term-header {
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #07120ad9;
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.8rem;
  border-bottom-left-radius: 1.2rem;
  border-left: 1px solid #2a5433;
  border-bottom: 1px solid #2a5433;
  z-index: 100;
}

.penguin-right {
  font-size: 1.2rem;
  line-height: 1;
  filter: brightness(0) saturate(100%) invert(85%) sepia(10%) saturate(500%) hue-rotate(45deg);
}

.selector-group {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  flex-wrap: nowrap;
}

.os-selector,
.version-selector,
.desktop-selector {
  background: #0e2315;
  border: 1px solid #1f4d2a;
  border-radius: 2rem;
  padding: 0.1rem 0.3rem;
  display: flex;
  align-items: center;
}

.selector-group select {
  background: #102c18;
  border: none;
  color: #b3ffb0;
  font-family: monospace;
  font-size: 0.6rem;
  font-weight: bold;
  padding: 0.15rem 0.4rem;
  border-radius: 2rem;
  outline: none;
  cursor: pointer;
  min-width: 70px;
  text-align: center;
  text-align-last: center;
}

.selector-group select option {
  background: #0e2315;
  color: #e0ffe3;
  font-size: 0.6rem;
}

.chat-window {
  background: #07120a;
  border-radius: 1.2rem;
  border: 1px solid #1c4023;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 5px 12px rgba(0,0,0,0.5);
  scroll-behavior: smooth;
  max-height: 70vh;
  margin-top: 40px;
}

.chat-window::-webkit-scrollbar {
  width: 5px;
}

.chat-window::-webkit-scrollbar-track {
  background: #112617;
}

.chat-window::-webkit-scrollbar-thumb {
  background: #2e7d32;
  border-radius: 8px;
}

.cli-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  animation: fadeIn 0.15s ease;
}

.user-cmd {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.prompt {
  color: #6fbf4c;
  font-weight: bold;
  font-size: 0.9rem;
}

.cmd-text {
  background: #0e1e12;
  padding: 0.2rem 0.8rem;
  border-radius: 1.2rem;
  color: #cbf5cf;
  font-family: monospace;
  word-break: break-word;
}

.bot-answer {
  margin-left: 1rem;
  margin-top: 0.2rem;
}

.answer-block {
  background: #0b170e;
  border-radius: 0.9rem;
  padding: 0.7rem 1rem;
  color: #cbffcf;
  font-size: 0.85rem;
  line-height: 1.45;
  font-family: monospace;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid #2a5433;
  cursor: pointer;
  transition: 0.05s linear;
}

.answer-block:active {
  background: #1a3a21;
  transform: scale(0.99);
}

.input-area {
  background: #0e1a11;
  border: 1px solid #2c5436;
  border-radius: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.2rem 0.2rem 1.2rem;
}

.input-area:focus-within {
  border-color: #6fbf4c;
  box-shadow: 0 0 0 1px #3faa4a;
}

.dollar {
  color: #6fbf4c;
  font-weight: bold;
  font-size: 0.9rem;
}

#terminalInput {
  background: transparent;
  border: none;
  color: #e0ffe3;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  padding: 0.8rem 0;
  flex: 1;
  outline: none;
}

#terminalInput::placeholder {
  color: #3b6642;
  font-size: 0.8rem;
}

.send-icon {
  background: #1f4228;
  border: none;
  color: #b3ffb0;
  font-family: monospace;
  font-weight: bold;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.send-icon:active {
  background: #3c8b49;
  color: #0b1a0f;
}

.status {
  text-align: right;
  font-size: 0.6rem;
  color: #3d6843;
  padding-right: 0.3rem;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}