/* ── Terminal Overlay ── */

/* Quake-style console dropping from the top edge. Deliberately dark in both
   appearances — it's a terminal. */
.terminal-overlay {
  position: fixed;
  inset: 0 0 auto 0;
  height: min(46vh, 420px);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  background: rgba(6, 12, 22, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(125, 191, 232, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #cfe4f5;
  transform: translateY(-100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.terminal-overlay.visible {
  transform: translateY(0);
}

.terminal-scrollback {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.2rem 0.4rem;
  overscroll-behavior: contain;
  /* The buffer is selectable/copyable; it only holds focus to own that
     selection, so the focus ring would be noise. */
  user-select: text;
}
.terminal-scrollback:focus {
  outline: none;
}
.terminal-line {
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-echo {
  color: rgba(207, 228, 245, 0.55);
}
.terminal-banner {
  color: #7dbfe8;
}

.terminal-input-line {
  display: flex;
  align-items: baseline;
  gap: 0.55em;
  padding: 0.4rem 1.2rem 0.9rem;
}
.terminal-prompt {
  color: #7dbfe8;
  white-space: nowrap;
}
.terminal-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font: inherit;
  color: inherit;
  caret-color: #7dbfe8;
  padding: 0;
}
