.terminal__screen {
  padding: 2.25rem 2rem 1.5rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  user-select: text;
}

.terminal__line {
  display: block;
  margin: 0 0 0.35rem;
}

.terminal__line--dim {
  color: var(--text-dim);
}

.terminal__line--accent {
  color: var(--accent);
}

.terminal__line--warning {
  color: var(--warning);
}

.terminal__line--danger {
  color: var(--danger);
}

.terminal__feed-label {
  color: var(--accent);
  font-weight: 600;
}

.terminal__keyword {
  color: var(--accent);
}

.terminal__keyword--cmd {
  color: var(--accent);
  font-weight: 600;
}

.terminal__keyword--text {
  color: var(--text-main);
}

.terminal__keyword--dir {
  color: var(--accent);
}

.terminal__keyword--info {
  color: var(--accent);
}

.terminal__keyword--warn {
  color: var(--warning);
}

.terminal__keyword--danger {
  color: var(--danger);
}

.terminal__input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem 1.75rem;
}

.terminal__progress {
  padding: 0 2rem 1.25rem;
}

.terminal__progress-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
}

.terminal__progress-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(42, 161, 152, 0.35);
  background: rgba(42, 161, 152, 0.12);
  overflow: hidden;
}

.terminal__progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(42, 161, 152, 0.65), rgba(38, 139, 210, 0.9));
  box-shadow: 0 0 10px rgba(42, 161, 152, 0.35);
  transition: width 0.25s ease;
}

.terminal__progress--indeterminate .terminal__progress-fill {
  width: 35%;
  animation: lattice-pulse 1.4s ease-in-out infinite;
}

@keyframes lattice-pulse {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(40%);
  }
  100% {
    transform: translateX(180%);
  }
}

.terminal__prompt {
  color: var(--accent);
  font-weight: 600;
}

.terminal__field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1rem;
  caret-color: var(--accent);
  user-select: text;
}

.terminal__field::placeholder {
  color: var(--accent-dim);
}

.terminal__screen ::selection {
  background: rgba(42, 161, 152, 0.12);
  color: var(--text-main);
}

.terminal__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 43, 54, 0.2) 0%,
    rgba(0, 43, 54, 0.05) 40%,
    rgba(0, 43, 54, 0.2) 100%
  );
}

.image-render {
  font-size: 0.38rem;
  line-height: 0.48rem;
  letter-spacing: 0.03em;
  color: var(--text-dim);
}

.image-render .glyph {
  text-shadow: 0 0 6px rgba(42, 161, 152, 0.12);
}

.glitch--a {
  color: #2aa198;
}

.glitch--b {
  color: #b58900;
}

.glitch--c {
  color: #dc322f;
}

@media (max-width: 700px) {
  .terminal__screen {
    padding: 1.75rem 1.5rem 1.25rem;
    font-size: 0.92rem;
  }

  .terminal__input {
    padding: 0 1.5rem 1.25rem;
  }

  .terminal__progress {
    padding: 0 1.5rem 1rem;
  }
}
