.vtx-terminal,
.vtx-terminal * {
  box-sizing: border-box;
}

.vtx-terminal {
  border-radius: 8px;
  background: var(--vtx-code-terminal, #06062e);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 11px 22px rgba(2, 2, 129, 0.22);
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.vtx-terminal-bar {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

.vtx-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--vtx-accent, #00e4c0);
  display: block;
  flex: 0 0 auto;
}

.vtx-dot:nth-child(2) {
  background: rgba(255, 255, 255, 0.45);
}

.vtx-dot:nth-child(3) {
  background: rgba(255, 255, 255, 0.25);
}

.vtx-terminal pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 20px;
  font-family: "Mona Sans Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.7;
  color: inherit;
  background: transparent;
}

.vtx-terminal-label {
  margin: 0;
  padding: 20px 20px 0;
  font-family: "Mona Sans Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
}

.vtx-terminal-label + .vtx-terminal-body pre {
  padding-top: 10px;
}

.vtx-terminal-body {
  flex: 1 1 auto;
  display: grid;
  min-width: 0;
  min-height: var(--vtx-terminal-min-height, 240px);
}

.vtx-terminal-body > .vtx-typing-terminal {
  grid-area: 1 / 1;
  width: 100%;
  min-height: 0;
}

.vtx-terminal-measure {
  pointer-events: none;
  visibility: hidden;
}

.vtx-terminal-animated {
  position: relative;
  z-index: 1;
}

.vtx-pink {
  color: var(--vtx-accent, #00e4c0);
}

.vtx-green {
  color: #10b981;
}

.vtx-muted-white {
  color: rgba(255, 255, 255, 0.68);
}

.vtx-terminal-line {
  display: block;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  opacity: 1;
  transform: none;
}

.vtx-terminal-line--revealing {
  opacity: 0;
  transform: translateY(4px);
  animation: vtxTerminalLineIn var(--vtx-terminal-line-animation, 300ms) ease forwards;
}

body.vx-edit-mode .vtx-terminal-line--revealing {
  opacity: 1 !important;
  transform: none !important;
}

@keyframes vtxTerminalLineIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vtx-cursor {
  display: inline-block;
  color: var(--vtx-accent, #00e4c0);
  animation: vtxCursorBlink 1s steps(1, end) infinite;
  margin-left: 2px;
}

@keyframes vtxCursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@media (max-width: 767px) {
  .vtx-terminal-body {
    min-height: var(--vtx-terminal-mobile-min-height, 460px);
  }

  .vtx-typing-terminal {
    font-size: 12px;
  }
}
