.gsgr-term {
  --terminal-bg: #0c0c0c;
  --terminal-fg: #e4e4e7;
  --terminal-dim: #71717a;
  --terminal-vdim: #52525b;
  --terminal-accent: #22c55e;
  --terminal-err: #f87171;
  background: var(--terminal-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  font-family: ui-monospace, "IBM Plex Mono", "Cascadia Code", monospace;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--terminal-fg);
  width: 100%;
}

.gsgr-term-install-wrap {
  width: 100%;
  max-width: 100%;
}

.gsgr-term-embedded {
  border: none;
  border-radius: 0;
  min-height: 200px;
  height: 100%;
}

.gsgr-term-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.gsgr-term-dots {
  display: flex;
  gap: 0.35rem;
}

.gsgr-term-dots span:nth-child(1) { background: #ff5f57; }
.gsgr-term-dots span:nth-child(2) { background: #febc2e; }
.gsgr-term-dots span:nth-child(3) { background: #28c840; }

.gsgr-term-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: block;
}

.gsgr-term-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--terminal-dim);
  font-size: 11px;
}

.gsgr-term-mode {
  color: var(--terminal-vdim);
  font-size: 11px;
  white-space: nowrap;
}

.gsgr-term-body {
  min-height: 11rem;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.65rem 0.75rem;
  outline: none;
}

.gsgr-term-embedded .gsgr-term-body {
  max-height: 14rem;
}

.gsgr-term-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.gsgr-term-line.gsgr-cmd {
  color: var(--terminal-accent);
}

.gsgr-term-line.gsgr-err {
  color: var(--terminal-err);
}

.gsgr-term-input-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.35);
}

.gsgr-term-prompt {
  color: var(--terminal-dim);
  user-select: none;
}

.gsgr-term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--terminal-fg);
  font: inherit;
  min-width: 0;
}

.gsgr-term-input:disabled {
  opacity: 0.5;
}
