:root {
  --bg: #050a07;
  --panel: rgba(10, 18, 12, 0.78);
  --panel-border: rgba(62, 255, 139, 0.22);
  --text: rgba(225, 255, 238, 0.92);
  --muted: rgba(225, 255, 238, 0.68);
  --accent: #21ff83;
  --accent-2: #00c2ff;
  --danger: #ff3b5c;
  --warning: #ffd24a;
  --ok: #35ff9a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(1200px 900px at 20% 20%, rgba(33, 255, 131, 0.14), transparent 60%),
    radial-gradient(1000px 800px at 85% 35%, rgba(0, 194, 255, 0.12), transparent 55%),
    radial-gradient(900px 700px at 55% 90%, rgba(255, 59, 92, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  display: grid;
  place-items: center;
  padding: 18px;
}

.shell {
  width: min(980px, 100%);
  border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(10, 18, 12, 0.92), rgba(8, 12, 9, 0.72));
  box-shadow: var(--shadow);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.shell__topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(6, 10, 7, 0.85);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  opacity: 0.9;
}
.dot--red {
  background: var(--danger);
}
.dot--yellow {
  background: var(--warning);
}
.dot--green {
  background: var(--ok);
}

.shell__title {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.shell__screen {
  padding: 16px 16px 12px;
  min-height: 66vh;
  max-height: min(78vh, 820px);
  overflow: auto;
  scroll-behavior: smooth;
}

/* Clean terminal-style scrollbars */
.shell__screen {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(33, 255, 131, 0.38) rgba(0, 0, 0, 0.18);
}

.shell__screen::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.shell__screen::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.18);
  border-left: 1px solid rgba(62, 255, 139, 0.12);
}

.shell__screen::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(33, 255, 131, 0.45),
    rgba(33, 255, 131, 0.22)
  );
  border: 1px solid rgba(62, 255, 139, 0.25);
  border-radius: 999px;
}

.shell__screen::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(33, 255, 131, 0.62),
    rgba(33, 255, 131, 0.3)
  );
}

.shell__screen::-webkit-scrollbar-corner {
  background: rgba(0, 0, 0, 0.18);
}

.output {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
  font-size: 14px;
}

.line {
  display: block;
  margin: 0 0 4px 0;
}

.line--muted {
  color: var(--muted);
}

.line--accent {
  color: var(--accent);
}

.line--error {
  color: #ff7f93;
}

.input {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 10px;
}

.input--name .prompt {
  display: none;
}

.input--name .input__field {
  padding-left: 0;
}

.prompt {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.01em;
  user-select: none;
}

.input__field {
  flex: 1;
  min-width: 140px;
  font: inherit;
  font-size: 14px;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  caret-color: var(--accent);
  padding: 0;
}

.shell__hint {
  padding: 10px 14px 14px;
  border-top: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 12px;
  background: rgba(6, 10, 7, 0.82);
}

.kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid rgba(33, 255, 131, 0.25);
  border-radius: 8px;
  color: rgba(225, 255, 238, 0.85);
  background: rgba(33, 255, 131, 0.08);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .shell__screen {
    scroll-behavior: auto;
  }
}

