:root {
  --bg: #0f1115;
  --panel: #171b23;
  --text: #d7dce5;
  --muted: #8f98a8;
  --accent: #4ad7a7;
  --accent-soft: #2aa07d;
  --terminal: #10141b;
  --line: #252c38;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Consolas", "Menlo", "DejaVu Sans Mono", monospace;
  color: var(--text);
  background: radial-gradient(circle at top right, #1a2130 0%, var(--bg) 45%);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 18px;
}

#sidebar,
#terminal {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

#sidebar {
  padding: 24px;
}

#avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #0f1115;
  background: linear-gradient(135deg, var(--accent), #7bf7cc);
  margin-bottom: 14px;
  font-weight: 700;
}

#sidebar h1 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 34px;
  line-height: 1.05;
}

.role {
  color: #9fe7d1;
  margin: 0 0 16px;
  font-weight: 700;
}

#sidebar p {
  margin: 0 0 14px;
  line-height: 1.55;
}

.tip {
  color: var(--muted);
  font-size: 14px;
}

#terminal {
  background: var(--terminal);
  padding: 22px;
  min-height: 560px;
}

#injected {
  font-size: 15px;
  line-height: 1.5;
  min-height: 460px;
}

#injected h2 {
  margin: 0 0 8px;
  color: var(--accent);
}

#injected table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

#injected td {
  border-bottom: 1px dashed #253042;
  padding: 8px 6px;
  vertical-align: top;
}

#injected td:first-child {
  width: 210px;
  color: #9cb7d8;
}

#injected ul {
  padding-left: 18px;
  margin: 8px 0;
}

#userInput {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

#prompt,
#txtBox {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 18px;
  color: var(--text);
}

#prompt {
  color: #f7c06a;
  width: 180px;
  flex-shrink: 0;
}

#txtBox {
  color: #8df0b0;
  width: 100%;
}

#txtBox:focus {
  outline: none;
}

#copyright {
  text-align: center;
  color: #5f6a7b;
  margin: 8px 0 24px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .container {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  #terminal {
    min-height: 500px;
  }

  #injected {
    min-height: 380px;
  }

  #prompt {
    width: 140px;
    font-size: 15px;
  }

  #txtBox {
    font-size: 15px;
  }
}
