/* ============================================================
   Ubuntu 26.04 — Terminal (Yaru GNOME Terminal look)
   ============================================================ */

.term {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  background: var(--view-bg); color: var(--view-fg);
  font-family: var(--font-mono);
  font-size: 13px; line-height: 1.5;
  padding: 10px 12px;
  position: relative;
  cursor: text;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

.term-lines {
  flex: 1; min-height: 0;
  overflow-y: auto;
  padding-bottom: 4px;
}

.term-line {
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 1.5em;
  user-select: text;
  -webkit-user-select: text;
}

.term .term-caret {
  display: inline-block;
  width: 7px; height: 1.05em;
  margin: 0;
  background: var(--accent);
  border-radius: 2px;
  vertical-align: text-bottom;
  animation: term-blink 1.1s step-end infinite;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

@keyframes term-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.term ::selection { background: var(--selection-bg); color: var(--selection-fg); }

.term-ghost {
  position: fixed;
  left: -10000px; top: 0;
  width: 1px; height: 1px;
  opacity: 0;
  border: 0; padding: 0; margin: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  outline: none;
  pointer-events: none;
}

/* terminal ANSI-ish color tokens */
.term .t-acc  { color: var(--accent); }
.term .t-bold { font-weight: 700; }
.term .t-dir  { color: #3584e4; font-weight: 700; }
.term .t-grn  { color: var(--success); }
.term .t-err  { color: var(--error); }
.term .t-dim  { color: var(--fg-dim); }
.term .t-cyan { color: #33c7de; }
