/* ==========================================================================
   Terminal Panel & Interactive PTY
   ========================================================================== */

.terminal-container {
  height: 220px;
  background: #090c10;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.terminal-header {
  height: 32px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  user-select: none;
}

.term-tab-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.term-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.term-tab:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.term-tab.active {
  background: var(--bg-surface);
  color: var(--color-success);
  font-weight: 600;
}

.terminal-body {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: #34d399;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.term-log-line {
  display: flex;
  flex-direction: column;
  white-space: pre-wrap;
}

.term-cmd-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.term-prompt-tag {
  color: var(--color-info);
  font-weight: 700;
  user-select: none;
}

.term-live-input {
  background: transparent;
  border: none;
  outline: none;
  color: #f3f4f6;
  font-family: var(--font-mono);
  font-size: 12px;
  flex: 1;
  caret-color: var(--color-success);
}
