.tm-aviso {
  margin-bottom: 13px;
}

.tm-ventana {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 70%, #000);
  box-shadow:
    var(--shadow),
    0 0 30px var(--line-soft);
}

.tm-barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 0 11px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.tm-titulo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-puntos {
  display: inline-flex;
  gap: 5px;
}

.tm-puntos i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.tm-puntos i:nth-child(2) {
  background: var(--amber);
}

.tm-puntos i:nth-child(3) {
  background: var(--red);
}

.tm-herramientas {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.tm-consola {
  height: min(58vh, 560px);
  min-height: 262px;
  overflow: auto;
  padding: 13px 15px;
  cursor: text;
}

.tm-salida {
  margin: 0;
  padding: 0;
  overflow: visible;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  outline: none;
}

.tm-sistema {
  color: var(--muted);
}

.tm-comando {
  color: var(--cyan);
  font-weight: 700;
}

.tm-error {
  color: var(--red);
}

.tm-linea {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 0;
  background: transparent;
}

.tm-prompt {
  flex: 0 0 auto;
  max-width: 75%;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: pre;
}

.tm-usr {
  color: var(--accent);
  font-weight: 700;
}

.tm-ruta {
  color: var(--cyan);
  font-weight: 700;
}

.tm-cmd {
  color: var(--text);
}

.tm-entrada {
  width: 0;
  min-width: 0;
  min-height: 0;
  height: auto;
  flex: 1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  caret-color: var(--accent);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.55;
  box-shadow: none;
  outline: none;
}

.tm-entrada:focus-visible {
  outline: none;
}

.tm-entrada::placeholder {
  color: var(--muted);
  opacity: 0.55;
}

.tm-esqueleto {
  display: grid;
  gap: 10px;
  padding: 18px 15px;
}

@media (max-width: 680px) {
  .tm-barra {
    flex-wrap: wrap;
    padding: 7px 11px;
  }

  .tm-prompt {
    max-width: 55%;
  }
}

.tm-xterm {
  height: min(66vh, 700px);
  min-height: 295px;
  padding: 8px 5px 7px 10px;
}

.tm-xterm-host {
  height: 100%;
}

.tm-xterm .xterm,
.tm-xterm .xterm-viewport {
  background: transparent !important;
}

@media (min-width: 1024px) {
  .tm-ventana {
    height: var(--tm-altura-disponible, auto);
    min-height: 310px;
  }

  .tm-barra {
    flex-shrink: 0;
  }

  .tm-consola,
  .tm-xterm {
    flex: 1;
    min-height: 0;
    height: auto;
  }
}
