/* Terminal Panel */
#terminal-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--terminal-h);
  background: #050508;
  border-top: 1px solid rgba(0, 255, 200, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: height var(--transition-med);
}

#terminal-panel.collapsed {
  height: 28px;
}

#terminal-handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 28px;
  background: var(--bg);
  border-bottom: 1px solid rgba(0, 255, 200, 0.08);
  cursor: pointer;
  user-select: none;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

#terminal-handle:hover {
  background: var(--bg-surface);
}

#terminal-collapse-icon {
  font-size: 8px;
  color: var(--text-dim);
}

#terminal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#terminal-panel.collapsed #terminal-body {
  display: none;
}

#terminal-output {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.6;
}

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

.t-accent { color: var(--accent-primary); }
.t-dim { color: var(--text-dim); }
.t-error { color: var(--status-error); }
.t-input { color: var(--text-muted); }
.t-link {
  color: var(--accent-secondary);
  text-decoration: underline;
  cursor: pointer;
}
.t-link:hover {
  color: var(--accent-primary);
}

#terminal-input-line {
  display: flex;
  align-items: center;
  padding: 4px 12px 8px;
  flex-shrink: 0;
}

.prompt {
  color: var(--accent-primary);
  font-size: 12px;
  white-space: nowrap;
}

#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  caret-color: var(--accent-primary);
}

/* Canvas Background */
#neural-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
