.cli-wrap { margin-bottom: 2.5rem; }

.cli-mode-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.cli-mode-btn {
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.cli-mode-btn.active { color: var(--accent); }
.cli-mode-btn:hover  { color: var(--text); }

.cli-mode-sep {
  font-size: 10px;
  color: var(--muted2);
}

.cli-mode-hint {
  font-size: 10px;
  color: var(--muted2);
  letter-spacing: 0.08em;
}

.cli-terminal {
  background: #0a0a0a;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  min-height: 360px;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  cursor: text;
  font-family: var(--mono);
  overflow: hidden;
}

[data-theme="light"] .cli-terminal {
  background: #1a1a1a;
}

.cli-output {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--muted2) transparent;
}

.cli-output::-webkit-scrollbar { width: 4px; }
.cli-output::-webkit-scrollbar-track { background: transparent; }
.cli-output::-webkit-scrollbar-thumb {
  background: var(--muted2);
  border-radius: 2px;
}

.cli-line {
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-all;
  color: #c8c8c8;
}
.cli-cmd    { color: #e8e6e1; }
.cli-ok     { color: #4ade80; }
.cli-err    { color: #f87171; }
.cli-info   { color: #94a3b8; }
.cli-config { color: #a5b4fc; }
.cli-banner { color: #b8f0a0; font-size: 11px; }
.cli-win    { color: #fde68a; font-weight: 500; }

.cli-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 0.5px solid rgba(255,255,255,0.06);
  padding-top: 0.5rem;
}

.cli-prompt {
  font-size: 12px;
  color: #b8f0a0;
  white-space: nowrap;
  flex-shrink: 0;
}

.cli-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 12px;
  color: #e8e6e1;
  caret-color: #b8f0a0;
}

.cli-hint-bar {
  margin-top: 0.6rem;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted2);
}

.cli-key {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 3px;
  padding: 0 0.3rem;
  font-size: 9px;
  color: var(--muted);
}

.cli-debug-panel {
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 8px;
}
.cli-debug-panel.hidden { display: none; }

.cli-debug-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 0.35rem;
}

.cli-debug-score {
  font-size: 11px;
  color: var(--muted);
}
.cli-debug-score span { color: var(--accent); }
