/* terminal.css */

.term-body { --term-font-size: 12.5px; }
.term {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  font-family: var(--font-mono);
  font-size: var(--term-font-size);
  background: #ffffff;
  color: #1d1d1f;
  padding: 4px 8px 6px;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
  overflow: hidden;
}
.term-body.term-pro .term { background: #1b1d21; color: #e8e8ea; }
.term-out {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  overscroll-behavior: contain;
}
.term-line { line-height: 1.4; min-height: 1.4em; padding: 0 2px; }
.term-input-line {
  display: flex;
  align-items: baseline;
  padding: 0 2px;
}
.term-prompt { white-space: pre; color: #1d1d1f; font-weight: 500; }
.term-body.term-pro .term-prompt { color: #e8e8ea; }
.term-input {
  flex: 1;
  border: none; outline: none; background: none;
  font: inherit;
  color: inherit;
  caret-color: var(--accent);
  padding: 0;
  min-width: 40px;
}
/* inline colors */
.tc-b { color: #0a60ff; font-weight: 600; }
.tc-g { color: #1f8f34; }
.tc-r { color: #d63029; }
.tc-y { color: #f5a623; }
.tc-d { color: rgba(120, 120, 128, 0.8); }
.tc-B { font-weight: 700; }
.term-body.term-pro .tc-b { color: #5ea2ff; }
.term-body.term-pro .tc-g { color: #32d74b; }
.term-body.term-pro .tc-r { color: #ff5547; }
.term-body.term-pro .tc-y { color: #ffd60a; }
.term-body.term-pro .tc-d { color: rgba(200, 200, 204, 0.6); }

.term-body ::selection { background: rgba(10, 96, 255, 0.3); }
.term-body.term-pro ::selection { background: rgba(90, 160, 255, 0.45); }
